Blogs / What Knowledge Distillation Is and Why It Is Standard

What Knowledge Distillation Is and Why It Is Standard

What a Hugging Face post says knowledge distillation is and why compressing large models into smaller ones has become standard practice.

  • Learning
  • 1 min read

For: Learners who know what a language model is.

What distillation is

Knowledge distillation, training a smaller student model to match the performance of a larger teacher, is a well-known technique in Machine Learning.[1]

What the post says it costs

Keeping both the teacher and student loaded, and producing a probability distribution over the entire vocabulary for every token, requires enormous amounts of VRAM, typically feasible only with hundreds of GPUs and careful tensor-parallelism strategies.[1]

A larger teachermodelthe performance to matchA smaller studentmodeltrained to match theteacherKeeping both loadedrequires enormous amountsof VRAMtrainsat the cost of
What does distillation do?

Sources

  1. Making Knowledge Distillation Cheap Enough to Run at Scale (huggingface.co · checked )

More articles