🤖 AI Hot

TorchTPU: Run Open Source AI Models Natively on TPUs

A
Alex Chen

Google has open-sourced TorchTPU, a native PyTorch backend that lets open source AI models run on TPUs through the inference stacks developers already use. The launch ships with two production-grade serving backends: vLLM-TorchTPU, built in partnership with Inferact, and SGLang-TorchTPU, built with RadixArk. The practical upshot is that the two most widely deployed open-source inference engines — vLLM and SGLang — can now treat a TPU as a first-class PyTorch device rather than a second-class port, and early third-party numbers from SemiAnalysis put TPUv7 Ironwood at up to 50 percent better performance per dollar than NVIDIA’s B200 and B300 for aggregated serving. For anyone evaluating LLM benchmarks 2026 or planning an enterprise AI adoption guide, this is one of the more consequential infrastructure moves of the year, because it directly attacks the cost side of serving open-weight models at scale.

To understand why this matters, you need the context of what came before. Google has run its own frontier models on TPUs for a decade, but external developers serving open-weight models through vLLM or SGLang have historically had a rough time. TPU support arrived through TorchAX, a translator that mapped PyTorch operations onto the TPU’s XLA compiler, and the gap between what the hardware could do and what the software exposed was real. vLLM’s own TPU blog post documented the pain points: low-level optimization was hard, paged attention did not map cleanly, and fitting vLLM’s worker model onto TPU execution required contortions. TorchTPU is the replacement that removes the translation layer, and the shift in the ecosystem’s tone — from “TPUs technically work with vLLM” to “TPUs are a first-class backend” — is the whole story.

What TorchTPU Changes for Open Source AI Models

The core idea is simple enough to state in one sentence: TorchTPU makes a TPU look like a native PyTorch device, so the large amount of code, schedulers, continuous-batching logic, and API surface that already lives in vLLM and SGLang can run on TPUs without being rebuilt across a PyTorch-to-JAX boundary. The previous TorchAX path translated individual PyTorch ops into JAX/XLA and paid a tax at every boundary. TorchTPU instead gives the serving engines direct access to TPU kernels — including Google’s custom Pallas kernels — so features like paged attention, prefix caching, and continuous batching behave the way they do on GPUs.

There are three things worth unpacking for someone who serves open source AI models in production.

First, code reuse. The reason vLLM and SGLang dominate open-source serving is the volume of feature logic they carry — speculative decoding, structured outputs, multimodal pipelines, and the scheduler heuristics that keep GPUs busy. Under TorchAX, a lot of that logic had to be reimplemented or disabled on TPUs. TorchTPU lets the same upstream code run, which is the difference between a backend you adopt and a backend you fight.

Second, the kernel story. vLLM-TorchTPU ships with optimized, production-ready serving features and custom Pallas kernels. SGLang-TorchTPU brings RadixAttention, SGLang’s KV-cache reuse technique, which skips recomputation for repeated prompt prefixes — a meaningful win for the agentic and structured workloads SGLang is built around.

Third, the broader ecosystem. TorchTPU is not a one-off vLLM thing. Google announced it as part of a wider native-PyTorch push that covers SGLang, llm-d, TorchTitan, Ray, TorchRec, Hugging Face, and LiteRT. The strategic message is that PyTorch is now a first-class citizen on Google Cloud’s TPU fleet, not something you run on TPUs through an emulation shim.

vLLM-TorchTPU vs SGLang-TorchTPU: Two Backends, One Goal

Both backends solve the same problem from different angles, and which one you pick depends on what you are serving. The comparison is worth making explicit because “vLLM or SGLang” is already a decision most inference teams have made before TPUs enter the picture.

DimensionvLLM-TorchTPUSGLang-TorchTPU
Built withInferactRadixArk
StrengthHigh-throughput serving, memory efficiencyStructured, agentic workloads
Key featureCustom Pallas kernels, paged attentionRadixAttention KV-cache reuse
Best forLarge batch, high-QPS open-weight servingAgent loops, repeated prefixes, tool calling

vLLM-TorchTPU is the natural choice for high-throughput serving where you want maximum tokens per second per chip across a large batch of concurrent requests. Its design emphasis is memory efficiency and production-readiness, which is what made vLLM the default for open-weight serving on GPUs in the first place.

SGLang-TorchTPU is aimed at a different failure mode. Agentic workloads tend to repeat long prompt prefixes across many turns — the system prompt, the tool definitions, the conversation history — and SGLang’s RadixAttention reuses the KV cache for those repeated prefixes so they are not recomputed on every turn. RadixArk’s CTO, Banghua Zhu, framed the partnership as a “painless path to native TPU acceleration, passing massive efficiency gains and flexible compute choices directly down to our customers.” For multi-turn agents, that prefix reuse is often worth more than raw throughput.

The important architectural note is that SGLang’s previous public TPU path was SGLang-JAX, a separate JAX-native serving engine rather than a port of the PyTorch runtime. SGLang-TorchTPU adds a second, PyTorch-native backend, so SGLang now has two TPU options while the community decides which one becomes the long-term default.

The Economics: TPU vs Blackwell on Inference Cost

