Distillation
Transfer of knowledge from a large model to a smaller one. The smaller model learns to replicate the responses of the larger one but works faster and uses less memory.
Why is this needed
A flagship model with 671B parameters is impossible to run on a PC. Distillation solves this problem: the large model (the 'teacher') generates responses, and the smaller one (the 'student', 7B–32B) learns to replicate them.
How it works
flowchart LR
A[Large model] --> B[Dataset of responses]
B --> C[Small model]
C --> D[Fast model]
Examples
- DeepSeek-R1-Distill-Qwen-7B — distillation of the flagship R1;
- distilled versions of Llama and Qwen of different sizes.
Distillation vs Quantization
| Distillation | Quantization | |
|---|---|---|
| What it does | Transfers knowledge to a smaller model | Compresses the weights of the same model |
| Architecture | Changes | Same |
| Quality | Grows for the size | Slightly drops |