Ironwood TPU Training: DeepSeek-V3 in 1.7 Minutes

Ironwood TPU training run of DeepSeek-V3 on Google Cloud TPU7x chips

Ironwood TPU training reached a new mark on Google Cloud: DeepSeek-V3, a 671-billion-parameter Mixture-of-Experts model, reached its target validation loss after just 1.70 minutes of training across 8,192 chips. All communication stayed inside a single inter-chip interconnect domain. The run is the first part of a two-part benchmark series on Ironwood, Google’s seventh-generation TPU, also called TPU7x. Part 2 covers a second scheduling approach for the same Ironwood TPU training job.

Google Cloud kept four things constant (model, dataset, batch size and loss target) and timed each run at three sizes: 2,048, 4,096 and 8,192 chips. At 2,048 chips the run reached an effective model FLOPs utilization of 56%.

The hardware behind the run

On paper, an Ironwood chip offers 4,614 TFLOP/s in FP8 and 192 GiB of high-bandwidth memory running at 7.38 TB/s. One pod can tie together as many as 9,216 chips in a three-dimensional torus, giving each chip 1.2 TB/s of two-way interconnect bandwidth. That is why a whole slice can keep traffic off the data center network, which offers 100 Gb/s per chip.

Every chip is built from two chiplets. Each half carries a TensorCore, a pair of SparseCores and 96 GiB of memory, joined by a die-to-die link six times faster than a one-dimensional interconnect link.

How the benchmark was set up

The Ironwood TPU training recipe is built on MaxText and JAX, and it came together in a matter of weeks.

Each run processed batches of 16,384 sequences, 4,096 tokens apiece, and ended once an evaluation first showed log perplexity of 3.6 or lower. Because the batch stays constant, adding chips splits the same work into smaller pieces. Two settings share it: the per-device batch size and the number of gradient accumulation steps.

The team built a MaxText recipe on JAX that matches the reference training setup. It combines heavy fully sharded data parallelism with modest expert parallelism. Using data parallelism alone at 8,192 chips would copy weights for all 256 experts to every chip at every layer, and each expert would receive too few tokens to keep its matrix multiplications efficient. Adding expert parallelism lets each chip gather only its own experts’ weights.

Tensor parallelism was ruled out because it reduces how much math each memory read supports on the narrow expert dimension. Pipeline parallelism lost too, since its idle gaps outweighed the communication it saved at these scales.

What the optimization week bought

Between September 28 and October 5, the data-parallel plus expert-parallel track raised throughput per chip by 1.56x to 1.82x at all three scales. The model, data, batch size and target loss did not change.

One of the larger single gains came from swapping the ragged-dot kernel for MaxText’s second-generation grouped matrix multiplication kernel, which lifted end-to-end throughput by about 10%. The old kernel computed each tile that straddled an expert boundary in full, once per expert, then masked the result. The new one begins each tile where an expert’s rows start and limits both loads and math to rows that count.

The final setup also depends on an FP8 quantization recipe, hand-written Pallas kernels for expert matmuls and token sorting, faster attention, token chunking that falls back to dropless routing, tuned recomputation and tile sizes, and a warm-up before each run.

Where scaling held and where it slipped

Up to 2,048 chips, scaling was close to linear. Doubling the chips at a fixed per-device batch cut gradient accumulation in half and sped the run up by 1.93x to 2.07x. From 512 to 2,048 chips, the fastest setting kept 97% to 100% scaling efficiency at nearly constant chip time. Measured by convergence, efficiency held at 96% when going from 2,048 chips to 4,096, and fell to 74% at 8,192.

Beyond 2,048 chips the easy lever is gone. With a per-device batch of 4, accumulation is already down to a single step there, so every extra doubling must cut the per-device batch in half instead. Smaller batches are slower: at the same chip count, a batch of 2 ran 6% to 9% behind a batch of 4, and a batch of 1 ran 33% to 35% behind. The fastest setup dropped to 81% efficiency on 4,096 chips and 66% on 8,192.

Most of that loss comes from the smaller per-device batch rather than the extra chips. Compare a batch-of-1 run on 8,192 chips with the same setting on 512 and it still reaches 89% of ideal scaling.

What happens next

The remaining gap is communication. At 8,192 chips each device has little compute left to overlap with its network transfers, so the expert-parallel reduce-scatter stays exposed. A different schedule that splits the batch hides nearly all of those collectives, and Google Cloud says it will detail that approach in Part 2 of the series later this month.

For teams planning Ironwood TPU training of large Mixture-of-Experts models, the practical lessons are specific. Keep the per-device batch from shrinking too far, avoid tensor and pipeline parallelism on small expert dimensions, and expect the last doubling of chips to cost the most efficiency.

Source: developers.googleblog.com

Written by

Saksham Bhargava

Saksham Bhargava runs Alteroid and has been writing about consumer technology for over five years, covering iPhone, Android, Windows, AI tools and gaming. With an MCA and six years of hands-on web development experience, he tests the features he writes about on his own devices and focuses on clear, practical guides that solve real problems. Away from the screen, he enjoys travelling to places most tourists skip.