-
Notifications
You must be signed in to change notification settings - Fork 460
[Test] Add example test cases for omni online #1086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d64e604
新增omni example用例
c2f8b06
add example test
5fdb4b1
Merge branch 'vllm-project:main' into example
yenuo26 1d4f6a8
pre-commit
47c1e7d
pre-commit
84f6e59
Update tests/examples/online_serving/test_qwen2_5_omni.py
hsliuustc0106 33727c9
Merge branch 'main' into example
yenuo26 9483188
Refactor tests for improved clarity and performance
yenuo26 c024f15
Merge branch 'example' of https://github.com/yenuo26/vllm-omni into e…
yenuo26 e9d61e8
Update nightly test configuration to include additional Omni Model te…
yenuo26 a8271c9
Merge branch 'main' into example
yenuo26 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| # stage config for running qwen2.5-omni with architecture of OmniLLM. | ||
|
|
||
| # The following config has been verified on 2x 24GB GPU (L4/RTX3090/RTX4090). | ||
| # This config is optimized for CI e2e tests. | ||
| stage_args: | ||
| - stage_id: 0 | ||
| runtime: | ||
| process: true # Run this stage in a separate process | ||
| devices: "0" # Visible devices for this stage (CUDA_VISIBLE_DEVICES/torch.cuda.set_device) | ||
| max_batch_size: 1 | ||
| engine_args: | ||
| model_stage: thinker | ||
| model_arch: Qwen2_5OmniForConditionalGeneration | ||
| worker_cls: vllm_omni.worker.gpu_ar_worker.GPUARWorker | ||
| scheduler_cls: vllm_omni.core.sched.omni_ar_scheduler.OmniARScheduler | ||
| max_model_len: 32768 | ||
| max_num_batched_tokens: 32768 | ||
| max_num_seqs: 1 | ||
| gpu_memory_utilization: 0.8 | ||
| skip_mm_profiling: true | ||
| enforce_eager: true # Now we only support eager mode | ||
| trust_remote_code: true | ||
| engine_output_type: latent | ||
| enable_prefix_caching: false | ||
| is_comprehension: true | ||
| final_output: true | ||
| final_output_type: text | ||
| default_sampling_params: | ||
| temperature: 0.0 | ||
| top_p: 1.0 | ||
| top_k: -1 | ||
| max_tokens: 128 | ||
| seed: 42 | ||
| detokenize: True | ||
| repetition_penalty: 1.1 | ||
| - stage_id: 1 | ||
| runtime: | ||
| process: true | ||
| devices: "1" | ||
| max_batch_size: 1 | ||
| engine_args: | ||
| model_stage: talker | ||
| model_arch: Qwen2_5OmniForConditionalGeneration | ||
| worker_cls: vllm_omni.worker.gpu_ar_worker.GPUARWorker | ||
| scheduler_cls: vllm_omni.core.sched.omni_ar_scheduler.OmniARScheduler | ||
| max_model_len: 32768 | ||
| max_num_batched_tokens: 32768 | ||
| max_num_seqs: 1 | ||
| gpu_memory_utilization: 0.8 | ||
| skip_mm_profiling: true | ||
| enforce_eager: true | ||
| trust_remote_code: true | ||
| enable_prefix_caching: false | ||
| engine_output_type: latent | ||
| engine_input_source: [0] | ||
| custom_process_input_func: vllm_omni.model_executor.stage_input_processors.qwen2_5_omni.thinker2talker | ||
| default_sampling_params: | ||
| temperature: 0.9 | ||
| top_p: 0.8 | ||
| top_k: 40 | ||
| max_tokens: 128 | ||
| seed: 42 | ||
| detokenize: True | ||
| repetition_penalty: 1.05 | ||
| stop_token_ids: [8294] | ||
| - stage_id: 2 | ||
| runtime: | ||
| process: true | ||
| devices: "0" # Example: use a different GPU than the previous stage; use "0" if single GPU | ||
| max_batch_size: 1 | ||
| engine_args: | ||
| model_stage: code2wav | ||
| model_arch: Qwen2_5OmniForConditionalGeneration | ||
| worker_cls: vllm_omni.worker.gpu_generation_worker.GPUGenerationWorker | ||
| scheduler_cls: vllm_omni.core.sched.omni_generation_scheduler.OmniGenerationScheduler | ||
| gpu_memory_utilization: 0.15 | ||
| enforce_eager: true | ||
| trust_remote_code: true | ||
| enable_prefix_caching: false | ||
| engine_output_type: audio | ||
| max_num_batched_tokens: 4069 | ||
| engine_input_source: [1] | ||
| final_output: true | ||
| final_output_type: audio | ||
| default_sampling_params: | ||
| temperature: 0.0 | ||
| top_p: 1.0 | ||
| top_k: -1 | ||
| max_tokens: 128 | ||
| seed: 42 | ||
| detokenize: True | ||
| repetition_penalty: 1.1 | ||
|
|
||
| # Top-level runtime config (concise): default windows and stage edges | ||
| runtime: | ||
| enabled: true | ||
| defaults: | ||
| window_size: -1 # Simplified: trigger downstream only after full upstream completion | ||
| max_inflight: 1 # Simplified: process serially within each stage | ||
| edges: | ||
| - from: 0 # thinker → talker: trigger only after receiving full input (-1) | ||
| to: 1 | ||
| window_size: -1 | ||
| - from: 1 # talker → code2wav: trigger only after receiving full input (-1) | ||
| to: 2 | ||
| window_size: -1 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.