Does PyTorch Run on Google TPUs?

Back
Team Aquanode

Team Aquanode

Sarthak Vaish

NOVEMBER 13, 2026

Yes. Google now points PyTorch users to TorchTPU, an open-source, PyTorch-native backend for TPUs. It replaces PyTorch/XLA, which is deprecated.

TorchTPU

Google's TorchTPU documentation describes the following:

  • Co-developed with the PyTorch team at Meta, and open source.
  • Eager execution by default, with one process per device.
  • torch.compile captures the graph with TorchDynamo and compiles it for TPU through OpenXLA and StableHLO.
  • Distributed training through torch.distributed with the tpu_dist backend, supporting DDP, FSDP2 and DTensor.
  • A tpu device in place of cuda: torch.device("tpu"), installed with pip install torch_tpu.

PyTorch/XLA is being retired

The PyTorch/XLA project page says "This project is deprecated and replaced by TorchTPU" and that the repository "will be archived on November 15, 2026." It asks teams to start new PyTorch TPU work with TorchTPU and move existing workloads over.

JAX-based serving stacks remain supported separately for JAX workflows. For the chip itself, see what a TPU is, and for the wider field, NVIDIA's main competitors in AI.

#pytorch#tpu#google#xla

Your own GPU cloud accounts

One console for the GPU clouds you already rent from. Your keys stay on your machine. $20 a month, flat.

Connect your accounts

One console for the GPU clouds you already use.

Connect your accounts for $20 a month, flat. Your provider bills the GPU.

© 2026 Aquanode. All rights reserved.

All trademarks, logos and brand names are the property of their respective owners.