vLLM on Google Cloud TPU with tpu-inference

vLLM serves language models on Cloud TPU through the tpu-inference plugin, with v7x, v5e and v6e recommended and older generations experimental. This page covers what to validate before committing capacity.

On this page

What vLLM on Cloud TPU with tpu-inference means for your deployment

If you want an open-source serving engine running on TPU capacity you control, the path is the tpu-inference plugin for vLLM. The plugin's repository recommends TPU v7x (Ironwood), v5e and v6e (Trillium), lists v3, v4 and v5p as experimental, and unifies JAX and PyTorch under a single lowering path. Your first decision is therefore which generation you will buy or reserve, and whether your models and throughput targets justify running on an experimental generation at all. Treat anything outside the recommended list as a planning risk to confirm with the plugin maintainers before you commit capacity. The tpu-inference repository is the place to check the current generation list and the lowering details.

The unified lowering path matters for operations because your team does not need to maintain a separate serving stack for each framework. Your engineers still need to confirm, model by model, which feature support applies, since the plugin documents feature coverage separately from the generation list. The vLLM Qwen3 recipe links TPU recipes for Qwen3-32B and Qwen3-4B on Trillium (v6e), which is a concrete starting point for a model-to-hardware check. Ask for the exact recipe revision you will deploy, and record the vLLM and plugin versions you tested together, because both move on a frequent release cadence.

Cost has three sources and none of them is a license fee. vLLM is Apache-2.0 licensed and has no paid edition, so you pay for TPU capacity, the surrounding infrastructure such as networking, storage and monitoring, and the people who implement and operate the platform. TPU capacity is usually the largest recurring line, so ask any implementation partner to price the generation, the reservation model and the number of chips a given model needs as separate items in a written quote. Implementation and upgrade effort are largely one-time or periodic, while capacity and operations recur every month.

Which TPU generation fits which serving plan

TPU v7x, also called Ironwood, is one of the three generations the tpu-inference plugin recommends. That places it in the group the project treats as the primary target for serving, so it is the natural starting point for a new platform that needs the newest accelerator. Recommendation status describes the plugin's intended path, not the availability of the chip in every region or account, so the first check is whether your project can actually provision v7x capacity where your data must reside.

  • Plugin status: Recommended by the tpu-inference repository, which makes it a supported target rather than an experimental one.
  • Capacity access: Confirm quota, region and reservation options with your Google Cloud account team before designing around it.
  • Model recipes: Check which model recipes the vLLM project documents for v7x, since the recipe set may differ from the Trillium examples.
  • Upgrade exposure: Newer hardware generally depends on newer plugin and runtime versions, so pin and test the exact versions you deploy.
  • Operational history: Ask how long your chosen configuration has run in production, and what support path applies if a fault appears.

Before choosing v7x for production, confirm the recipe, quota and runtime versions for your exact model and region in writing.",

How the JAX and PyTorch lowering path affects your team

The tpu-inference plugin unifies JAX and PyTorch under a single lowering path, so a model served on Cloud TPU is compiled through one shared route regardless of the framework its authors used. For your team, this changes where framework risk sits. The serving layer, the OpenAI-compatible API that vllm serve exposes, and the operational runbooks stay the same whichever framework a model comes from. What changes is the model code path: whether your PyTorch model is supported, how its weights are loaded, and which features the plugin has implemented for it. Framework choice should be made with that lowering path in view, not from habit or from what the team already runs on GPUs.

Teams with existing PyTorch models should not assume coverage. Before committing a release date, check the model architecture against the tpu-inference repository and the model recipes, and confirm which features your application depends on, such as tool calling, structured outputs, embeddings or quantized weights. Feature support is documented separately from the core plugin, so a model can load and generate text while a feature your product needs is still missing or limited. Build a short test that loads the exact checkpoint, runs your real prompts and request shapes, and records any operator or configuration gaps. Ask the team that owns the model code to confirm which PyTorch constructs it uses, since custom layers are the most common source of surprises when moving to a new lowering path.

Framework choice also affects who you hire and how you upgrade. A JAX-first team will find the model code familiar, while a PyTorch-first team may need someone who can read the plugin's lowering behavior when a model fails to compile. Plan for upgrades explicitly: vLLM ships new minor releases about every two weeks, and the plugin version must be paired with a compatible vLLM release, so pin both and test each pairing against your models before moving production traffic. Ask your implementation partner or your own engineers to write down the supported framework path, the pinned versions and the coverage test results, so that compliance and security reviewers see a documented decision rather than an assumption.

