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]
Sources
- 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
- 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