cd /news/artificial-intelligence/google-enhances-its-open-source-maxt… · home › topics › artificial-intelligence › article
[ARTICLE · art-177802] src=infoq.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Google Enhances its Open-Source MaxText Training Framework for Long-Context Training

Google integrated four context-parallelism strategies — All-Gather, All-to-All (Ulysses), P2P (Ring Attention), and A2A + P2P (USP) — 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 reported 70% Model FLOPs Utilization (MFU) for sequence lengths up to 4 million tokens on TPU 5p, roughly 50% MFU below 6 million tokens, and P2P reaching 48.7% MFU on TPU 7 versus 37.1% on TPU 5p. Google director Nathan Beach said attention memory, not compute, is "usually the first wall you hit" when training multi-million-token models on TPUs; MaxText 0.2.4 is available via PyPI, DockerHub and GitHub.

key takeaway

MaxText 0.2.4 adds four context-parallelism strategies — All-Gather, All-to-All (Ulysses), P2P (Ring Attention) and A2A + P2P (USP) — with P2P the workhorse for very long contexts and All-Gather the baseline when KV fits, reaching 70% MFU up to 4 million tokens on TPU 5p.

by read2 min views8 publishedNov 28, 2026
Google Enhances its Open-Source MaxText Training Framework for Long-Context Training
Image: source

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.

Google engineers highlight the growing trend towards larger context windows, noting that they enable applications such as processing entire code repositories or ingesting hours of video:

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.

Training large language models at such sequence lengths introduces two major bottlenecks: the quadratic growth of attention and the linear growth of activations and key-value (KV) caches. To address these challenges, Google uses context parallelism, which distributes sequences across multiple chips and streams keys and values between them, rather than materializing the entire sequence on every chip.

Google has implemented four context-parallelism strategies in MaxText are: All-Gather, All-to-All (Ulysses), P2P (Ring Attention), and A2A + P2P (USP). They differ in their high-bandwidth memory (HBM) requirements, their ability to overlap communication with computation, and their scalability beyond the number of KV heads.

P2P (Ring Attention) is the primary workhorse for very long-context training, whereas All-Gather is the standard baseline for most other cases where the KV can fit. These are the primary CP strategies to use in practice.

Using these new strategies, Google reported significant results with Llama 3.1 8b and its Cloud TPU infrastructure. These include achieving 70% Model FLOPs Utilization (MFU) for sequence lengths up to 4 million tokens on TPU 5p, supporting context lengths of up to 14 million tokens on both TPU 5p and TPU 7, and maintaining approximately 50% MFU for sequence lengths below 6 million tokens. Additionally, P2P achieved 48.7% MFU on TPU 7, compared with 37.1% on TPU 5p. Google identified two areas of future development. The first is adding support for more architectures, including those combining sliding-window and global attention layers, as well as linear attention mechanisms such as Gated Delta Net (GDN) and Kimi Delta Attention (KDA). The second is improving performance through further optimization of Tokamax kernels, enhancements to the P2P backward pass, and the development of "recipes by model and context length" for distinct TPU architectures.

Commenting on the announcement, Google director [Nathan Beach observed that](https://lnkd.in/p/e-b5yDGY):

If you are training models on Google TPUs with multi-million-token context, attention memory -- not compute -- is usually the first wall you hit.

MaxText 0.2.4 is available through PyPi, DockerHub, and GitHub.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @google 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/google-enhances-its-…] indexed:0 read:2min 2026-11-28 · —