Skip to content
IJK

Online Distillation: What Stays Loaded and Why It Needs VRAM

By IJK ·

What a Hugging Face post says the standard online distillation setup keeps loaded and what the teacher does at every training step.

The standard setup

The standard setup, online distillation using the Kullback-Leibler divergence loss (KL loss), keeps both the teacher and the student loaded at the same time. [1]

What happens at every step

At every training step, the teacher runs a full forward pass to produce its output distribution, and the student is trained to match it. [2]

Teacher and student loaded togetheronline distillation with KL lossTeacher forward pass at every stepproduces its output distributionStudent trained to match itagainst that distribution
What happens in each training step?

Sources

  1. The Hugging Face source says: The standard setup, online distillation using the Kullback-Leibler divergence loss (KL loss), keeps both the teacher and the student loaded at the same time. Making Knowledge Distillation Cheap Enough to Run at Scale
  2. The Hugging Face source says: At every training step, the teacher runs a full forward pass to produce its output distribution, and the student is trained to match it. Making Knowledge Distillation Cheap Enough to Run at Scale

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • knowledge distillation
  • training
  • vram
  • hugging face