TRL v1.13 ships long-context training: 1M+ token sequences on a single 8-GPU H100 node

SergioPaniego · x · 2026-09-13

Hugging Face's TRL v1.13 is out with support for training on sequences beyond 1M tokens, plus a full guide. The motivation: agent sessions accumulate hundreds of thousands of tokens, so models need training on equally long sequences — which don't fit even on 8 GPUs without help. The example trains exactly one million-token sequence per step on a single 8x H100 node, using gradient checkpointing offload from transformers main.

Related event: Hugging Face TRL v1.13 Enables Training on 1M-Token Sequences(2 posts)→

Original post →

More from Infra

Infra channel →