Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 148 additions & 20 deletions conf/experimental/ai_dynamo/test/vllm.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -19,34 +19,162 @@ description = "vLLM backend with Qwen3-0.6B model"
test_template_name = "AIDynamo"

[cmd_args]
docker_image_url = "nvcr.io/nvidia/ai-dynamo/vllm-runtime:0.7.0"
docker_image_url = "nvcr.io/nvidia/ai-dynamo/vllm-runtime:0.8.1"
num_nodes = 2
hf_home_path = "/opt/shared/huggingface"

[cmd_args.dynamo]
backend = "vllm"
model = "Qwen/Qwen3-0.6B"
workspace-path = "/workspace/examples/backends/vllm"
prefill-cmd = 'python3 -m dynamo.vllm --is-prefill-worker'
decode-cmd = 'python3 -m dynamo.vllm'
workspace-path = "/workspace"
node-setup-cmd = "/usr/local/ucx/bin/ucx_info -d |grep Transport | sort -u;"
ingress-cmd = "python -m dynamo.frontend --router-mode kv"
port = 8787
endpoint = "v1/chat/completions"
etcd-cmd = "etcd --log-level info --data-dir /tmp/etcd "
nats-cmd = "nats-server -js"
etcd-port = 2379
nats-port = 4222
workloads = "genai_perf.sh,lmbench.sh,custom_workload.sh"
worker-error-pattern = "zmq.error.ZMQError:.Address.already.in.use|ERROR.core.run_engine_core:.EngineCore.failed.to.start|ERROR.multiproc_executor.worker_busy_loop:.WorkerProc.hit.an.exception|ValueError:.a.python.*async.generator:.EngineDeadError:.EngineCore.encountered.an.issue|ZeroDivisionError:.integer.division.or.modulo.by.zero|ERROR.core.run_engine_core:.EngineCore.encountered.a.fatal.error|Exception:.Failed.to.fetch.model|ERROR.*Engine.core.proc.EngineCore_.*died.unexpectedly|RuntimeError:.Engine.core.initialization.failed."

[cmd_args.dynamo.prefill_worker]
num-nodes = 1
#node-list = ""
cmd = 'python3 -m dynamo.vllm --is-prefill-worker --enforce-eager'
worker-initialized-regex = 'VllmWorker.*has.been.initialized'
multiple-workers-per-node = "false"
extra-args = "--no-enable-expert-parallel"

[cmd_args.dynamo.prefill_worker.args]
model = "%MODEL%"
gpu-memory-utilization = 0.8
tensor-parallel-size = 8
pipeline-parallel-size = 1
data-parallel-size = 1

[cmd_args.dynamo.decode_worker]
pipeline-parallel-size = 1
num-nodes = 1
#node-list = ""
cmd = 'python3 -m dynamo.vllm --enforce-eager'
worker-initialized-regex = 'VllmWorker.*has.been.initialized'
multiple-workers-per-node = "false"
extra-args = "--no-enable-expert-parallel"

[cmd_args.dynamo.decode_worker.args]
model = "%MODEL%"
gpu-memory-utilization = 0.8
tensor-parallel-size = 8
pipeline-parallel-size = 1
data-parallel-size = 1

[cmd_args.lmcache]
controller_cmd = "lmcache_controller --host localhost --port 9000 --monitor-port 9001"

[cmd_args.lmcache.args]
chunk_size = 256
local_cpu = false
nixl_buffer_size = 10737418240
nixl_buffer_device = "cuda"
extra_config_enable_nixl_storage = true
extra_config_nixl_backend = "GDS_MT"
extra_config_nixl_file_pool_size = 64
extra_config_nixl_path = "%CACHEDIR%"

enable_controller = true
lmcache_instance_id = "lmcache_default_instance"
controller_url = "localhost:9001"
lmcache_worker_port = 8788
distributed_url = "localhost:8789"

[cmd_args.genai_perf]
model = "Qwen/Qwen3-0.6B"
endpoint = "v1/chat/completions"
endpoint-type = "chat"
extra-inputs = 'min_tokens:10'
output-tokens-mean = 500
output-tokens-stddev = 0
random-seed = 123
request-count = 50
synthetic-input-tokens-mean = 300
synthetic-input-tokens-stddev = 0
warmup-request-count = 5
concurrency = 2
extra-args = "--streaming -- -v --async"
cmd = "genai-perf profile"
extra-args = "--streaming --verbose -- -v --async"

