GoogleRan Ran, Matt Davidow, Nuojin Cheng, Shuning Jin, Suraj Kolla, Zhengxian He, Daniel Mandragona, Shuwen FangBenchmark
Benchmarking MoE Training on Ironwood, Part 1: Scaling to 8K Chips
Summary
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.
Context
Large Mixture-of-Experts (MoE) models stress compute, memory, and interconnect. To evaluate how Ironwood (TPU7x) handles this workload, the authors benchmarked DeepSeek-V3 671B pre-training, an open-weight model with multi-head latent attention, 256 fine-grained routed experts, and multi-token prediction. They held the model, dataset, global batch size, and target validation loss fixed, measuring time to train at 2,048, 4,096, and 8,192 chips.
Approach / What changed
The FSDP + EP track built a MaxText recipe that uses fully sharded data parallelism (FSDP) across the ICI domain and modest expert parallelism (EP) of 8–16. The device mesh uses two axes: FSDP for weight sharding and EP to pool tokens so expert matmuls stay compute-bound. Optimizations include FP8 quantization, Pallas kernels for grouped matmuls and token sorting, attention optimizations, MoE token chunking with dropless fallback, rematerialization and tile size tuning, and pre-run warm-up. The batch-split schedule that hides nearly all collectives is deferred to Part 2.
Takeaways
At a fixed PBS, end-to-end time is a straight line in gradient accumulation (R² > 0.999), with most of it being micro-step work plus a fixed 15–30 seconds per run of once-per-step work.
In a 512-chip FP8 ablation where the step was communication-bound, about two-thirds of FP8’s gain came from quantized collectives rather than faster matmuls.
A capped buffer with a fallback avoids reserving worst-case memory in every layer while never dropping a token; the fallback is chosen by how often overflows happen.
FAQ
How much of FP8's gain came from quantized collectives?
In a 512-chip FP8 ablation (PBS 1, EP 16), where the step was communication-bound, about two-thirds of FP8's gain came from quantized collectives rather than faster matmuls. The gain split depends on how much of a step goes to communication versus matmuls, and that balance shifts with batch size and sharding.
How does dropless routing work without reserving worst-case memory?
A capped buffer with a fallback avoids reserving worst-case memory in every layer while never dropping a token. The fallback is chosen by how often overflows happen: replaying the whole step is cheapest when they're rare, and a per-layer dropless path is better when they're frequent.
Source and freshness
- Source
- developers.googleblog.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
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.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.