Google Enhances its Open-Source MaxText Training Framework for Long-Context Training
To address the computational, memory, and communication bottlenecks of long-context training, Google has integrated four context-parallelism strategies into MaxText, its open-source JAX training framework, enabling LLM training with context lengths up to 14 million tokens on Cloud TPUs. By Sergio De Simone
Google has bolstered its open-source MaxText training framework to handle long-context training for large language models (LLMs). To tackle the computational, memory, and communication constraints of training models with context lengths surpassing 14 million tokens, Google has incorporated four context-parallelism strategies into MaxText.
These strategies, namely All-Gather, All-to-All (Ulysses), P2P (Ring Attention), and A2A + P2P (USP), enable LLM training across multiple processing units, thereby overcoming the two primary bottlenecks: quadratic attention growth and linear activations and key-value cache growth. Llama 3.1 8b models, when trained on Google's Cloud TPU infrastructure, exhibited promising results with these new strategies, achieving 70% Model FLOPs Utilization (MFU) for sequences up to 4 million tokens on TPU 5p, up to 14 million tokens on TPU 5p and 7, and maintaining around 50% MFU for sequences under 6 million tokens.
Future plans involve expanding support for more architectures, enhancing performance through Tokamax kernel improvements and P2P backward pass optimization, and creating model-specific training recipes for different TPU architectures.
Rewritten by urgent.news; may contain errors — check the original.
Source: infoq.com