Google adds four context-parallelism strategies to MaxText for training up to 14M-token contexts on TPUs
Google has integrated four context-parallelism strategies into MaxText, its open-source JAX training framework, enabling LLM training at context lengths up to 14 million tokens on Cloud TPUs. Using Llama 3.1 8b, Google reports 70% Model FLOPs Utilization (MFU) up to 4 million tokens on TPU 5p. MaxText 0.2.4 is available on PyPI, DockerHub and GitHub.
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. The release is MaxText 0.2.4, available through PyPI, DockerHub and GitHub. InfoQ reported the news on Nov 28, 2026.
The problem: training, not serving
Google engineers note that context windows have grown from 128K-200K tokens to 1M-2M over three years, and that models trained toward 10M tokens are arriving. They write that training at those lengths, not just serving them, is where system limits show up.
Two bottlenecks drive the difficulty: the quadratic growth of attention, and the linear growth of activations and key-value (KV) caches.
Four strategies
Google's approach is context parallelism. It distributes sequences across multiple chips and streams keys and values between them, rather than materializing the entire sequence on every chip.
MaxText now implements four strategies:
- All-Gather
- All-to-All (Ulysses)
- P2P (Ring Attention)
- A2A + P2P (USP)
They differ in high-bandwidth memory (HBM) requirements, their ability to overlap communication with computation, and their scalability beyond the number of KV heads. Google describes P2P (Ring Attention) as the primary workhorse for very long-context training. All-Gather is the standard baseline for most other cases where the KV can fit.
Reported results
Google reported the following results using Llama 3.1 8b on its Cloud TPU infrastructure:
- 70% MFU for sequence lengths up to 4 million tokens on TPU 5p
- Context lengths of up to 14 million tokens on both TPU 5p and TPU 7
- Approximately 50% MFU for sequence lengths below 6 million tokens
- P2P reaching 48.7% MFU on TPU 7, compared with 37.1% on TPU 5p
Roadmap
Google named two areas of future work. The first is support for more architectures, including those that combine sliding-window and global attention layers, and linear attention mechanisms such as Gated Delta Net (GDN) and Kimi Delta Attention (KDA). The second is performance work: further optimization of Tokamax kernels, enhancements to the P2P backward pass, and "recipes by model and context length" for distinct TPU architectures.
Google director Nathan Beach commented on the announcement: "If you are training models on Google TPUs with multi-million-token context, attention memory -- not compute -- is usually the first wall you hit."
What this means
For teams training on Google TPUs with MaxText, long-context training at multi-million-token lengths is now supported in the open-source framework, with a stated choice between strategies: P2P (Ring Attention) for very long sequences, All-Gather as the baseline where the KV fits in memory.
Beach's remark frames the engineering problem as one of attention memory rather than raw compute, which is the constraint the context-parallelism strategies are built to address.
The published numbers come from a single model, Llama 3.1 8b, so they show what the framework achieves for that model on TPU 5p and TPU 7. The roadmap items, including sliding-window, global attention and linear attention architectures such as GDN and KDA, indicate that broader architecture coverage and per-model, per-context-length recipes are still to come.
Related Articles
Google: Judging AI agents on final answers alone misses failures; tool-call logs and real execution runs are needed
Google says grading an AI agent only on its final response misses what the agent actually did. Building its Google Cloud Developer plugin for AI coding agents, it published four evaluation engineering lessons on a blog on October 16, 2026 (US time).
Google Research details how Duplex powers business calls in Gemini Tasks, via Nov. 20 engineering write-up
Google Research published an engineering write-up on Nov. 20 explaining how Duplex went from narrow tasks like restaurant bookings to powering business calls through Tasks in Gemini. The Tasks expansion itself was announced Nov. 17. The write-up covers how the calling system was built, not a new launch.
Google adds managed ingestion and SearchDocuments to Agent Retrieval in Public Preview, returning page- and timestamp-ci
Google has added managed ingestion and SearchDocuments to Agent Retrieval (formerly Vector Search 2.0), now in Public Preview. Point a data store at Cloud Storage files and search PDFs, Office files and videos with one API call that returns cited results. Google claims 18 investor PDFs became searchable in about 9 minutes in its tests.
Google brings Gemini 4 Carbon to Antigravity for AI Pro ($19.99/month) users, resets Gemini quotas
Google is making Gemini 4 Carbon available to AI Pro subscribers ($19.99 per month) in Antigravity, after it previously required AI Ultra ($99.99/month). Google is also resetting Gemini quotas for all Antigravity users and will remove Gemini 4 Argon and 3.8 Flash on November 30.
Comments
Loading...