Hello,
This guide walks through setting up NVIDIA Dynamo with disaggregated prefill and decode workers using two GPUs.
Hardware: Dual NVIDIA RTX PRO 6000 Blackwell GPUs
Model Example: Qwen/Qwen3-4B
Create a dedicated Python 3.12 virtual environment for Dynamo:
uv venv .dynamo --python 3.12
source .dynamo/bin/activate
uv pip install pip
Install Dynamo with vLLM Support
sudo apt install python3-dev libxcb1
uv pip install --prerelease=allow "ai-dynamo[vllm]"
Install and run etcd
Dynamo requires etcd as a distributed key-value store.
Download and install etcd from the official releases page:
After installation, verify it runs:
/tmp/etcd-download-test/etcd
Ensure etcd is running before proceeding.
Start NATS Server with JetStream Enabled
Dynamo uses NATS for messaging. Start the NATS server with JetStream enabled:
docker run -p 4222:4222 nats -js
Create the Dynamo Server Script
Create a file named server.sh with the following content:
Source: dynamo/examples/backends/vllm/launch/disagg.sh at main · ai-dynamo/dynamo · GitHub
#!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
set -e
trap 'echo Cleaning up...; kill 0' EXIT
# Start Dynamo frontend (HTTP server defaults to port 8000)
# You can override with --http-port or DYN_HTTP_PORT
python -m dynamo.frontend &
# Launch Decode Worker on GPU 0
# --enforce-eager is useful for quick deployment, but remove for production
DYN_SYSTEM_PORT=${DYN_SYSTEM_PORT1:-8081} \
CUDA_VISIBLE_DEVICES=0 \
python3 -m dynamo.vllm \
--model Qwen/Qwen3-4B \
--is-decode-worker &
# Launch Prefill Worker on GPU 1
DYN_SYSTEM_PORT=${DYN_SYSTEM_PORT2:-8082} \
DYN_VLLM_KV_EVENT_PORT=20081 \
VLLM_NIXL_SIDE_CHANNEL_PORT=20097 \
CUDA_VISIBLE_DEVICES=1 \
python3 -m dynamo.vllm \
--model Qwen/Qwen3-4B \
--is-prefill-worker
Make the script executable:
chmod +x ./server.sh
Run the server:
./server.sh
Once the services are running, you can send an OpenAI-compatible request to the Dynamo frontend (default port 8000):