#201 · Primary category: Deep Learning Frameworks
TextBrewer
A PyTorch-based knowledge distillation toolkit for natural language processing
Project last updated:05/08/23
GitHub Stars
1.7K
Forks
243
Contributors
7
License
Apache-2.0
Why we included this project
If you need to deploy a BERT-sized model on hardware with limited memory, TextBrewer lets you try knowledge distillation without writing every method yourself. It bundles soft-label training, attention-map losses, hidden-state matching, and multi-teacher setups behind a PyTorch API, so you can compare approaches by changing configuration rather than reimplementing them. The toolkit handles common supervised NLP tasks like text classification, reading comprehension, and sequence labeling, and the example notebooks include a BERT-EMD based custom distiller to help you see how each technique behaves on real checkpoints. The documentation and the ACL paper give you enough background to go deeper when the defaults are not enough.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
tensorflow
An Open Source Machine Learning Framework for Everyone
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
keras
Deep Learning for humans
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
ray
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.