Zhe Zhao, Zhiruo Wang, Peng Zhou, Weijie Liu, Qi Ju, Haotang Deng
We lifted 11 functions out of this paper's own repositories and ran 6 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| laomagic/TextClassifier | — | 6 of 9 |
| JulesBelveze/bert-squeeze | — | 0 of 2 |
| Function | Status | Where it lives |
|---|---|---|
| BERTIntermediate | Ran | laomagic/TextClassifier/src/distill_bert/model_define/model_fastbert.py code served (permissive licence) · get_code("9a7c10339aec9893") |
| BERTLayerNorm | Ran | laomagic/TextClassifier/src/distill_bert/model_define/model_fastbert.py code served (permissive licence) · get_code("45cdedc61201a665") |
| BERTOutput | Ran | laomagic/TextClassifier/src/distill_bert/model_define/model_fastbert.py code served (permissive licence) · get_code("69668f3fd7371bee") |
| BERTSelfAttention | Ran | laomagic/TextClassifier/src/distill_bert/model_define/model_fastbert.py code served (permissive licence) · get_code("480aafb3e337a10f") |
| BERTSelfOutput | Ran | laomagic/TextClassifier/src/distill_bert/model_define/model_fastbert.py code served (permissive licence) · get_code("1d87365e5190f08d") |
| FastBERTClassifier | Ran | laomagic/TextClassifier/src/distill_bert/model_define/model_fastbert.py code served (permissive licence) · get_code("374ad282c87f7fc5") |
| BERTAttention | Not yet run | laomagic/TextClassifier/src/distill_bert/model_define/model_fastbert.py code served (permissive licence) · get_code("84e605e06efcf6a4") |
| BERTLayer | Not yet run | laomagic/TextClassifier/src/distill_bert/model_define/model_fastbert.py code served (permissive licence) · get_code("20e6e0e142a0228c") |
| FastBERTGraph | Not yet run | laomagic/TextClassifier/src/distill_bert/model_define/model_fastbert.py code served (permissive licence) · get_code("6897bd6bedfa1234") |
| FastBertClassifier | Not yet run | JulesBelveze/bert-squeeze/bert_squeeze/models/custom_transformers/fastbert.py pointer only (licence: NONE) · get_code("0974648a65430293") |
| FastBertGraph | Not yet run | JulesBelveze/bert-squeeze/bert_squeeze/models/custom_transformers/fastbert.py pointer only (licence: NONE) · get_code("a37041bf3fed963e") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Pre-trained language models like BERT have proven to be highly performant. However, they are often computationally expensive in many practical scenarios, for such heavy models can hardly be readily implemented with limited resources. To improve their efficiency with an assured model performance, we propose a novel speed-tunable FastBERT with adaptive inference time. The speed at inference can be flexibly adjusted under varying demands, while redundant calculation of samples is avoided. Moreover, this model adopts a unique selfdistillation mechanism at fine-tuning, further enabling a greater computational efficacy with minimal loss in performance. Our model achieves promising results in twelve English and Chinese datasets. It is able to speed up by a wide range from 1 to 12 times than BERT if given different speedup thresholds to make a speed-performance tradeoff.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2004.02178")
get_code_for_paper("2004.02178")
have("2004.02178")
Connect an agent — have() is free.