Google announced the TorchTPU open source project at PyTorch Conference North America 2026 in San Jose, giving PyTorch developers a native route to Google’s TPU accelerators. The backend uses PyTorch’s PrivateUse1 interface rather than a separate wrapper, allowing a typical device transfer to change from .to(“cuda”) to .to(“tpu”) without rewriting model architecture, data pipelines or training loops. Google and Meta’s PyTorch team co-developed the project, which is available under the Apache 2.0 license.
TorchTPU open source: A One-Line Migration With Production-Scale Evidence
The release is backed by unusually broad testing. Google says TorchTPU passed compatibility checks on 4,917 of nearly 5,000 Hugging Face models, or 98%, with 97% achieving numerical parity against GPU baselines. The corpus included Qwen, Gemma, Llama, DeepSeek, Mistral, CLIP, ViT, ResNet, Whisper, Wav2Vec2, BERT, RoBERTa and T5. For teams evaluating a move away from Nvidia GPUs, the result changes the migration conversation from a theoretical exercise into a near-term infrastructure decision.
Scale tests showed TorchTPU reaching 52% model FLOPs utilization while training Qwen 3 8B on as many as 8,192 TPU v7x Ironwood chips. A Qwen3 MoE 235B run sustained approximately 28% MFU across the same scale, using Hierarchical Sharded Data Parallelism and processing two million tokens per batch. Google also reported that optimizing FLUX.1-dev image generation reduced generation time from 11.49 seconds to 2.78 seconds. These figures do not establish parity for every workload, but they demonstrate credible performance at large deployments.
DeferAndFuse Targets TPU Dispatch Overhead
Unlike PyTorch/XLA, its predecessor, TorchTPU offers a default asynchronous Strict Eager mode and does not require developers to mark traceable graph regions or recompile after every graph change. Its most distinctive option is DeferAndFuse, a hybrid execution mode that briefly groups operations, fuses them into optimized chunks and dispatches the combined work to the TPU. Google reports more than a 50% speed improvement over Strict Eager in its benchmarks, while reducing peak high-bandwidth memory consumption.
Developers can also select Debug Eager for synchronous execution and bounds checking. Distributed support includes DTensor, FSDPv2, SimpleFSDP and DDP through the tpu_dist collective backend. TorchTPU also supports multiple-program, multiple-data execution, allowing ranks to take different paths rather than enforcing identical programs across a distributed job. Custom-kernel work can use Pallas, Tokamax and Helion, while integrations cover vLLM, SGLang, llm-d 1.0, TorchTitan, VeRL, Ray, Hugging Face Transformers and LiteRT.
The timing amplified the announcement’s significance. Amazon released TorchNeuron for Trainium and Inferentia one day earlier, offering a similar native PyTorch experience with eager execution, torch.compile, FSDP, DTensor, DDP and tensor parallelism. Amazon is also submitting upstream changes to make PyTorch more hardware-neutral. Google simultaneously open-sourced TorchTPU, vLLM-TorchTPU, SGLang-TorchTPU and TorchTitan, creating a coordinated challenge to the software advantages surrounding Nvidia CUDA.
CUDA’s Moat Moves Beyond the Code
Nvidia’s advantage has never rested only on chip performance. Meta introduced PyTorch in 2016 after CUDA had become the default platform for AI research, and roughly 85% of AI applications on PyTorch reportedly depend on that ecosystem. More than four million developers work with CUDA tools, supported by extensive kernel libraries, debugging guides, training recipes and institutional knowledge. TorchTPU attacks the code-migration component of that moat, but not years of accumulated operating expertise or the preference for familiar workflows.
Open source also does not make TPU capacity freely portable. TorchTPU removes a licensing barrier and allows teams to evaluate Google Cloud without a commercial relationship, but the accelerators themselves remain rented cloud infrastructure. Adopters trade a dependency on Nvidia hardware for access through Google Cloud; Amazon’s TorchNeuron creates an analogous choice around AWS capacity. Price-performance, data residency, contract terms and operational resilience will therefore matter as much as porting effort.
Google’s next six-to-twelve-month priorities include production support for XLA Bounded Dynamism, FP8 and FP4 quantization, integrated reinforcement-learning loops and a Trace Viewer 2.0 distributed profiler. Demand signals are substantial: Google Cloud CEO Thomas Kurian said Anthropic plans access to one million TPUs. If that capacity materializes, TorchTPU could evolve from a credible migration option into a material competitor for workloads that assume CUDA by default.
The central takeaway is that TorchTPU open source has narrowed the software gap between PyTorch on Nvidia GPUs and PyTorch on Google TPUs. A 98% compatibility rate, 52% MFU and eager-first design make evaluation rational rather than aspirational. CUDA remains deeply embedded, but for the next infrastructure cycle, the decisive barrier is no longer whether engineers can move a model; it is whether their economics and operations justify moving the workload. TorchTPU open source makes that decision considerably easier to test.
The TorchTPU open source decision will ripple through enterprise procurement in the coming quarters. TorchTPU’s 98% compatibility on open-source PyTorch models is the first empirical evidence that Nvidia’s CUDA software moat, long considered the durable barrier to TPU adoption, can be crossed at production scale without rewriting training and inference stacks. As more workloads move into production at scale, vendor lock-in considerations, multi-cloud resilience, and regulatory exposure are increasingly pulling the TorchTPU open source choice out of the engineering team’s hands and into the legal and procurement office.

