Announcing Long-Context Training on TPUs with MaxText Context Parallelism
Google•Announcement••by Michael Tran, Nuojin Cheng and Deepak Patil•Google Developers Blog
Google Cloud's MaxText framework now supports long-context training up to 14 million tokens on Cloud TPUs by implementing four context-parallel strategies: All-gather, A2A, P2P, and USP. Powered by the Tokamax Splash Attention kernel, these strategies effectively manage attention compute and memory bottlenecks without materializing full key-value sequences in high-bandwidth memory. Developers can adopt these capabilities in MaxText v0.2.4 to achieve high Model FLOPs Utilization (MFU) across…
MaxText now supports long-context training with four context-parallel strategies on Cloud TPU, using the Tokamax Splash Attention kernel to handle sequences of up to 14 million tokens.
Who it is for
ML engineers and architects training long-context models on TPU 5p or TPU 7 who need to fit multi-million-token sequences in HBM.
AI:A Google guide gives hardware-based design rules for LLMs and Mixture-of-Experts models on TPUs, covering 256-aligned dimensions, LatentMoE compression, and mapping parallel axes to physical links.
AI:TorchTitan now runs on Cloud TPUs through TorchTPU, with TPU-tuned recipes, kernels and a step-by-step optimization playbook for reaching higher MFU.
AI:Google's performance team reports serving Qwen 3.5-397B on Ironwood TPUs with custom Pallas kernels and DP+EP sharding, claiming about 3.1x decode and 4.7x prefill throughput gains from April to June 2026.