[Edge][WP1] Add edge deploy profile and deploy_profile selector
* vllm_omni/deploy/edge/qwen3_tts.yaml: single-device Qwen3-TTS profile with a ramped codec chunk schedule (2->4->8->16->25 frames) that removes the ~80 ms playback stall of the default 1->25 schedule, decode batch 1, max_num_seqs 4. * deploy_profile="edge" (Omni/AsyncOmni kwarg, --deploy-profile CLI, headless serve) resolves vllm_omni/deploy/<profile>/<model_type>.yaml; mutually exclusive with deploy_config; explicit profiles never fall back silently. * tests/helpers/stage_config.py: modify_stage_config anchors a relative base_config before writing the temp YAML so overlay-derived configs resolve. * async_omni_engine.py also carries the init-timeline hooks used by WP2. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
b70207f57f
commit
b22dcc59f7
7 files changed
+278
No files matched your search
@@ -0,0 +1,47 @@
|
||||
# Qwen3-TTS edge profile: single device, small batch, ramped codec chunks.
|
||||
#
|
||||
# Select with ``Omni(model=..., deploy_profile="edge")`` or ``vllm serve --omni
|
||||
# --deploy-profile edge``. Inherits everything from ../qwen3_tts.yaml; only the
|
||||
# keys below differ. Top-level blocks other than ``stages``/``platforms`` are
|
||||
# replaced wholesale by the overlay merge, so ``connectors`` is restated.
|
||||
#
|
||||
# Why these values (see benchmarks/tts/edge_results and analysis/experiments.md):
|
||||
# * The default schedule emits 1 frame (80 ms) first and the next 25-frame
|
||||
# chunk ~160 ms later, which stalls a player that starts at first audio by
|
||||
# ~80 ms. ``codec_chunk_ramp`` grows chunks 2 -> 4 -> 8 -> 16 -> 25 frames so
|
||||
# the audio buffered ahead always exceeds the wait for the next chunk.
|
||||
# * ``decode_batch_max_size: 1`` and ``max_num_seqs: 4`` size the decoder and
|
||||
# scheduler for 1-4 concurrent utterances instead of 64.
|
||||
# * Both stages share logical device "0" (one GPU). Memory fractions are
|
||||
# what the two 0.6B/1.7B stages actually need with these limits, not the
|
||||
# server defaults; raise stage 1 if the KV-profile log reports OOM.
|
||||
# * ``enforce_eager`` / ``parallel_stage_init`` are intentionally not set
|
||||
# here yet; benchmarks/tts/init_profile.py results decide them (WP2).
|
||||
base_config: ../qwen3_tts.yaml
|
||||
async_chunk: true
|
||||
|
||||
connectors:
|
||||
connector_of_shared_memory:
|
||||
name: SharedMemoryConnector
|
||||
extra:
|
||||
codec_streaming: true
|
||||
connector_get_sleep_s: 0.01
|
||||
connector_get_max_wait_first_chunk: 3000
|
||||
connector_get_max_wait: 300
|
||||
codec_chunk_frames: 25
|
||||
codec_left_context_frames: 72
|
||||
# Ramp overrides initial_codec_chunk_frames; last entry == codec_chunk_frames.
|
||||
codec_chunk_ramp: [2, 4, 8, 16, 25]
|
||||
decode_batch_max_size: 1
|
||||
|
||||
stages:
|
||||
- stage_id: 0
|
||||
max_num_seqs: 4
|
||||
gpu_memory_utilization: 0.25
|
||||
# Small per-step batches keep first-chunk latency low at edge concurrency.
|
||||
max_num_batched_tokens: 512
|
||||
devices: "0"
|
||||
- stage_id: 1
|
||||
max_num_seqs: 4
|
||||
gpu_memory_utilization: 0.15
|
||||
devices: "0"
|
||||
Reference in new issue
Block a user