How a request moves from client to TPU through vLLM

A request starts at a client application that calls the OpenAI-compatible endpoint exposed by vllm serve, usually behind a reverse proxy or gateway that allowlists only user-facing paths. The server hands the work to the tpu-inference plugin, which uses the unified JAX and PyTorch lowering path to run the model on the TPU slice inside the internal network. Check that only the proxy is reachable from users, that nodes in a multi-node slice sit on an isolated network, and that /metrics and admin endpoints stay internal.

Request flow from client through the vLLM server and tpu-inference plugin to the TPU slice.

Configuration choices and when each fits

This table compares the main decisions a team makes before serving on Cloud TPU with tpu-inference: generation, slice size, framework path, model choice and serving flags. Read each row as a question to settle before the build starts. The main takeaway is that the TPU generation and model choice shape everything else, so confirm both against the current plugin documentation first.

DecisionOptionsWhen it fitsWhat to confirm
TPU generationv6e (Trillium), v7x (Ironwood), v5eTrillium and Ironwood are the generations the plugin recommends. v5e also appears in the recommended list and suits teams that already run on it.Current availability of each generation in your region and quota for the slice you need
Experimental generationsv3, v4, v5pListed as experimental by the plugin. Suitable for evaluation and testing, not for production commitments.Whether the plugin's support table has moved these generations to supported status
Framework pathJAX or PyTorch on one lowering pathThe plugin unifies JAX and PyTorch under a single lowering path. Choose the framework your model team already uses to reduce rework.How your model code loads through the path and which operators your model needs
Model from the Qwen3 recipesQwen3-32B or Qwen3-4B on Trillium (v6e)The Qwen3 recipe links TPU recipes for these two sizes on v6e. Use them as a starting point for a documented configuration.Recipe settings still match the plugin version you pin, and your use case fits the model's license and quality
Model outside the recipesOther open-weight modelsNeeds a team that can validate the model's architecture, chat template and parallel layout on TPU without a published recipe.Support for the architecture in the plugin's feature documentation, plus your own load and output tests
Slice size and topologySingle host or multi-host sliceLarger models and higher concurrency usually need more chips. Pick the topology the recipe names for your model before sizing further.Recommended topology for your model, chip count per slice, and the interconnect layout the provider offers
Chat templateModel's built-in template or --chat-templateChat completions need a template. Use the built-in template when the model ships one and supply one only when it is missing or wrong.Template matches the model version and produces the expected roles and tool formatting
Serving API surfaceOpenAI-compatible endpoints under vllm serveApplications written for the OpenAI API can point at the server. Endpoints you expose should be limited to those your users need.Which endpoints the TPU build exposes and that feature support matches your application calls

Setup sequence for a TPU-backed vLLM server

