Hugging Face ships TRL v1.15: fused LM head cuts VRAM up to 82%, extends sequences 6.9x
Hugging Face released TRL v1.15 on October 9, with team members LysandreJik, Quentin Gallouédec, Victor Mustar and Lewis Tunstall all promoting it as the library's biggest optimization ever. The headline change is a fused LM head Triton kernel enabled by default: instead of materializing the huge [batch, seq, vocab] logits tensor, it projects hidden states in chunks, dramatically cutting VRAM usage.
Confirmed
- TRL v1.15 ships with the fused LM head on by default, covering SFT, DPO, KTO, GRPO, RLOO and distillation
- Trainable sequence length extends up to 6.9x on the same GPU, with peak VRAM reduced by 52–82%
- Lewis Tunstall reports SFT/RL can now train sequences of over 100k tokens on a single GPU; Quentin Gallouédec's DPO example went from 10k to 59k tokens
Why it matters
The VRAM bottleneck for long-sequence training comes mainly from the [batch, seq, vocab] logits tensor. This optimization lets single-GPU users run long-context post-training, sharply lowering the hardware barrier for long-context SFT and RL.
2026-10-09 ~ 2026-10-11 · 6 related posts
Primary sources
- [source] TRL v1.15 ships fused LM head: 82% less peak VRAM, 7x longer sequences — QGallouedec · 2026-10-09
- Hugging Face TRL 1.15: fused LM head default, up to 6.9× longer sequences, 82% less memory — victormustar · 2026-10-10
- [source] TRL v1.15: new Triton kernel scales SFT/RL past 100k tokens on one GPU — _lewtun · 2026-10-11
3 near-duplicate retellings: LysandreJik · victormustar · _lewtun