Skip to content

llm-d model recipes

Use this page to pick a tuned, benchmarked llm-d recipe for one large model. Where a well-lit path teaches one capability on a small footprint, a model guide composes several (expert parallelism, P/D disaggregation, prefix-cache routing, KV offloading) into one deployment for agentic code generation, where cache hit rate rather than FLOPs sets throughput. Two of the four recipes have a TPU7x deployment; the other two are GPU only and get one short section each. Chapter 20 explains why the published agentic numbers are not yet vLLM-TorchTPU measurements.

Recipe Accelerator TPU deployment
Qwen3.5-397B-A17B-FP8 TPU7x yes, unified and disaggregated
GLM-5.2 H200, TPU7x yes, one aggregated two-host pool
DeepSeek-V4-Pro GB200 NVL72 no
Nemotron 3 Ultra H200 no

Prerequisites

  • The repository, CRDs, namespace and Secret steps from the quickstart, with each recipe's GUIDE_NAME and NAMESPACE below.
  • The LeaderWorkerSet controller v0.11.1 or newer with --set enableDisaggregatedSet=true for the disaggregated Qwen topology and for GLM-5.2 (P/D disaggregation, step 1).

Qwen3.5-397B-A17B-FP8 (TPU7x)

The reference TPU recipe: prefix-aware routing, host-DRAM KV offload through TPURaidenOffloadingConnector (TPU Sync), MTP speculative decoding and load balancing, on vLLM-TorchTPU (torch-tpu-vllm image). Status: community, GKE only.

Parameter TOPOLOGY=unified (default) TOPOLOGY=disaggregated (experimental)
Replicas 2 DisaggregatedSet, 1 prefill + 1 decode
Slice tpu7x 2x2x1, 2 nodes tpu7x 2x2x1, 2 nodes
Parallelism DP=8 x TP=1, EP prefill PCP=8, decode DP=8, EP
Context 262,144 tokens, fp8 KV, 4352-token blocks same
Host KV tier 32 GiB per DP engine, 8 engines, 256 GiB pinned per pod one 64 GiB tier on the prefill engine
MTP 3 draft tokens 3 on decode, 1 on prefill (warms draft-layer KV)

On unified the host tier is per DP engine: a prefix is reusable from host DRAM only on the engine that produced it, and vLLM's data-parallel balancer, not the llm-d router, picks the engine inside a pod. Boot disks of at least 1 TB (the checkpoint is 406 GB).

Steps

1. Deploy the router

export REPO_ROOT=$(realpath $(git rev-parse --show-toplevel))
export GUIDE_NAME=qwen3-5-397b
export NAMESPACE=llm-d-qwen3-5-397b
export MONITORING=false
export MONITORING_VALUES=
export ACCELERATOR_TYPE=tpu
export MODEL_SERVER=vllm
export TOPOLOGY=unified # or disaggregated
export MODEL=Qwen/Qwen3.5-397B-A17B-FP8
source ${REPO_ROOT}/guides/env.sh
export ROUTER_BASE_VALUES="${REPO_ROOT}/guides/recipes/router/base.values.yaml"
export ROUTER_VALUES="${REPO_ROOT}/guides/models/${GUIDE_NAME}/router/${GUIDE_NAME}.values.yaml"
# disaggregated: .../router/${GUIDE_NAME}-disagg.values.yaml

helm install ${GUIDE_NAME} \
  ${ROUTER_STANDALONE_CHART} \
  -f ${ROUTER_BASE_VALUES} \
  ${MONITORING_VALUES} \
  -f ${ROUTER_VALUES} \
  -n ${NAMESPACE} --version ${ROUTER_CHART_VERSION}

The router values set peakPrefillThroughput: 16444, carried over from Qwen3-Coder-480B-FP8 on TPU7x as a proxy until this model is calibrated.

Check: the EPP pod is Running.

2. Deploy the model servers

# unified
kubectl apply -n ${NAMESPACE} \
  -k ${REPO_ROOT}/guides/models/${GUIDE_NAME}/modelserver/${ACCELERATOR_TYPE}/${MODEL_SERVER}/
kubectl rollout status deployment/agentic-serving-tpu-vllm-decode -n ${NAMESPACE}

