Back to News
ProductAI Understanding briefing

Google opens source TorchTPU to run PyTorch natively on TPUs

Google has released TorchTPU as open source, enabling developers to run PyTorch workloads natively on TPUs with minimal code changes, integrating with major AI frameworks like vLLM and Hugging Face.

4 min readRead the linked source
Source-provided image accompanying Google opens source TorchTPU to run PyTorch natively on TPUs
Source referenceSource recorded
Publisher
cloud.google.com
Source type
Linked source — primary-source status has not been established.
ContextUnderstand this in 60 seconds

Key terms

Large Language Model (LLM)
A language model trained on massive text corpora to generate and analyze text.
Reinforcement Learning
Training by reward signals where an agent learns actions that maximize long-term return.
Quantization
Converting model weights to lower precision formats such as 8-bit or 4-bit.

What happened

Google announced the open-sourcing of TorchTPU, a native PyTorch stack for TPUs, at PyTorch Conference 2026. This release allows developers to train, serve, and deploy models on TPUs using standard PyTorch APIs and integrates with tools like vLLM, SGLang, and Hugging Face Transformers.

At PyTorch Conference 2026, Google announced that TorchTPU, its native PyTorch stack for TPUs, is now available as open source on GitHub. This release marks a significant shift, allowing TPUs to join GPUs and CPUs as a native option for PyTorch. Developers can now train, serve, and deploy models on TPUs using familiar tools such as vLLM, SGLang, llm-d, TorchTitan, Ray, TorchRec, Hugging Face, and LiteRT.

TorchTPU was co-developed with the PyTorch team at Meta and enables running existing PyTorch workloads on TPUs with minimal code changes. It supports debugging in eager mode and transitions to production-level performance via torch.compile to optimize TPU utilization. The integration includes support for standard PyTorch APIs, advanced diagnostics, and native distributed primitives.

Google partnered with Hugging Face to ensure popular open-weight models run natively on TorchTPU. In Transformers v5, deploying models to TPUs is simplified by passing device_map="tpu". The Diffusers library also runs natively on TPUs with support for eager mode, torch.compile, and tensor parallelism. Dedicated CI/CD pipelines were built for continuous nightly testing of the Hugging Face Transformers suite on TPU infrastructure.

To address inference bottlenecks, Google integrated TorchTPU into open-source serving engines like vLLM and SGLang, paired with Kubernetes-native fleet routing. The vLLM backend, developed with Inferact, supports continuous batching, , and multi-chip parallelism. The SGLang backend, developed with RadixArk, accelerates structured and agentic workloads using RadixAttention to reuse KV cache. Additionally, llm-d 1.0 was released with Red Hat, IBM, and other partners to manage large-scale inference fleets across TPUs and GPUs.

For training, TorchTPU is integrated into PyTorch’s core training frameworks, including TorchTitan and VeRL. TorchTitan provides recipes for pre-training large dense models and Mixture-of-Experts models, validated on up to 8,000 Ironwood TPUs. VeRL, a popular framework, now has a TPU backend and reference recipe for GRPO. Ray also received native TorchTPU support for orchestrating heterogeneous AI pipelines across CPUs, GPUs, and TPUs.

Source details: cloud.google.com ↗

Why it matters

This move significantly reduces the barrier to entry for using Google TPUs by eliminating the need for proprietary software stacks. By supporting standard PyTorch workflows, it offers developers a viable alternative to Nvidia GPUs, potentially disrupting the current hardware monopoly in AI infrastructure and lowering inference costs for large-scale deployments.

The open-sourcing of TorchTPU challenges Nvidia's dominant position in AI hardware by providing a robust, open-source alternative for running PyTorch on TPUs. This gives developers and enterprises more choice in hardware, potentially leading to cost savings and improved performance for specific workloads.

By integrating with widely used tools like Hugging Face, vLLM, and SGLang, TorchTPU reduces the friction of adopting TPUs. Developers can leverage their existing PyTorch expertise and workflows without significant retraining or code changes, accelerating the deployment of AI models on TPU infrastructure.

The collaboration with Meta and other industry partners underscores the importance of hardware diversity in advancing AI. This move supports the development of a more flexible and resilient AI ecosystem, where organizations can choose the best hardware for their specific needs, from training large language models to serving inference at scale.

Interactive Mechanism

Interactive Mechanism: How It Actually Works

Explore the underlying technology behind this development interactively.

Agent Lifecycle Stage:
1
User Intent & Planning: "Audit customer refund request #4092 and settle payment."
2
Tool Calling: Emits structured JSON call crm_get_transaction(id='4092').
3
Guardrail & Verification:🛡️ Paused: High-value action requires human operator sign-off.
4
Final Settlement: Refund recorded, email receipt dispatched, and audit log stored.
Core takeaway: An AI agent is not just a language model—it is a closed loop of planning, tool invocation, and environment feedback. Production systems require self-healing retries and strict human approval guardrails.
Interactive Concept Check+10 Points
AI Models Explained Quiz

Which component of an AI application is the machine-learning model itself?

What to watch next

Monitor adoption rates among major AI labs and enterprises, performance benchmarks comparing TPU and GPU efficiency for specific workloads, and further integrations with other popular AI frameworks to assess the long-term impact on the AI hardware market.

Track the adoption of TorchTPU by major AI labs and enterprises, particularly those currently reliant on GPU-based infrastructure. Look for case studies and performance reports that demonstrate the practical benefits of using TPUs for training and inference.

Monitor the development of the TPU agent suite, which is in preview on GitHub. This suite aims to automate onboarding, diagnostics, and performance tuning for PyTorch models on TPUs, potentially further lowering the barrier to entry for new users.

Observe the evolution of the llm-d project and its integration with GKE. As inference costs and latency become primary bottlenecks, the ability to efficiently route requests across heterogeneous hardware will be critical for large-scale AI deployments.

Related guides & quizzes

Found this useful?