|
| 1 | +# Stage config for running Qwen3-Omni-MoE with 3-stage architecture |
| 2 | +# Stage 0: Thinker (multimodal understanding + text generation) |
| 3 | +# Stage 1: Talker (text embeddings → 8-layer RVQ codec codes) |
| 4 | +# Stage 2: Code2Wav (8-layer RVQ codes → audio waveform) |
| 5 | + |
| 6 | +# The following config has been verified on 4x 1550-64G XPUs. |
| 7 | +stage_args: |
| 8 | + - stage_id: 0 |
| 9 | + stage_type: llm # Use llm stage type to launch OmniLLM |
| 10 | + runtime: |
| 11 | + devices: "0,1" |
| 12 | + max_batch_size: 1 |
| 13 | + engine_args: |
| 14 | + model_stage: thinker |
| 15 | + model_arch: Qwen3OmniMoeForConditionalGeneration |
| 16 | + worker_type: ar |
| 17 | + scheduler_cls: vllm_omni.core.sched.omni_ar_scheduler.OmniARScheduler |
| 18 | + gpu_memory_utilization: 0.8 |
| 19 | + enforce_eager: true |
| 20 | + trust_remote_code: true |
| 21 | + engine_output_type: latent # Output hidden states for talker |
| 22 | + distributed_executor_backend: "mp" |
| 23 | + enable_prefix_caching: false |
| 24 | + max_num_batched_tokens: 32768 |
| 25 | + hf_config_name: thinker_config |
| 26 | + tensor_parallel_size: 2 |
| 27 | + final_output: true |
| 28 | + final_output_type: text |
| 29 | + is_comprehension: true |
| 30 | + default_sampling_params: |
| 31 | + temperature: 0.4 |
| 32 | + top_p: 0.9 |
| 33 | + top_k: 1 |
| 34 | + max_tokens: 2048 |
| 35 | + seed: 42 |
| 36 | + detokenize: True |
| 37 | + repetition_penalty: 1.05 |
| 38 | + |
| 39 | + - stage_id: 1 |
| 40 | + stage_type: llm # Use llm stage type to launch OmniLLM |
| 41 | + runtime: |
| 42 | + devices: "2" |
| 43 | + max_batch_size: 1 |
| 44 | + engine_args: |
| 45 | + model_stage: talker |
| 46 | + model_arch: Qwen3OmniMoeForConditionalGeneration |
| 47 | + worker_type: ar |
| 48 | + scheduler_cls: vllm_omni.core.sched.omni_ar_scheduler.OmniARScheduler |
| 49 | + gpu_memory_utilization: 0.3 |
| 50 | + enforce_eager: true |
| 51 | + trust_remote_code: true |
| 52 | + engine_output_type: latent # Output codec codes for code2wav |
| 53 | + enable_prefix_caching: false |
| 54 | + max_num_batched_tokens: 32768 |
| 55 | + distributed_executor_backend: "mp" |
| 56 | + hf_config_name: talker_config |
| 57 | + engine_input_source: [0] |
| 58 | + custom_process_input_func: vllm_omni.model_executor.stage_input_processors.qwen3_omni.thinker2talker |
| 59 | + # final_output: true |
| 60 | + # final_output_type: text |
| 61 | + default_sampling_params: |
| 62 | + temperature: 0.9 |
| 63 | + top_k: 50 |
| 64 | + max_tokens: 4096 |
| 65 | + seed: 42 |
| 66 | + detokenize: False |
| 67 | + repetition_penalty: 1.05 |
| 68 | + stop_token_ids: [2150] |
| 69 | + |
| 70 | + - stage_id: 2 |
| 71 | + stage_type: llm # Use llm stage type to launch OmniLLM |
| 72 | + runtime: |
| 73 | + devices: "3" |
| 74 | + max_batch_size: 1 |
| 75 | + engine_args: |
| 76 | + model_stage: code2wav |
| 77 | + model_arch: Qwen3OmniMoeForConditionalGeneration |
| 78 | + worker_type: generation |
| 79 | + scheduler_cls: vllm_omni.core.sched.omni_generation_scheduler.OmniGenerationScheduler |
| 80 | + enforce_eager: true |
| 81 | + trust_remote_code: true |
| 82 | + enable_prefix_caching: false |
| 83 | + engine_output_type: audio # Final output: audio waveform |
| 84 | + gpu_memory_utilization: 0.1 |
| 85 | + distributed_executor_backend: "mp" |
| 86 | + max_num_batched_tokens: 1000000 |
| 87 | + hf_config_name: thinker_config |
| 88 | + engine_input_source: [1] |
| 89 | + custom_process_input_func: vllm_omni.model_executor.stage_input_processors.qwen3_omni.talker2code2wav |
| 90 | + final_output: true |
| 91 | + final_output_type: audio |
| 92 | + default_sampling_params: |
| 93 | + temperature: 0.0 |
| 94 | + top_p: 1.0 |
| 95 | + top_k: -1 |
| 96 | + max_tokens: 65536 |
| 97 | + seed: 42 |
| 98 | + detokenize: True |
| 99 | + repetition_penalty: 1.1 |
0 commit comments