Toolkits for distilling a large language model into a smaller model
Online or offline method, teacher signal, training stack and practical fit
Updated
Why compare these
Distillation is not one push-button operation: toolkits differ on whether teacher outputs are collected first or generated during training, whether they target LLMs specifically, and whether distillation sits inside a broader pruning and quantization pipeline.
-
1
D
DistillKit
Arcee's toolkit supports teacher-logit collection, compression and student training workflows.
Online and offline LLM distillation
-
2
T
TRL DistillationTrainer
Hugging Face's trainer matches a student's generated completions to a teacher's token distribution.
On-policy generalized knowledge distillation
-
3
N
NeMo AutoModel KD
NVIDIA's end-to-end recipe distils a teacher LLM into a smaller student through NeMo AutoModel.
Teacher-assisted student fine-tuning recipe
-
4
T
TensorRT Model Optimizer KD
ModelOpt provides distillation alongside quantization, pruning and speculative-decoding optimization paths.
NVIDIA model optimization and distillation
-
5
D
DeepSpeed Compression
DeepSpeed's compression module combines distillation with pruning and quantization for PyTorch models.
Compression pipeline with knowledge distillation
-
6
I
Intel Neural Compressor Distillation
Intel's toolkit provides distillation, quantization, pruning and mixed-precision optimization across supported frameworks.
Distillation in a broader optimization toolkit
Compare side by side
| DistillKit | TRL DistillationTrainer | NeMo AutoModel KD | TensorRT Model Optimizer KD | DeepSpeed Compression | Intel Neural Compressor Distillation | |
|---|---|---|---|---|---|---|
| Method | ||||||
| Distillation mode | Online and offline | Online, on-policy GKD | Teacher-assisted student fine-tuning | Online knowledge distillation | Knowledge distillation in compression training | Post-training or training-time optimization recipes |
| Teacher signal | Compressed logits | Token distributions with chunked JS loss | Teacher and student logits | Configurable distillation loss | Teacher outputs / configured loss | Configurable criterion |
| Scope | ||||||
| LLM-specific | Yes | Yes | Yes | LLMs plus other deep models | General PyTorch; scalable to language models | General models; LLM optimization included |
| Workflow | ||||||
| Training stack | Transformers + DeepSpeed | Transformers + TRL; optional vLLM | NeMo AutoModel | PyTorch / NVIDIA stack | DeepSpeed | PyTorch and supported runtimes |
| Best fit | Open LLM logit distillation | Research and custom trainer workflows | NVIDIA end-to-end recipe | Distillation plus deployment optimization | Combined pruning, quantization and KD | Intel-oriented optimization pipeline |
References
- Official language-model distillation toolkit documentation, the toolkit maintainers (facts). Checked 2026-11-25 07:22 UTC.
- DistillKit repository, Arcee AI, checked 2026-11-25.
- TRL Distillation Trainer, Hugging Face, checked 2026-11-25.
- Knowledge Distillation with NeMo AutoModel, NVIDIA, checked 2026-11-25.
- TensorRT Model Optimizer repository, NVIDIA, checked 2026-11-25.
- DeepSpeed Compression, Microsoft, checked 2026-11-25.
- Intel Neural Compressor repository, Intel, checked 2026-11-25.
