Google and Meta launch TorchTPU, an open-source PyTorch backend that ports models to TPUs with one line

lmoroney · x · 2026-10-21

At the PyTorch Conference, Google and Meta announced TorchTPU, an open-source PyTorch backend for TPUs that started at Google in mid-2025. Porting is designed to be as simple as changing .to("cuda") to .to("tpu").

Key details:

The blog is upfront that peak TPU performance may still require changes to shapes and sharding. Suggested first step: flip that one line on a model you already train on GPUs, run your usual eval, and compare before tuning anything.

Related event: Google and Meta Open-Source TorchTPU, Bringing Native PyTorch Support to TPU(15 posts)→

Original post →

More from Infra

Infra channel →