TRL v1.15 defaults to fused LM head, extending training sequences up to 6.9x
LysandreJik · x · 2026-10-09
Hugging Face shipped TRL v1.15, a memory-efficiency-focused release: SFT, DPO, KTO, GRPO, RLOO and distillation now default to a fused LM head — instead of materializing the huge [batch, seq, vocab] logits tensor, a Triton kernel computes token-level quantities directly.
Benchmarks (Gemma 3 1B, 262k vocab, same GPU):
- DPO: 10k → 59k max sequence length
- KTO: 9k → 63k
- GRPO: 28k → 114k
- RLOO: 23k → 100k
- SFT: 20k → 107k
Up to 6.9x longer sequences, peak memory at 8k context cut by 52-82%, and training is 11% faster. No config needed — it's the default. Other additions: selective activation checkpointing for SFT, assistant-only loss for vision datasets, better conversation logging.
More from Infra
- Data center water panic traced to botched numbers: key figure off by 1,000x — ATTlKA · 2026-12-02
- NVIDIA and SpaceX unveil Kyber Galaxy, a space-based AI supercomputer with 72 Rubin GPUs — elonmusk · 2026-12-02
- Export controls may widen US-China AI gap by only 2-3 months, argues analyst — kevinnbass · 2026-12-02
- Amazon Ergo enters most attractive quadrant at $1.64 per Intelligence Index task — ArtificialAnlys · 2026-12-02
- Amazon Ergo takes open-weights crown: 38 on AA Index, 1.1T params (55B active) — ArtificialAnlys · 2026-12-02
- Jensen Huang warns the US risks repeating its "5G mistake" and losing the AI race to China — TinfoilTricorn · 2026-12-02