AI Cloud Architect

TorchTPU: Running PyTorch Natively on TPUs at Google Scale

GoogleBlog post by Claudio Basile, Kat Ko, Ben Wilson, Lee Howes, Bill Jia, Joe Pamer, Michael Voznesensky and Robert HundtGoogle Developers Blog

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

AI: Summary

What it is

TorchTPU lets PyTorch run natively on TPUs with eager, compiled, and distributed modes, using XLA as the compiler backend for torch.compile.

Who it is for

ML engineers and infrastructure teams migrating PyTorch training or serving workloads to Google Cloud TPUs.

Key points

  • Eager modes include Debug, Strict and Fused Eager; Google says Fused Eager gives 50% to 100+% more performance than Strict Eager.
  • Supports DDP, FSDPv2 and DTensor; PyTorch/XLA's SPMD-only limit is addressed with MPMD support.
  • 2026 roadmap includes a public GitHub repository, dynamic shapes in torch.compile, and linear scaling to Pod size, per Google.

The same at other vendors

Timeline

  1. This postTorchTPU: Running PyTorch Natively on TPUs at Google Scale
  2. Read nextAnnouncing New vLLM and SGLang Inference Engines on TPU · Google · Announcement
  3. Read nextIntegrating TorchTPU into TorchTitan and Optimizing Models for TPU · Google · Blog post

Go deeper