vLLM added a new backend this month that brings the framework to Google Cloud TPUs. The release, vLLM TorchTPU (vllm-torchtpu), enters open source through an engineering partnership between Inferact and Google. The project solves a recurring problem: teams that want to serve models on TPU infrastructure previously had to maintain separate code paths or accept limited model support. This release lets most vLLM models run on TPU without changes to model code.

How the backend works

The TorchTPU backend is an out-of-tree vLLM plugin. Once installed, vLLM picks it up automatically through the platform_plugins entry point. Models run through vLLM's standard model runner and get compiled with torch.compile(backend="tpu"), which lowers to XLA. Each TPU device runs its own worker process, following the same pattern vLLM uses for GPUs. Communication between devices goes through torch.distributed. The scheduler, workers, KV cache manager, and API server remain unmodified upstream vLLM. The TPU-specific work sits underneath in a set of JAX/Pallas kernels registered as custom ops and called from inside the compiled graph.

Getting started

The setup requires Python 3.12 on a Cloud TPU VM. The installer pulls matching versions of vLLM, torch, torch_tpu, and libtpu alongside the plugin. The guide also covers uv, source builds, and Docker. After installation, the first startup compiles TPU graphs for the configured shapes, which can take a few minutes. Setting VLLM_XLA_CACHE_PATH lets you reuse compiled artifacts across restarts, avoiding recompilation on subsequent runs.

Most vLLM features work out of the box. Speculative decoding, prefix caching, multi-LoRA, structured outputs, and multimodal inputs all use the usual vLLM flags. The quickstart includes examples for offline batch inference, multimodal models, and multi-LoRA setups.

Kernels and operations

vllm-torchtpu includes custom Pallas kernels for operations that benefit from hand-tuning on TPU. Examples cover:

  • Ragged Paged Attention v3 for MHA/GQA models
  • Dense and sparse Multi-head Latent Attention (MLA) for DeepSeek, Kimi, and GLM
  • Gated DeltaNet and Kimi Delta Attention for hybrid linear-attention models
  • Fused Mixture-of-Experts with expert parallelism
  • FP8, INT8, MXFP4, and NVFP4 quantized matmuls

Scaling out

The release focuses on workloads that put pressure on serving systems today: multi-turn agentic and multimodal traffic, where contexts grow and tool outputs can be long. All six of vLLM's parallelism dimensions are supported on both single-host and multi-host TPU slices, and they can be combined:

DimensionFlag
Tensor Parallelism (TP)--tensor-parallel-size
Data Parallelism (DP)--data-parallel-size
Pipeline Parallelism (PP)--pipeline-parallel-size
Expert Parallelism (EP)--enable-expert-parallel
Prefill Context Parallelism (PCP)--prefill-context-parallel-size
Decode Context Parallelism (DCP)--decode-context-parallel-size

For large MoE models, the best throughput usually comes from data-parallel attention with expert parallelism. An example configuration on a single v7x host: DP=8, TP=1 with EP enabled. This keeps attention local to each device and spreads experts across the whole slice. For long contexts, PCP and DCP split prefill and the KV cache across devices. The parallelism guide has more detail and example configurations.

KV cache offloading and disaggregated serving

vllm-torchtpu uses TPU Sync, an open-source C++ library that can read TPU device buffers directly, outside the Python runtime. Through vLLM's KV connector interface, this enables:

  • Zero-copy KV cache offloading to host DRAM, so the prefix cache for long multi-turn sessions is not limited by HBM.
  • Disaggregated prefill/decode serving across TPU hosts with low KV transfer overhead. Prefill and decode can use different layouts—for example, prefill on PCP=4, TP=2 and decode on DP=8, TP=1—and the KV cache is resharded during transfer.

Speculative decoding and prefix caching

Speculative decoding supports MTP, EAGLE-3, DFlash, DSpark, n-gram, and suffix decoding (guide). Automatic prefix caching also works for hybrid models like Qwen3.5 and Kimi K3, where linear-attention state is cached along with the KV cache.

Models and features

vllm-torchtpu can serve most models supported by vLLM, with TPU-specific kernel, quantization, and parallelism work for the Qwen, DeepSeek, Kimi, GLM, Llama, GPT-OSS, and Gemma families. TPU v7x (Ironwood) is the recommended hardware and is tested in CI on every pull request; v6e, v5e, and v5p are experimental. The Supported Models & Features page lists the full set of validated checkpoints and features, with instructions for enabling each one. Nightly support matrices track TPU v7x correctness and benchmark results from CI.

What's next

The roadmap includes several near-term goals. An automated CI pipeline will onboard, benchmark, and publish support matrices for new open-weight models within 24 hours of release. Prefix-, cache-, and session-aware routing, plus llm-d TPU memory-tier routing, are also in scope. PyTorch interfaces for Tokamax kernels, shared with other projects in the TorchTPU ecosystem, are planned. Diffusion model serving through vllm-omni is another upcoming capability.

The project also opens a Community Contribution TPU Capacity Pool. Teams building on vllm-torchtpu can apply for free TPU time, and core vLLM maintainers at Inferact will assist with design and PR reviews.

Getting involved

Questions and discussion happen in the #sig-tpu channel on the vLLM Developer Slack. If you have a model you want to try on TPU or want to contribute test cases, that is the place to start.