AI Infrastructure
Google and Meta Launch TorchTPU to Run PyTorch Natively on Tensor Processing Units
A new open-source backend lets developers treat TPUs like GPUs in PyTorch, simplifying the path to running large language models at cloud scale.
InfoQ
Google and Meta have released TorchTPU, an open-source PyTorch backend that enables developers to run workloads directly on Google's Tensor Processing Units with minimal code changes. The announcement came at PyTorch Conference North America 2026 in San Jose, marking a shift toward making TPUs a first-class compute option alongside GPUs and CPUs.
Simplifying the Path to TPU Adoption#
The new backend replaces PyTorch/XLA, a 2020 bridge technology that required developers to substantially modify their code. TorchTPU cuts through that friction by letting users swap device targets with a single line: changing model.to("cuda") to model.to("tpu"). "With TorchTPU, TPUs join GPUs and CPUs as a native option for PyTorch," Google Cloud noted in its official announcement.
The framework works because it plugs into PyTorch's low-level dispatcher, allowing popular libraries—Hugging Face models, vLLM, SGLang, and TorchTitan—to work immediately. Ray and llm-d orchestrate TPU clusters across Kubernetes. Four repositories are now open: TorchTPU, vLLM-TorchTPU, SGLang-TorchTPU, and TorchTitan.
A Starting Point, Not the Finish Line#
Google was candid about the tradeoff: while models run out of the box, achieving peak performance requires additional tuning. Model shapes, sharding strategies, and operators designed for GPU architectures may not fully exploit TPU hardware. To address this, Google unveiled a TPU agent suite (available in preview on GitHub) that automates onboarding, diagnostics, and performance tuning.
Google demonstrated impressive scaling results, achieving near-linear throughput across more than 8,000 TPU v7x chips running Qwen3's 235-billion-parameter mixture-of-experts model at 28% model FLOPs utilization.
Broader Industry Momentum Around AI Hardware#
The timing reflects intensifying pressure to distribute AI workloads beyond NVIDIA dominance. AWS simultaneously moved TorchNeuron, a native PyTorch backend for its Trainium chips, into public beta. Both rely on PyTorch's PrivateUse1 extension point, a common interface for custom hardware. However, TorchNeuron launched with known limitations, not yet supporting dynamic input shapes and omitting roughly 22,000 PyTorch tests.

