leesureman / sequence-labeling-early-exit Goto Github PK
View Code? Open in Web Editor NEWCode for ACL 2021 paper: Accelerating BERT Inference for Sequence Labeling via Early-Exit
Code for ACL 2021 paper: Accelerating BERT Inference for Sequence Labeling via Early-Exit
Hi @LeeSureman ,
I am a bit confused with the modeling_bert_ee code.
If the training mode is 'joint_sample_copy' as in further_train stage:
The loss will computed in the if branch of line 2101:
if self.args.train_mode == 'joint_sample_copy_label' or (self.args.train_mode == 'joint_sample_copy' and self.args.copy_supervised == 0):
and then recomputed again and overwritten in the if branch of line 2190:
elif 'joint' in self.args.train_mode:
Then, the if branch of line 2101 will be useless.
May I know why is that?
Thank you!
Hi, I can't find requirements.txt file
Can you please tell me what the dependencies are?
Thank you in advance!
Coule I know when the code will come?
请问用已训练好的模型,新的sentences输入的时候,怎么来进行预测呢
An error happened in load_data_.py, line 231, 'yangjie_rich_pretrain_bigram_path' is not defined. But in paths.py, this variable is not mentioned. And I also want to know which dataset in the paths.py should be used first for testing the programme.
看main.py的時候有些导入的包是找不到的,所以什么时候更新呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.