5 min read
Google adds context parallelism to MaxText and trains LLMs with up to 14 million tokens on TPU

- Reading
- 5 min
- Tables
- 1
Google integrated four context parallelism strategies into MaxText, its open-source JAX framework, and reported utilization of up to 70% of TPU compute power even with sequences of millions of tokens.
On November 28, 2026, Google published an update to MaxText, its open-source language model training framework written in JAX, aimed specifically at extremely long contexts. The new feature is a set of four context parallelism strategies that, according to the company, allow training models with sequences of up to 14 million tokens on Google Cloud TPUs. The announcement was reported by InfoQ.
The starting point is a problem that any team that has tried to extend a model's context window knows well: training on long sequences is not just about serving longer inference, it is a different systems problem. Google engineers describe the recent escalation like this:
In three years, context windows have grown from 128K-200K tokens to 1M-2M, and models trained toward 10M tokens are arriving. Training at those lengths, not just serving them, is where the system limits show up.
Google engineers, in the MaxText announcement
Two bottlenecks, one memory problem
Training with very long context runs into two simultaneous growths. The cost of the attention mechanism grows quadratically with sequence length, and the volume of activations and key-value (KV) caches grows linearly, but at a scale large enough to overflow the high-bandwidth memory (HBM) of any single chip.
Google's answer is context parallelism: instead of materializing the entire sequence on each chip, the framework distributes the sequence across multiple chips and streams keys and values between them as needed. It is a different approach from more traditional data or pipeline parallelism, designed specifically for the point where the KV cache, not the computation itself, becomes the limiting factor.
Four strategies, different uses
MaxText now implements four variants of context parallelism, each with a distinct profile of memory usage, ability to overlap communication with computation, and scalability beyond the model's number of key-value heads.
| Strategy | How it works | When to use |
|---|---|---|
| All-Gather | Gathers the entire KV on each chip | Standard baseline when KV still fits in memory |
| All-to-All (Ulysses) | Redistributes by attention head | Communication overlap, but limited to the number of KV heads |
| P2P (Ring Attention) | Streams KV between chips in a ring | Main strategy for very long context |
| A2A + P2P (USP) | Combines the two previous approaches | Scales beyond the KV head limit |
In practice, only two of these four carry the bulk of the work. As Google's engineers summarize it: P2P (Ring Attention) is the workhorse for very long context, while All-Gather remains the standard baseline for cases where the KV still fits in available memory. The other two come in when these two are not enough.
The numbers on TPU 5p and TPU 7
Google tested the new strategies by training Llama 3.1 8B on Cloud TPU infrastructure, and the reported results give a concrete idea of what this context parallelism buys in terms of efficiency:
- Model compute utilization (MFU) of 70% for sequences of up to 4 million tokens on TPU 5p;
- Support for contexts of up to 14 million tokens on both TPU 5p and TPU 7;
- MFU around 50% for sequences below 6 million tokens;
- With the P2P strategy specifically, 48.7% MFU on TPU 7, versus 37.1% on TPU 5p.
These numbers matter because MFU is the metric that shows how much of the chip's theoretical compute power is actually being used, rather than sitting idle waiting for data to arrive over the network. An MFU of 70% at 4 million tokens is a high number for this regime; dropping to the 37%-50% range at even longer sequences shows that the cost of coordinating chips grows along with context, even with the new optimizations.
What is not yet solved
Google itself lists two open fronts. The first is support for more attention architectures, including models that combine sliding-window layers with global attention, as well as linear attention mechanisms such as Gated Delta Net (GDN) and Kimi Delta Attention (KDA), which are not currently covered by MaxText's context parallelism.
The second is performance optimization: improving the Tokamax kernels, enhancing the backward pass of the P2P strategy, and developing what the company calls "per-model and per-context-size recipes" specific to each TPU architecture. In other words, there is still no single configuration that works well for every combination of model and sequence length.
Nathan Beach, a director at Google, summed up the central point of the announcement directly:
If you are training models on Google TPUs with multi-million-token context, attention memory -- not compute -- is usually the first wall you hit.
Nathan Beach, director at Google
What changes for teams training models in Brazil
For Brazilian teams that use Cloud TPU via Google Cloud to pretrain or fine-tune their own models, the update lowers the barrier to entry for a problem that, until now, required building context parallelism infrastructure from scratch. MaxText is already used by labs and startups outside Google's strictly internal ecosystem precisely because it delivers, for free and as open source, solutions that large companies spent months of engineering to solve internally.
This matters for concrete use cases that depend on a large context window: indexing an entire code repository for an engineering agent, training a model capable of processing hours of video, or fine-tuning a domain-specific model (legal, medical, financial) on very long documents without truncating or resorting to aggressive chunking. These are exactly the scenarios cited by Google's engineers as motivation for the work.
It's worth noting that MaxText is a JAX framework, not a PyTorch one, which means stack adaptation for teams that already have pipelines consolidated on another base. And the MFU numbers, even when good, show that training on millions of tokens still comes at a high cost in hardware efficiency: a team looking to reproduce these results needs to budget for that loss of utilization, not just the TPU's hourly price. MaxText 0.2.4 is available via PyPI, DockerHub, and GitHub.
Translated from the Brazilian Portuguese original · Read the original
Sber's GigaChat 4 arrives with 1 million tokens and MIT license, but benchmarks don't convince
GigaChat 4 708B, launched by Sber on November 26, 2026 under an MIT license, promises 1 million tokens of context and parity with DeepSeek and GLM. An independent analysis published on Habr tells a different story when the numbers are compared to the Artificial Analysis Intelligence Index.






