Self-distillation with an EMA teacher under ZeRO-3 and LoRA
An open-source repo runs EMA-teacher self-distillation under ZeRO-3 and TRL by sharing a frozen backbone and keeping two light LoRA adapters, one for the student and one for the EMA teacher. It includes EMA checkpoint resume and DeepSpeed configs that avoid…
Why it matters
Handy for teams trying self-distillation on large models with tight GPU memory.
What happened
1 min readAn open-source repo runs EMA-teacher self-distillation under ZeRO-3 and TRL by sharing a frozen backbone and keeping two light LoRA adapters, one for the student and one for the EMA teacher. It includes EMA checkpoint resume and DeepSpeed configs that avoid memory spikes, tested on Qwen3.5.
Our analysis
Sharing the backbone with two adapters is a known trick; the value is in making it work cleanly with ZeRO-3 and TRL. The post gives no quality or speed numbers. Niche but practical.