Google open-sources TorchTPU: native PyTorch on TPUs hits 52% peak training Qwen3 8B

rohanpaul_ai · x · 2026-10-21

At PyTorch Conference 2026, Google open-sourced TorchTPU, a native PyTorch backend for TPUs that replaces the PyTorch/XLA compiler-queue approach. It executes ops eagerly for GPU-like step-by-step debugging, then switches to torch.compile for production speed; training Qwen3 8B reached up to 52% of peak TPU compute. Co-developed with Meta's PyTorch team, it offers custom ATen kernels, compilation caching, and distributed training, and works with vLLM, SGLang, llm-d, TorchTitan, Ray and Hugging Face. With Amazon offering a similar backend, PyTorch code can now leave Nvidia GPUs natively on both clouds.

Related event: Google and Meta Open-Source TorchTPU for Native PyTorch on TPU(4 posts)→

Original post →

More from Infra

Infra channel →