Distillation and small models
For engineers
Teaching small, cheap models from large ones with logit or output distillation and reasoning traces, measuring the result and respecting provider terms
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
What does a student model in distillation learn from the teacher?
Check yourself · 2 of 5
You can only call a hosted model through an API that returns text. Which distillation method is available?
Check yourself · 3 of 5
What does a small model distilled on reasoning traces learn to do?
Check yourself · 4 of 5
Why include the untuned small model in a student-versus-teacher comparison?
Check yourself · 5 of 5
What do the terms of major hosted AI providers, such as OpenAI and Anthropic, generally say about using their outputs to train other models?
Topics
- Teacher and student models4 min read · A large model's outputs or probabilities train a smaller model that keeps much of the skill at a fraction of the cost per request
- Logit versus output distillation5 min read · Matching the teacher's token probabilities with a KL loss when logits are available, versus fine-tuning on teacher-written outputs from an API
- Distilling reasoning traces into small models5 min read · Training small models on a reasoning model's step-by-step traces, as with the DeepSeek-R1 distilled models, and the limits of copied reasoning
- Measuring student against teacher4 min read · Comparing the student with the teacher and an untuned small model on task evals, latency and cost per request
- Distillation terms, licences and fit5 min read · When distillation pays off for high-volume, narrow or on-device tasks, and the provider terms that forbid training competing models on outputs
Start here
- Distilling the Knowledge in a Neural Network (opens in a new tab)PaperFree
The original soft-target and temperature recipe that every later distillation method builds on.
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning (opens in a new tab)PaperFree
Reports distilling a large reasoning model's outputs into smaller Qwen and Llama models, and compares that with running RL on the small model.
- Hugging Face TRL: Generalized Knowledge Distillation Trainer (opens in a new tab)DocsFree
A working trainer for logit distillation with the loss and sampling options explained.
Helps to know first
110 questions · last verified 2026-12