skillfed

vllm-tpu

A high-throughput and memory-efficient inference and serving engine for LLMs

vllm-tpu v0.26.0 85.1K downloads/30d#13,954 on PyPI89,063
Permissive license Apache-2.0 Active released

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-tpu

uv

uv add vllm-tpu

poetry

poetry add vllm-tpu

Installing 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

Intended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: Information Analysis

Tags

LLM inference servinglarge language model deploymentTPU inference enginefast LLM inferencemodel serving frameworkdistributed LLM inferencehigh-throughput LLM server
llm-inferencetpu-optimizedmodel-serving

More Artificial Intelligence packages

Further reading