Skip to main content

InferCrane on top of llm-d

llm-d serves vLLM on Kubernetes behind a Gateway API scheduler that picks a pod for each request, and can split prefill and decode across pods. InferCrane doesn’t replace any of that. On top of it, InferCrane can show whether a change to the stack holds before it reaches all your traffic:
  • a new scheduler configuration, such as another scoring of prefix-cache hits and load;
  • a prefill/decode split against an aggregated deployment, or another ratio of the two;
  • a new vLLM release in the pods llm-d runs.
There is no llm-d adapter. InferCrane does not install, configure, or write any llm-d or Gateway API resource, and it cannot stand up an llm-d variant for you. The steps below use InferCrane features that work on plain vLLM servers; none has been run against an llm-d install, so each is marked untested here. infercrane integrations --output json lists llm-d as a registered boundary whose real-cluster qualification is deferred.

Who owns what

The change you want to check

Stand up the change beside your current stack: a second llm-d deployment with the new scheduler configuration, split, or vLLM image, on its own GPUs, behind its own gateway. InferCrane then compares the two. Keep everything else equal: model and revision, GPU type and total count, and the load you measure at.

1. Observe the vLLM pods (untested with llm-d)

Install the agent in the cluster (Install on your GPU cluster) and name the vLLM servers it should watch, one per Service:
Observe a vLLM pod behind llm-d
  • Name a Service with one vLLM pod behind it. The control plane accepts an engine’s metrics only when the current scrape and its baseline come from one engine process.
  • The agent registers each server observe-only and reads its version, models, health, and engine metrics. It never sends traffic to the server unless you make it serve the endpoint.
  • A request sent straight to a prefill or decode pod skips llm-d’s scheduler and its split, so read those pods’ metrics only; send test load through the gateway.
  • Whether the llm-d gateway passes the agent’s health probe is untested.

2. Record the traffic shape (untested with llm-d)

Import the gateway’s request log as content-free observations: start time, latency, token counts, and status, never prompt or answer text. Then capture the trace:
Import request shapes and capture the trace
The format is in telemetry. Whether your gateway’s log carries token counts depends on the gateway and how its access log is configured; check before you rely on it.

3. Check the answers (untested through the llm-d gateway)

A scheduler change should not change answers. A prefill/decode split or a vLLM upgrade can. Read how far the new stack’s next-token distribution moved from the current one’s on the same prompts:
Compare answers between the two stacks
This works between any two OpenAI-compatible servers that return prompt log probabilities, which vLLM does. Whether the llm-d gateway, and a split deployment, pass prompt_logprobs through is untested. See divergence of a precision change.

4. Read a verdict per load (untested with llm-d)

A split that helps long prompts at high load can cost short chat at low load, so measure every load you care about. Measure both stacks with AIPerf through their gateways, the current stack before and after the new one, and write the output tokens per second into a content-free screen summary. Write its two rules first: how far the current stack’s two runs may differ, and the smallest gain that counts. Then:
Read the verdict
The verdict says, per load band, whether the new stack wins, loses, or can’t be told from the current one. It reads the numbers you give it; it doesn’t measure them and isn’t signed, so it is a screen, not a proof. See a verdict per load band.

5. Roll out

Moving traffic is llm-d’s job here. InferCrane’s guarded rollout and automatic rollback apply only to traffic InferCrane routes, so they do not cover a change llm-d rolls out.

What is tested and what is not

Next