# disaggregated
kubectl apply -n ${NAMESPACE} \
  -k ${REPO_ROOT}/guides/models/${GUIDE_NAME}/modelserver/${ACCELERATOR_TYPE}/${MODEL_SERVER}-disaggregated/
kubectl wait --for=condition=Available disaggregatedset/pd-disagg-tpu -n ${NAMESPACE} --timeout=1800s

Check: the rollout or wait command succeeds.

3. Verify the model is served through the router

export IP=$(kubectl get service ${GUIDE_NAME}-epp -n ${NAMESPACE} -o jsonpath='{.spec.clusterIP}')
kubectl run serve-check --rm -i --restart=Never \
  --image=${CURL_TEST_IMAGE} \
  --namespace="${NAMESPACE}" \
  --env="IP=${IP}" \
  --env="MODEL=${MODEL}" \
  -- /bin/sh -c 'R=$(curl -sS -X POST "http://${IP}/v1/completions" -H "Content-Type: application/json" -d "{\"model\": \"${MODEL}\", \"prompt\": \"Say hello.\", \"max_tokens\": 16}")
    echo "${R}" | grep -q "\"model\":\"${MODEL}\"" && echo "${R}" | grep -q "\"choices\"" \
      && echo "OK: ${MODEL} served through the router" \
      || { echo "FAIL: ${R}"; exit 1; }'

Check: OK: Qwen/Qwen3.5-397B-A17B-FP8 served through the router.

4. Benchmark with the agentic preset

The guide's inference-perf.yaml replays an agentic code-generation workload (3,000-token shared system prompt, a lognormal repository context with mean 160,000 tokens, mean 1,500 input and 425 output tokens per turn, tool latency mean 15 s) against ${GUIDE_NAME}-epp:

export CONCURRENCY_LEVEL=40
export NUM_REQUESTS=$((20 * CONCURRENCY_LEVEL))
export SEED=$((7 + CONCURRENCY_LEVEL))
kubectl delete job inference-perf -n ${NAMESPACE} --ignore-not-found
envsubst < ${REPO_ROOT}/guides/models/${GUIDE_NAME}/inference-perf.yaml | kubectl apply -n ${NAMESPACE} -f -
kubectl logs -n ${NAMESPACE} job/inference-perf -f

For another prefill:decode ratio on disaggregated (role 0 prefill, role 1 decode), patch the replicas; each pod takes its TPU Sync engine ID from its own name:

kubectl patch disaggregatedset/pd-disagg-tpu -n ${NAMESPACE} --type=json \
  -p '[{"op": "replace", "path": "/spec/roles/0/spec/replicas", "value": 2},
       {"op": "replace", "path": "/spec/roles/1/spec/replicas", "value": 6}]'

Check: the job's log runs to completion. The guide publishes no TorchTPU results yet ("being collected"); its earlier Qwen3-Coder-480B results were on the JAX tpu_inference backend and do not apply. Your run is the first evidence for your slice: keep it with Validation.

5. Clean up

kubectl delete -n ${NAMESPACE} -k ${REPO_ROOT}/guides/models/${GUIDE_NAME}/modelserver/${ACCELERATOR_TYPE}/${MODEL_SERVER}/
# disaggregated: .../modelserver/${ACCELERATOR_TYPE}/${MODEL_SERVER}-disaggregated/
helm uninstall ${GUIDE_NAME} -n ${NAMESPACE}
kubectl delete namespace ${NAMESPACE}

Check: the namespace is gone.

GLM-5.2 (TPU7x)

zai-org/GLM-5.2-FP8, a 753B MoE. The H200 recipe is P/D-disaggregated wide EP with MTP and CPU plus NVMe KV offload; the TPU7x deployment (DEPLOYMENT=tpu7x-2x2x2-dp16, community, GKE only) is simpler: one aggregated LeaderWorkerSet on a two-host 2x2x2 slice, no P/D disaggregation. The leader runs one API server on port 8000:

vllm serve zai-org/GLM-5.2-FP8 --data-parallel-size=16 --tensor-parallel-size=1 --enable-expert-parallel --kv-cache-dtype=fp8 --max-model-len=32768

Every host needs a boot disk of at least 1.5 TB: each downloads the full 756 GB FP8 checkpoint into /var/cache/huggingface. MONITORING=true is GPU only in this recipe.

Steps

