← Back to Leaderboard
Vvllm-project

vllm-project/vllm-torchtpu

PyTorch-native vLLM plugin for serving existing models on Google Cloud TPUs

Engineering Health (Methodology)
A+ · 93/100
Maintenance Activity
● Updated today
Latest Release
v0.33.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption18/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedGPUAPI
Total Stars
★ 152
24h Growth
+0
7d Growth
+5
Forks
104

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

vllm-project/vllm-torchtpu Star History (2026-07-15 - 2026-12-03) ALL-TIME STAR HISTORY (2026-07 – 2026-12) +151 in 141d · avg +1/day 160 80 0 2026-07-15: ★ 12026-07-25: ★ 182026-08-08: ★ 212026-08-22: ★ 312026-09-05: ★ 372026-09-19: ★ 422026-10-03: ★ 502026-10-17: ★ 572026-10-31: ★ 1222026-11-09: ★ 1332026-11-18: ★ 1422026-11-27: ★ 1472026-12-03: ★ 152 ★ 152 07-15 09-23 12-03

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

vLLM TorchTPU is an out-of-tree platform plugin, not a separate serving engine. vLLM keeps its standard PyTorch model definitions and runner; the plugin routes TPU execution through TorchTPU (torch_tpu) and torch.compile(backend="tpu"). Custom JAX/Pallas kernels handle operations such as attention, MoE, and quantized matrix multiplication. JAX is used at the kernel layer, so serving a supported PyTorch model does not require a JAX rewrite.

The install entry point is vllm-torchtpu; pyproject.toml names the core distribution vllm-torchtpu-core and uses setuptools, wheel, and setuptools_scm. It constrains Python to >=3.12,<3.13 because the tpu-raiden-torch wheels are cp312-only. vllm serve remains the CLI entry point, and the server exposes the OpenAI-compatible /v1/chat/completions endpoint.

Key Capabilities & Differentiators

TPU kernels include Ragged Paged Attention, dense and sparse MLA, Gated DeltaNet, fused MoE with SparseCore offload, and FP8, INT8, and MXFP4 matmuls. Model coverage includes Qwen3/3.5, DeepSeek-V3/R1/V4, Llama 3/4, GPT-OSS, Mixtral, and multimodal families such as Qwen-VL and Gemma VL. Speculative decoding, prefix caching, multi-LoRA, structured output, and multimodal inputs use standard vLLM options; check model, feature, and quantization combinations rather than assuming all can be used together.

Tensor, data, pipeline, and expert parallelism can compose with prefill/decode context parallelism across single-host and multi-host TPU slices. The backend also supports disaggregated prefill and decode serving. The v7x nightly matrices under support_matrices/nightly/ track unit, correctness, and benchmark status and are a useful starting point for choosing configurations to validate.

Trade-offs & Limitations

This backend is a strong fit for an existing vLLM service moving to Cloud TPU because model definitions and the serving interface can stay in place. It is not a GPU backend. GPU-backed vLLM is the more direct baseline if you already operate a GPU fleet; vLLM JAX (tpu-inference) is the alternative for pure JAX model implementations. An OpenAI-compatible API can reduce client migration work compared with changing interfaces, but unlike a managed API, this deployment leaves capacity, upgrades, and incident response with your team.

TPU v7x is tested on every pull request and nightly; v6e is supported but not covered by CI, and v5e/v5p are experimental and outside CI. Python packaging is marked Alpha. Initial graph compilation for configured shapes can take several minutes; persist artifacts with VLLM_XLA_CACHE_PATH and test cold and warm starts separately. Size TPU memory for weights, KV cache, and runtime headroom at your target context length and concurrency, and benchmark the TPU/GPU comparison on the same workload rather than assuming a throughput or cost advantage.

Hardware & Deployment Guide

Provision a Google Cloud TPU VM and confirm quota before choosing a slice. With Python 3.12, install vllm-torchtpu and its matching vLLM using pip install --extra-index-url https://download.pytorch.org/whl/cpu vllm-torchtpu, or use the prebuilt vllm/vllm-torchtpu image. For a reproducible rollout, pin the tested package versions or image tag rather than deploying latest.

