NVIDIA Dynamo · experimental · main · Nov 5, 2026

Dynamo Sidecar

Stock engines. A Rust sidecar. Dynamo routing and disaggregation.

pod Dynamosidecar CPU · Rust discoveryKV eventshealth Stockengine GPU · upstream vLLMSGLangTensorRT-LLM gRPC
Before · integrated backend

The integrated path embeds the engine

one container · one process · vllm-runtime image Dynamo runtime (Rust)discovery · request plane · event plane PyO3 boundary · one shared GIL dynamo.vllm Python workerhandlers · KV publisher · metrics bridge vLLM AsyncLLM, imported as a librarytouches engine internals CUDA · NCCL · NIXL · Python depsDynamo's and the engine's, pinned together 1 A wrapper per enginevLLM, SGLang and TRT-LLM each need backend code 2 Private engine APIsengine upgrades break the integration 3 A custom image per enginevllm-runtime · sglang-runtime · trtllm-runtime 4 A different CLI to learnpython -m dynamo.vllm instead of vllm serve 5 Potential GIL contentionPython handlers share the engine interpreter
The idea

Split the worker in two

python -m dynamo.vllm: Dynamo handlers embed the engine libraryseparate processes; in Kubernetes, two containers in one pod, linked by native gRPC

Dynamo side

runtime: Dynamo sidecar CPU · Rust

Register the engine in discovery Forward KV-cache events Watch health, drive lifecycle Relay requests over native gRPC System metrics on :9090
native gRPC
loopback / TCP / UDS

Engine side

main: stock engine GPU · upstream

Native serve CLI and flags Scheduling and batching Sampling and token generation KV cache and NIXL transfer GPU execution
Blast radius

Reuse the stack; check feature support

Client FrontendOpenAI APItemplate · tokenize✓ unchanged KV Routerprefix overlap + loadPrefillRouter✓ unchanged PlannerSLA scaling: unsupportedFPM missing Discoveryetcd · K8s DynamoWorkerMetadata Event planeZMQ / NATS · KV events · load NIXL · KVCR✓ reused Dynamo Python worker+ engine in the same processpython -m dynamo.vllmimage: vllm-runtime SidecarCPUregistersforwards StockengineGPUvllm serve ← worker integration changes
Request path

The request still goes through the sidecar

Client Frontend + Routertokenize · pick workerstream · detokenize worker pod one process Dynamo Python workerRust runtime ↔ PyO3 ↔ handlers Engine as a libraryAsyncLLM · same GIL Python calls request plane Dynamo sidecarRust · no GIL Stock engine gRPC servere.g. vllm-rs serve --grpc-port request plane gRPC loopback · token IDs relays every request discovery · health direct gRPC Health.Watch · metadata registrar only
1 hoprouter → worker, then Python calls in-process
Rust ↔ PythonPyO3 crossing on the hot path, shared GIL
Custom imageengine pinned to Dynamo's release
2 hopsrequest plane, then loopback gRPC
Process boundaryno shared interpreter or GIL
Stock imagevllm/vllm-openai, including nightly
1 hoprouter calls the engine's gRPC directly
Sidecar off the request pathstill the frontend’s link for discovery and health
Proposalnot the sidecar path documented on current main
Kubernetes

Inside the worker pod

Pod · DynamoGraphDeployment worker / prefill / decode runtimeinitContainerrestartPolicy: Always dynamo-sidecar imageCPU only · uid 1000DYN_* env, discovery :9090/live /health/metrics mainregular containervllm/vllm-openai GPUs · /dev/shmcompile cacheupstream flags :30001native gRPCengine health probes loopback K8s ≥ 1.29 native sidecar: starts first, stops last
initContainers:
- name: runtime        # Dynamo
  image: nvcr.io/nvidia/ai-dynamo/dynamo-sidecar:<version>
  command: [dynamo-vllm-sidecar]
  args: [--grpc-endpoint, 127.0.0.1:30001]
  restartPolicy: Always
