AI Cloud Architect

TPU Model Design Considerations and Optimization Guide

GoogleHow-to by Gagik Amirkhanyan and Vaibhav SinghGoogle Developers Blog

The newly launched AI-Hypercomputer/tpu-codesign guide provides hardware-grounded design rules to help developers maximize performance on TPUs for LLMs and Mixture-of-Experts (MoE) workloads. Key principles include aligning reduction and output dimensions to 256 for systolic arrays, adopting LatentMoE to compress routed token traffic, and mapping parallel axes directly onto physical links.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A Google guide gives hardware-based design rules for LLMs and Mixture-of-Experts models on TPUs, covering 256-aligned dimensions, LatentMoE compression, and mapping parallel axes to physical links.

Who it is for

Teams building or adapting large models for Ironwood TPUs who need to choose model shapes, MoE layouts and parallelism settings.

Key points

  • Shape rules (principles 1-2) are presented as near-zero quality risk; architecture choices need ablations.
  • Google's measured results are from its own Ironwood profiling on 20-30B MoEs and a 63B LatentMoE; the post says the exact percentages are config-specific.
  • Eighth-generation TPU notes (TPU 8t, 8i, 8tx) are included, but the post says thresholds must be re-measured on those chips.