[cmd_args.genai_perf.args]
model = "%MODEL%"
url = "%URL%"
endpoint = "%ENDPOINT%"
endpoint-type = "chat"
artifact-dir = "%RESULTS_DIR%/genai_perf_artifacts"
profile-export-file = "profile.json"
extra-inputs = 'min_tokens:10'
output-tokens-mean = 500
output-tokens-stddev = 0
random-seed = 123
request-count = 50
synthetic-input-tokens-mean = 300
synthetic-input-tokens-stddev = 0
warmup-request-count = 5
concurrency = 2

[cmd_args.aiperf]
cmd = "aiperf profile"
extra-args = "--streaming"
version = "git+https://github.com/ai-dynamo/aiperf.git@b1d116496a8247b254a7cd3b14b2f218685255d3"

[cmd_args.aiperf.args]
model = "%MODEL%"
url = "%URL%"
endpoint = "%ENDPOINT%"
artifact-dir = "%RESULTS_DIR%/aiperf"
endpoint-type = "chat"
warmup-request-count = 1
export-level = "raw"
benchmark-duration = 100

# Server metrics collection - set in test_scenario with correct service names per test
# LMCache metrics are exposed via vLLM worker's /metrics endpoint
server-metrics-formats = "json,csv"

# initla prompt the same for all users
shared-system-prompt-length = 1024
# 3K per-user context: unique per session, requires num-dataset-entries
user-context-prompt-length = 3072
#user sends eeach iteration 1023
synthetic-input-tokens-mean = 1024
# user gets each iteration 100
osl = 100
num-dataset-entries = 10

# Multi-turn conversation settings: 10 users, 20 turns each, message every 1 sec
user-centric-rate = 10.0
num-users = 10
conversation-turn-mean = 20

# 1 second delay between turns (simulates user think time)
conversation-turn-delay-mean = 1000

# Turn sequence: 1K ISL / 100 OSL for all 20 turns
#turn-sequence = "1024,100*20" # Removed by Kapil


[cmd_args.lmbench]
cmd = "python3 ./synthetic-multi-round-qa/multi-round-qa.py"

[cmd_args.lmbench.args]
num-users = 15
num-rounds = 20
qps = 0.1
shared-system-prompt = 1000
user-history-prompt = 20000
answer-len = 100
model = "%MODEL%"
base-url = "%URL%"
init-user-id = "1"
log-interval = 30
time = "100"

[cmd_args.custom_workload]
cmd = "hostname"
isl = "1000,2000,4000,8000,16000,24000,32000,48000,64000,96000,128000"

[cmd_args.custom_workload.args]

[extra_env_vars]
UCX_LOG_LEVEL = "warn"
UCX_TLS = "cuda_copy,rc_x"
HF_HUB_OFFLINE = "1"
TRANSFORMERS_OFFLINE = "1"
HF_DATASETS_OFFLINE = "1"
DYNAMO_NODELIST = "$(scontrol show hostname $SLURM_JOB_NODELIST | tr -s '\\n' ',')"
UCX_TLS = "all"
9 changes: 6 additions & 3 deletions conf/experimental/ai_dynamo/test_scenario/vllm_k8s.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -24,7 +24,10 @@ test_name = "vLLM-Qwen3-0.6B"
[Tests.cmd_args.dynamo]
[Tests.cmd_args.dynamo.prefill_worker]
num-nodes = 1
tensor-parallel-size = 8
[Tests.cmd_args.dynamo.prefill_worker.args]
tensor-parallel-size = 8

[Tests.cmd_args.dynamo.decode_worker]
num-nodes = 1
tensor-parallel-size = 8
[Tests.cmd_args.dynamo.decode_worker.args]
tensor-parallel-size = 8
81 changes: 81 additions & 0 deletions conf/experimental/ai_dynamo/test_scenario/vllm_kvbm_slurm.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name = "dynamo_vllm_kvbm"

[[Tests]]
id = "vLLM-Qwen3-0.6B"
test_name = "vLLM-Qwen3-0.6B"
time_limit = "20:00:00"

extra_container_mounts = ["/run/udev:/run/udev", "/tmp:/tmp"]

[Tests.cmd_args]
#storage_cache_dir = "/raid/users/kapila"
#storage_cache_dir = "/mnt/vast/kapila"
#hf_home_path = "/mnt/vast/disagg_inf/huggingface"
num_nodes = 2 # 1 prefill node + 1 decode node