Use vllm.LLM for offline batches or vllm serve for an API. The single-device example uses --tensor-parallel-size 1 --max-model-len 4096. Kubernetes and multi-host serving are documented deployment paths. The v0.33.0 backend release pairs with vLLM v0.33.0, up from v0.32.0 in the preceding backend release, while vllm-omni stays at 0.32.0rc1. Revalidate your model, features, and topology when upgrading that stack.

Execution: An out-of-tree platform plugin keeps vLLM's PyTorch runner and compiles through torch.compile(backend="tpu").
Kernels: Pallas implementations cover Ragged Paged Attention, dense and sparse MLA, Gated DeltaNet, and fused MoE with SparseCore offload.
Quantization: TPU kernels cover FP8, INT8, and MXFP4 matmuls; validate the exact model-format pairing.
Scaling: Tensor, data, pipeline, expert, and context parallelism span single- and multi-host TPU slices, with disaggregated prefill and decode.
Validation: TPU v7x runs per-PR and nightly CI; support_matrices/nightly/ tracks unit, correctness, and benchmark status.
Operations: The backend requires Python 3.12, ships as a Docker image, and persists compiled artifacts via VLLM_XLA_CACHE_PATH.
Best For

Teams with Cloud TPU capacity that want to keep vLLM's PyTorch models and OpenAI-compatible interface, and can validate their target model and serving topology.

Skip If

You need a GPU backend, cannot provision Cloud TPU or standardize on Python 3.12, or prefer a managed API to operating TPU serving infrastructure.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedGPUAPI
pip install \
  --extra-index-url https://download.pytorch.org/whl/cpu \
  vllm-torchtpu

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
vllm-torchtpu ★152+5PythonApache-2.0PyTorch-native vLLM plugin for serving existing models on Google Cloud TPUs
OmniRoute92.1k+1.5kTypeScriptMITSelf-hosted OpenAI-compatible gateway for multi-provider routing and fallback
freellmapi62k+2.6kTypeScriptMITSelf-hosted LLM gateway for routing across free tiers and custom endpoints
bifrost10.2k+125GoApache-2.0Self-hosted Go gateway for routing and governing multi-provider LLM traffic

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/vllm-project/vllm-torchtpu.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

vllm-project/vllm-torchtpu Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about vllm-torchtpu

How does the plugin integrate, and do I need to rewrite my model in JAX?

vLLM retains its standard PyTorch model definitions and runner. The separately packaged platform plugin supplies the TPU execution path through torch_tpu and torch.compile(backend="tpu"), with custom JAX/Pallas kernels for selected operations. Applications can keep using vllm serve and /v1/chat/completions; check the support matrix for the model and flags you intend to use.

Which hardware should I start with, and how should I size it?

Use a Google Cloud TPU VM with Python 3.12. TPU v7x (Ironwood) is the recommended target and is tested in CI on every pull request and nightly. v6e (Trillium) is supported without CI coverage; v5e and v5p are experimental and also outside CI. Size TPU device memory for model weights, KV cache, and runtime headroom at the intended context length and concurrency. Measure cold-start compilation separately and test warm restarts with VLLM_XLA_CACHE_PATH.

Can I use it commercially or redistribute it in a serving image?

The backend is Apache-2.0 licensed, which permits commercial use and self-hosting subject to its terms, including applicable notice obligations when redistributing it. Review model-weight licenses and Google Cloud terms separately; the backend license does not grant rights to model weights or access to TPU capacity.

How should I choose between TorchTPU, vLLM JAX, GPU-backed vLLM, and the OpenAI API?

Choose TorchTPU to keep vLLM's PyTorch model definitions on Cloud TPU. Evaluate vLLM JAX (tpu-inference) for pure JAX model implementations, or GPU-backed vLLM if GPUs are already your deployment target. Choose a managed service such as the OpenAI API if you want the provider to run the inference infrastructure. The OpenAI-compatible endpoint eases client integration but does not guarantee identical models, features, or outputs.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining vllm-project/vllm-torchtpu? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature vllm-project/vllm-torchtpu on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare