Road to 5 Million Tokens: Breaking Barriers in Long Context Training — Max Ryabinin, Together AI
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Together AI's VP of R&D presents research on scaling transformer training to 5 million token context lengths. The talk walks through a stack of memory optimization techniques applied to a Llama 3B model on an 8xH100 node: fully sharded data parallelism, DeepSpeed Ulysses context parallelism, activation checkpointing, CPU offloading (pioneered by Unsloth), and chunked sequence-length tiling (Arctic sequence length training). The primary novel contribution is 'Untitled Ulysses' (U-Pipe), which further reduces activation memory by chunking attention head computation within a single GPU iteration, reusing buffers across chunks. Results show competitive or superior throughput vs. other memory-optimized implementations at both 8B and 32B parameter scales while reaching 5M token context lengths.