How Online vs Offline Distillation works
mainDistillKit supports two primary workflows for knowledge distillation:
Online Distillation: The teacher model runs in real-time alongside the student during training.
- Best for: Scenarios where you have sufficient VRAM to hold both models and want dense distributions.
- Pros: No storage overhead.
Offline Distillation: Teacher outputs are pre-captured, compressed, and stored in a dataset.
- Best for: VRAM-limited environments, large-scale training, or when reusing the same teacher for many students.
- Pros: Highly efficient via advanced logit compression.
Decision Rule: If you can fit both the teacher and student (with dense distributions) into VRAM, use online. Otherwise, use offline with the compression system.