Coder Social home page Coder Social logo

negar-foroutan / multilms-lang-neutral-subnets Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 851 KB

[EMNLP 2022] Discovering Language-neutral Sub-networks in Multilingual Language Models.

Home Page: https://arxiv.org/abs/2205.12672

License: MIT License

Python 100.00%
lottery-ticket-hypothesis multilingual-language-models multilingual-nlp mbert mt5 cross-lingual-transfer

multilms-lang-neutral-subnets's Introduction

negar-foroutan

multilms-lang-neutral-subnets's People

Contributors

negar-foroutan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

epfl-nlp

multilms-lang-neutral-subnets's Issues

Variable definition problem

Code error message:
These two variables are defined after the reference.
"multiLMs-lang-neutral-subnets\helpers\data_processor.py", line 47, in init
num_examples = int(len(tokenized_text)/ block_size)
UnboundLocalError: local variable 'block_size' referenced before assignment

"multiLMs-lang-neutral-subnets\helpers\data_processor.py", line 67, in init
logger.info("Saving features into cached file %s", cached_features_file)
UnboundLocalError: local variable 'cached_features_file' referenced before assignment
image

Missing parameter

File "LT_ner.py", line 415, in train
if args.pruning_method == "component_wise":
AttributeError: 'LTHTrainingArguments' object has no attribute 'pruning_method'

Can not find this parameter definition in the code, how to solve it?
image

Inquiry about Function Dependency in analysis_tools.py

Could you please clarify whether the get_mbert_mask_ones_overlap(mask_list) function is capable of directly computing the similarity between two subnetworks without relying on other functions? (Because I found other functions in this file that I didn't use, I was a little confused)
If it does depend on other functions, could you kindly provide some insight into which functions are necessary for its operation?
image
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.