AI Cloud Architect

Integrating TorchTPU into TorchTitan and Optimizing Models for TPU

GoogleBlog post by Aleksey Vlasenko, Rob Torres and Will ConstableGoogle Developers Blog

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

AI: Summary

What it is

TorchTitan now runs on Cloud TPUs through TorchTPU, with TPU-tuned recipes, kernels and a step-by-step optimization playbook for reaching higher MFU.

Who it is for

ML engineers training large PyTorch models on Google Cloud TPUs who want to move off JAX rewrites or legacy torch_xla.

Key points

  • Authors report Llama 3 405B at about 57% MFU on up to 1,024 TPU v7x chips (vendor claim).
  • Qwen3 235B reaches 32.42% MFU on a 1,024-chip slice; FLUX.1 reaches 19.4% MFU on 1,024 chips.
  • Playbook runs in order: baseline, compute kernels, memory and batch, then compiler flags and profiling.

The same at other vendors

Timeline

  1. Read firstTorchTPU: Running PyTorch Natively on TPUs at Google Scale · Google · Blog post
  2. This postIntegrating TorchTPU into TorchTitan and Optimizing Models for TPU

Go deeper