[Config Refactor][2/N] Pipeline + Deploy Config Schema (#2383)
Signed-off-by: lishunyang <lishunyang12@163.com> Signed-off-by: reidliu41 <reid201711@gmail.com> Signed-off-by: Alex Brooks <albrooks@redhat.com> Co-authored-by: reidliu41 <reid201711@gmail.com> Co-authored-by: xiaohajiayou <75477391+xiaohajiayou@users.noreply.github.com> Co-authored-by: Alex Brooks <albrooks@redhat.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
104 files changed
+3959
-3814
No files matched your search
@@ -0,0 +1,92 @@
|
||||
# Qwen2.5-Omni deploy: CUDA defaults + platform overrides, verified on 2x H100.
|
||||
# Stage 2 disables flashinfer autotune because its DiT block never invokes
|
||||
# flashinfer; the autotune dummy run OOMs the shared cuda:0 device otherwise.
|
||||
#
|
||||
# Fields omitted from a stage fall back to StageDeployConfig dataclass
|
||||
# defaults (see vllm_omni/config/stage_config.py). For instance, every
|
||||
# stage here uses vLLM's default max_num_batched_tokens=32768 because
|
||||
# chat-sized prefill comfortably fits; only models with codec prefill
|
||||
# (Qwen3-Omni, Qwen3-TTS) need to bump it above 32k.
|
||||
#
|
||||
# enforce_eager policy across the three deploy YAMLs:
|
||||
# * code2wav / generation stages: always true (cudagraph incompatible with
|
||||
# the custom generation loop — set explicitly everywhere).
|
||||
# * AR stages (thinker, talker): model-dependent. Qwen2.5-Omni runs eager
|
||||
# on CUDA (thinker uses custom ops that don't trace cleanly); NPU / XPU
|
||||
# platform overrides flip back to false where cudagraph is verified.
|
||||
# Qwen3-Omni / Qwen3-TTS AR stages use the default (false = cudagraph on).
|
||||
async_chunk: false
|
||||
|
||||
stages:
|
||||
- stage_id: 0
|
||||
max_num_seqs: 1
|
||||
gpu_memory_utilization: 0.8
|
||||
enforce_eager: true
|
||||
mm_processor_cache_gb: 0
|
||||
devices: "0"
|
||||
default_sampling_params:
|
||||
temperature: 0.0
|
||||
top_p: 1.0
|
||||
top_k: -1
|
||||
max_tokens: 2048
|
||||
seed: 42
|
||||
repetition_penalty: 1.1
|
||||
|
||||
- stage_id: 1
|
||||
max_num_seqs: 1
|
||||
gpu_memory_utilization: 0.8
|
||||
enforce_eager: true
|
||||
devices: "1"
|
||||
default_sampling_params:
|
||||
temperature: 0.9
|
||||
top_p: 0.8
|
||||
top_k: 40
|
||||
max_tokens: 2048
|
||||
seed: 42
|
||||
repetition_penalty: 1.05
|
||||
|
||||
- stage_id: 2
|
||||
max_num_seqs: 1
|
||||
gpu_memory_utilization: 0.15
|
||||
enforce_eager: true
|
||||
enable_flashinfer_autotune: false
|
||||
async_scheduling: false
|
||||
devices: "0"
|
||||
default_sampling_params:
|
||||
temperature: 0.0
|
||||
top_p: 1.0
|
||||
top_k: -1
|
||||
max_tokens: 2048
|
||||
seed: 42
|
||||
repetition_penalty: 1.1
|
||||
|
||||
platforms:
|
||||
npu:
|
||||
stages:
|
||||
# NPU has cudagraph support for the thinker, unlike GPU which still
|
||||
# only runs eager.
|
||||
- stage_id: 0
|
||||
enforce_eager: false
|
||||
- stage_id: 2
|
||||
# 3-NPU layout: stage 2 lives on its own card.
|
||||
devices: "2"
|
||||
|
||||
rocm:
|
||||
stages:
|
||||
- stage_id: 2
|
||||
# 3-GPU MI325 layout: stage 2 on a separate card.
|
||||
devices: "2"
|
||||
|
||||
xpu:
|
||||
stages:
|
||||
# Verified on 2x Intel Arc Pro B60. Both AR stages use cudagraphs.
|
||||
- stage_id: 0
|
||||
gpu_memory_utilization: 0.9
|
||||
enforce_eager: false
|
||||
- stage_id: 1
|
||||
gpu_memory_utilization: 0.5
|
||||
enforce_eager: false
|
||||
- stage_id: 2
|
||||
gpu_memory_utilization: 0.3
|
||||
# Stage 2 colocates with stage 1's device on XPU.
|
||||
devices: "1"
|
||||
@@ -0,0 +1,98 @@
|
||||
# Qwen3-Omni-MoE production deploy, verified on 2x H100 (stage 0 on cuda:0,
|
||||
# stages 1+2 on cuda:1).
|
||||
#
|
||||
# Fields omitted from a stage fall back to StageDeployConfig defaults (see
|
||||
# vllm_omni/config/stage_config.py). Notable implicit defaults for this
|
||||
# model:
|
||||
# * Stages 0/1 (thinker, talker) do not set max_num_batched_tokens —
|
||||
# chat-sized prefill fits in the 32768 default.
|
||||
# * Stages 0/1 do not set enforce_eager — cudagraph runs by default
|
||||
# (false). Stage 2 (code2wav) sets true because its generation loop
|
||||
# is cudagraph-incompatible.
|
||||
# * Platform sections flip enforce_eager per-stage where platform
|
||||
# cudagraph support differs.
|
||||
async_chunk: true
|
||||
|
||||
connectors:
|
||||
connector_of_shared_memory:
|
||||
name: SharedMemoryConnector
|
||||
extra:
|
||||
codec_chunk_frames: 25
|
||||
codec_left_context_frames: 25
|
||||
|
||||
stages:
|
||||
- stage_id: 0
|
||||
gpu_memory_utilization: 0.9
|
||||
devices: "0"
|
||||
default_sampling_params:
|
||||
temperature: 0.4
|
||||
top_p: 0.9
|
||||
top_k: 1
|
||||
max_tokens: 2048
|
||||
seed: 42
|
||||
repetition_penalty: 1.05
|
||||
|
||||
- stage_id: 1
|
||||
gpu_memory_utilization: 0.6
|
||||
devices: "1"
|
||||
input_connectors:
|
||||
from_stage_0: connector_of_shared_memory
|
||||
default_sampling_params:
|
||||
temperature: 0.9
|
||||
top_k: 50
|
||||
max_tokens: 4096
|
||||
seed: 42
|
||||
repetition_penalty: 1.05
|
||||
|
||||
- stage_id: 2
|
||||
gpu_memory_utilization: 0.1
|
||||
max_num_seqs: 1
|
||||
enforce_eager: true
|
||||
async_scheduling: false
|
||||
max_num_batched_tokens: 51200
|
||||
devices: "1"
|
||||
input_connectors:
|
||||
from_stage_1: connector_of_shared_memory
|
||||
default_sampling_params:
|
||||
temperature: 0.0
|
||||
top_p: 1.0
|
||||
top_k: -1
|
||||
max_tokens: 65536
|
||||
seed: 42
|
||||
repetition_penalty: 1.1
|
||||
|
||||
platforms:
|
||||
npu:
|
||||
stages:
|
||||
- stage_id: 0
|
||||
gpu_memory_utilization: 0.6
|
||||
tensor_parallel_size: 2
|
||||
devices: "0,1"
|
||||
- stage_id: 1
|
||||
gpu_memory_utilization: 0.6
|
||||
enforce_eager: true
|
||||
devices: "2"
|
||||
- stage_id: 2
|
||||
gpu_memory_utilization: 0.3
|
||||
devices: "2"
|
||||
|
||||
rocm:
|
||||
stages:
|
||||
- stage_id: 0
|
||||
enforce_eager: true
|
||||
|
||||
xpu:
|
||||
stages:
|
||||
- stage_id: 0
|
||||
tensor_parallel_size: 4
|
||||
enforce_eager: true
|
||||
max_cudagraph_capture_size: 0
|
||||
devices: "0,1,2,3"
|
||||
- stage_id: 1
|
||||
enforce_eager: true
|
||||
max_cudagraph_capture_size: 0
|
||||
devices: "4"
|
||||
- stage_id: 2
|
||||
gpu_memory_utilization: 0.3
|
||||
max_cudagraph_capture_size: 0
|
||||
devices: "4"
|
||||
@@ -0,0 +1,81 @@
|
||||
# Qwen3-TTS deploy: talker → code2wav via shared-memory chunk streaming.
|
||||
# Verified on 1x H100.
|
||||
#
|
||||
# Fields omitted from a stage fall back to StageDeployConfig defaults (see
|
||||
# vllm_omni/config/stage_config.py). Notable choices for this model:
|
||||
# * Stage 0 (talker) sets max_num_batched_tokens=512 for async-chunk
|
||||
# latency tuning (not correctness) — small per-step batches keep
|
||||
# first-chunk latency low.
|
||||
# * Stage 1 (code2wav) sets max_num_batched_tokens=65536 for correctness:
|
||||
# codec prefill length (Q * num_frames) exceeds the 32k default.
|
||||
# * Stage 0 does not set enforce_eager — talker runs cudagraph by default.
|
||||
# Stage 1 sets true because its codec generation loop is not
|
||||
# cudagraph-compatible. NPU platform flips stage 0 to true where
|
||||
# cudagraph is not yet verified.
|
||||
async_chunk: true
|
||||
|
||||
connectors:
|
||||
connector_of_shared_memory:
|
||||
name: SharedMemoryConnector
|
||||
extra:
|
||||
shm_threshold_bytes: 65536
|
||||
codec_streaming: true
|
||||
connector_get_sleep_s: 0.01
|
||||
connector_get_max_wait_first_chunk: 3000
|
||||
connector_get_max_wait: 300
|
||||
# Must match the decoder sliding attention window.
|
||||
codec_chunk_frames: 25
|
||||
codec_left_context_frames: 72
|
||||
|
||||
stages:
|
||||
- stage_id: 0
|
||||
max_num_seqs: 10
|
||||
gpu_memory_utilization: 0.3
|
||||
async_scheduling: true
|
||||
max_num_batched_tokens: 512
|
||||
max_model_len: 4096
|
||||
devices: "0"
|
||||
output_connectors:
|
||||
to_stage_1: connector_of_shared_memory
|
||||
default_sampling_params:
|
||||
temperature: 0.9
|
||||
top_k: 50
|
||||
max_tokens: 4096
|
||||
seed: 42
|
||||
repetition_penalty: 1.05
|
||||
|
||||
- stage_id: 1
|
||||
max_num_seqs: 1
|
||||
gpu_memory_utilization: 0.3
|
||||
enforce_eager: true
|
||||
async_scheduling: true
|
||||
# Must be divisible by num_code_groups and cover (left_context + chunk).
|
||||
# Prefill length is Q * num_frames (e.g. 16 * 2148 = 34368); keep
|
||||
# headroom past 32k.
|
||||
max_num_batched_tokens: 65536
|
||||
# async_chunk appends windows per step; max_model_len must cover the
|
||||
# accumulated flat codec stream.
|
||||
max_model_len: 65536
|
||||
devices: "0"
|
||||
input_connectors:
|
||||
from_stage_0: connector_of_shared_memory
|
||||
default_sampling_params:
|
||||
temperature: 0.0
|
||||
top_p: 1.0
|
||||
top_k: -1
|
||||
max_tokens: 65536
|
||||
seed: 42
|
||||
repetition_penalty: 1.0
|
||||
|
||||
platforms:
|
||||
npu:
|
||||
stages:
|
||||
# NPU does not yet support async-scheduling for TTS, and the
|
||||
# talker fits at max_num_seqs=1 only.
|
||||
- stage_id: 0
|
||||
max_num_seqs: 1
|
||||
enforce_eager: true
|
||||
async_scheduling: false
|
||||
- stage_id: 1
|
||||
gpu_memory_utilization: 0.2
|
||||
async_scheduling: false
|
||||
Reference in new issue
Block a user