Skip to content

Distillation

Overview

Distillation — the transfer of knowledge from a large model to a smaller one. The smaller model learns to replicate the larger model's responses but runs much faster and uses less memory.

Why is it 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 model (the 'student', 7B–32B) learns to replicate them. The student receives part of the teacher's knowledge at a tiny size.

How it Works

  1. Take a large trained model.
  2. It answers millions of questions — its responses become the training dataset.
  3. The small model is trained on these responses.
  4. Result: a 7B model that reasons noticeably better than a typical 7B model.

Examples

  • DeepSeek-R1-Distill-Qwen-7B — a distilled version of the flagship R1, running on a gaming PC.
  • Distilled versions of Llama and Qwen of different sizes.

Distillation vs Quantization

Distillation Quantization
What it does Transfers knowledge to a smaller model Compresses weights of the same model
Changes architecture Yes, the model is different No, the same model
Quality Increases for its size Slightly decreases

See Also