vllm-project/tpu-inference
vLLM’s JAX backend for self-hosted model serving on TPUs
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
vLLM JAX, formerly tpu-inference, is a Python hardware plugin that keeps vLLM's serving interface and telemetry while routing model execution through a JAX-based lowering path on TPU. The dependency manifest pins JAX and jaxlib at 0.11.2, libtpu at 0.0.48, and Flax at 0.12.10. PyTorch and TorchAX dependencies reflect the shared lowering design, not a commitment to PyTorch-native TPU execution.
The current project focus is JAX model serving; PyTorch-native TPU serving now has a separate implementation and release cycle in vllm-torchtpu. Within the JAX plugin, v0.32.0 made TPU attention backends selectable via --attention-backend. This gives operators a concrete way to evaluate alternative attention implementations without changing the serving interface.
Key Capabilities & Differentiators
The release matrix separates unit, correctness, and performance results. Llama 3.1 8B Instruct, Llama 3.3 70B Instruct, and Qwen3-30B-A3B pass all three checks, as do listed multimodal variants such as Gemma 4 26B-A4B and Gemma 4 31B. Qwen3-Embedding-8B passes unit and correctness tests, but its performance is marked untested. Passing a correctness check is not evidence of production throughput.
Release and nightly tables are separate. In the combined v6e/v7x correctness-and-performance rollup, a failure in either check on either generation prevents a pass; if a check is untested and none fails, the result remains untested. Use the results for the target release and TPU generation rather than treating upstream vLLM model support or a nightly pass as a stable TPU compatibility guarantee.
Trade-offs & Limitations
Compared with the OpenAI API, this stack gives operators control over model weights, runtime versions, and TPU capacity, but shifts provisioning, upgrades, and incident response onto the serving team. Compared with vllm-torchtpu, the deciding factor is the execution path: choose vLLM JAX for JAX serving and vllm-torchtpu when PyTorch-native TPU support is a requirement.
TPU sizing depends on the model weights, KV cache, and runtime memory overhead. Context length and concurrency can raise cache demand even when the model is unchanged. The matrix reports pass status, not workload-specific latency, throughput, or memory requirements, so use it to shortlist configurations, then measure those metrics under representative traffic before committing capacity. Apache-2.0 permits commercial use of the backend, but model-weight terms remain a separate review.
Hardware & Deployment Guide
Run the vLLM API on a TPU environment you operate. Start with the TPU quickstart and a model verified for the intended setup. Recommended generations are v7x, v5e, and v6e; v3, v4, and v5p are experimental. Hardware-specific recipes are available for v7x and v6e, and the repository includes a docker/ directory. Container packaging does not remove the need for a compatible TPU runtime or for provisioning model weights.
Treat vLLM and its TPU backend as a versioned pair. Release v0.34.0 identifies vLLM commit 5ec99956ad as its last-known-good baseline, and the dependency manifest caps FastAPI below 0.137.0 while awaiting an upstream change. During the move from vllm-project/tpu-inference to vllm-project/vllm-jax, confirm the release source before updating build automation. Validate model loading and representative requests on the intended TPU before rolling out an upgrade.
Teams that already operate TPUs and want the vLLM API for a JAX workload covered by the release matrix on their target hardware.
You need PyTorch-native TPU execution, cannot validate memory and performance on the intended TPU, or want a managed API without accelerator operations.
Comparison vs. Top LLMs & Inference Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| tpu-inference ★ | 484 | +1 | Python | Apache-2.0 | vLLM’s JAX backend for self-hosted model serving on TPUs |
| OmniRoute | 92.1k | +1.5k | TypeScript | MIT | Self-hosted OpenAI-compatible gateway for multi-provider routing and fallback |
| freellmapi | 62k | +2.6k | TypeScript | MIT | Self-hosted LLM gateway for routing across free tiers and custom endpoints |
| bifrost | 10.2k | +125 | Go | Apache-2.0 | Self-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.
curl -sL https://repoforai.com/repo/vllm-project/tpu-inference.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about tpu-inference
Where does this backend sit in the vLLM stack?
Which TPU should I start with, and how much device memory do I need?
Can I self-host it for commercial use?
How should I choose between vLLM JAX, vllm-torchtpu, and the OpenAI API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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