Software
TorchTPU
Also known as TorchTPU backend, native PyTorch TPU, torch device tpu
In plain English
TorchTPU makes a TPU look like an ordinary PyTorch device, so vLLM and SGLang can run their existing PyTorch code on Google chips.
Technical Definition
TorchTPU is Google’s PyTorch-native TPU backend, built on the PrivateUse1 extension point, that exposes a real torch.Tensor on device tpu and lowers compiled graphs through StableHLO and XLA.
Engineering Details
The PyTorch dispatcher routes ATen operations to the TPU backend directly instead of translating them into JAX. Developers can run eagerly for bring-up and debugging, or call torch.compile, where TorchDynamo and AOTAutograd produce an FX graph, TorchTPU lowers it to StableHLO, and XLA emits the TPU executable. Inductor and Triton are not used. Native scope covers tensors, dispatch, eager execution, compile entrypoints, and distributed APIs including DDP, FSDP2, DTensor, and both SPMD and MPMD. The kernel layer stays TPU-specific: TorchTPU can call Pallas and JAX-backed custom kernels, so kernels written for the TorchAX stack migrate rather than restart.
Why It Matters
vLLM and SGLang can reuse upstream model code, schedulers, continuous batching, and feature logic instead of rebuilding them across a PyTorch-to-JAX boundary. That lowers the cost of bringing up new models and moves TPU toward day-zero support alongside NVIDIA. TorchTPU replaces TorchAX, which will be deprecated.
How to Read It in InferenceX
The September 2026 preview used TorchTPU vLLM for Qwen3.5 FP8 while the stack was in private beta. The November follow-up reports both SGLang-TorchTPU and vLLM-TorchTPU AgentX submissions, and links Inferact’s open-source Kimi K3 megakernel reproduction guide. Availability and model support should be read from the dated release and recipe, not the earlier beta forecast.
See the Concept in Real Benchmarks
All articlesThe Iron(wood) Throne: Google's TPU Stakes Its Claim on Inference
TPUv7 AgentX results across Muse Spark Open, GLM, Qwen3.5, and Kimi K3, with TorchTPU, megakernels, and llm-d disaggregation.
TPU Inference Externalization Full Steam Ahead
InferenceX, Up to 50% Better Performance per Dollar, Rapid Externalization of TPU stack, Growing Customer Base, Ironwood, TPUv8i, Reducing CUDA Moat