All news
VIBPS / NEWS • AI INFRASTRUCTURE

What can Google's TPU co-design guide tell model builders?

Google's new open guide connects model shapes, MoE routing and parallelism to TPU hardware. Its Ironwood results are company measurements, and architectural changes still need quality checks on a team's own workload.

A model can use the same parameter count and arithmetic as before yet run inefficiently on a particular accelerator. Google’s new AI-Hypercomputer guide makes the hardware assumptions behind its TPUs explicit: tensor dimensions, routing patterns, memory traffic and chip-to-chip communication all affect how much of a training or serving run becomes useful compute. The material is aimed at engineers designing or adapting models for Google Cloud TPUs, rather than a general recipe for making any model faster.

Published November 16 by two Google engineers, the guide accompanies an open-source repository with design notes and examples. The launch post organizes its advice around shape rules, architecture choices and parallelism. The repository is a living guide, so its fuller online version can evolve beyond the announcement summary. Its deepest coverage is for large language models and mixture-of-experts (MoE) systems, where sparse routing and moving tokens between chips can dominate the work.

Start with the accelerator's tile size

Google’s first rule is to align important per-device reduction and output dimensions to multiples of 256. The Ironwood matrix-multiply unit (MXU) is built around a 256-by-256 systolic array. When a model dimension does not fit the tile, the hardware may do padded work. The guide calls out attention head width as a common miss: it proposes head_dim 256 with proportionally fewer query and key/value heads, while preserving total projection widths where the model permits.

Google reports an Ironwood experiment in which it changed a Qwen3 30-billion-parameter MoE from 32 heads at width 128 to 16 heads at width 256 without changing parameter count or floating-point operations. The company says the change sped up end-to-end training, with the advantage growing at longer sequence lengths. It does not present that as a universal result: smaller models may have too few heads left after halving, and Google recommends testing the shape on the target system.

Keep changing data inside fixed compiled shapes

The second idea separates a buffer’s compiled shape from how much data it currently contains. XLA compiles for particular shapes, so workloads with variable sequence lengths or uneven MoE routing can otherwise trigger recompilation or waste computation padding to the largest case. The guide describes using a small set of precompiled buckets, masks and compact runtime metadata to represent variable extents while keeping the program shape fixed. This matters for teams whose batches, routed token counts or paged-attention lengths vary between steps.

MoE designs can trade architecture for less traffic

For MoE models, Google highlights LatentMoE: project a token into a narrower latent representation before sending it to selected experts, do expert computation in that space, then project back after combining the results. A smaller representation can reduce communication and weight traffic, but it changes model architecture and must be evaluated for quality. The guide recommends ablations rather than adopting the design just because a hardware diagram suggests it should be faster.

Google reports one 30-billion-parameter, 128-expert Ironwood experiment using latent width 768. It measured 2.8 times less on-device permutation time, 14% more end-to-end training tokens per second and about 25 GB less activation memory per device when rematerialization checkpoints used the compressed representation. The post says the throughput result is specific to its profiling program, which used open models and tuned baselines; it also gives the corresponding per-chip compute figures and explains why extra projection work changes that comparison. These are Google’s results, not an independent benchmark or a promise for a different model, chip or software stack.

Parallelism has to match where chips connect

Distributing more layers across more devices does not automatically improve speed. Each parallel strategy moves a different amount of data and uses a different link. Google advises mapping communication-heavy axes to the fastest physical links and profiling at the intended scale. For example, it describes distinct topologies for seventh-generation Ironwood and eighth-generation systems; the latter divide training-focused TPU 8t from serving-focused TPU 8i, with different network designs. The same parallelism setting should not be assumed to suit both.

That distinction gives teams two entry points. People creating a new model can consider shape and architecture choices early, when dimensions and routing are still adjustable. Teams adapting an existing checkpoint can begin with the guide’s systems-mapping and parallelism advice, which Google says can be applied without changing the checkpoint. In either case, measure wall-clock performance on a tuned baseline rather than comparing theoretical FLOPs alone.

Treat the guide as a starting point for experiments

The guide combines relatively low-risk compiler and shape practices with higher-risk architectural changes. That difference matters: aligning dimensions may be worth a quick test, while latent routing, expert counts or precision decisions can affect model quality and should be compared with controlled ablations. Google itself says its recommendations for future TPU generations keep the same reasoning but require new thresholds as hardware changes.

For makers choosing an accelerator or adapting an open model, the useful contribution is the decision framework: identify whether the bottleneck is compute, memory movement, routing or network traffic; then test the corresponding design lever against the real workload. The performance figures show what Google measured in selected Ironwood configurations. They do not establish that TPU-specific changes will transfer unchanged to other accelerators or that every model will benefit.

How did Thinking Machines train Inkling 2 Small with 4-bit math?

How to secure a self-hosted AI tool before exposing it

VIBPS is the social network for software

More software stories, with sources and context.

More news