This sequence takes a team from an approved Cloud TPU allocation to a vLLM server that answers OpenAI-compatible requests and reports health and metrics. Each step closes with a check, so a failure is caught before the next layer is added.

  1. Confirm TPU capacity and generation

    The platform owner requests Cloud TPU capacity in the Google Cloud project and region your organization has approved, choosing a generation the tpu-inference plugin recommends: TPU v7x (Ironwood), v5e or v6e (Trillium). Older generations such as v3, v4 and v5p are listed as experimental, so treat them as a separate risk decision. Confirm quota and that the chosen accelerator type is available in the zone. Done when the TPU resource reports a ready state and you can reach it from the host that will run the server.

  2. Prepare the host environment

    The engineer who operates the server creates a dedicated virtual environment on the TPU host, pins the Python version the tpu-inference repository documents for the release you intend to run, and records the exact versions of vLLM and the plugin. Keep model weights, cache directories and logs on storage you control. Done when the interpreter, package manager and TPU device visibility check all work from a clean shell and the versions are written into your change record.

  3. Install vLLM and the tpu-inference plugin

    Install vLLM and the tpu-inference plugin from the instructions in the tpu-inference repository, not from ad hoc package sources, so that the JAX and PyTorch lowering path matches the engine version. Record the installed plugin commit or package version alongside the vLLM release. Done when a minimal Python import of vLLM succeeds and the plugin reports the TPU platform rather than falling back to another device. If the platform is not detected, stop here and resolve it before touching the model.

  4. Select the model against the Qwen3 recipe

    The engineer compares the model you need with the Qwen3 recipe, which links TPU recipes for Qwen3-32B and Qwen3-4B on Trillium (v6e). Use the recipe's flags as the starting point and confirm the model size fits the chosen TPU topology with the memory headroom you need. Models outside the recipes need their own validation, so ask the plugin maintainers or your own tests to confirm support. Done when you have a written model identifier, its weight source and the parameters you will pass to the server.

  5. Start the vllm serve process

    The engineer launches the server with vllm serve using the model identifier and flags from the previous step, bound to an internal interface rather than a public address. Capture the startup log and confirm the model loads without errors and that the server reports it is listening. Done when the log shows the model loaded on the TPU platform and a local request to the root health path returns a response.

  6. Validate OpenAI-compatible endpoints

    From a client host, the engineer calls /v1/completions and /v1/chat/completions with a test prompt, and checks /v1/models for the expected identifier. If the chat call fails, confirm the model provides a chat template or pass one with the chat template option. Done when each call returns a well-formed response with a token count, and an application client configured with the OpenAI SDK base URL reaches the server. Record one request and response as the baseline for regression testing.

  7. Check metrics and health endpoints

    The operations engineer reads /health and confirms it returns a healthy status, then scrapes /metrics with your Prometheus setup and checks that request counts, token throughput, latency histograms and KV cache usage appear after the test traffic. Confirm that /metrics and /health are reachable only from monitoring networks, since the vLLM security docs do not cover them with the API key. Done when the metrics series are visible in your dashboard and the endpoint exposure has been reviewed against your network policy.

Security and operational considerations on TPU

A self-hosted vLLM server on TPU inherits the same exposure and operating questions as on any other accelerator. The cards below cover what the API key does and does not protect, how to limit reachable endpoints, how to isolate multi-node traffic, and how to keep metrics and offline documentation under your control, along with tracking a fast release cadence.

API key scope is limited

The --api-key option protects endpoints under /v1, /v2, /inference and /cohere only. It does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health, so an unauthenticated caller can still reach some of them. Treat the API key as one control, not the perimeter. Check every route the server exposes against your own access policy before go-live.

vLLM security docs

Reverse proxy allowlisting

The vLLM security guidance recommends a reverse proxy that forwards only the endpoints meant for users, such as the /v1 routes your applications call. Operational endpoints like /pause and /abort_requests should never be reachable from application networks. Confirm the proxy also enforces authentication, TLS termination and request size limits, since the server does not provide these for you.

Isolated multi-node networking

The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. Place all worker and head nodes on an isolated network that only the serving cluster can reach. Review this for any TPU slice or host group that spans more than one machine, and document the network boundary as part of your architecture review.

vLLM security docs

Prometheus metrics exposure

The server publishes Prometheus-format metrics at /metrics, including request counts, token throughput, latency histograms and KV cache use. These values can reveal traffic patterns and workload details, and /metrics is not covered by the API key. Restrict scraping to your monitoring network, and confirm that histogram bucket settings match the latency targets your team actually reviews.

vLLM metrics docs

Offline docs for air-gapped sites

Sites without outbound internet access need the server's documentation and assets to load locally. vLLM includes an --enable-offline-docs option for this case. Test it in the same network zone as production, and confirm that model weights, chat templates and any tokenizer files are staged inside that zone before the server starts.

vLLM online serving docs

Tracking biweekly minor releases

vLLM ships new minor releases about every two weeks, so a TPU deployment can fall behind quickly. Pin the version in your deployment, record the tpu-inference plugin version alongside it, and review release notes before each upgrade. Plan a scheduled test environment that runs your model recipes and API calls against each candidate release before production adopts it.

vLLM releases

Questions teams ask before running vLLM on TPU

What drives the cost of running vLLM on Google Cloud TPU?

The cost comes from TPU capacity, the surrounding infrastructure and the people who build and operate the platform. vLLM itself has no paid edition, so there is no license line item. The main recurring cost is the accelerator capacity you reserve or consume, which depends on the TPU generation, the number of chips a model needs and how many replicas you run for availability. One-time costs include design, deployment, model validation and load testing. When you request a quote, ask for each cost separated into one-time work and recurring infrastructure, and ask which TPU generation and chip count the estimate assumes.

How long does a typical vLLM setup on TPU take?

