What changes
Google has open-sourced TorchTPU, a backend that runs PyTorch models directly on Cloud TPUs. The project was built with Meta's PyTorch team and announced at PyTorch Conference 2026 on October 20. TPUs now sit alongside GPUs and CPUs as a native PyTorch device.
Google says TorchTPU replaces the earlier PyTorch/XLA and recommends it for all new workloads. Developers can target a TPU by setting torch.device("tpu") in existing code.
How it works
TorchTPU plugs into PyTorch's PrivateUse1 interface, and tensors remain ordinary PyTorch tensors. It offers three eager modes: Strict by default, Debug for troubleshooting and DeferAndFuse to cut memory traffic. For peak throughput, torch.compile(backend="tpu") captures the graph, which is lowered through StableHLO to OpenXLA and compiled to TPU machine code.



