Skip to main content

Google Cloud TPU

InferCrane recognizes Google Cloud TPUs by name and refuses every spec, plan, and setup that names one. Nothing can select a TPU until a measured run on its generation qualifies it. This page is the design for that run and for what follows it: the images to pin, how a TPU deployment is provisioned, which optimizations carry over from GPUs, and what a first run costs.
No model has been served or measured on a TPU through InferCrane. TPU speed, cost, and answer quality are unknown. Every fact below was read on 2026-11-26 from the source linked next to it; prices change, so read them again before a run.

What InferCrane does today

A TPU name resolves to its own platform, so it is never mistaken for a CUDA GPU and never started on a CUDA image. That platform has no selectable image and no placement, so:
  • spec loading, revision storage, planning, and the deployment workflow refuse it with … is on the tpu-v6e platform, which is not qualified;
  • the Kubernetes adapter refuses it again even on a cluster whose device plugin exposes google.com/tpu;
  • a SkyPilot TPU name such as tpu-v6e-8 is refused instead of being sent to a CUDA image;
  • the optimizer finds no reviewed engine setting, image, or recipe for it.
GET /api/v1/catalog/accelerators lists TPUs under not_qualified, apart from the accelerators a spec may select, with the candidate images below. The data lives in internal/provideridentity/accelerator_not_qualified.go and internal/support/not_qualified.go.

Platform identity

Memory comes from Google’s pages for v5e, v5p, v6e, and TPU7x. On v6e, 31.25 GiB of the 32 GB is usable; v5p lists 95 of 96 GiB. Spellings include the Cloud TPU accelerator type, SkyPilot’s name with its slice size, and GKE’s cloud.google.com/gke-tpu-accelerator label value (plan TPUs in GKE). Older generations (v2 to v4) are not recognized: like any unreviewed name, they keep the CUDA default. Each generation is its own platform, as each AMD compiler target is: a run on v6e qualifies v6e only.

Runtime images and how to pin them

Two vLLM plugins serve TPUs. Both are Apache-2.0, both run vllm serve with the same OpenAI API, /health, /v1/models, and /metrics paths, and both publish amd64-only release images. Both are recorded as not-qualified images for every TPU platform. To pin one when a run qualifies it:
  1. Read the tag’s manifest digest from the registry and pin repository@sha256:…, as for every other image. A tag can move; the digest cannot.
  2. Move the image into runtimeImages in internal/support/matrix.go for the platforms the run measured, and only those.
  3. Record its engine version and defaults from its own source. The vLLM JAX image is built from a vLLM main commit, not a release tag, so the defaults InferCrane records for vLLM 0.34.0 (batch tiers, block size, extensible KV cache) do not carry over until read from that build.
  4. Flip the generation’s accelerators to serving and add the Kubernetes placement in V1().
The two plugins give the same runtime (vllm) two images for one platform. The catalog allows one image per runtime, release, and platform, so qualifying both needs a second runtime name or a rule for choosing between them. That choice belongs to the first run: vLLM JAX recommends v6e, and vLLM TorchTPU validates only v7x in CI.

How a TPU deployment is provisioned

TPUs run through the existing Kubernetes adapter on a GKE TPU node pool. Nothing TPU-specific branches in the lifecycle; what differs is data.
The spec then names the label value as its GPU (resources: {gpu: tpu-v6e-slice}), and the pod asks for google.com/tpu chips. Machine types per generation are ct5lp-hightpu-1t/4t/8t (v5e), ct5p-hightpu-4t (v5p), ct6e-standard-1t/4t/8t (v6e), and tpu7x-standard-4t (TPU7x, GKE 1.34.0-gke.2201000 or later). Spot node pools take --spot at creation and use their own quota. What the adapter does not do yet, and a TPU run needs:
  • Topology. GKE’s TPU pod spec selects both cloud.google.com/gke-tpu-accelerator and cloud.google.com/gke-tpu-topology (for example 1x1 for one v6e chip, 2x4 for eight). The adapter writes one node selector. The topology would be data per generation and chip count. TPU7x also needs cloud.google.com/placement-policy-name.
  • Compile cache. Both plugins compile the model with XLA at start. vLLM TorchTPU’s README says the first start “can take several minutes”; its notes report 20 minutes cold against under 2 cached for DeepSeek-V4-Pro on v7x-16. VLLM_XLA_CACHE_PATH on a volume shared across starts avoids recompiling; Google’s tutorial warns that replicas sharing one path can fail. The cache volume and the control plane’s wait for a ready replica must both be set from measured compile times.
  • Engine variables. TPU variables such as VLLM_XLA_CACHE_PATH, MODEL_IMPL_TYPE (vLLM JAX), and TPU_TOKEN_BUCKET_* (vLLM TorchTPU) are not reviewed. A run adds each one it needs to the reviewed engine environment for the TPU platform, with its values and default from source.
  • One device resource per control plane. As for AMD, a control plane configured for google.com/tpu refuses GPUs, so a mixed fleet needs one control plane per resource.
