Hugging Face-backed team proposes memory-efficient knowledge distillation for large language models
Offline top-K logits caching and a fused chunked KL loss reduce VRAM use from ~250GB to ~128GB on an H200, enabling long-context distillation on a single GPU.
1 source · cross-referenced
- Two systems changes cut the memory footprint of LLM knowledge distillation: offline caching of teacher top-100 logits and a fused chunked KL loss that avoids materializing the full vocabulary × sequence matrix.
- On a single H200 GPU, peak VRAM drops from ~250GB (dense KL) to ~128GB (fused chunked KL) while preserving training loss fidelity.
- The authors open-source the fused chunked KL loss implementation and report near-identical loss curves across online and offline methods using Llama 3.1 8B as teacher and a 3.2B student at 8K context.
- The technique enables long-context distillation on a single GPU, making large-scale experimentation more practical.
A Hugging Face–affiliated team proposes two systems-level changes to make knowledge distillation of large language models far more memory-efficient. The first change is offline distillation: compute the teacher’s output once, cache only the top-100 most likely tokens per position, and train the student against that cache, eliminating the need to keep the teacher in memory during training. The second change is a fused chunked KL loss that processes the sequence in chunks, projects hidden states to logits for one chunk at a time, folds the result into the running loss, and discards the chunk before moving to the next. The backward pass recomputes each chunk on the fly, so peak memory grows only linearly with sequence length instead of spiking with the full vocabulary × sequence size.
The authors quantify the gains on a single H200 GPU using Llama 3.1 8B Instruct as the teacher and a 3.2B Llama model as the student at an 8K token context. Compared with online distillation, the fused chunked KL loss reduces peak VRAM from roughly 250GB to about 128GB while preserving training loss fidelity. Across four setups—online distillation and three offline variants (dense KL, forward-chunked KL, fused chunked KL)—the loss curves overlap almost exactly, indicating that offline distillation with top-100 cached logits is lossless relative to online distillation.
The team reports iteration times and throughput for each method. Offline, fused chunked KL reaches about 304 TFLOP/s with 20.2 seconds per iteration, compared to 237 TFLOP/s and 25.9 seconds for online distillation. Peak memory for the fused approach is 58.3 GB versus 102.8 GB for online distillation in this configuration.
To support adoption, the authors have open-sourced the fused chunked KL loss implementation on GitHub under CompactifAI/Full-Chunked-KL-Loss.
- Aug 11, 2026 · Hugging Face
Meta releases Muse Glimmer 30B, a local multimodal model for agentic use cases
Trust79 - Aug 10, 2026 · Google AI — Blog
Google adds AI summaries, visual reporting, and benchmarking to Google Ads and Google Analytics
Trust78 - Aug 10, 2026 · Hugging Face
NVIDIA releases Magpie TTS Multilingual, an open-weights text-to-speech model for 12 languages with low-latency deployment
Trust78