1. Deploy the router

export REPO_ROOT=$(realpath $(git rev-parse --show-toplevel))
export GUIDE_NAME=glm-5-2
export NAMESPACE=llm-d-glm-5-2
export MONITORING=false
export MONITORING_VALUES=
export ACCELERATOR_TYPE=tpu
export MODEL_SERVER=vllm
export MODEL=zai-org/GLM-5.2-FP8
source ${REPO_ROOT}/guides/env.sh
export ROUTER_BASE_VALUES="${REPO_ROOT}/guides/recipes/router/base.values.yaml"
export ROUTER_VALUES="${REPO_ROOT}/guides/models/${GUIDE_NAME}/router/${GUIDE_NAME}-tpu.values.yaml"
export ROUTER_OVERRIDES_VALUES="${ROUTER_VALUES}"
export DEPLOYMENT=tpu7x-2x2x2-dp16

helm install ${GUIDE_NAME} \
  ${ROUTER_STANDALONE_CHART} \
  -f ${ROUTER_BASE_VALUES} \
  ${MONITORING_VALUES} \
  -f ${ROUTER_VALUES} \
  -f ${ROUTER_OVERRIDES_VALUES} \
  -n ${NAMESPACE} --version ${ROUTER_CHART_VERSION}

The TPU values select pods labelled llm-d.ai/guide: glm-5-2-tpu and route with prefix-cache-affinity-filter plus token-load-scorer; ROUTING is ignored on TPU.

Check: the EPP pod is Running.

2. Deploy the model server

kubectl apply -n ${NAMESPACE} \
  -k ${REPO_ROOT}/guides/models/${GUIDE_NAME}/modelserver/${ACCELERATOR_TYPE}/${MODEL_SERVER}/deployments/${DEPLOYMENT}
kubectl get pods -n ${NAMESPACE} -l llm-d.ai/model=GLM-5.2-FP8 -w

Check: both pods of the group become ready; the startup probe allows up to 45 minutes for the model load. Then run the same serve-check as the Qwen recipe, step 3, with MODEL=zai-org/GLM-5.2-FP8.

3. Clean up

kubectl delete -n ${NAMESPACE} -k ${REPO_ROOT}/guides/models/${GUIDE_NAME}/modelserver/${ACCELERATOR_TYPE}/${MODEL_SERVER}/deployments/${DEPLOYMENT}
helm uninstall ${GUIDE_NAME} -n ${NAMESPACE}
kubectl delete namespace ${NAMESPACE}

Check: the namespace is gone.

DeepSeek-V4-Pro (GPU only)

deepseek-ai/DeepSeek-V4-Pro on NVIDIA GB200 NVL72 (OCI BM.GPU.GB200.4, 4 to 14 nodes): P/D-disaggregated wide EP over cross-node NVLink provisioned through an NVIDIA DRA ComputeDomain, prefill DEP8 and decode TP=8, DEP8 or DEP16, NIXL KV transfer, FP8 KV with block size 256, 9,280-token context. There is no TPU deployment; for a large MoE with EP on TPU7x use the Qwen3.5-397B or GLM-5.2 recipe above.

Nemotron 3 Ultra (GPU only)

RedHatAI/NVIDIA-Nemotron-3-Ultra-550B-A55B-FP8-block on 8 H200 nodes: 6 prefill and 2 decode replicas at TP=8 with EP, disaggregation-aware prefix-cache routing, 200 GiB of CPU KV offload per server, FP8 weights and KV, and VLLM_PREFIX_CACHE_RETENTION_INTERVAL=0 for this Mamba-hybrid model. It uses development router and sidecar images. There is no TPU deployment.

Troubleshooting

Symptom Cause Fix
Pod evicted during first download Boot disk below 1 TB (Qwen) or 1.5 TB per host (GLM) Larger boot disks
serve-check prints FAIL Router reaches no server for MODEL, or the model is still loading Wait for readiness; check MODEL
Uneven load across Qwen replicas peakPrefillThroughput is a proxy value Calibrate it and update both Qwen router values files
Host-tier hits low on unified Requests for one session reach different DP engines inside a pod Expected: the DP balancer, not the router, picks the engine
GLM pods never ready Model load exceeds the probe, or one host missing Watch both pods of the LeaderWorkerSet group

References