RunPod, AWS, and Azure offer no TPUs. The GCP Compute adapter starts GPU VMs only, and SkyPilot reaches its nodes over SSH with CUDA images, so neither is a TPU path.

Engine options and techniques

The optimizer’s rules read the diagnosis, not the vendor, but most of its levers are engine flags whose meaning differs on TPU. So a TPU run starts from the engine’s own setup and measures batch, parallelism, and speculation settings. Kernel tuning on TPU is a separate project.

Judge, quality checks, and KL check

These run through the OpenAI API, not the engine, so they work on TPU as on GPU as long as the server answers the same requests:
  • Answer check. Chat requests at temperature 0, top_p 1, seed 17, max_tokens, and chat_template_kwargs, scored against the reference’s answers by token F1. Nothing TPU-specific. Greedy decoding on TPU need not match a GPU’s token for token; the check reads a drop in score, never byte equality.
  • KL check (divergence). Needs continue_final_message and prompt_logprobs: 16, vLLM extensions. vLLM JAX v0.34.0 computes prompt log probabilities in its runner, and vLLM TorchTPU ships a prompt-logprobs module with tests, so both should answer; the first run confirms it. Where a server returns none, divergence is absent and a precision change cannot be judged.
  • Judge per load band. Reads AIPerf results and engine metrics by name. TorchTPU says /metrics keeps vLLM’s metric names and adds vllm:prompt_tokens_cached_by_source; Google’s GKE tutorial autoscales vLLM JAX on vllm:num_requests_waiting. That every family the control plane reads is present is unknown until the first run lists them.
  • Comparing with a GPU. A TPU result is a separate setup on a separate machine: it is compared with a GPU baseline as two measured options at the same load, never as a candidate against a GPU control. The machine-variance floor must be measured on the TPU itself.

What a first qualification run costs

Prices per chip-hour, read 2026-11-26 from Cloud TPU pricing (on-demand, DWS Flex-start) and Spot VM pricing (Spot, which Google says can change up to once every 30 days): GKE charges $0.10 per cluster-hour, and a billing account's free tier covers $74.40 a month (GKE pricing, read 2026-11-26). The CPU node that runs the cluster’s system pods, disks, and network were not priced. Proposed first run: Qwen/Qwen3-4B (BF16, listed as passing in vLLM JAX’s support matrix) on one v6e chip (ct6e-standard-1t, topology 1x1) in us-east1, both plugins, about two hours each: start and compile, readiness, /v1/models identity, the metric families, the answer and KL checks against a GPU reference, and AIPerf at the built-in profiles. Four chip-hours cost $10.80 on-demand or about $2.54 on Spot at the prices above, plus the unpriced CPU node. A TPU7x run starts at four chips ($48 an hour on-demand). Accounts it needs (none created): a GCP project with billing enabled. Cloud TPU’s default quota for v5e and v6e is 512 on-demand and 1,536 preemptible cores per zone, but a v6e increase is reviewed by hand, and GKE node pools draw on Compute Engine quota, whose TPU default Google does not state (TPU quota). A free-trial account cannot request a quota increase.

Licences

libtpu is not Apache-2.0. It ships inside the plugins’ own images, which InferCrane runs by digest and never rebuilds or re-hosts, so the core takes no dependency on it. It stays named here and optional: nothing in the core needs a TPU.

Unknown until the first run

  • Compile time per model and bucket set, and so the ready-wait and cache design.
  • Which plugin serves a given model better on a given generation.
  • Whether every engine metric family the control plane reads is present.
  • Whether FP8 is faster than BF16 on v6e.
  • The GKE (Compute Engine) TPU quota of a new project.
Next: Compatibility and qualification explains how a platform becomes qualified. Intel Gaudi and Intel GPUs is the same design for Intel.