[Tests.cmd_args.dynamo]
model = "Qwen/Qwen3-0.6B"
connector = "kvbm nixl" #"kvbm" #["none", "kvbm"]
ingress-cmd = "python -m dynamo.frontend --router-mode kv" # --router-mode kv --no-kv-events --kv-overlap-score-weight=0" # --router-mode kv"
workloads = "aiperf.sh" #,genai_perf.sh,lmbench.sh"
#node-setup-cmd = "/usr/local/ucx/bin/ucx_info -d |grep Transport | sort -u; (cd /opt/dynamo/venv/lib/python3.12/site-packages/dynamo && patch -p4 < /cloudai_install/clear_kv_blocks_engine_route.patch)"
node-setup-cmd = "hostname"

[Tests.cmd_args.dynamo.prefill_worker]
num-nodes = 1

[Tests.cmd_args.dynamo.prefill_worker.args]
tensor-parallel-size = 2

[Tests.cmd_args.dynamo.decode_worker]
num-nodes = 1

[Tests.cmd_args.dynamo.decode_worker.args]
tensor-parallel-size = 2

[Tests.extra_env_vars]
CUFILE_LOG_LEVEL = "INFO"
CUFILE_LOGGING_LEVEL = "INFO"
PYTHONHASHSEED = "0"

# Dynamo Flags
DYN_LOG = "info"
DYN_SYSTEM_PORT = "8081" # Enable system metrics

# KVBM Flags
DYN_KVBM_METRICS = "1"
DYN_KVBM_METRICS_PORT = "6880" # Default port

# set a large timeout for allocating the disk
DYN_KVBM_LEADER_WORKER_INIT_TIMEOUT_SECS = "1200"
DYN_KVBM_DISABLE_DISK_OFFLOAD_FILTER = "1" # Force KV cache write on first request

# Use it only on vast.
#DYN_KVBM_DISK_ZEROFILL_FALLBACK="true"

# set a relatively small CPU cache, so we can do quick disk onboarding
DYN_KVBM_CPU_CACHE_GB = "50"
# set a large disk cache, so we are actually testing the NIXL with onboarding
#DYN_KVBM_DISK_CACHE_GB="100"

DYN_KVBM_NIXL_BACKEND_UCX = "True"
DYN_KVBM_NIXL_BACKEND_GDS = "True"

# vLLM Flags
VLLM_SERVER_DEV_MODE = "1"
48 changes: 29 additions & 19 deletions conf/experimental/ai_dynamo/test_scenario/vllm_slurm.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -20,31 +20,41 @@ job_status_check = false
[[Tests]]
id = "test.disagg.single-node"
test_name = "vLLM-Qwen3-0.6B"
num_nodes = 2 # 1 prefill node + 1 decode node
time_limit = "00:10:00"

[Tests.cmd_args.dynamo.prefill_worker]
num-nodes = 1
tensor-parallel-size = 4
pipeline-parallel-size = 1
[Tests.cmd_args]
num_nodes = 2 # 1 prefill node + 1 decode node
#storage_cache_dir = "/opt/shared"
hf_home_path = "/opt/shared/huggingface"

[Tests.cmd_args.dynamo.decode_worker]
num-nodes = 1
tensor-parallel-size = 4
pipeline-parallel-size = 1
[Tests.cmd_args.dynamo.prefill_worker]
num-nodes = 1
[Tests.cmd_args.dynamo.prefill_worker.args]
tensor-parallel-size = 4
pipeline-parallel-size = 1

[Tests.cmd_args.dynamo.decode_worker]
num-nodes = 1
[Tests.cmd_args.dynamo.decode_worker.args]
tensor-parallel-size = 4
pipeline-parallel-size = 1

[[Tests]]
id = "test.disagg.multinode"
test_name = "vLLM-Qwen3-0.6B"
num_nodes = 4 # 2 prefill nodes + 2 decode nodes
time_limit = "00:10:00"

[Tests.cmd_args.dynamo.prefill_worker]
num-nodes = 2
tensor-parallel-size = 4
pipeline-parallel-size = 1
[Tests.cmd_args]
num_nodes = 4 # 2 prefill nodes + 2 decode nodes

[Tests.cmd_args.dynamo.prefill_worker]
num-nodes = 2
[Tests.cmd_args.dynamo.prefill_worker.args]
tensor-parallel-size = 4
pipeline-parallel-size = 1

[Tests.cmd_args.dynamo.decode_worker]
num-nodes = 2
tensor-parallel-size = 4
pipeline-parallel-size = 1
[Tests.cmd_args.dynamo.decode_worker]
num-nodes = 2
[Tests.cmd_args.dynamo.decode_worker.args]
tensor-parallel-size = 4
pipeline-parallel-size = 1
Loading