Skip to content

vLLM-TorchTPU recipes for TPU v6e

Use this guide when you serve a model on TPU v6e (Trillium) and want a starting configuration sized for its 32 GB chips. A v6e chip has one TensorCore and 32 GB of HBM, so one chip is one device. The recipes below follow the reference configurations on the vLLM-TorchTPU TPU v6e (Trillium) Serving Recipes page; unlike the v7x recipes, they are not CI benchmark scripts, and v6e is not covered by CI. Chapter 18 explains each flag and how to compute the KV capacity a recipe leaves.

Prerequisites

  • A v6e VM with vLLM-TorchTPU installed: Serve a first model with vLLM-TorchTPU, steps 1 to 3.
  • The slice from the table in step 1. Single-host v6e comes as v6e-1 (32 GB), v6e-4 (128 GB) and v6e-8 (256 GB); multi-host slices start at v6e-16 (512 GB).
  • Optional: code/ch18_vllm/launch_profiles.py (source), which holds the v6e-1, v6e-4 and Llama v6e-8 recipes as profiles.

Steps

1. Pick the slice for your model

Model checkpoint Precision Slice Layout
meta-llama/Llama-3.2-1B-Instruct, Llama-3.2-3B-Instruct, Qwen/Qwen3-8B bf16 or fp8 v6e-1 (1 chip, 32 GB) TP=1
Qwen/Qwen2.5-VL-7B-Instruct, google/gemma-3-12b-it bf16 or fp8 v6e-1 or v6e-4 TP=1 or TP=4
Qwen/Qwen3-32B, Qwen/Qwen3-Coder-30B-A3B-Instruct-FP8, Qwen/Qwen3.5-35B-A3B-FP8 fp8 (bf16 on v6e-4/v6e-8) v6e-4 (4 chips, 128 GB) TP=4, plus --enable-expert-parallel for MoE
meta-llama/Llama-3.3-70B-Instruct, openai/gpt-oss-120b fp8 / mxfp4 (bf16 on v6e-8) v6e-8 (8 chips, 256 GB) TP=8, plus --enable-expert-parallel for MoE
Qwen/Qwen3.5-397B-A17B-FP8 fp8 v6e-16 (2 hosts, 512 GB) TP=16, or DP=2, TP=8 plus EP

The nightly CI matrix file support_matrices/nightly/v6e/model_support_matrix.csv in the vLLM-TorchTPU repository records the latest v6e validation status of each checkpoint.

Check: the layout's device count, \(DP \times TP\), equals the slice's chips. The builder refuses a mismatch:

python code/ch18_vllm/launch_profiles.py --profile v6e-8-llama3.3-70b --slice v6e-4
# error: v6e-8-llama3.3-70b: DP x TP x PP x PCP = 8 devices, v6e-4 has 4

2. Start the recipe

Copy the command from the matching section under Recipes. Every v6e recipe passes --kv-cache-dtype fp8; the v6e recipes page advises always doing so on 32 GB chips "to double available KV cache blocks and prevent preemption under long-context or high-concurrency workloads".

Check: the server logs Application startup complete. Each recipe's --max-num-batched-tokens sets the largest compiled token size, so warmup builds one program per size from 16 up to it (8 programs at 2,048, 9 at 4,096), and startup takes minutes the first time.

3. Verify the server

python code/ch18_vllm/client.py smoke --model Qwen/Qwen3-8B
tpu-info

Check: a coherent reply, and tpu-info shows HBM in use on every chip of the slice. A chip with no HBM in use is a chip the layout left idle.

4. Benchmark before you change anything

Measure the recipe as given, then change one flag at a time: Benchmark vLLM-TorchTPU.

Recipes

v6e-1: Qwen3-8B (TP=1)

For 1B to 8B dense models and development. Builder profile: v6e-1-qwen3-8b.

vllm serve Qwen/Qwen3-8B \
  --tensor-parallel-size 1 \
  --kv-cache-dtype fp8 \
  --max-model-len 8192 \
  --max-num-batched-tokens 2048 \
  --gpu-memory-utilization 0.90 \
  --async-scheduling \
  --port 8000

v6e-4: Qwen3.5-35B-A3B-FP8 (TP=4 plus EP)

For 30B to 35B dense and MoE checkpoints. Builder profile: v6e-4-qwen3.5-35b.

vllm serve Qwen/Qwen3.5-35B-A3B-FP8 \
  --tensor-parallel-size 4 \
  --enable-expert-parallel \
  --quantization fp8 \
  --kv-cache-dtype fp8 \
  --attention-backend CUSTOM \
  --max-model-len 16384 \
  --max-num-batched-tokens 4096 \
  --gpu-memory-utilization 0.92 \
  --async-scheduling \
  --port 8000

v6e-8: Llama-3.3-70B-Instruct (TP=8)

For 70B to 120B models on one host, without multi-host networking. Builder profile: v6e-8-llama3.3-70b.

vllm serve meta-llama/Llama-3.3-70B-Instruct \
  --tensor-parallel-size 8 \
  --kv-cache-dtype fp8 \
  --max-model-len 16384 \
  --max-num-batched-tokens 4096 \
  --gpu-memory-utilization 0.92 \
  --async-scheduling \
  --port 8000

v6e-8: gpt-oss-120b (TP=8 plus EP, MXFP4)

vllm serve openai/gpt-oss-120b \
  --tensor-parallel-size 8 \
  --enable-expert-parallel \
  --kv-cache-dtype fp8 \
  --max-model-len 16384 \
  --max-num-batched-tokens 4096 \
  --gpu-memory-utilization 0.92 \
  --async-scheduling \
  --port 8000

The checkpoint carries its own MXFP4 quantization config, so the command passes no --quantization (Quantize weights and KV cache).

Models without a command on the recipes page

The recipes page's topology table lists Qwen2.5-VL-7B-Instruct and gemma-3-12b-it (v6e-1 or v6e-4), and Qwen3.5-397B-A17B-FP8 on v6e-16, without a command. Start from the recipe of the same slice above, change the model, and check the device count. For v6e-16, launch on both hosts as in Serve across several TPU hosts, with --tensor-parallel-size 16 or --data-parallel-size 2 --tensor-parallel-size 8 --enable-expert-parallel.

Troubleshooting

Symptom Cause Fix
Requests preempted under long prompts or high concurrency KV cache too small on 32 GB chips Keep --kv-cache-dtype fp8; lower --max-model-len or --max-num-seqs; move up a slice
Layout refused at startup \(DP \times TP \times PP \times PCP\) differs from the chips in the slice Recount: one device per v6e chip
Out of HBM loading a 70B or larger model on one host Weights do not fit with room for KV v6e-8 with fp8 weights, or v6e-16
Startup slow on every restart No persistent compilation cache Keep compiled programs across restarts
A recipe behaves differently from a colleague's run v6e is not in CI, and these are reference configurations Check the nightly v6e support matrix for the checkpoint; record your own baseline

References