To benchmark mixture-of-experts (MoE) training on Ironwood (TPU7x), Google Cloud's seventh-generation TPU, we ran DeepSeek-V3 671B pretraining across 2,048, 4,096, and 8,192 chips achieving 4,997, 4,790, and 3,689 tokens/sec/chip and an effective model FLOPs utilization (EMFU) of 57%, 55%, and 45%, respectively.

This post builds on Part 1, which showed that Ironwood can scale DeepSeek-V3 training to 8,192 chips connected entirely by ICI, and laid the groundwork with FP8 quantization and custom kernels. However, as we scaled from 2k to 8k chips, each device processed fewer sequences per step, so the TensorCores often sat idle during ICI communication and per-chip throughput dropped.

Recent findings suggest that in this post, we show how we eliminated those stalls by fully utilizing Ironwood's ICI while pushing memory and compute efficiency even further. First, we introduce batch-split scheduling, which keeps ICI links saturated and hides both token and weight communication under compute even at 8,192 chips. With communication no longer stalling the chip, we turn to memory and compute efficiency. We cut high-bandwidth memory (HBM) usage by sizing ragged MoE activation buffers for the tokens that actually exist, and we eliminate wasted HBM traffic, such as unpacking low-precision tokens and relayout copies, so that HBM bandwidth goes to useful work. Finally, we push our custom kernels further by fusing data movement and quantization directly into the grouped matmul (GMM) and attention kernels to keep the TensorCores running at peak efficiency.

The post wraps up with our takeaways for anyone pretraining a large MoE model on TPUs. Without further ado, let's dive in!

Speeding up end-to-end pretraining means pushing strong scaling as far as possible. The global batch is fixed, so adding chips divides the same work more finely (Figure 1). Each chip however still needs to do almost the same amount of communication, even though compute is decreasing. This communication is hardest to hide at 8,192 chips, where each device processes a per-device batch size (PDBS) of just one sequence per step in our benchmark.

πŸ“Œ Read also:

β†’ Read original article