Google Cloud has published new benchmark numbers for pretraining DeepSeek-V3 671B on Ironwood TPU7x, its seventh-generation TPU. At 2,048, 4,096 and 8,192 chips, the runs reached 4,997, 4,790 and 3,689 tokens per second per chip. Effective model FLOPs utilization (EMFU) came to 57%, 55% and 45%.
The results build on an earlier test that showed Ironwood can scale DeepSeek-V3 training to 8,192 chips linked entirely by its inter-chip interconnect (ICI). That first round used FP8 quantization and custom kernels. This one targets the efficiency loss that appeared as the chip count grew.
Why throughput fell at scale
The global batch is fixed, so more chips means each one gets less work. At 8,192 chips the benchmark gives each device a per-device batch of one sequence per step. Compute per chip shrinks but communication does not, and the TensorCores sat idle waiting on the ICI.
Two kinds of traffic compete for that compute time:
- Weight communication from fully sharded data parallelism (FSDP). Every layer all-gathers its expert weights before use, and that cost doesn’t shrink with the batch.
- Token communication from expert parallelism (EP). Each mixture-of-experts layer sends tokens to the devices holding their experts, then combines the results.
Reducing one raises the other. A higher EP degree means fewer weights to gather per device, but tokens travel multi-hop paths across Ironwood’s 3D torus, so cost grows with group size. At 8,192 chips no EP setting hides both without a new schedule.
Batch-split scheduling
An MoE layer has four stages in a dependency chain: attention, token dispatch, expert computation and token combine. Google built the schedule up in steps:
- Start with one sequence per device and no pipelining. The TensorCore waits on weights or tokens.
- Prefetch the next layer’s weights on a SparseCore while the current layer runs. Weight stalls disappear.
- Split the device batch into two microbatches. Each stage is half as long, but they still run one after another.
- Interleave the microbatches offset by one stage, so one microbatch’s transfers hide under the other’s compute.
- Move the next layer’s first microbatch attention to the end of the current layer, which removes the last idle time.
With every token transfer hidden, the TensorCore and both SparseCores stay busy throughout. The backward pass follows a mirrored pattern and reduce-scatters weight gradients in a pipeline.
The final sharding scheme
Hiding token traffic allows a higher EP degree. Google settled on EP=16 across the X axis and the two chiplets in each chip, and 2D FSDP over the Y and Z axes, which is 1,024-way at 8,192 chips. Two axes give the weight collectives twice the bandwidth of one. Token traffic uses X and the die-to-die link, while weight traffic uses Y and Z, so the two avoid contention.
Dispatch is a token all-gather and combine is a reduce-scatter. Unlike a ragged all-to-all, their cost doesn’t change when some experts get more tokens, so load imbalance can’t stall the schedule.
Attention needs whole sequences, so each device processes two half-sequences. Attention heads are sharded across the chiplets, each computing 64 of 128 heads.
Making XLA follow the plan
XLA schedules for general-case speed and doesn’t know two microbatches must interleave. The team split each layer’s forward pass into eight phases separated by optimization barriers, so XLA keeps their order but can still fuse within a phase. Four small phases don’t overlap, which keeps scheduling simple at little cost to performance.
The post also covers memory and compute work. Ragged MoE activation buffers are sized for the tokens that exist, which cuts high-bandwidth memory use. Wasted traffic such as unpacking low-precision tokens and relayout copies is removed. Data movement and quantization are fused into the grouped matmul and attention kernels.
What to take from it
The gap between 57% at 2,048 chips and 45% at 8,192 chips shows strong scaling still costs efficiency. For teams pretraining large MoE models on TPUs, the main lesson is to schedule communication under compute at the smallest batch sizes before tuning anything else.
Source: developers.googleblog.com