TRL v1.15's fused Triton kernel enables up to 6.9× longer training sequences on the same GPU
_lewtun · x · 2026-10-11
Hugging Face's TRL v1.15.0 ships a fused LM head Triton kernel that never materializes the [batch, seq, vocab] logits tensor, instead tiling hidden states through the LM head to directly produce per-token log-probs and entropy. It's on by default.
Max trainable sequence lengths on the same GPU (bf16, 79GiB, batch size 1):
- DPO: 10,240 → 59,392 (5.8×)
- KTO: 9,216 → 63,488 (6.9×)
- GRPO scoring: 28,672 → 114,688 (4.0×)
- SFT (nll): 20,480 → 107,520 (5.25×)
At 8,192 tokens, peak memory drops 52–82% and steps get 2.3–10.9% faster. Supported across SFT, DPO, KTO, GRPO, RLOO and Distillation trainers.
More from Research
- Hugging Face releases INTIMA: a 368-prompt benchmark for AI companionship risk — evijit · 2026-12-02
- SLA aligns robot policies with a frozen 3D teacher, hitting 78.7% in real-world grasping — jiqizhixin · 2026-12-02
- NVIDIA's BioNeMo RFD4-Proteina shows potential in protein design for HIV prevention and cancer treatment — nvidia · 2026-12-02
- Preslav Nakov talks LLM factuality beyond hallucinations at the Alan Turing Institute — preslav_nakov · 2026-12-02
- Study links LLM scientific discovery ability to monofact rate in training data — MFarajtabar · 2026-12-02
- Readers prefer AI fine-tuned on copyrighted books over award-winning human writers — TuhinChakr · 2026-12-02