containers:
- name: main           # engine
  image: vllm/vllm-openai:<ver>
Kubernetes · multinode is now documented

Place sidecars by engine topology

Frontend leader node · TP example Sidecarserves requests EngineTP ranks worker node Remaining engine TP ranksno request-serving sidecar engine TP

vLLM hybrid DP

Each node’s sidecar serves its local DP ranks. The frontend can route to either node.

SGLang attention DP

Leader sidecar serves every rank. Follower sidecars relay local KV events only.

TRT-LLM attention DP

Leader serves requests and polls rank load. Followers relay node-local OpenEngine events.

Lifecycle · implemented worker path

Connect, discover, register, then serve

1 · start
2 · connect
3 · discover
4 · prepare
5 · serve
6 · stop
Kubelet
runtime first
start main
terminate main first
Sidecar
runtime /live
retry; 30 min / phase
model + capabilities
KV / load bindings
register + enable relay
unregister → grace → prefill wait → cleanup
Engine
load model
native readiness
event sources
generate tokens
native shutdown
Router
worker routable
registration removed
Press → to follow the implemented startup and shutdown sequence. The runtime listener starts before engine discovery, so startup probes can respond. gRPC startup phases have configurable deadlines; each phase defaults to 30 minutes. Native readiness and model discovery are engine-specific; not every engine uses the same health service. The adapter prepares event and routing bindings from advertised engine capabilities. After registration and setup, the worker marks itself ready. Configured health checks can still affect /health. Shutdown unregisters the worker, waits a grace period, then cleans up. Prefill workers also get a bounded KV-drain wait, without confirmed transfer completion.
Fault isolation · try it

What happens when something breaks?

Routerroutable set runtime · sidecar uprestarting… stopping… registeredderegistered main · engine SERVING · weights in GPUrestarting · reload weightsnative shutdown engine ID: Aengine ID: A → B health / state
  • Engine-specific health / state monitoring
  • Worker is routable
  • Separate logs and probes
  • In-process: one crash takes down both
  • Detected engine loss stops the worker
  • Supervisor restarts the sidecar
  • Engine restarts and reloads weights
  • KV recovery remains incomplete
  • Engine, weights and KV cache survive
  • Unroutable until the sidecar is back
  • Streams can fail; migration is opt-in
  • KV recovery is not guaranteed
  • Registration is removed
  • Grace period, bounded drain, cleanup
  • Native engine owns remaining GPU work
  • No confirmed KV-transfer completion
Router integration

KV-aware routing still works

KV Routerindexer: block hash → workersprefix affinity + routing load worker A · DP rank 182% prefix hit · low load Event planeZMQ / NATS Dynamo sidecardiscovers KV sourcesrepublishes events Stock engine · DP = 2 rank 0KV blocks rank 1KV blocks engine control native events stored / removed blocks request → sidecar → selected rankrank hint encoding is engine-specific
Press → to follow a KV event and then a routed request. The sidecar discovers native KV event sources, model identity, and parallelism through each engine’s control API. The sidecar relays native events: ZMQ sources for vLLM/SGLang; OpenEngine event streaming for TensorRT-LLM. The router's indexer matches the prompt's block hashes against what each worker and rank holds. The adapter encodes the selected DP rank using the engine’s native routing contract.
Disaggregated serving

Prefill → decode, with engines doing the KV transfer

PrefillRouterin the frontendtwo-phase dispatch prefill pod sidecar · DYN_COMPONENT=prefill enginecomputes KV for the prompt decode pod sidecar · DYN_COMPONENT=decode enginegenerates tokens ① prefill ② transfer params ③ decode + params ④ NIXLGPU → GPU ⑤ stream tokens

vLLM ✓

typed kv_transfer_params handoff

SGLang ✓

bootstrap connection handoff

TRT-LLM ✓

OpenEngine KV-session handoff