Duration depends on how many models you serve, how much of the feature set you need, and how much validation your organization requires before production. Teams that already run Kubernetes, identity and a gateway usually finish faster than teams building those pieces at the same time. The main drivers are model compatibility checks against the recipes for your chosen TPU generation, capacity availability in your cloud region, API and authentication work, and the load and failure testing you plan. A fixed-scope engagement gives you a timeline in writing before work starts, so ask for the schedule to be tied to these drivers.

What does the work need from our team?

You need named owners for cloud accounts and TPU quota, the model choice and its license review, network placement, identity and secrets, and the application teams that will call the API. The platform team must agree on how the server is exposed, since the vLLM security docs state that inter-node communication is insecure by default and that the --api-key option does not cover every endpoint. Plan for a reverse proxy that allowlists only user-facing endpoints. Your team also needs access to metrics at /metrics and a place to store logs, so that operations can monitor the service after handover.

Can an internal team set up vLLM on TPU alone?

Yes, a capable platform team can, provided it has experience with cloud accelerators, container orchestration and model serving. The vLLM project is open source under Apache-2.0, so the software is free to use and modify. The harder parts are usually less visible: sizing the TPU capacity, matching a model to the recipes for the chip generation, securing endpoints, and building monitoring and upgrade routines. Assess your team against those items honestly. If the gap is in one area, a partner can cover that piece with a written scope while your team keeps ownership of the platform.

Which TPU generation should we start with?

Start with the generation the tpu-inference plugin recommends for your workload and region: TPU v7x (Ironwood), v5e or v6e (Trillium). The plugin lists v3, v4 and v5p as experimental, so treat those as a poor starting point for production. Trillium is the generation with published vLLM recipes for Qwen3-32B and Qwen3-4B, which makes it the easiest path if those models fit your needs. Confirm availability of each generation in your target region and quota for the chip count you need, because a model plan that depends on unavailable capacity will stall.

How do we check which features are supported on TPU?

Feature support on TPU is documented separately from the plugin itself, so do not assume that a feature available on GPUs works on TPU. Review the tpu-inference repository and its feature support documentation for each capability your applications use, such as chat templates, tool calling, structured outputs or embeddings. Then test each one against the exact plugin release, TPU generation and model you plan to run. Record the results in a compatibility matrix that your team can re-run after every vLLM release, since new minor releases ship about every two weeks.

How often will we need to upgrade a vLLM TPU deployment?

Upgrade frequency follows the release cadence. vLLM ships new minor releases about every two weeks, for example v0.28.0 on August 26, v0.29.0 on September 9, v0.30.0 on September 22 and v0.31.0 on October 5, 2026. You do not have to adopt every release, but you do need a plan for choosing which ones to test and when to retire old ones. Ask for the upgrade process to include re-running your feature matrix and model checks, because the plugin and the engine must stay in step, and that work recurs for as long as the platform runs.

How DeployOpen scopes and delivers vLLM on TPU

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For vLLM on Google Cloud TPU with tpu-inference, that means fixing the TPU generation, model list and serving interface in writing before any build starts, then handing over a deployment your team can run.

How we scope

  • Confirm which TPU generations your models will run on, with v6e (Trillium) as the recipe-backed starting point for the models you name.
  • Record the models, the OpenAI-compatible endpoints your applications call and the chat template each chat model needs.
  • Agree in writing which feature support items from the plugin documentation your workload depends on, and which are out of scope.

How we build

  • Provision the TPU capacity, network and container image in your Google Cloud project, then install tpu-inference and vLLM at the versions you approve.
  • Load each model from the recipe for its TPU generation, record flags and parallelism settings, and test responses against your acceptance cases.
  • Place the API behind a reverse proxy that exposes only user-facing endpoints, with metrics and health routes kept off public paths.

How we hand over

  • Deliver runbooks covering version pinning, model loading, scaling, Prometheus metrics at /metrics and the steps for a planned upgrade.
  • Document the configuration as code, including image tags, plugin versions and the endpoint allowlist, so your team can reproduce the build.
  • Walk your platform and security staff through the running system and the evidence it produces for their own review.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the original build.
  • Retainer work can track vLLM's roughly two-week minor release cadence and re-run model acceptance tests before each upgrade.
  • Ask any quote to state who pays for TPU capacity, who operates the cluster and who owns the plugin upgrades after handover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.