# Google open-sources TorchTPU, a native PyTorch backend for TPUs

> Original title: Google and Amazon now both offer native PyTorch backends that let code leave Nvidia GPUs.

- Source: Rohan Paul
- Published: 2026-10-20T19:31:43.000Z
- Bad Influence: https://badinfluence.news/items/vcaqlz1ws0j9dqqks51e6tgm0
- Original: https://x.com/rohanpaul_ai/status/2112627844711071899

## Summary

Google has open-sourced TorchTPU, a native PyTorch backend that replaces PyTorch/XLA for Google TPUs. The post says it runs operations as written for step-by-step debugging and switches to torch.compile for production speed, and that it reached up to 52% of peak TPU compute training Qwen 3 8B.

## Post

Google and Amazon now both offer native PyTorch backends that let code leave Nvidia GPUs.

Google just open-sourced TorchTPU that replaces PyTorch/XLA, letting developers debug TPU models step by step.

TorchTPU used up to 52% of peak TPU compute training Qwen 3 8B.

TPUs previously reached PyTorch through PyTorch/XLA, which queued operations for a compiler, so debugging differed from GPU work. 

TorchTPU replaces that layer, running each operation as written for debugging, then switching to torch.compile for production speed.

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHVGPKenagAAr6Bq.jpg&mode=thumb&exp=1795737600&sig=432568c3ba7a1af8)

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHVGPPeXbMAA5u_N.jpg&mode=thumb&exp=1795737600&sig=e6772fa28a44c1d9)