This is where the announcement gets interesting for anyone who actually pays an inference bill. SemiAnalysis’s InferenceX published the first third-party results for TPUv7 Ironwood against NVIDIA B200 and B300, using Qwen3.5 397B in FP8 as the bring-up model. The headline: Ironwood delivers up to 50 percent better performance per dollar, and at a 100 tokens-per-user-second interactivity target, Ironwood costs roughly $0.181 per million total tokens versus $0.222 for B200 and $0.276 for B300 — about 19 percent cheaper than B200 and 34 percent cheaper than B300 at the same per-user speed.

At a lower interactivity target of 20 tokens per second per user, the gap widens. Ironwood reaches 9,364 total tokens per second per chip versus 8,903 on B200 and 8,925 on B300, and combined with the lower modeled hourly cost, it delivers 50.4 percent more tokens per dollar than B200 and 96 percent more than B300.

The caveats matter as much as the numbers. TPUv7 does not have native FP4 support, so on FP4 workloads NVIDIA still leads — that gap closes with the next generation, TPUv8i, which adds native FP4. And the high-throughput advantage comes with a latency trade-off: at high concurrency, TPU’s mean time-to-first-token can run higher than the GPUs. For most cost-driven serving of open-weight models, though, the “tokens per dollar” curve is the one that shows up on the invoice, and that curve now favors TPU across most of the realistic range.

Ironwood, the TPUv7 generation behind these numbers, is also the first TPU to ship native FP8 hardware support — earlier generations emulated FP8 in software — and each chip carries roughly six times Trillium’s HBM capacity, which feeds directly into the KV-cache headroom and batch sizes that serving engines care about. Google’s initial bring-up focuses on Qwen3.5 397B FP8, with plans to extend optimized support to other open-weight models including Kimi K3 and GLM 5.3. SemiAnalysis expects that once a few models are well-tuned, day-zero support for a wide range of popular open models becomes much easier — and that vLLM and SGLang maintainers may add TPUs to their day-zero support list, the same way they currently treat NVIDIA as the default and AMD as passable.

How to Get Started with vLLM and SGLang on TPU

Getting started is deliberately low-friction, which is the point. Both backends are open source, and the entry points are the repositories themselves:

# vLLM with the TorchTPU backend
git clone https://github.com/vllm-project/vllm-torchtpu

# SGLang with the TorchTPU backend
git clone https://github.com/sgl-project/sglang-torchtpu

# TorchTPU itself (the PyTorch backend)
git clone https://github.com/google-pytorch/torch_tpu

The intended workflow is that you keep your existing vLLM or SGLang configuration, point it at the TorchTPU backend, and run on TPU v6e or v7 hardware the way you would on a GPU. There is a request form for early access, and Google is rolling out support through the standard PyTorch ecosystem channels.

The realistic expectation for anyone adopting this in late 2026 is that the stack is still maturing. SemiAnalysis flagged the roadmap items that are not done yet — speculative decoding, disaggregated prefill, KV-cache offloading, and full multi-turn agentic optimization. Those are the features that separate a benchmark result from a hardened production deployment. The foundation, however, is in place, and Google’s software culture gives the external TPU stack a faster maturity curve than AMD’s own software efforts, which SemiAnalysis contrasted explicitly.

Who Should Use TorchTPU

  • Teams already serving open source AI models on vLLM or SGLang who want a second hardware option for cost negotiation or capacity diversification.
  • Organizations running large, cost-sensitive inference fleets where tokens-per-dollar dominates the buying decision, and who can tolerate the current latency profile at high concurrency.
  • Developers building agentic or structured workloads on SGLang, where RadixAttention’s prefix-cache reuse compounds the TPU cost advantage.
  • Anyone standardized on PyTorch who wants TPUs without leaving the PyTorch toolchain.

Who Should NOT Use TorchTPU

  • Teams locked into FP4 inference, where NVIDIA currently holds the advantage until TPUv8i ships native FP4 support.
  • Latency-sensitive real-time serving that cannot accept TPU’s higher time-to-first-token at high concurrency.
  • Teams with a small or irregular inference load, where the operational overhead of managing a second accelerator type is not worth the per-token savings.

Limitations and Caveats

The honest framing is that TorchTPU is an early but real foundation rather than a finished product. The throughput advantage is measured on a single bring-up model in FP8, and the results will not transfer uniformly to every open-weight model until Google and the community do the per-model optimization work. FP4 support is absent on TPUv7, which excludes a large class of cost-sensitive workloads that depend on it. Latency at high concurrency is worse than the GPUs, so the “50 percent cheaper” claim is not a blanket statement about every serving configuration. And the external TPU software ecosystem is still younger than NVIDIA’s CUDA ecosystem, which means fewer kernel libraries, fewer third-party integrations, and more rough edges than a team migrating from a mature CUDA stack might expect.

The verdict is that TorchTPU is the first credible sign that TPUs can be a genuine choice — not just an internal Google asset — for serving open source AI models. The cost-per-token data is strong, the open-source integration is the right architecture, and the partnership model with Inferact and RadixArk means the two engines that matter are building the backend natively rather than bolting it on. The question is no longer whether TPUs can serve open-weight models competently; it is how fast the software ecosystem closes the gap on the features — speculative decoding, disaggregated prefill, FP4 — that still separate TPU from GPU for the most demanding production workloads.

Disclosure: CarCare Guide is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you. Learn more.
A
Alex Chen