Loading…
Topic
MaxText
5 posts about MaxText. Every summary links to the original.
- 5 posts
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
Benchmarking MoE Training on Ironwood, Part 1: Scaling to 8K Chips
The authors benchmarked DeepSeek-V3 671B pre-training on Ironwood (TPU7x) to evaluate how the seventh-generation TPU handles large Mixture-of-Experts workloads. Using a MaxText recipe with FSDP and expert parallelism, they trained the model in 1.70 minutes on 8,192 chips, with all communication inside one ICI domain. At 2,048 chips, the final result reached an effective model FLOPs utilization of 56%, and scaling from 512 to 2,048 chips was nearly 100% efficient. In one week of optimization, the FSDP + EP track raised throughput per chip by 1.56–1.82× at all three scales while keeping the model, dataset, global batch size, and target loss unchanged. The EP reduce-scatter remained exposed at 8,192 chips, which the batch-split schedule described in Part 2 hides nearly entirely.
Distributed LLM Training Across Metros: Streaming DiLoCo in MaxText
Training large language models across geographically distributed datacenters is difficult because standard data-parallel training stalls on low-bandwidth wide-area networks. DiLoCo, developed by Google DeepMind and Google Research, addresses this by partitioning training into independent groups, or learners, that perform many local optimization steps before synchronizing globally. Streaming DiLoCo further improves efficiency by dividing the model parameters into multiple fragments and synchronizing one fragment per training step, spreading communication evenly instead of causing periodic spikes. In MaxText, Google’s JAX-based LLM training framework, host-CPU syncer workers perform distributed all-reduce of fragment deltas in the background while TPUs continue local training. Evaluations on models like Qwen3-32B show that Streaming DiLoCo achieves comparable or slightly better convergence than synchronous data parallel while requiring only a fraction of the network bandwidth, enabling training across congested inter-datacenter links.
Announcing Long-Context Training on TPUs with MaxText Context Parallelism
MaxText v0.2.4, Google Cloud’s open-source JAX training framework, now supports long-context training on Cloud TPUs through four context-parallel strategies: All-gather, A2A (DeepSpeed Ulysses), P2P (Ring Attention), and the A2A + P2P hybrid (Unified Sequence Parallelism, or USP). These strategies split a long sequence across chips to avoid exhausting high-bandwidth memory, and all use the Tokamax Splash Attention kernel. In benchmarks with Llama 3.1 8B on TPU 5p, P2P achieved 70% Model FLOPs Utilization (MFU) for sequences up to 4 million tokens. Context can be extended to 14 million tokens on both TPU 5p and TPU 7, with TPU 7 maintaining 50% MFU below 6 million tokens. The choice of strategy depends on whether gathered KV fits in HBM and on the number of KV heads, with offloading recommended before recomputation when memory is low.
Reproducing OLMo 3 7B Pre-training in MaxText: case study of large scale training on TPUs
The post describes the reproduction of AI2’s OLMo 3 7B pre-training using MaxText on Google Cloud TPUs, covering both stages, matching the reference loss curve and held-out metrics. PyTorch weights were converted to JAX with logit parity, KL divergence 1.5e-3 and 98.75% top-1 agreement, and held-out evaluations caught a data loader bug that made incorrect gains appear. The run demonstrated reliability via exact checkpoint-resume with zero loss delta, resilience to a 75% capacity loss via resize with 1% throughput preservation, and seamless TPU generation change. Performance optimizations achieved 44.5% MFU on Ironwood, and head reshaping from 32 heads by 128 to 16 by 256 yielded 12.4% faster throughput at identical parameters and FLOPs. The post emphasizes that faithful reproduction requires verification on generalization metrics and provides instructions for readers to reproduce the run with open sourced code.
We terminated a TPU mid-training and it recovered in seconds: Introduction to elastic training with MaxText
Distributed training on multiple TPU machines normally fails as a whole when one worker disappears: collective communication times out, processes exit, and the job restarts from a checkpoint. The article demonstrates elastic training with JAX, MaxText, PathwayS, Orbax, and Cloud TPUs on GKE, using a single CPU-side controller that remains alive while TPU workers execute compiled programs. A Pathways elastic_retry wrapper catches the failure, cleans up partial state, restores the last viable checkpoint, and re-enters the training function without relaunching the workload; the demo returned to training in under two minutes, with no JobSet restarts, after losing 88 steps. It also contrasts pause-and-resume with replica resize, explains direct checkpoint persistence through ENABLE_PATHWAYS_PERSISTENCE=1, and describes planned snapshot-based recovery from host memory.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.