tpu-inference
What it is and what it does
tpu-inference is a vLLM plugin that brings unified inference serving to Google TPUs, bridging PyTorch and JAX model ecosystems under a single lowering path. It allows developers to run PyTorch model definitions natively on TPU hardware without code changes, while also extending native JAX support, all while maintaining vLLM's standard user interface and telemetry. The package targets TPU generations v3 through v7x, with v5e, v6e, and v7x as the recommended targets.
The plugin is designed for production LLM serving workloads. It includes support for core inference features like async scheduling, chunked prefill, KV cache offload, prefix caching, and multimodal inputs. The fact sheet documents tested models including Gemma, Llama, and Qwen families, though some advanced features remain experimental or untested. Installation requires compatible TPU hardware and brings in dependencies across the JAX, PyTorch, and Google Cloud ecosystems.
Use it for:
- Serve open-source LLMs like Llama 3.1/3.3 or Gemma on TPU infrastructure for production inference workloads.
- Run PyTorch-defined models on TPU hardware without rewriting model code, leveraging TPU performance.
- Deploy multimodal models (vision-language) on TPUs with tested support for Gemma-4 and Qwen VL variants.
- Build cost-optimized inference services using TPU's price-to-performance characteristics compared to GPU alternatives.
- Develop JAX-native inference pipelines with unified backend support alongside PyTorch workloads.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
tpu-inference is a hardware plugin for vLLM that enables high-performance serving of large language models on Google TPUs, supporting both PyTorch and JAX model definitions through a unified backend.
Yes, if you have access to Google TPU hardware and need to serve large language models at scale. The package is actively maintained, permissively licensed, and offers low install friction. However, it is strictly tied to TPU infrastructure—it cannot run on CPU or GPU systems. Verify that your target models appear in the tested support matrix and that required features are marked passing rather than experimental or untested.
Install
tpu-inference on PyPI
pip
pip install tpu-inferenceuv
uv add tpu-inferencepoetry
poetry add tpu-inferenceInstalling tpu-inference
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release 14 days ago. Depends on 24 runtime packages including JAX, PyTorch ecosystem libraries, and Google Cloud integrations, which may require significant disk space and compatible system setup.
License in practice
Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install tpu-inference
from tpu_inference import TPUInference
# Requires vLLM and TPU hardware to instantiate and serve models
Requires Google TPU hardware (v3, v4, v5p, v5e, v6e, or v7x) and a compatible TPU environment; cannot run on CPU or GPU systems.
Verify before relying
- Whether tpu-inference can be installed and imported without TPU hardware present for development/testing purposes.
- Exact performance characteristics and throughput improvements compared to other TPU serving solutions.
- Whether all 24 runtime dependencies are strictly required or if some are optional for specific use cases.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 24 — tpu-info, yapf, pytest, pytest-mock, absl-py, numpy, google-cloud-storage, jax, jaxlib, libtpu, jaxtyping, fastapi, flax, torchax, qwix, torchvision, pathwaysutils, parameterized, numba, runai-model-streamer, gcsfs, hypothesis, sortedcontainers, transformers |
| Maintenance | actively maintained — 14 days since the last release |
| First released | |
| Downloads | 79,219/month — #14,373 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tpu_inference-0.26.0-py3-none-any.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
vllm-tpuvllm-tpu is a high-throughput LLM inference and…
permissive · top 15,000 on PyPI
libtpulibtpu is the runtime library that enables JAX,…
unclear · top 5,000 on PyPI
vllmvLLM is a high-throughput inference and serving…
permissive · top 5,000 on PyPI
tpu-infoCLI tool that detects Cloud TPU devices and…
permissive · top 15,000 on PyPI
gpt-ossProvides reference implementations for running…
unclear · top 15,000 on PyPI
torchaxtorchax is a PyTorch backend that runs PyTorch…
permissive · top 15,000 on PyPI
vllm-cpuvllm-cpu provides CPU-optimized inference for…
permissive · top 15,000 on PyPI
tritonclienttritonclient is a Python client library for…
permissive · top 5,000 on PyPI
tokamaxTokamax provides custom accelerator kernels for…
permissive · top 15,000 on PyPI
llmcompressorllmcompressor optimizes large language models…
permissive · top 15,000 on PyPI