Skip to content
View original post on X: Rohan Paul
Published

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

AIGoogle 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.
Rohan PaulVerified on X
@rohanpaul_ai
View on X

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.

Source details

Rohan Paul · x.comPublished · added here

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