Google describes a TPU microbenchmark suite that measures network, compute, memory, host transfer and attention performance, and shows how to use the results to find bottlenecks.
Who it is for
Teams running AI training or inference on Cloud TPU (Ironwood) who need to check whether their hardware meets its specifications.
Key points
Suite is in the accelerator-microbenchmarks GitHub repository, with YAML configs run via kubectl.
Case study: a 110B Mixture-of-Experts training job on a 4x4x4 TPU 7x slice, where microbenchmark-guided changes cut step time by 21.2%, per Google.
AI:Zero-TIM makes sampler, prefill and trainer compute bitwise-identical logprobs for LLM RL on TPU, using batch-invariant Pallas kernels, ordered cross-shard reductions and custom VJPs in Tunix.
AI:A Google Cloud benchmark of Gemma 3 12B and 27B on TPU v6e finds the 27B model plateaus at 128 users for generation, while classification scales similarly for both sizes.
AI:HeyGen reports its Avatar IV video model runs 1.86x faster on an eight-chip Trillium TPU host, through attention kernel, collective overlap and softmax changes.