Performance · mechanism

A possible benefit: less Python relay work

96hypothetical CPU bottleneck · not measured
–Modeled GPU idle, in-process
–Modeled GPU idle, sidecar
–modeled sidecar / in-process throughput
Performance

Measure the tradeoff on your workload

Toy model only2.0×
Sidecar · assumed parallel relayIn-process · assumed serial bottleneck

Costs to watch

  • KV events: one more hop to the router
  • No forward-pass metrics for load-based planning
Measureloopback + serializationCPU per output token

Compare matched configurations

  • TTFT and inter-token latency
  • Cache affinity and routing accuracy
  • Required features and failure behavior
  • Throughput, CPU cost, and GPU idle

Same model, engine build, hardware, load, and cache state

The boundary · current engine adapters

How the sidecar talks to each engine

Dynamo sidecarRust · CPU only vLLMInference + Control services SGLangnative gRPC · GetServerInfo TRT-LLMOpenEngine v1 implemented engine’s own gRPCengine’s own gRPC OpenEngineone versioned contract
Engine-specificfast to ship · code per engine
OpenEngineversioned RPC surface: GenerateGetModelInfoGetLoadHealthAbortGetKvEventSourcesSubscribeKvEvents
Current main · Nov 5, 2026 · experimental

Core serving support has expanded

EngineAggregatedDisaggKV routingK8s multinode
vLLM✓✓✓TP / hybrid DP
SGLang✓✓✓TP / attention DP
TRT-LLM✓✓✓TP / attention DP

Available with compatible engine builds and topology configuration; this is not full feature parity or validation of every combination.

Operations

Runtime metrics, logs, request spans. Native engine telemetry collected separately.

Still missing

SLA autoscaling and per-iteration FPM; complete engine-failure KV recovery.

Operator restrictions

Sidecar mode rejects GMS, enabled checkpointing, and shadow-engine failover.

Feature support · check the adapter, not just the protocol

Core serving is not full parity

CapabilityvLLMSGLangTRT-LLM
Media inputImage / video / audioImage / video / audio*Image / video*
Separate encoder workersYesNoNo
LoRA discovery / administrationYesNoNo
Structured outputBasic constraintsBasic constraintsBasic constraints
In-flight request migrationOpt-in token replay; exclusions and engine-specific errors apply
Embeddings / SLA autoscalingNoNoNo

* Native engine must advertise support. SGLang multimodal disaggregation is untested.

Engine-configured

Speculative decoding and cache offloading need native engine setup and validation of the chosen combination.

Version-sensitive

Runtime weight updates / sleep / wake are limited to capable vLLM engines. TRT-LLM has no prompt logprobs.

Try it · from a compatible Dynamo environment

Start with the checked-in launcher

# repo root; Dynamo + native vLLM installed; 1 GPU
export DYN_DISCOVERY_BACKEND=file
./lib/sidecar/vllm/launch/agg.sh

# second terminal
curl localhost:8000/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"Qwen/Qwen3-0.6B","messages":[
    {"role":"user","content":"Hello"}],"max_tokens":32}'

# CPU-only sidecar image (published since 1.6.0)
docker pull nvcr.io/nvidia/ai-dynamo/dynamo-sidecar:<version>

Before Kubernetes apply

  • Install a compatible Dynamo operator
  • Replace registry/image placeholders
  • Supply required model credentials
  • Keep native engine probes on main
  • Use complete role templates for multinode

Manifests: lib/sidecar/<engine>/deploy/

Launchers: lib/sidecar/<engine>/launch/

Source snapshot · November 5, 2026

Checked against Dynamo main

Commit 36d0642dfa5a · source links are pinned to this revision

Engine guides

vLLM · SGLang · TensorRT-LLM

Native APIs, engine versions, launches, and topology details

Experimental. Main can exceed released image capabilities. Performance visuals are hypothetical models.

Speaker notes

← → step · N notes · F fullscreen