# Repository Briefing: vllm-project/tpu-inference
> Source: https://repoforai.com/repo/vllm-project/tpu-inference (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/vllm-project/tpu-inference
- **Official Docs / Website**: https://docs.vllm.ai/projects/tpu
- **Category**: LLMs & Inference (大模型与推理微调)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: A+ (96/100 · Maintenance 35/35 · Adoption 21/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.34.0 (2026-11-24) — https://github.com/vllm-project/tpu-inference/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Self-Hosted, API
- **Momentum**: 484 ★ total (+0 24h / +1 7d) · 375 forks
- **When to Use**: Best for: Teams that already operate TPUs and want the vLLM API for a JAX workload covered by the release matrix on their target hardware. Skip if: You need PyTorch-native TPU execution, cannot validate memory and performance on the intended TPU, or want a managed API without accelerator operations.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Execution boundary: vLLM retains the serving interface and telemetry; the plugin handles JAX-based TPU lowering.
- Runtime stack: JAX and jaxlib are pinned at 0.11.2, libtpu at 0.0.48, Flax at 0.12.10, and TorchAX at 0.0.13.
- Attention extensibility: v0.32.0 introduced a pluggable TPU attention backend selectable via --attention-backend.
- Validated workloads: Release tables list unit, correctness, and performance passes for Llama 3.3 70B Instruct, Qwen3-30B-A3B, and multimodal Gemma 4 variants.
- Validation policy: Release and nightly matrices are separate; a combined v6e/v7x correctness-and-performance pass requires both checks to pass on both generations.
- Upstream alignment: v0.34.0 identifies vLLM commit 5ec99956ad as its last-known-good baseline.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/vllm-project/tpu-inference.git
cd tpu-inference
```
