airaria/TextBrewer
A PyTorch-based knowledge distillation toolkit for natural language processing
Supports multiple distillation techniques including attention-matrix matching, hidden state MSE, and neuron selectivity transfer, with flexible intermediate layer matching and multi-teacher configurations. Built on a modular framework that enables custom loss functions and distillers without requiring model architecture modifications, compatible with Transformer-based architectures across diverse NLP tasks. Integrates with the Hugging Face Transformers library and supports distributed training via DistributedDataParallel and mixed-precision training with Apex.
1,697 stars. No commits in the last 6 months.
Stars
1,697
Forks
246
Language
Python
License
Apache-2.0
Category
Last pushed
May 08, 2023
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/airaria/TextBrewer"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
sunyilgdx/NSP-BERT
The code for our paper "NSP-BERT: A Prompt-based Zero-Shot Learner Through an Original...
princeton-nlp/CoFiPruning
[ACL 2022] Structured Pruning Learns Compact and Accurate Models https://arxiv.org/abs/2204.00408
kssteven418/LTP
[KDD'22] Learned Token Pruning for Transformers
georgian-io/Transformers-Domain-Adaptation
:no_entry: [DEPRECATED] Adapt Transformer-based language models to new text domains
qiangsiwei/bert_distill
BERT distillation(基于BERT的蒸馏实验 )