vllm-tpu
A high-throughput and memory-efficient inference and serving engine for LLMs
What it is and what it does
vllm-tpu is a specialized distribution of vLLM optimized for serving large language models on Google TPUs. It provides high-throughput inference with efficient memory management through PagedAttention, continuous batching, and support for 200+ model architectures including decoder-only LLMs, mixture-of-experts models, and multi-modal models. The package includes an OpenAI-compatible API server, support for structured output generation via xgrammar and guidance, and distributed inference across multiple TPUs.
The package brings together 66 runtime dependencies—including transformers, fastapi, tokenizers, and specialized inference libraries—to handle the full stack of model loading, tokenization, inference scheduling, and serving. It targets developers and researchers deploying LLMs at scale, offering both programmatic access via Python and a production-ready HTTP API. Installation requires Python 3.10–3.14 and TPU hardware or compatible accelerators.
Use it for:
- Deploy open-source LLMs on Google TPUs with high throughput for production inference
- Build OpenAI-compatible API services for LLM inference without modifying client code
- Serve multi-modal models or mixture-of-experts models on TPU clusters
- Generate structured outputs using xgrammar or guidance constraints during inference
- Implement distributed inference across multiple TPUs using tensor, pipeline, or data parallelism
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
vllm-tpu is a high-throughput LLM inference and serving engine optimized for Google TPUs, supporting 200+ model architectures with efficient memory management, continuous batching, and structured output generation.
Yes, if you are deploying LLMs on Google TPUs and need production-grade serving infrastructure. The active maintenance, permissive license, and broad model support make it a solid choice. Medium install friction is acceptable for a specialized inference engine. No security vulnerabilities reported. Not suitable if you lack TPU hardware or require GPU-only solutions.
Install
vllm-tpu on PyPI
pip
pip install vllm-tpuuv
uv add vllm-tpupoetry
poetry add vllm-tpuInstalling vllm-tpu
Before you install
Medium install friction due to 66 runtime dependencies including transformers, fastapi, and specialized inference libraries. Active maintenance with recent releases (14 days old); repository shows strong community engagement with 89063 stars and ongoing development.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions, making it suitable for production deployments and proprietary applications.
Quickstart
pip install vllm-tpu
from vllm import LLM, SamplingParams
llm = LLM(model="meta-llama/Llama-2-hf")
outputs = llm.generate(["Hello, my name is"], SamplingParams(temperature=0.8))
Requires Python 3.10–3.14; TPU hardware or compatible accelerator needed for actual inference; large model weights must be downloaded from Hugging Face.
Verify before relying
- Specific performance benchmarks for TPU vs. GPU inference on common models
- Whether the 0.26.0 release includes all features from the main vLLM repository or is TPU-specific subset
- Memory requirements and minimum TPU configuration for serving production models
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 66 — regex, cachetools, psutil, sentencepiece, numpy, requests, tqdm, blake3, py-cpuinfo, transformers, tokenizers, safetensors, protobuf, fastapi, starlette, aiohttp, openai, pydantic, prometheus_client, pillow, prometheus-fastapi-instrumentator, tiktoken, lm-format-enforcer, llguidance, outlines_core, lark, xgrammar, typing_extensions, filelock, partial-json-parser |
| Maintenance | actively maintained — 14 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 85,080/month — #13,954 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: vllm_tpu-0.26.0-cp312-cp312-manylinux_2_24_x86_64.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
tpu-inferencetpu-inference is a hardware plugin for vLLM…
permissive · top 15,000 on PyPI
vllmvLLM is a high-throughput inference and serving…
permissive · top 5,000 on PyPI
vllm-cpuvllm-cpu provides CPU-optimized inference for…
permissive · top 15,000 on PyPI
sglangSGLang is a serving framework that runs large…
permissive · top 1,000 on PyPI
lmcacheLMCache is a KV cache management layer that…
permissive · top 15,000 on PyPI
mooncake-transfer-engineMooncake Transfer Engine provides…
permissive · top 15,000 on PyPI
llmcompressorllmcompressor optimizes large language models…
permissive · top 15,000 on PyPI
vllm-routerRoutes and load-balances requests across vLLM…
permissive · top 15,000 on PyPI
smg-grpc-servicerProvides gRPC servicer implementations that…
permissive · top 5,000 on PyPI
ipex-llmAccelerates large language model inference on…
permissive · top 15,000 on PyPI