[Model] Optimize Qwen3-Omni MRv2 handoff, code prediction and audio decoding (#8223)

Signed-off-by: Sy03 <1370724210@qq.com>
This commit is contained in:
Sy03 authored and GitHub committed 2026-10-01 22:22:54 -07:00
1 parent 68003cf6ad
commit d93e1a8e09
35 files changed
+2363 -161

No files matched your search

+50
View File
@@ -0,0 +1,50 @@
# Opt-in CUDA Model Runner V2 profile for Qwen3-Omni-MoE: the Thinker (stage 0),
# Talker (stage 1) and Code2Wav (stage 2) run on MRv2 with its native data
# plane. The base profile keeps every stage on V1.
#
# On MRv2 the Thinker hands each generated token's embedding to the Talker with
# the step that sampled it (one Thinker step earlier than its next forward would
# capture the same embedding) and replays decode in FULL CUDA graphs together
# with the layers it captures for the Talker.
#
# When the stages share one GPU, run them under NVIDIA MPS (see
# docs/configuration/stage_configs.md); startup warns when no MPS server is found.
#
# MRv2 downstream stages support turn-based sessions only: realtime (resumable)
# requests and duplex sessions need the V1 chunk adapter.
base_config: qwen3_omni_moe.yaml
connectors:
connector_of_shared_memory:
extra:
# First Code2Wav chunk is the stream's first frame alone, then chunks
# double up to the steady codec_chunk_frames (replaces the 4-frame
# initial chunk). Code2Wav re-decodes up to codec_left_context_frames
# before each chunk, so windows are 1, 3, 7, 15, 31, then 50 frames.
# A one-frame first chunk is also what lets the Talker deliver it
# itself. Opt in explicitly; VLLM_OMNI_TALKER_FIRST_AUDIO=0 disables it.
talker_first_audio: true
codec_chunk_ramp: [1, 2, 4, 8, 16, 25]
# Code2Wav decodes a streaming step as a few length groups on multi-row
# CUDA graphs instead of one eager call padded to its longest window
# (with the ramp, over half of those padded frames were waste).
codec_graph_batch_sizes: [2, 3, 4, 6, 8, 12, 16]
codec_fused_snake: true
stages:
- stage_id: 0
model_runner: v2
- stage_id: 1
model_runner: v2
- stage_id: 2
model_runner: v2
platforms:
npu:
model_runner: v1
xpu:
model_runner: v1
rocm:
model_runner: v1
musa:
model_runner: v1
@@ -0,0 +1,27 @@
# Opt-in single-H200 MRv2 profile, measured at client concurrency 32/64.
# Run all stages under NVIDIA MPS and warm representative shapes first.
# Retains Triton MoE and native nucleus reductions, fusing only the final
# sampling mask/Gumbel selection. cuDNN searches convolution algorithms
# during warmup; short-KV attention and convolution selection change rounding.
# This is not a claim of bitwise audio or universal P99/throughput improvement.
# Evidence: docs/design/qwen3_omni_mrv2_performance.md
base_config: qwen3_omni_moe_mrv2.yaml
connectors:
connector_of_shared_memory:
extra:
code_predictor_kv_cache: true
code_predictor_short_kv: true
code_predictor_fused_sampling: true
codec_cudnn_benchmark: true
stages:
- stage_id: 0
devices: "0"
gpu_memory_utilization: 0.60
- stage_id: 1
devices: "0"
gpu_memory_utilization: 0.22
- stage_id: 2
devices: "0"
gpu_memory_utilization: 0.10