Google has added four context-parallel training methods to MaxText, its open-source JAX framework, enabling experiments with sequences as long as 14 million tokens on Cloud TPUs. The release addresses the memory and communication costs that rise sharply when models train on entire codebases, long videos or similarly large inputs.
Context parallelism divides a sequence across multiple chips and moves attention data between them instead of storing the full sequence on every device. MaxText now supports All-Gather, Ulysses, Ring Attention and a hybrid strategy called USP. Google identifies Ring Attention as the main option for extremely long sequences, while All-Gather remains a simpler baseline when key-value data fits in memory.
In tests with Llama 3.1 8B, Google reported 70% model FLOPs utilization through four million tokens on TPU v5p and support for 14 million tokens on TPU v5p and TPU7. Utilization stayed around 50% below six million tokens; Ring Attention reached 48.7% on TPU7 versus 37.1% on v5p.
Those figures describe training efficiency on specific hardware, not proof that every model benefits from a huge context window. Google plans support for more attention architectures and further kernel and backward-pass optimization. MaxText 0.2.4 is available through PyPI, Docker Hub and GitHub.