[CI/Build] Share nightly CUDA YAML between H100/L4 and B200 (#7028)

Signed-off-by: wangyu <410167048@qq.com>
Signed-off-by: [Your Name] [Your Email]
Signed-off-by: [Your Name] <your.email@example.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: amy-why-3459 <wuhaiyan17@huawei.com>
This commit is contained in:
authored and GitHub committed 2026-09-14 14:27:10 +08:00
1 parent 58adeec05f
commit 64903b8e30
78 files changed
+437 -321

No files matched your search

@@ -329,6 +329,7 @@ source_file_dependencies:
- *qwen_image - *qwen_image
- tests/e2e/online_serving/test_qwen_image.py - tests/e2e/online_serving/test_qwen_image.py
- tests/e2e/online_serving/test_qwen_image_expansion.py - tests/e2e/online_serving/test_qwen_image_expansion.py
- tests/e2e/offline_inference/test_qwen_image_autoround_w4a16_expansion.py
diffusion_qwen_image_accuracy: diffusion_qwen_image_accuracy:
- *qwen_image - *qwen_image
@@ -417,6 +418,11 @@ source_file_dependencies:
- tests/e2e/online_serving/test_z_image.py - tests/e2e/online_serving/test_z_image.py
- tests/e2e/online_serving/test_zimage_expansion.py - tests/e2e/online_serving/test_zimage_expansion.py
diffusion_sana_video_function:
- *sana_video
- tests/e2e/online_serving/test_sana_video_expansion.py
- tests/e2e/accuracy/sana_video/
diffusion_stable_audio_function: diffusion_stable_audio_function:
- *stable_audio - *stable_audio
- tests/e2e/offline_inference/test_stable_audio_expansion.py - tests/e2e/offline_inference/test_stable_audio_expansion.py
+58 -109
View File
@@ -35,23 +35,20 @@ steps:
source_file_dependencies: omni_minicpmo_4_5_duplex_function source_file_dependencies: omni_minicpmo_4_5_duplex_function
timeout_in_minutes: 50 timeout_in_minutes: 50
commands: commands:
- pytest -s -v tests/e2e/online_serving/test_minicpmo_4_5_duplex_expansion.py -m "full_model and cuda and H100 and omni and cards_1" --run-level "full_model" - pytest -s -v tests/e2e/online_serving/test_minicpmo_4_5_duplex_expansion.py -m "full_model and cuda and H100 and B200 and omni and cards_1" --run-level "full_model"
mirror_hardwares: h100_1
- label: ":full_moon: Omni · Doc Test with L4 · 4-GPU" - label: ":full_moon: Omni · Doc Test with L4 · 4-GPU"
source_file_dependencies: omni_qwen2_5_omni_doc source_file_dependencies: omni_qwen2_5_omni_doc
timeout_in_minutes: 90 timeout_in_minutes: 90
commands: commands:
- export VLLM_ALLOW_LONG_MAX_MODEL_LEN="1" - export VLLM_ALLOW_LONG_MAX_MODEL_LEN="1"
- pytest -s -v tests/examples/ -m "full_model and omni and L4 and cards_4" --run-level "full_model" - pytest -s -v tests/examples/ -m "full_model and omni and L4 and B200 and cards_4" --run-level "full_model"
mirror_hardwares: l4_4
- label: ":full_moon: Omni · Doc Test with H100 · 2-GPU" - label: ":full_moon: Omni · Doc Test with H100 · 2-GPU"
source_file_dependencies: omni_qwen3_omni_doc source_file_dependencies: omni_qwen3_omni_doc
timeout_in_minutes: 90 timeout_in_minutes: 90
commands: commands:
- pytest -s -v tests/examples/ -m "full_model and omni and H100 and cards_2" --run-level "full_model" - pytest -s -v tests/examples/ -m "full_model and omni and H100 and B200 and cards_2" --run-level "full_model"
mirror_hardwares: h100_2
- label: ":full_moon: Omni · Accuracy Test" - label: ":full_moon: Omni · Accuracy Test"
source_file_dependencies: omni_qwen3_omni_accuracy source_file_dependencies: omni_qwen3_omni_accuracy
@@ -61,11 +58,10 @@ steps:
- export SEED_TTS_EVAL_DEVICE=cuda:1 - export SEED_TTS_EVAL_DEVICE=cuda:1
- | - |
set +e set +e
pytest -s -v tests/e2e/accuracy/qwen3_omni/test_qwen3_omni.py -m "full_model" --run-level full_model pytest -s -v tests/e2e/accuracy/qwen3_omni/test_qwen3_omni.py -m "full_model and H100 and B200 and cards_2" --run-level full_model
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/e2e/accuracy/qwen3_omni/results/qwen_omni_acc/*.json" buildkite-agent artifact upload "tests/e2e/accuracy/qwen3_omni/results/qwen_omni_acc/*.json"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_2
- label: ":full_moon: Omni · MiniCPM-o 4.5 · Accuracy Test" - label: ":full_moon: Omni · MiniCPM-o 4.5 · Accuracy Test"
source_file_dependencies: omni_minicpmo_4_5_accuracy source_file_dependencies: omni_minicpmo_4_5_accuracy
@@ -75,11 +71,10 @@ steps:
- export SEED_TTS_EVAL_DEVICE=cuda:1 - export SEED_TTS_EVAL_DEVICE=cuda:1
- | - |
set +e set +e
pytest -s -v tests/e2e/accuracy/minicpmo_4_5/test_minicpmo_4_5.py -m "full_model and cuda" --run-level full_model pytest -s -v tests/e2e/accuracy/minicpmo_4_5/test_minicpmo_4_5.py -m "full_model and H100 and B200 and cuda and (cards_1 or cards_2)" --run-level full_model
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/e2e/accuracy/minicpmo_4_5/results/*.json" buildkite-agent artifact upload "tests/e2e/accuracy/minicpmo_4_5/results/*.json"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_2
- label: ":full_moon: Omni · Perf Test · No Async Chunk" - label: ":full_moon: Omni · Perf Test · No Async Chunk"
source_file_dependencies: omni_qwen3_omni_perf source_file_dependencies: omni_qwen3_omni_perf
@@ -89,11 +84,10 @@ steps:
- export BENCHMARK_DIR=tests/dfx/perf/results - export BENCHMARK_DIR=tests/dfx/perf/results
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_qwen3_omni_no_async_chunk.json pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_qwen3_omni_no_async_chunk.json -m "H100 and B200 and cards_2"
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/*.json" buildkite-agent artifact upload "tests/dfx/perf/results/*.json"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_2
- label: ":full_moon: Omni · Perf Test · Async Chunk" - label: ":full_moon: Omni · Perf Test · Async Chunk"
source_file_dependencies: omni_qwen3_omni_perf source_file_dependencies: omni_qwen3_omni_perf
@@ -103,11 +97,10 @@ steps:
- export BENCHMARK_DIR=tests/dfx/perf/results - export BENCHMARK_DIR=tests/dfx/perf/results
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_qwen3_omni_async_chunk.json -m "H100 and full_model" pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_qwen3_omni_async_chunk.json -m "H100 and B200 and full_model and cards_2"
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/*.json" buildkite-agent artifact upload "tests/dfx/perf/results/*.json"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_2
- label: ":full_moon: Omni · MiniCPM-o 4.5 · Perf Test" - label: ":full_moon: Omni · MiniCPM-o 4.5 · Perf Test"
source_file_dependencies: omni_minicpmo_4_5_perf source_file_dependencies: omni_minicpmo_4_5_perf
@@ -117,11 +110,10 @@ steps:
- export BENCHMARK_DIR=tests/dfx/perf/results - export BENCHMARK_DIR=tests/dfx/perf/results
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_minicpmo_4_5.json -m "H100 and cards_1" pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_minicpmo_4_5.json -m "H100 and B200 and cards_1"
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/*.json" buildkite-agent artifact upload "tests/dfx/perf/results/*.json"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_1
- label: ":full_moon: Omni · MiniCPM-o 4.5 · Duplex Seed-TTS Perf Test" - label: ":full_moon: Omni · MiniCPM-o 4.5 · Duplex Seed-TTS Perf Test"
source_file_dependencies: omni_minicpmo_4_5_duplex_perf source_file_dependencies: omni_minicpmo_4_5_duplex_perf
@@ -131,18 +123,16 @@ steps:
- export BENCHMARK_DIR=tests/dfx/perf/results - export BENCHMARK_DIR=tests/dfx/perf/results
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_minicpmo_4_5_duplex_seed_tts.json pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_minicpmo_4_5_duplex_seed_tts.json -m "H100 and B200 and cards_1"
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/*.json" buildkite-agent artifact upload "tests/dfx/perf/results/*.json"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_1
- label: ":full_moon: Omni · Multi-Replica Startup Test with 4x H100" - label: ":full_moon: Omni · Multi-Replica Startup Test with 4x H100"
source_file_dependencies: omni_qwen3_omni_function source_file_dependencies: omni_qwen3_omni_function
timeout_in_minutes: 45 timeout_in_minutes: 45
commands: commands:
- pytest -s -v tests/e2e/online_serving/test_qwen3_omni_multi_replicas.py -m "full_model" --run-level "core_model" - pytest -s -v tests/e2e/online_serving/test_qwen3_omni_multi_replicas.py -m "full_model and H100 and B200 and cards_4" --run-level "core_model"
mirror_hardwares: h100_4
- group: ":card_index_dividers: TTS Model Test" - group: ":card_index_dividers: TTS Model Test"
key: nightly-tts-test-group key: nightly-tts-test-group
@@ -157,8 +147,7 @@ steps:
- export VLLM_ALLOW_LONG_MAX_MODEL_LEN="1" - export VLLM_ALLOW_LONG_MAX_MODEL_LEN="1"
- export VLLM_USE_DEEP_GEMM="0" - export VLLM_USE_DEEP_GEMM="0"
- export VLLM_MOE_USE_DEEP_GEMM="0" - export VLLM_MOE_USE_DEEP_GEMM="0"
- pytest -s -v tests/e2e/ -m "full_model and L4 and tts" --run-level "full_model" --ignore=tests/e2e/accuracy - pytest -s -v tests/e2e/ -m "full_model and L4 and B200 and tts and cards_1" --run-level "full_model" --ignore=tests/e2e/accuracy
mirror_hardwares: l4_1
- label: ":full_moon: TTS · Perf Test · Single-GPU" - label: ":full_moon: TTS · Perf Test · Single-GPU"
source_file_dependencies: tts_qwen3_tts_perf source_file_dependencies: tts_qwen3_tts_perf
@@ -169,11 +158,10 @@ steps:
- export VLLM_ALLOW_LONG_MAX_MODEL_LEN="1" - export VLLM_ALLOW_LONG_MAX_MODEL_LEN="1"
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_tts.json -m "H100 and cards_1" pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_tts.json -m "H100 and B200 and cards_1"
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/*.json" buildkite-agent artifact upload "tests/dfx/perf/results/*.json"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_1
- label: ":full_moon: TTS · Perf Test · 2-GPU" - label: ":full_moon: TTS · Perf Test · 2-GPU"
source_file_dependencies: tts_qwen3_tts_perf source_file_dependencies: tts_qwen3_tts_perf
@@ -184,11 +172,10 @@ steps:
- export VLLM_ALLOW_LONG_MAX_MODEL_LEN="1" - export VLLM_ALLOW_LONG_MAX_MODEL_LEN="1"
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_tts.json -m "H100 and cards_2" pytest -s -v tests/dfx/perf/scripts/run_benchmark.py --test-config-file tests/dfx/perf/tests/test_tts.json -m "H100 and B200 and cards_2"
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/*.json" buildkite-agent artifact upload "tests/dfx/perf/results/*.json"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_2
- group: ":card_index_dividers: Tiny Model Tests [Multi-GPU]" - group: ":card_index_dividers: Tiny Model Tests [Multi-GPU]"
key: nightly-tiny-model-test-group key: nightly-tiny-model-test-group
@@ -209,16 +196,14 @@ steps:
# for the CI, since these tests should pass irrespective of whether or not we use # for the CI, since these tests should pass irrespective of whether or not we use
# the full weights or not. # the full weights or not.
commands: commands:
- pytest -sv tests/model_tests/diffusion -m 'full_model and cuda and cards_2' --run-level "core_model" - pytest -sv tests/model_tests/diffusion -m 'full_model and L4 and B200 and cuda and cards_2' --run-level "core_model"
mirror_hardwares: l4_2
- label: ":full_moon: Tiny Model Tests · Diffusion (Multi-GPU accelerations) · 4-GPU" - label: ":full_moon: Tiny Model Tests · Diffusion (Multi-GPU accelerations) · 4-GPU"
source_file_dependencies: diffusion_tiny_model source_file_dependencies: diffusion_tiny_model
timeout_in_minutes: 30 timeout_in_minutes: 30
# CFG+TP extra_test_groups request 2×2=4 devices (see get_required_device_count). # CFG+TP extra_test_groups request 2×2=4 devices (see get_required_device_count).
commands: commands:
- pytest -sv tests/model_tests/diffusion -m 'full_model and cuda and cards_4' --run-level "core_model" - pytest -sv tests/model_tests/diffusion -m 'full_model and L4 and B200 and cuda and cards_4' --run-level "core_model"
mirror_hardwares: l4_4
- group: ":card_index_dividers: Diffusion X2I(&A&T) Model Test" - group: ":card_index_dividers: Diffusion X2I(&A&T) Model Test"
key: nightly-diffusion-x2iat-group key: nightly-diffusion-x2iat-group
@@ -235,9 +220,8 @@ steps:
- >- - >-
pytest -sv pytest -sv
tests/e2e/online_serving/test_qwen_image_expansion.py tests/e2e/online_serving/test_qwen_image_expansion.py
-m "full_model and diffusion and H100 and cards_1" -m "full_model and diffusion and H100 and B200 and cards_1"
--run-level "full_model" --run-level "full_model"
mirror_hardwares: h100_1
- label: ":full_moon: Diffusion X2I(&A&T) · Function Test with H100 · 2-GPU" - label: ":full_moon: Diffusion X2I(&A&T) · Function Test with H100 · 2-GPU"
source_file_dependencies: diffusion_qwen_image_function source_file_dependencies: diffusion_qwen_image_function
@@ -246,36 +230,29 @@ steps:
- >- - >-
pytest -sv pytest -sv
tests/e2e/online_serving/test_qwen_image_expansion.py tests/e2e/online_serving/test_qwen_image_expansion.py
-m "full_model and diffusion and H100 and cards_2" -m "full_model and diffusion and H100 and B200 and cards_2"
--run-level "full_model" --run-level "full_model"
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion X2I(&A&T) · Z-Image Function Test · L4 · 4-GPU" - label: ":full_moon: Diffusion X2I(&A&T) · Function Test with L4 · Single-GPU"
source_file_dependencies: diffusion_z_image_function source_file_dependencies: diffusion_qwen_image_function
timeout_in_minutes: 120 timeout_in_minutes: 120
commands: commands:
- >- - pytest -sv tests/e2e/offline_inference/test_qwen_image_autoround_w4a16_expansion.py -m "full_model and diffusion and L4 and B200 and cards_1" --run-level "full_model"
pytest -sv
tests/e2e/online_serving/test_zimage_expansion.py
-m "full_model and diffusion and L4 and cards_4"
--run-level "full_model"
mirror_hardwares: l4_4
- label: ":full_moon: Diffusion X2I(&A&T) · Doc Test" - label: ":full_moon: Diffusion X2I(&A&T) · Doc Test"
source_file_dependencies: diffusion_text_to_image_doc source_file_dependencies: diffusion_text_to_image_doc
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pytest -s -v tests/examples/*/test_text_to_image.py -m "full_model and example and H100" --run-level "full_model" - pytest -s -v tests/examples/*/test_text_to_image.py -m "full_model and example and H100 and B200 and (cards_1 or cards_2)" --run-level "full_model"
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion X2I(&A&T) · Accuracy Test" - label: ":full_moon: Diffusion X2I(&A&T) · Accuracy Test"
source_file_dependencies: diffusion_qwen_image_accuracy source_file_dependencies: diffusion_qwen_image_accuracy
timeout_in_minutes: 180 timeout_in_minutes: 180
commands: commands:
- export VLLM_HTTP_TIMEOUT_KEEP_ALIVE=120 - export VLLM_HTTP_TIMEOUT_KEEP_ALIVE=120
- pytest -s -v tests/e2e/accuracy/test_qwen_image.py --run-level full_model - pytest -s -v tests/e2e/accuracy/test_qwen_image.py -m "H100 and B200 and cards_1" --run-level full_model
- pytest -s -v tests/e2e/accuracy/test_diffusers_backend_similarity.py -k '2i_matches_diffusers' -m full_model --run-level full_model - pytest -s -v tests/e2e/accuracy/test_diffusers_backend_similarity.py -k '2i_matches_diffusers' -m "full_model and H100 and B200 and cards_1" --run-level full_model
mirror_hardwares: h100_1
- label: ":full_moon: HunyuanImage3-DIT · Accuracy Test" - label: ":full_moon: HunyuanImage3-DIT · Accuracy Test"
source_file_dependencies: diffusion_hunyuan_image3_accuracy source_file_dependencies: diffusion_hunyuan_image3_accuracy
@@ -283,8 +260,7 @@ steps:
commands: commands:
- export HUNYUAN_IMAGE3_MODEL="tencent/HunyuanImage-3.0-Instruct" - export HUNYUAN_IMAGE3_MODEL="tencent/HunyuanImage-3.0-Instruct"
- export HUNYUAN_IMAGE3_DEVICES="0,1,2,3" - export HUNYUAN_IMAGE3_DEVICES="0,1,2,3"
- pytest -s -v tests/e2e/accuracy/test_hunyuan_image3_pixel_accuracy.py -m full_model --run-level full_model - pytest -s -v tests/e2e/accuracy/test_hunyuan_image3_pixel_accuracy.py -m "full_model and H100 and B200 and cards_4" --run-level full_model
mirror_hardwares: h100_4
- label: ":full_moon: Diffusion X2I(&A&T) · Perf Test · Qwen-Image · Single-GPU" - label: ":full_moon: Diffusion X2I(&A&T) · Perf Test · Qwen-Image · Single-GPU"
source_file_dependencies: diffusion_qwen_image_perf source_file_dependencies: diffusion_qwen_image_perf
@@ -295,12 +271,11 @@ steps:
- export CACHE_DIT_VERSION=1.5.0 - export CACHE_DIT_VERSION=1.5.0
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_qwen_image_vllm_omni.json -m "H100 and cards_1" pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_qwen_image_vllm_omni.json -m "H100 and B200 and cards_1"
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json" buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json"
buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log" buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_1
- label: ":full_moon: Diffusion X2I(&A&T) · Perf Test · Qwen-Image · 4-GPU" - label: ":full_moon: Diffusion X2I(&A&T) · Perf Test · Qwen-Image · 4-GPU"
source_file_dependencies: diffusion_qwen_image_perf source_file_dependencies: diffusion_qwen_image_perf
@@ -308,16 +283,16 @@ steps:
timeout_in_minutes: 180 timeout_in_minutes: 180
commands: commands:
- export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results - export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results
- export DIFFUSION_ATTENTION_BACKEND=FLASH_ATTN
- export CACHE_DIT_VERSION=1.5.0 - export CACHE_DIT_VERSION=1.5.0
# Do not pin DIFFUSION_ATTENTION_BACKEND: H100 auto-selects FLASH_ATTN;
# B200 rejects explicit FLASH_ATTN without FA4 and uses CUDNN/TRTLLM.
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_qwen_image_vllm_omni.json -m "H100 and cards_4" pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_qwen_image_vllm_omni.json -m "H100 and B200 and cards_4"
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json" buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json"
buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log" buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_4
- group: ":card_index_dividers: Diffusion X2V Model Test" - group: ":card_index_dividers: Diffusion X2V Model Test"
key: nightly-diffusion-x2v-group key: nightly-diffusion-x2v-group
@@ -331,36 +306,31 @@ steps:
source_file_dependencies: diffusion_wan22_function source_file_dependencies: diffusion_wan22_function
timeout_in_minutes: 90 timeout_in_minutes: 90
commands: commands:
- pytest -s -v tests/e2e/online_serving/test_wan22_expansion.py -k "t2v" -m "full_model and cuda and H100 and cards_1" --run-level "full_model" - pytest -s -v tests/e2e/online_serving/test_wan22_expansion.py -k "t2v" -m "full_model and cuda and H100 and B200 and cards_1" --run-level "full_model"
mirror_hardwares: h100_1
- label: ":full_moon: Diffusion X2V · Wan2.2 T2V Function Test · 2-GPU" - label: ":full_moon: Diffusion X2V · Wan2.2 T2V Function Test · 2-GPU"
source_file_dependencies: diffusion_wan22_function source_file_dependencies: diffusion_wan22_function
timeout_in_minutes: 90 timeout_in_minutes: 90
commands: commands:
- pytest -s -v tests/e2e/online_serving/test_wan22_expansion.py -k "t2v" -m "full_model and cuda and H100 and cards_2" --run-level "full_model" - pytest -s -v tests/e2e/online_serving/test_wan22_expansion.py -k "t2v" -m "full_model and cuda and H100 and B200 and cards_2" --run-level "full_model"
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion X2V · Wan2.2 I2V/TI2V Function Test · Single-GPU" - label: ":full_moon: Diffusion X2V · Wan2.2 I2V/TI2V Function Test · Single-GPU"
source_file_dependencies: diffusion_wan22_function source_file_dependencies: diffusion_wan22_function
timeout_in_minutes: 90 timeout_in_minutes: 90
commands: commands:
- pytest -s -v tests/e2e/online_serving/test_wan22_expansion.py -k "i2v" -m "full_model and cuda and H100 and cards_1" --run-level "full_model" - pytest -s -v tests/e2e/online_serving/test_wan22_expansion.py -k "i2v" -m "full_model and cuda and H100 and B200 and cards_1" --run-level "full_model"
mirror_hardwares: h100_1
- label: ":full_moon: Diffusion X2V · Wan2.2 I2V/TI2V Function Test · 2-GPU" - label: ":full_moon: Diffusion X2V · Wan2.2 I2V/TI2V Function Test · 2-GPU"
source_file_dependencies: diffusion_wan22_function source_file_dependencies: diffusion_wan22_function
timeout_in_minutes: 90 timeout_in_minutes: 90
commands: commands:
- pytest -s -v tests/e2e/online_serving/test_wan22_expansion.py -k "i2v" -m "full_model and cuda and H100 and cards_2" --run-level "full_model" - pytest -s -v tests/e2e/online_serving/test_wan22_expansion.py -k "i2v" -m "full_model and cuda and H100 and B200 and cards_2" --run-level "full_model"
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion X2V · HunyuanVideo-1.5 Function Test" - label: ":full_moon: Diffusion X2V · HunyuanVideo-1.5 Function Test"
source_file_dependencies: diffusion_hunyuan_video_function source_file_dependencies: diffusion_hunyuan_video_function
timeout_in_minutes: 90 timeout_in_minutes: 90
commands: commands:
- pytest -s -v tests/e2e/online_serving/test_hunyuan_video_15_expansion.py -m "full_model and cuda" --run-level "full_model" - pytest -s -v tests/e2e/online_serving/test_hunyuan_video_15_expansion.py -m "full_model and H100 and B200 and cuda and (cards_1 or cards_2)" --run-level "full_model"
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion X2V · LingBot Function Test" - label: ":full_moon: Diffusion X2V · LingBot Function Test"
source_file_dependencies: diffusion_lingbot_function source_file_dependencies: diffusion_lingbot_function
@@ -371,23 +341,20 @@ steps:
tests/e2e/online_serving/test_lingbot_video.py tests/e2e/online_serving/test_lingbot_video.py
tests/e2e/online_serving/test_lingbot_video_moe.py tests/e2e/online_serving/test_lingbot_video_moe.py
tests/e2e/offline_inference/test_lingbot_world_v2.py tests/e2e/offline_inference/test_lingbot_world_v2.py
-m "full_model and diffusion and H100 and cards_1" -m "full_model and diffusion and H100 and B200 and cards_1"
--run-level "full_model" --run-level "full_model"
mirror_hardwares: h100_1
- label: ":full_moon: Diffusion X2V · Doc Test" - label: ":full_moon: Diffusion X2V · Doc Test"
source_file_dependencies: diffusion_image_to_video_doc source_file_dependencies: diffusion_image_to_video_doc
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pytest -s -v tests/examples/offline_inference/test_image_to_video.py -m "full_model and example and H100" --run-level "full_model" - pytest -s -v tests/examples/offline_inference/test_image_to_video.py -m "full_model and example and H100 and B200 and cards_1" --run-level "full_model"
mirror_hardwares: h100_1
- label: ":full_moon: Diffusion X2V · Wan2.2 Autoround Function Test" - label: ":full_moon: Diffusion X2V · Wan2.2 Autoround Function Test"
source_file_dependencies: diffusion_wan22_function source_file_dependencies: diffusion_wan22_function
timeout_in_minutes: 90 timeout_in_minutes: 90
commands: commands:
- pytest -s -v tests/e2e/offline_inference/test_wan22_autoround_w4a16_expansion.py -m "full_model and cuda" --run-level "full_model" - pytest -s -v tests/e2e/offline_inference/test_wan22_autoround_w4a16_expansion.py -m "full_model and H100 and B200 and cuda and (cards_1 or cards_2)" --run-level "full_model"
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion X2V · Wan2.2 Device-Postprocess Equivalence Test" - label: ":full_moon: Diffusion X2V · Wan2.2 Device-Postprocess Equivalence Test"
source_file_dependencies: diffusion_wan22_function source_file_dependencies: diffusion_wan22_function
@@ -395,31 +362,27 @@ steps:
commands: commands:
- | - |
VLLM_OMNI_DEVICE_POSTPROCESS_MODEL=Wan-AI/Wan2.2-TI2V-5B-Diffusers \ VLLM_OMNI_DEVICE_POSTPROCESS_MODEL=Wan-AI/Wan2.2-TI2V-5B-Diffusers \
pytest -s -v tests/e2e/offline_inference/test_device_postprocess_equivalence.py -m "full_model and cuda" --run-level "full_model" pytest -s -v tests/e2e/offline_inference/test_device_postprocess_equivalence.py -m "full_model and H100 and B200 and cuda and cards_1" --run-level "full_model"
mirror_hardwares: h100_1
- label: ":full_moon: Diffusion X2V · Wan2.2 Accuracy Test" - label: ":full_moon: Diffusion X2V · Wan2.2 Accuracy Test"
source_file_dependencies: diffusion_wan22_accuracy source_file_dependencies: diffusion_wan22_accuracy
timeout_in_minutes: 180 timeout_in_minutes: 180
commands: commands:
- pytest -s -v tests/e2e/accuracy/wan22_i2v/test_wan22_i2v_video_similarity.py -m full_model --run-level full_model - pytest -s -v tests/e2e/accuracy/wan22_i2v/test_wan22_i2v_video_similarity.py -m "full_model and H100 and B200 and (cards_1 or cards_2)" --run-level full_model
- pytest -s -v tests/e2e/accuracy/test_diffusers_backend_similarity.py -k '2v_matches_diffusers' -m full_model --run-level full_model - pytest -s -v tests/e2e/accuracy/test_diffusers_backend_similarity.py -k '2v_matches_diffusers' -m "full_model and H100 and B200 and cards_1" --run-level full_model
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion X2V · MiniMax H3 I2VA/Ref2VA Accuracy Test" - label: ":full_moon: Diffusion X2V · MiniMax H3 I2VA/Ref2VA Accuracy Test"
source_file_dependencies: diffusion_minimax_h3_accuracy source_file_dependencies: diffusion_minimax_h3_accuracy
timeout_in_minutes: 180 timeout_in_minutes: 180
commands: commands:
- pytest -s -v tests/e2e/accuracy/minimax_h3/test_minimax_h3_i2va_ref2va_similarity.py -m full_model --run-level full_model - pytest -s -v tests/e2e/accuracy/minimax_h3/test_minimax_h3_i2va_ref2va_similarity.py -m "full_model and H100 and B200 and cards_4" --run-level full_model
mirror_hardwares: h100_4
- label: ":full_moon: Diffusion X2V · HunyuanVideo-1.5 Accuracy Test" - label: ":full_moon: Diffusion X2V · HunyuanVideo-1.5 Accuracy Test"
source_file_dependencies: diffusion_hunyuan_video_accuracy source_file_dependencies: diffusion_hunyuan_video_accuracy
timeout_in_minutes: 180 timeout_in_minutes: 180
commands: commands:
- pytest -s -v tests/e2e/accuracy/hunyuanvideo15_t2v/test_hunyuanvideo15_t2v_video_similarity.py -m full_model --run-level full_model - pytest -s -v tests/e2e/accuracy/hunyuanvideo15_t2v/test_hunyuanvideo15_t2v_video_similarity.py -m "full_model and H100 and B200 and (cards_1 or cards_2)" --run-level full_model
- pytest -s -v tests/e2e/accuracy/hunyuanvideo15_i2v/test_hunyuanvideo15_i2v_video_similarity.py -m full_model --run-level full_model - pytest -s -v tests/e2e/accuracy/hunyuanvideo15_i2v/test_hunyuanvideo15_i2v_video_similarity.py -m "full_model and H100 and B200 and (cards_1 or cards_2)" --run-level full_model
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion X2V · Perf Test · Single-GPU" - label: ":full_moon: Diffusion X2V · Perf Test · Single-GPU"
source_file_dependencies: diffusion_wan22_perf source_file_dependencies: diffusion_wan22_perf
@@ -429,12 +392,11 @@ steps:
- export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results - export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_wan22_i2v_vllm_omni.json -m "H100 and cards_1" pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_wan22_i2v_vllm_omni.json -m "H100 and B200 and cards_1"
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json" buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json"
buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log" buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_1
- label: ":full_moon: Diffusion X2V · Perf Test · 2-GPU" - label: ":full_moon: Diffusion X2V · Perf Test · 2-GPU"
source_file_dependencies: source_file_dependencies:
@@ -444,18 +406,16 @@ steps:
timeout_in_minutes: 180 timeout_in_minutes: 180
commands: commands:
- export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results - export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results
- export DIFFUSION_ATTENTION_BACKEND=FLASH_ATTN
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_wan22_i2v_vllm_omni.json -m "H100 and cards_2" pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_wan22_i2v_vllm_omni.json -m "H100 and B200 and cards_2"
EXIT1=$$? EXIT1=$$?
pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_cosmos3_vllm_omni.json -m "H100 and cards_2" pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_cosmos3_vllm_omni.json -m "H100 and B200 and cards_2"
EXIT2=$$? EXIT2=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json" buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json"
buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log" buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log"
if [ $$EXIT1 -ne 0 ]; then exit $$EXIT1; fi if [ $$EXIT1 -ne 0 ]; then exit $$EXIT1; fi
exit $$EXIT2 exit $$EXIT2
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion X2V · Perf Test · HunyuanVideo-1.5" - label: ":full_moon: Diffusion X2V · Perf Test · HunyuanVideo-1.5"
source_file_dependencies: diffusion_hunyuan_video_perf source_file_dependencies: diffusion_hunyuan_video_perf
@@ -465,15 +425,14 @@ steps:
- export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results - export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_hunyuanvideo15_t2v_vllm_omni.json pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_hunyuanvideo15_t2v_vllm_omni.json -m "H100 and B200 and (cards_1 or cards_2)"
EXIT1=$$? EXIT1=$$?
pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_hunyuanvideo15_i2v_vllm_omni.json pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_hunyuanvideo15_i2v_vllm_omni.json -m "H100 and B200 and (cards_1 or cards_2)"
EXIT2=$$? EXIT2=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json" buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json"
buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log" buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log"
if [ $$EXIT1 -ne 0 ]; then exit $$EXIT1; fi if [ $$EXIT1 -ne 0 ]; then exit $$EXIT1; fi
exit $$EXIT2 exit $$EXIT2
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion X2V · Perf Test · MiniMax-H3" - label: ":full_moon: Diffusion X2V · Perf Test · MiniMax-H3"
source_file_dependencies: diffusion_minimax_h3_perf source_file_dependencies: diffusion_minimax_h3_perf
@@ -483,12 +442,11 @@ steps:
- export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results - export DIFFUSION_BENCHMARK_DIR=tests/dfx/perf/results
- | - |
set +e set +e
pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_minimax_h3_vllm_omni.json pytest -s -v tests/dfx/perf/scripts/run_diffusion_benchmark.py --test-config-file tests/dfx/perf/tests/test_minimax_h3_vllm_omni.json -m "H100 and B200 and cards_4"
EXIT=$$? EXIT=$$?
buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json" buildkite-agent artifact upload "tests/dfx/perf/results/diffusion_result_*.json"
buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log" buildkite-agent artifact upload "tests/dfx/perf/results/logs/*.log"
exit $$EXIT exit $$EXIT
mirror_hardwares: h100_4
- group: ":card_index_dividers: Diffusion Test" - group: ":card_index_dividers: Diffusion Test"
key: nightly-diffusion-test-group key: nightly-diffusion-test-group
@@ -499,65 +457,56 @@ steps:
source_file_dependencies: diffusion_distributed_attention source_file_dependencies: diffusion_distributed_attention
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pytest -sv tests/diffusion/distributed/ -m 'full_model and cuda and L4 and cards_2' --run-level "full_model" - pytest -sv tests/diffusion/distributed/ -m 'full_model and cuda and L4 and B200 and cards_2' --run-level "full_model"
mirror_hardwares: l4_2
- label: ":full_moon: Diffusion · Distributed Test with L4 · 3-GPU" - label: ":full_moon: Diffusion · Distributed Test with L4 · 3-GPU"
source_file_dependencies: diffusion_distributed_attention source_file_dependencies: diffusion_distributed_attention
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pytest -sv tests/diffusion/distributed/ -m 'full_model and cuda and L4 and cards_3' --run-level "full_model" - pytest -sv tests/diffusion/distributed/ -m 'full_model and cuda and L4 and B200 and cards_3' --run-level "full_model"
mirror_hardwares: l4_3
- label: ":full_moon: Diffusion · Distributed Test with L4 · 4-GPU" - label: ":full_moon: Diffusion · Distributed Test with L4 · 4-GPU"
source_file_dependencies: diffusion_distributed_attention source_file_dependencies: diffusion_distributed_attention
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pytest -sv tests/diffusion/distributed/ -m 'full_model and cuda and L4 and cards_4' --run-level "full_model" - pytest -sv tests/diffusion/distributed/ -m 'full_model and cuda and L4 and B200 and cards_4' --run-level "full_model"
mirror_hardwares: l4_4
- label: ":full_moon: Diffusion · Distributed Test with H100 · 2-GPU" - label: ":full_moon: Diffusion · Distributed Test with H100 · 2-GPU"
source_file_dependencies: diffusion_distributed_attention source_file_dependencies: diffusion_distributed_attention
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pytest -sv tests/diffusion/distributed/ -m 'full_model and cuda and H100 and cards_2' --run-level "full_model" - pytest -sv tests/diffusion/distributed/ -m 'full_model and cuda and H100 and B200 and cards_2' --run-level "full_model"
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion · Distributed Test with H100 · 4-GPU" - label: ":full_moon: Diffusion · Distributed Test with H100 · 4-GPU"
source_file_dependencies: diffusion_distributed_attention source_file_dependencies: diffusion_distributed_attention
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pytest -sv tests/diffusion/distributed/ -m 'full_model and cuda and H100 and cards_4' --run-level "full_model" - pytest -sv tests/diffusion/distributed/ -m 'full_model and cuda and H100 and B200 and cards_4' --run-level "full_model"
mirror_hardwares: h100_4
- label: ":full_moon: Diffusion · Offloader Test" - label: ":full_moon: Diffusion · Offloader Test"
source_file_dependencies: diffusion_offloader source_file_dependencies: diffusion_offloader
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pytest -sv tests/diffusion/offloader -m "full_model and cuda" - pytest -sv tests/diffusion/offloader -m "full_model and L4 and B200 and cuda and cards_1"
mirror_hardwares: l4_1
- label: ":full_moon: Diffusion · Quantization Test with H100 · Single-GPU" - label: ":full_moon: Diffusion · Quantization Test with H100 · Single-GPU"
source_file_dependencies: diffusion_quantization source_file_dependencies: diffusion_quantization
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pytest -sv tests/diffusion/quantization -m 'full_model and cuda and H100' --run-level "full_model" - pytest -sv tests/diffusion/quantization -m 'full_model and cuda and H100 and B200 and cards_1' --run-level "full_model"
mirror_hardwares: h100_1
- label: ":full_moon: Diffusion · MiniMax H3 FP8 Quality Test with H100 · 2-GPU" - label: ":full_moon: Diffusion · MiniMax H3 FP8 Quality Test with H100 · 2-GPU"
source_file_dependencies: diffusion_minimax_h3_function source_file_dependencies: diffusion_minimax_h3_function
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pytest -sv tests/diffusion/models/minimax_h3/test_minimax_h3_quantization_quality.py -m 'full_model and cuda and H100' --run-level "full_model" - pytest -sv tests/diffusion/models/minimax_h3/test_minimax_h3_quantization_quality.py -m 'full_model and cuda and H100 and B200 and cards_2' --run-level "full_model"
mirror_hardwares: h100_2
- label: ":full_moon: Diffusion · Quantization Test with L4" - label: ":full_moon: Diffusion · Quantization Test with L4"
source_file_dependencies: diffusion_quantization source_file_dependencies: diffusion_quantization
timeout_in_minutes: 60 timeout_in_minutes: 60
commands: commands:
- pip install "vllm-gguf-plugin==0.0.4" - pip install "vllm-gguf-plugin==0.0.4"
- pytest -sv tests/diffusion/quantization -m 'full_model and cuda and L4' --run-level "full_model" - pytest -sv tests/diffusion/quantization -m 'full_model and cuda and L4 and B200 and cards_1' --run-level "full_model"
mirror_hardwares: l4_1
# NOTE: ":email: Nightly Collection & Email" is deprecated and will be removed soon. # NOTE: ":email: Nightly Collection & Email" is deprecated and will be removed soon.
# Do not add new depends_on entries or extend this step. # Do not add new depends_on entries or extend this step.
+13 -1
View File
@@ -339,11 +339,14 @@ steps:
mirror_hardwares: h100_1 mirror_hardwares: h100_1
- label: "Diffusion · SANA-Video · H100 · Single-GPU" - label: "Diffusion · SANA-Video · H100 · Single-GPU"
timeout_in_minutes: 90 source_file_dependencies: diffusion_sana_video_function
timeout_in_minutes: 180
commands: commands:
- export SANA_VIDEO_GOLDEN_BASE_URL=https://vllm-public-assets.s3.us-west-2.amazonaws.com/omni-assets/sana-video/v2
- >- - >-
pytest -sv pytest -sv
tests/e2e/online_serving/test_sana_video_expansion.py tests/e2e/online_serving/test_sana_video_expansion.py
tests/e2e/accuracy/sana_video/
-m "slow and diffusion and H100 and cards_1" -m "slow and diffusion and H100 and cards_1"
--run-level "full_model" --run-level "full_model"
mirror_hardwares: h100_1 mirror_hardwares: h100_1
@@ -488,6 +491,15 @@ steps:
--run-level "full_model" --run-level "full_model"
mirror_hardwares: h100_2 mirror_hardwares: h100_2
- label: "Diffusion · H100 · 3-GPU"
timeout_in_minutes: 120
commands:
- >-
pytest -sv
tests/e2e/ -m "slow and diffusion and H100 and cards_3"
--run-level "full_model"
mirror_hardwares: h100_3
- label: "Diffusion · H100 · 4-GPU" - label: "Diffusion · H100 · 4-GPU"
timeout_in_minutes: 90 timeout_in_minutes: 90
commands: commands:
+47
View File
@@ -27,6 +27,7 @@ from upload_pipeline import ( # noqa: E402
pytestmark = [pytest.mark.core_model, pytest.mark.cpu] pytestmark = [pytest.mark.core_model, pytest.mark.cpu]
CUDA_BOOTSTRAP_STEPS = Path(".buildkite/cuda/bootstrap-upload-steps.yml") CUDA_BOOTSTRAP_STEPS = Path(".buildkite/cuda/bootstrap-upload-steps.yml")
NIGHTLY_YAML = Path(".buildkite/cuda/test-nightly.yml")
BOOTSTRAP_STEPS_TEMPLATE = """steps: BOOTSTRAP_STEPS_TEMPLATE = """steps:
- key: image-build - key: image-build
- key: upload-ready-pipeline - key: upload-ready-pipeline
@@ -368,6 +369,52 @@ def test_cpu_step_without_mirror_hardwares_is_unchanged() -> None:
assert _expand_mirror_hardwares(step) is step assert _expand_mirror_hardwares(step) is step
def _leaf_steps(steps: list) -> list[dict]:
leaves: list[dict] = []
for step in steps:
if not isinstance(step, dict):
continue
nested = step.get("steps")
if nested is not None:
leaves.extend(_leaf_steps(nested))
else:
leaves.append(step)
return leaves
def test_nightly_yaml_infers_h100_l4_and_b200(monkeypatch: pytest.MonkeyPatch) -> None:
"""Nightly inferred jobs share card counts across H100/L4 and B200 mirrors."""
src = yaml.safe_load(NIGHTLY_YAML.read_text(encoding="utf-8"))
pytest_leaves = [step for step in _leaf_steps(src["steps"]) if "pytest" in str(step.get("commands"))]
inferred_leaves = [step for step in pytest_leaves if "mirror_hardwares" not in step]
pinned_leaves = [step for step in pytest_leaves if "mirror_hardwares" in step]
assert inferred_leaves
monkeypatch.setattr("upload_pipeline._get_mirror_hw_selector", lambda: "")
default_by_label = {
step["label"]: step for step in _leaf_steps(_render_test_pipeline(src, changed_files=None)["steps"])
}
monkeypatch.setattr("upload_pipeline._get_mirror_hw_selector", lambda: "b200")
b200_src = yaml.safe_load(NIGHTLY_YAML.read_text(encoding="utf-8"))
b200_by_label = {
step["label"]: step for step in _leaf_steps(_render_test_pipeline(b200_src, changed_files=None)["steps"])
}
pytest_labels = {step["label"] for step in inferred_leaves}
pinned_labels = {step["label"] for step in pinned_leaves}
assert pinned_labels <= set(default_by_label)
assert pinned_labels.isdisjoint(b200_by_label)
assert pytest_labels <= set(default_by_label)
assert pytest_labels <= set(b200_by_label)
for label in pytest_labels:
default_step = default_by_label[label]
b200_step = b200_by_label[label]
assert default_step["agents"]["queue"] in {"mithril-h100-pool", "l4-k8s"}
assert b200_step["agents"]["queue"] == "b200-k8s"
assert _gpu_limit(default_step) == _gpu_limit(b200_step)
@pytest.mark.parametrize(("raw", "expected"), [("", ""), (" ", ""), ("b200", "b200"), ("B200", "b200")]) @pytest.mark.parametrize(("raw", "expected"), [("", ""), (" ", ""), ("b200", "b200"), ("B200", "b200")])
def test_mirror_hw_selector_empty_or_b200(monkeypatch: pytest.MonkeyPatch, raw: str, expected: str) -> None: def test_mirror_hw_selector_empty_or_b200(monkeypatch: pytest.MonkeyPatch, raw: str, expected: str) -> None:
monkeypatch.setenv("MIRROR_HW", raw) monkeypatch.setenv("MIRROR_HW", raw)
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 2 "num_cards": 2
} }
@@ -63,7 +63,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 2 "num_cards": 2
} }
@@ -132,7 +132,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 2 "num_cards": 2
} }
@@ -200,7 +200,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 2 "num_cards": 2
} }
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 1 "num_cards": 1
} }
@@ -55,7 +55,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 2 "num_cards": 2
} }
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 1 "num_cards": 1
} }
@@ -54,7 +54,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 2 "num_cards": 2
} }
+1 -1
View File
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100", "cuda": ["H100", "B200"],
"npu": "A3" "npu": "A3"
}, },
"num_cards": 1 "num_cards": 1
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100", "cuda": ["H100", "B200"],
"npu": "A3" "npu": "A3"
}, },
"num_cards": 1 "num_cards": 1
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 4 "num_cards": 4
} }
@@ -76,7 +76,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 4 "num_cards": 4
} }
@@ -148,7 +148,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 4 "num_cards": 4
} }
@@ -219,7 +219,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 4 "num_cards": 4
} }
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100", "cuda": ["H100", "B200"],
"npu": "A3" "npu": "A3"
}, },
"num_cards": 2 "num_cards": 2
@@ -242,7 +242,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 2 "num_cards": 2
} }
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100", "cuda": ["H100", "B200"],
"npu": "A3" "npu": "A3"
}, },
"num_cards": 2 "num_cards": 2
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 1 "num_cards": 1
} }
@@ -66,7 +66,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 1 "num_cards": 1
} }
@@ -150,7 +150,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 4 "num_cards": 4
} }
@@ -197,7 +197,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 4 "num_cards": 4
} }
+4 -4
View File
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100", "cuda": ["H100", "B200"],
"npu": "A3" "npu": "A3"
}, },
"num_cards": 2 "num_cards": 2
@@ -121,7 +121,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 2 "num_cards": 2
} }
@@ -285,7 +285,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 2 "num_cards": 2
} }
@@ -416,7 +416,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 1 "num_cards": 1
} }
@@ -5,7 +5,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100" "cuda": ["H100", "B200"]
}, },
"num_cards": 1 "num_cards": 1
} }
@@ -57,7 +57,7 @@
{ {
"hardware_marks": { "hardware_marks": {
"res": { "res": {
"cuda": "H100", "cuda": ["H100", "B200"],
"npu": "A3" "npu": "A3"
}, },
"num_cards": 2 "num_cards": 2
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""Tests for CFG (Classifier-Free Guidance) parallel functionality. """Tests for CFG (Classifier-Free Guidance) parallel functionality.
CPU tests mock the CFG process group and validate mixin logic without GPUs. CPU tests mock the CFG process group and validate mixin logic without GPUs.
@@ -32,8 +32,8 @@ from vllm_omni.diffusion.distributed.parallel_state import (
) )
from vllm_omni.platforms import current_omni_platform from vllm_omni.platforms import current_omni_platform
_L4_TWO_GPU = hardware_marks(res={"cuda": "L4"}, num_cards=2) _L4_TWO_GPU = hardware_marks(res={"cuda": ["L4", "B200"]}, num_cards=2)
_L4_THREE_GPU = hardware_marks(res={"cuda": "L4"}, num_cards=3) _L4_THREE_GPU = hardware_marks(res={"cuda": ["L4", "B200"]}, num_cards=3)
def _set_random_seeds(seed: int) -> None: def _set_random_seeds(seed: int) -> None:
@@ -1009,7 +1009,7 @@ def _run_multi_branch_gpu_parity(
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@pytest.mark.parallel @pytest.mark.parallel
@hardware_test(res={"cuda": "L4"}, num_cards=2) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=2)
@pytest.mark.parametrize("batch_size", [2]) @pytest.mark.parametrize("batch_size", [2])
@pytest.mark.parametrize("cfg_normalize", [False, True]) @pytest.mark.parametrize("cfg_normalize", [False, True])
@pytest.mark.parametrize("extra_kwargs", [None, {"step_i": 1}]) @pytest.mark.parametrize("extra_kwargs", [None, {"step_i": 1}])
+3 -3
View File
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""Tests for SeqAllToAll4D, SeqAllToAll5D, and RingComm communication primitives. """Tests for SeqAllToAll4D, SeqAllToAll5D, and RingComm communication primitives.
CPU tests use gloo on CPU tensors (no GPU). Nightly parity tests run the same CPU tests use gloo on CPU tensors (no GPU). Nightly parity tests run the same
@@ -24,8 +24,8 @@ from vllm_omni.diffusion.distributed.parallel_state import (
) )
from vllm_omni.platforms import current_omni_platform from vllm_omni.platforms import current_omni_platform
_L4_TWO_GPU = hardware_marks(res={"cuda": "L4"}, num_cards=2) _L4_TWO_GPU = hardware_marks(res={"cuda": ["L4", "B200"]}, num_cards=2)
_L4_FOUR_GPU = hardware_marks(res={"cuda": "L4"}, num_cards=4) _L4_FOUR_GPU = hardware_marks(res={"cuda": ["L4", "B200"]}, num_cards=4)
DeviceKind = Literal["cpu", "cuda"] DeviceKind = Literal["cpu", "cuda"]
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
System test for Expert Parallel (EP). System test for Expert Parallel (EP).
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""FLUX.2-dev VAE patch-parallel correctness tests. """FLUX.2-dev VAE patch-parallel correctness tests.
@@ -31,9 +31,9 @@ from vllm_omni.diffusion.distributed.parallel_state import (
from vllm_omni.diffusion.distributed.pipeline_parallel import AsyncLatents, PipelineParallelMixin from vllm_omni.diffusion.distributed.pipeline_parallel import AsyncLatents, PipelineParallelMixin
from vllm_omni.platforms import current_omni_platform from vllm_omni.platforms import current_omni_platform
_L4_TWO_GPU = hardware_marks(res={"cuda": "L4"}, num_cards=2) _L4_TWO_GPU = hardware_marks(res={"cuda": ["L4", "B200"]}, num_cards=2)
_L4_THREE_GPU = hardware_marks(res={"cuda": "L4"}, num_cards=3) _L4_THREE_GPU = hardware_marks(res={"cuda": ["L4", "B200"]}, num_cards=3)
_L4_FOUR_GPU = hardware_marks(res={"cuda": "L4"}, num_cards=4) _L4_FOUR_GPU = hardware_marks(res={"cuda": ["L4", "B200"]}, num_cards=4)
DeviceKind = Literal["cpu", "cuda"] DeviceKind = Literal["cpu", "cuda"]
_UNIT_MARKS = [pytest.mark.core_model, pytest.mark.diffusion, pytest.mark.cpu] _UNIT_MARKS = [pytest.mark.core_model, pytest.mark.diffusion, pytest.mark.cpu]
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""Real multi-process numeric equivalence gate for SANA-Video sequence parallel. """Real multi-process numeric equivalence gate for SANA-Video sequence parallel.
Runs the native transformer directly (no pipeline, no topology validation) with Runs the native transformer directly (no pipeline, no topology validation) with
@@ -273,7 +273,7 @@ def _baseline_worker(
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@pytest.mark.parallel @pytest.mark.parallel
@hardware_test(res={"cuda": "L4"}, num_cards=2) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=2)
@pytest.mark.parametrize("task", ["t2v", "i2v"]) @pytest.mark.parametrize("task", ["t2v", "i2v"])
@pytest.mark.parametrize("num_frames", [21, 5]) @pytest.mark.parametrize("num_frames", [21, 5])
def test_sp2_matches_sp1_fp32(task: str, num_frames: int) -> None: def test_sp2_matches_sp1_fp32(task: str, num_frames: int) -> None:
@@ -290,7 +290,7 @@ def test_sp2_matches_sp1_fp32(task: str, num_frames: int) -> None:
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@pytest.mark.parallel @pytest.mark.parallel
@hardware_test(res={"cuda": "L4"}, num_cards=4) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=4)
@pytest.mark.parametrize("task", ["t2v", "i2v"]) @pytest.mark.parametrize("task", ["t2v", "i2v"])
@pytest.mark.parametrize("num_frames", [21, 5]) @pytest.mark.parametrize("num_frames", [21, 5])
def test_sp4_matches_sp1_fp32(task: str, num_frames: int) -> None: def test_sp4_matches_sp1_fp32(task: str, num_frames: int) -> None:
@@ -307,7 +307,7 @@ def test_sp4_matches_sp1_fp32(task: str, num_frames: int) -> None:
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@pytest.mark.parallel @pytest.mark.parallel
@hardware_test(res={"cuda": "L4"}, num_cards=4) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=4)
def test_sp2_cfg2_matches_sp1_fp32() -> None: def test_sp2_cfg2_matches_sp1_fp32() -> None:
"""Four processes: CFG branches with distinct inputs each run their own SP """Four processes: CFG branches with distinct inputs each run their own SP
group; catches CFG/SP group crossover and deadlocks.""" group; catches CFG/SP group crossover and deadlocks."""
@@ -324,7 +324,7 @@ def test_sp2_cfg2_matches_sp1_fp32() -> None:
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@pytest.mark.parallel @pytest.mark.parallel
@hardware_test(res={"cuda": "L4"}, num_cards=4) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=4)
def test_tp2_sp2_matches_sp1_fp32() -> None: def test_tp2_sp2_matches_sp1_fp32() -> None:
"""Four processes: TP shards heads and channels while SP shards frames; the """Four processes: TP shards heads and channels while SP shards frames; the
combined mesh must still reproduce the serial output.""" combined mesh must still reproduce the serial output."""
@@ -342,7 +342,7 @@ def test_tp2_sp2_matches_sp1_fp32() -> None:
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@pytest.mark.parallel @pytest.mark.parallel
@hardware_test(res={"cuda": "L4"}, num_cards=2) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=2)
def test_sp2_bf16_drift_informational() -> None: def test_sp2_bf16_drift_informational() -> None:
"""Records the bf16 reduction-reorder drift magnitude; the load-bearing """Records the bf16 reduction-reorder drift magnitude; the load-bearing
numeric gate is the fp32 suite above.""" numeric gate is the fp32 suite above."""
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
System test for Sequence Parallel (SP) backends: Ulysses and Ring attention. System test for Sequence Parallel (SP) backends: Ulysses and Ring attention.
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""VAE patch-parallel decode parity tests for diffusion models. """VAE patch-parallel decode parity tests for diffusion models.
@@ -145,7 +145,7 @@ def _run_generate(
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@pytest.mark.parallel @pytest.mark.parallel
@hardware_test(res={"cuda": "H100"}, num_cards={"cuda": 4}) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards={"cuda": 4})
@pytest.mark.parametrize("model_case", MODEL_CASES) @pytest.mark.parametrize("model_case", MODEL_CASES)
def test_vae_patch_parallel_tp2(model_case: dict[str, Any], tmp_path: Path): def test_vae_patch_parallel_tp2(model_case: dict[str, Any], tmp_path: Path):
if current_omni_platform.is_npu(): if current_omni_platform.is_npu():
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
import os import os
from types import SimpleNamespace from types import SimpleNamespace
@@ -538,7 +541,7 @@ def _spatial_shard_decode_worker(rank: int, split_dim: str, return_dict, master_
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@pytest.mark.parallel @pytest.mark.parallel
@hardware_test(res={"cuda": "H100"}, num_cards=_SPATIAL_SHARD_WORLD_SIZE) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=_SPATIAL_SHARD_WORLD_SIZE)
@pytest.mark.parametrize("split_dim", ["height", "width"]) @pytest.mark.parametrize("split_dim", ["height", "width"])
def test_spatial_shard_decode_matches_reference(split_dim: str): def test_spatial_shard_decode_matches_reference(split_dim: str):
manager = mp.get_context("spawn").Manager() manager = mp.get_context("spawn").Manager()
@@ -175,7 +175,7 @@ def _generate_joint_output(omni, config: QualityTestConfig):
pytest.param( pytest.param(
_QUALITY_CONFIG, _QUALITY_CONFIG,
id=_QUALITY_CONFIG.id, id=_QUALITY_CONFIG.id,
marks=hardware_marks(res={"cuda": _QUALITY_CONFIG.gpu}, num_cards=2), marks=hardware_marks(res={"cuda": ["H100", "B200"]}, num_cards=2),
) )
], ],
) )
@@ -9,7 +9,7 @@ import pytest
import torch import torch
from vllm.distributed.parallel_state import cleanup_dist_env_and_memory from vllm.distributed.parallel_state import cleanup_dist_env_and_memory
from tests.helpers.mark import hardware_test from tests.helpers.mark import hardware_marks, hardware_test
from tests.helpers.monitor import DeviceMemoryMonitor from tests.helpers.monitor import DeviceMemoryMonitor
from tests.helpers.runtime import OmniRunner from tests.helpers.runtime import OmniRunner
from vllm_omni.inputs.data import OmniDiffusionSamplingParams from vllm_omni.inputs.data import OmniDiffusionSamplingParams
@@ -27,7 +27,10 @@ MODELS: dict[str, dict[str, int | None]] = {**AUDIO_MODEL, **IMAGE_MODELS}
MODEL_MARKS = { MODEL_MARKS = {
"riverclouds/qwen_image_random": pytest.mark.core_model, "riverclouds/qwen_image_random": pytest.mark.core_model,
"stabilityai/stable-audio-open-1.0": pytest.mark.full_model, "stabilityai/stable-audio-open-1.0": [
pytest.mark.full_model,
*hardware_marks(res={"cuda": ["L4", "B200"], "rocm": "MI325"}),
],
} }
_GATED_MODELS = {"stabilityai/stable-audio-open-1.0"} _GATED_MODELS = {"stabilityai/stable-audio-open-1.0"}
@@ -12,7 +12,7 @@ import pytest
import torch import torch
from vllm.distributed.parallel_state import cleanup_dist_env_and_memory from vllm.distributed.parallel_state import cleanup_dist_env_and_memory
from tests.helpers.mark import hardware_test from tests.helpers.mark import hardware_marks
from tests.helpers.monitor import DeviceMemoryMonitor from tests.helpers.monitor import DeviceMemoryMonitor
from tests.helpers.runtime import OmniRunner from tests.helpers.runtime import OmniRunner
from vllm_omni.inputs.data import OmniDiffusionSamplingParams from vllm_omni.inputs.data import OmniDiffusionSamplingParams
@@ -34,8 +34,14 @@ IMAGE_VIDEO_MODELS: dict[str, dict[str, int | None]] = {
MODELS: dict[str, dict[str, int | None]] = {**AUDIO_MODEL, **IMAGE_VIDEO_MODELS} MODELS: dict[str, dict[str, int | None]] = {**AUDIO_MODEL, **IMAGE_VIDEO_MODELS}
MODEL_MARKS = { MODEL_MARKS = {
"riverclouds/qwen_image_random": pytest.mark.core_model, "riverclouds/qwen_image_random": [
"stabilityai/stable-audio-open-1.0": pytest.mark.full_model, pytest.mark.core_model,
*hardware_marks(res={"cuda": "L4", "rocm": "MI325"}),
],
"stabilityai/stable-audio-open-1.0": [
pytest.mark.full_model,
*hardware_marks(res={"cuda": ["L4", "B200"], "rocm": "MI325"}),
],
} }
AUDIO_MODEL_PARAMS: dict[str, dict[str, Any]] = { AUDIO_MODEL_PARAMS: dict[str, dict[str, Any]] = {
@@ -309,7 +315,6 @@ def test_stable_audio_requires_both_outputs(audio_no_offload, audio_offload, mes
@pytest.mark.diffusion @pytest.mark.diffusion
@hardware_test(res={"cuda": "L4", "rocm": "MI325"})
@pytest.mark.parametrize( @pytest.mark.parametrize(
"model_name", "model_name",
[pytest.param(name, marks=MODEL_MARKS[name]) for name in MODELS], [pytest.param(name, marks=MODEL_MARKS[name]) for name in MODELS],
@@ -109,7 +109,7 @@ def _generate_single_stage_image(
return images, peak_mem return images, peak_mem
@hardware_test(res={"cuda": "L4"}) @hardware_test(res={"cuda": ["L4", "B200"]})
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@pytest.mark.parametrize("model", [Z_IMAGE_CONFIG, FLUX_CONFIG], ids=["Z-Image-Turbo", "FLUX.2-klein"]) @pytest.mark.parametrize("model", [Z_IMAGE_CONFIG, FLUX_CONFIG], ids=["Z-Image-Turbo", "FLUX.2-klein"])
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
End-to-end tests for the unified quantization framework (PR #1764). End-to-end tests for the unified quantization framework (PR #1764).
@@ -270,7 +270,7 @@ def _generate_bagel_image(
# ─── Single-stage diffusion model tests ────────────────────────────────────── # ─── Single-stage diffusion model tests ──────────────────────────────────────
@hardware_test(res={"cuda": "L4"}) @hardware_test(res={"cuda": ["L4", "B200"]})
def test_single_stage_zimage_fp8(): def test_single_stage_zimage_fp8():
"""Z-Image-Turbo with FP8 generates valid images.""" """Z-Image-Turbo with FP8 generates valid images."""
images, _ = _generate_single_stage_image( images, _ = _generate_single_stage_image(
@@ -281,7 +281,7 @@ def test_single_stage_zimage_fp8():
images[0].save("test_zimage_fp8.png") images[0].save("test_zimage_fp8.png")
@hardware_test(res={"cuda": "L4"}) @hardware_test(res={"cuda": ["L4", "B200"]})
def test_single_stage_zimage_fp8_uses_less_memory(): def test_single_stage_zimage_fp8_uses_less_memory():
"""FP8 should use less peak memory than BF16 for Z-Image-Turbo.""" """FP8 should use less peak memory than BF16 for Z-Image-Turbo."""
_, mem_bf16 = _generate_single_stage_image( _, mem_bf16 = _generate_single_stage_image(
@@ -300,7 +300,7 @@ def test_single_stage_zimage_fp8_uses_less_memory():
assert mem_fp8 < mem_bf16, f"FP8 ({mem_fp8:.2f} GiB) should use less memory than BF16 ({mem_bf16:.2f} GiB)" assert mem_fp8 < mem_bf16, f"FP8 ({mem_fp8:.2f} GiB) should use less memory than BF16 ({mem_bf16:.2f} GiB)"
@hardware_test(res={"cuda": "L4", "xpu": "B60"}) @hardware_test(res={"cuda": ["L4", "B200"], "xpu": "B60"})
@pytest.mark.advanced_model @pytest.mark.advanced_model
def test_single_stage_qwen_image_fp8(): def test_single_stage_qwen_image_fp8():
"""Qwen-Image (random weights) with FP8 generates valid images.""" """Qwen-Image (random weights) with FP8 generates valid images."""
@@ -316,7 +316,7 @@ def test_single_stage_qwen_image_fp8():
images[0].save("test_qwen_image_fp8.png") images[0].save("test_qwen_image_fp8.png")
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
@pytest.mark.skip(reason="This model is not authorized on Hugging Face Hub yet") @pytest.mark.skip(reason="This model is not authorized on Hugging Face Hub yet")
def test_single_stage_flux_fp8(): def test_single_stage_flux_fp8():
"""FLUX.1-dev with FP8 generates valid images.""" """FLUX.1-dev with FP8 generates valid images."""
@@ -331,7 +331,7 @@ def test_single_stage_flux_fp8():
images[0].save("test_flux_fp8.png") images[0].save("test_flux_fp8.png")
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
@pytest.mark.skip(reason="This model is not authorized on Hugging Face Hub yet") @pytest.mark.skip(reason="This model is not authorized on Hugging Face Hub yet")
def test_single_stage_flux_fp8_uses_less_memory(): def test_single_stage_flux_fp8_uses_less_memory():
"""FP8 should use less peak memory than BF16 for FLUX.1-dev.""" """FP8 should use less peak memory than BF16 for FLUX.1-dev."""
@@ -357,7 +357,7 @@ def test_single_stage_flux_fp8_uses_less_memory():
assert mem_fp8 < mem_bf16, f"FP8 ({mem_fp8:.2f} GiB) should use less memory than BF16 ({mem_bf16:.2f} GiB)" assert mem_fp8 < mem_bf16, f"FP8 ({mem_fp8:.2f} GiB) should use less memory than BF16 ({mem_bf16:.2f} GiB)"
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
def test_single_stage_ltx2_fp8_uses_less_memory(): def test_single_stage_ltx2_fp8_uses_less_memory():
"""FP8 should use less peak memory than BF16 for LTX-2.""" """FP8 should use less peak memory than BF16 for LTX-2."""
_, mem_bf16 = _generate_single_stage_video( _, mem_bf16 = _generate_single_stage_video(
@@ -379,7 +379,7 @@ def test_single_stage_ltx2_fp8_uses_less_memory():
# ─── Multi-stage model tests (BAGEL) ───────────────────────────────────────── # ─── Multi-stage model tests (BAGEL) ─────────────────────────────────────────
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
def test_bagel_fp8_generates_image(): def test_bagel_fp8_generates_image():
"""BAGEL with diffusion-stage FP8 generates a valid image. """BAGEL with diffusion-stage FP8 generates a valid image.
@@ -392,7 +392,7 @@ def test_bagel_fp8_generates_image():
image.save("test_bagel_fp8.png") image.save("test_bagel_fp8.png")
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
def test_bagel_bf16_generates_image(): def test_bagel_bf16_generates_image():
"""BAGEL without quantization generates a valid image (baseline).""" """BAGEL without quantization generates a valid image (baseline)."""
image, _ = _generate_bagel_image(diffusion_quantization_config=None) image, _ = _generate_bagel_image(diffusion_quantization_config=None)
@@ -402,7 +402,7 @@ def test_bagel_bf16_generates_image():
# ─── Quantization config routing tests ──────────────────────────────────────── # ─── Quantization config routing tests ────────────────────────────────────────
@hardware_test(res={"cuda": "L4"}) @hardware_test(res={"cuda": ["L4", "B200"]})
def test_quantization_key_maps_to_quantization_config(): def test_quantization_key_maps_to_quantization_config():
"""The old 'quantization' kwarg should map to 'quantization_config' """The old 'quantization' kwarg should map to 'quantization_config'
in OmniDiffusionConfig.from_kwargs for backwards compatibility.""" in OmniDiffusionConfig.from_kwargs for backwards compatibility."""
@@ -413,7 +413,7 @@ def test_quantization_key_maps_to_quantization_config():
assert config.quantization_config.get_name() == "fp8" assert config.quantization_config.get_name() == "fp8"
@hardware_test(res={"cuda": "L4"}) @hardware_test(res={"cuda": ["L4", "B200"]})
def test_quantization_config_key_takes_priority(): def test_quantization_config_key_takes_priority():
"""When both 'quantization' and 'quantization_config' are set, """When both 'quantization' and 'quantization_config' are set,
'quantization_config' takes priority.""" 'quantization_config' takes priority."""
@@ -428,7 +428,7 @@ def test_quantization_config_key_takes_priority():
assert config.quantization_config.activation_scheme == "static" assert config.quantization_config.activation_scheme == "static"
@hardware_test(res={"cuda": "L4"}) @hardware_test(res={"cuda": ["L4", "B200"]})
def test_single_stage_quantization_config_key(): def test_single_stage_quantization_config_key():
"""Single-stage model using quantization_config (dict) key generates images.""" """Single-stage model using quantization_config (dict) key generates images."""
images, _ = _generate_single_stage_image( images, _ = _generate_single_stage_image(
@@ -45,6 +45,7 @@ import pytest
import torch import torch
from PIL import Image from PIL import Image
from tests.e2e.accuracy.helpers import resolve_device_threshold
from tests.helpers.mark import hardware_marks from tests.helpers.mark import hardware_marks
_REPO_ROOT = Path(__file__).resolve().parents[3] _REPO_ROOT = Path(__file__).resolve().parents[3]
@@ -70,7 +71,7 @@ class QualityTestConfig:
id: str # pytest ID, e.g. "fp8_z_image" id: str # pytest ID, e.g. "fp8_z_image"
task: str # "t2i" or "t2v" task: str # "t2i" or "t2v"
prompt: str # generation prompt prompt: str # generation prompt
max_lpips: float # fail threshold — higher = more lenient max_lpips: float | dict[str, float] # threshold, or {"H100": 0.15, "B200": 0.17}
model: str | None = None # HF model name model: str | None = None # HF model name
quantization: str | dict[str, object] | None = None # quantization method/config, e.g. "fp8" quantization: str | dict[str, object] | None = None # quantization method/config, e.g. "fp8"
baseline_model: str | None = None # explicit BF16/local baseline path baseline_model: str | None = None # explicit BF16/local baseline path
@@ -80,7 +81,6 @@ class QualityTestConfig:
num_inference_steps: int = 20 # keep low for CI speed num_inference_steps: int = 20 # keep low for CI speed
num_frames: int = 5 # only for t2v num_frames: int = 5 # only for t2v
seed: int = 42 seed: int = 42
gpu: str = "H100" # minimum GPU requirement
negative_prompt: str | None = "" negative_prompt: str | None = ""
guidance_scale: float | None = None guidance_scale: float | None = None
sigmas: list[float] | None = None sigmas: list[float] | None = None
@@ -190,7 +190,7 @@ QUALITY_CONFIGS = [
quantization={"text_encoder": "fp8", "transformer": None, "vae": None}, quantization={"text_encoder": "fp8", "transformer": None, "vae": None},
task="t2i", task="t2i",
prompt="a cup of coffee on a wooden table, morning light", prompt="a cup of coffee on a wooden table, morning light",
max_lpips=0.15, max_lpips={"H100": 0.15, "B200": 0.17},
num_inference_steps=10, num_inference_steps=10,
enable_cpu_offload=True, enable_cpu_offload=True,
height=1024, height=1024,
@@ -528,7 +528,7 @@ def test_ltx_quality_gate_uses_official_eager_defaults(monkeypatch):
assert captured.sampling.guidance_scale is None assert captured.sampling.guidance_scale is None
_marks = hardware_marks(res={"cuda": "H100"}) _marks = hardware_marks(res={"cuda": ["H100", "B200"]})
_OUTPUT_DIR = Path(os.environ["VLLM_OMNI_QUALITY_OUTPUT_DIR"]) if "VLLM_OMNI_QUALITY_OUTPUT_DIR" in os.environ else None _OUTPUT_DIR = Path(os.environ["VLLM_OMNI_QUALITY_OUTPUT_DIR"]) if "VLLM_OMNI_QUALITY_OUTPUT_DIR" in os.environ else None
@@ -588,8 +588,9 @@ def test_quantization_quality(config: QualityTestConfig):
# --- Similarity metrics --- # --- Similarity metrics ---
lpips_score = _compute_lpips(baseline_out, quant_out, config.task) lpips_score = _compute_lpips(baseline_out, quant_out, config.task)
psnr_score, mae_score = _compute_psnr_and_mae(baseline_out, quant_out, config.task) psnr_score, mae_score = _compute_psnr_and_mae(baseline_out, quant_out, config.task)
assert lpips_score <= config.max_lpips, ( gpu_key, max_lpips = resolve_device_threshold(config.max_lpips, label=f"{config.id} max_lpips")
f"LPIPS {lpips_score:.4f} exceeds threshold {config.max_lpips} " assert lpips_score <= max_lpips, (
f"LPIPS {lpips_score:.4f} exceeds threshold {max_lpips} ({gpu_key}) "
f"for {config.quantization_ref() or 'pre-quantized checkpoint'} on {config.quantized_ref()}" f"for {config.quantization_ref() or 'pre-quantized checkpoint'} on {config.quantized_ref()}"
) )
@@ -601,12 +602,12 @@ def test_quantization_quality(config: QualityTestConfig):
print(f" Baseline: {config.baseline_ref()}") print(f" Baseline: {config.baseline_ref()}")
print(f" Quantized: {config.quantized_ref()}") print(f" Quantized: {config.quantized_ref()}")
print(f" Method: {config.quantization_ref() or 'pre-quantized checkpoint'}") print(f" Method: {config.quantization_ref() or 'pre-quantized checkpoint'}")
print(f" LPIPS: {lpips_score:.4f} (threshold: {config.max_lpips})") print(f" LPIPS: {lpips_score:.4f} (threshold: {max_lpips}, gpu: {gpu_key})")
print(f" PSNR: {psnr_score:.4f} dB (higher is better)") print(f" PSNR: {psnr_score:.4f} dB (higher is better)")
print(f" MAE: {mae_score:.6f} (lower is better)") print(f" MAE: {mae_score:.6f} (lower is better)")
print(f" BF16 memory: {bl_mem:.2f} GiB") print(f" BF16 memory: {bl_mem:.2f} GiB")
print(f" Quant memory: {qt_mem:.2f} GiB ({mem_reduction:.0f}% reduction)") print(f" Quant memory: {qt_mem:.2f} GiB ({mem_reduction:.0f}% reduction)")
print(f" Result: {'PASS' if lpips_score <= config.max_lpips else 'FAIL'}") print(f" Result: {'PASS' if lpips_score <= max_lpips else 'FAIL'}")
print(f"{'=' * 60}\n") print(f"{'=' * 60}\n")
assert np.isfinite(psnr_score) or np.isinf(psnr_score), f"PSNR is invalid for {config.id}: {psnr_score}" assert np.isfinite(psnr_score) or np.isinf(psnr_score), f"PSNR is invalid for {config.id}: {psnr_score}"
+26
View File
@@ -135,6 +135,32 @@ def resolve_similarity_thresholds(
return table.get(profile, table[DEFAULT_DEVICE_PROFILE]) return table.get(profile, table[DEFAULT_DEVICE_PROFILE])
def resolve_device_threshold(
thresholds: float | int | Mapping[str, float],
*,
device_name: str | None = None,
label: str = "threshold",
) -> tuple[str, float]:
"""Resolve a scalar or per-GPU threshold for the current CUDA device.
Returns ``(profile_key, threshold)``. A bare number uses profile ``default``.
A mapping matches keys as substrings of the device name via
``resolve_device_profile`` (for example ``{"H100": 0.3, "B200": 0.36}``).
Prefer an explicit ``default`` entry when unmatched GPUs should fall back;
otherwise unmatched devices raise.
"""
if isinstance(thresholds, float | int):
return DEFAULT_DEVICE_PROFILE, float(thresholds)
profile = resolve_device_profile(device_name, profiles=thresholds)
if profile in thresholds:
return profile, float(thresholds[profile])
if DEFAULT_DEVICE_PROFILE in thresholds:
return DEFAULT_DEVICE_PROFILE, float(thresholds[DEFAULT_DEVICE_PROFILE])
known = ", ".join(str(key) for key in thresholds)
raise RuntimeError(f"no {label} entry for device profile {profile!r}; known: {known}")
_SSIM_RE = re.compile(r"All:(?P<score>[0-9.]+)") _SSIM_RE = re.compile(r"All:(?P<score>[0-9.]+)")
_PSNR_RE = re.compile(r"average:(?P<score>[0-9.]+)") _PSNR_RE = re.compile(r"average:(?P<score>[0-9.]+)")
@@ -183,7 +183,7 @@ def _generate_online_video(
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_hunyuanvideo15_i2v_diffusers_offline_generates_video( def test_hunyuanvideo15_i2v_diffusers_offline_generates_video(
hunyuanvideo15_i2v_image_source: str | None, hunyuanvideo15_i2v_image_source: str | None,
) -> None: ) -> None:
@@ -203,7 +203,7 @@ def test_hunyuanvideo15_i2v_diffusers_offline_generates_video(
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", SERVER_CASES, indirect=True) @pytest.mark.parametrize("omni_server", SERVER_CASES, indirect=True)
def test_hunyuanvideo15_i2v_online_serving_generates_video( def test_hunyuanvideo15_i2v_online_serving_generates_video(
omni_server, omni_server,
@@ -229,7 +229,7 @@ def test_hunyuanvideo15_i2v_online_serving_generates_video(
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_hunyuanvideo15_i2v_serving_matches_offline_video_similarity( def test_hunyuanvideo15_i2v_serving_matches_offline_video_similarity(
hunyuanvideo15_i2v_image_source: str | None, hunyuanvideo15_i2v_image_source: str | None,
) -> None: ) -> None:
@@ -144,7 +144,7 @@ def _generate_online_video(*, omni_server, online_client, timeout_seconds: int)
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_hunyuanvideo15_t2v_diffusers_offline_generates_video() -> None: def test_hunyuanvideo15_t2v_diffusers_offline_generates_video() -> None:
if not torch.cuda.is_available(): if not torch.cuda.is_available():
pytest.skip("HunyuanVideo-1.5 T2V offline accuracy test requires CUDA.") pytest.skip("HunyuanVideo-1.5 T2V offline accuracy test requires CUDA.")
@@ -160,7 +160,7 @@ def test_hunyuanvideo15_t2v_diffusers_offline_generates_video() -> None:
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", SERVER_CASES, indirect=True) @pytest.mark.parametrize("omni_server", SERVER_CASES, indirect=True)
def test_hunyuanvideo15_t2v_online_serving_generates_video( def test_hunyuanvideo15_t2v_online_serving_generates_video(
omni_server, omni_server,
@@ -182,7 +182,7 @@ def test_hunyuanvideo15_t2v_online_serving_generates_video(
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_hunyuanvideo15_t2v_serving_matches_offline_video_similarity() -> None: def test_hunyuanvideo15_t2v_serving_matches_offline_video_similarity() -> None:
if not torch.cuda.is_available(): if not torch.cuda.is_available():
pytest.skip("HunyuanVideo-1.5 T2V video similarity test requires CUDA.") pytest.skip("HunyuanVideo-1.5 T2V video similarity test requires CUDA.")
@@ -141,7 +141,7 @@ def _inline_daily_omni_media(monkeypatch: pytest.MonkeyPatch) -> None:
@requires_daily_omni_deps @requires_daily_omni_deps
@hardware_test(res={"cuda": "H100", "npu": "A3"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"], "npu": "A3"}, num_cards=1)
@pytest.mark.parametrize("omni_server", daily_test_params, indirect=True) @pytest.mark.parametrize("omni_server", daily_test_params, indirect=True)
def test_minicpmo_4_5_daily_omni_accuracy_bench(omni_server) -> None: def test_minicpmo_4_5_daily_omni_accuracy_bench(omni_server) -> None:
_require_vllm_cli() _require_vllm_cli()
@@ -174,7 +174,7 @@ def test_minicpmo_4_5_daily_omni_accuracy_bench(omni_server) -> None:
assert _acc_bench.run_acc_benchmark(_acc_bench.parse_acc_benchmark_args(argv)) == 0 assert _acc_bench.run_acc_benchmark(_acc_bench.parse_acc_benchmark_args(argv)) == 0
@hardware_test(res={"cuda": "H100", "npu": "A3"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"], "npu": "A3"}, num_cards=1)
@pytest.mark.parametrize("omni_server", seed_test_params, indirect=True) @pytest.mark.parametrize("omni_server", seed_test_params, indirect=True)
def test_minicpmo_4_5_seed_tts_wer_bench(omni_server) -> None: def test_minicpmo_4_5_seed_tts_wer_bench(omni_server) -> None:
_require_vllm_cli() _require_vllm_cli()
@@ -200,7 +200,7 @@ def test_minicpmo_4_5_seed_tts_wer_bench(omni_server) -> None:
assert _acc_bench.run_acc_benchmark(_acc_bench.parse_acc_benchmark_args(argv)) == 0 assert _acc_bench.run_acc_benchmark(_acc_bench.parse_acc_benchmark_args(argv)) == 0
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", duplex_accuracy_test_params, indirect=True) @pytest.mark.parametrize("omni_server", duplex_accuracy_test_params, indirect=True)
def test_minicpmo_4_5_duplex_seed_tts_wer_bench(omni_server) -> None: def test_minicpmo_4_5_duplex_seed_tts_wer_bench(omni_server) -> None:
"""Gate Seed-TTS WER through the explicit Realtime TTS contract.""" """Gate Seed-TTS WER through the explicit Realtime TTS contract."""
@@ -138,8 +138,6 @@ def _server_args() -> list[str]:
"--vae-parallel-mode", "--vae-parallel-mode",
"tile", "tile",
"--vae-use-tiling", "--vae-use-tiling",
"--diffusion-attention-backend",
"FLASH_ATTN",
"--stage-init-timeout", "--stage-init-timeout",
"1800", "1800",
"--init-timeout", "--init-timeout",
@@ -228,7 +226,7 @@ def _assert_official_video(
) )
@hardware_test(res={"cuda": "H100"}, num_cards=4) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=4)
def test_minimax_h3_i2va_matches_official_reference( def test_minimax_h3_i2va_matches_official_reference(
accuracy_artifact_root: Path, accuracy_artifact_root: Path,
) -> None: ) -> None:
@@ -304,7 +302,7 @@ def test_minimax_h3_i2va_matches_official_reference(
) )
@hardware_test(res={"cuda": "H100"}, num_cards=4) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=4)
def test_minimax_h3_ref2va_matches_official_reference( def test_minimax_h3_ref2va_matches_official_reference(
accuracy_artifact_root: Path, accuracy_artifact_root: Path,
) -> None: ) -> None:
@@ -110,7 +110,7 @@ def _daily_omni_hub_inline_media(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setenv("VLLM_WORKER_MULTIPROC_METHOD", "spawn") monkeypatch.setenv("VLLM_WORKER_MULTIPROC_METHOD", "spawn")
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"], "rocm": "MI325"}, num_cards=2)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_qwen3_omni_daily_omni_accuracy_bench(omni_server) -> None: def test_qwen3_omni_daily_omni_accuracy_bench(omni_server) -> None:
_require_vllm_cli() _require_vllm_cli()
@@ -122,7 +122,7 @@ def test_qwen3_omni_daily_omni_accuracy_bench(omni_server) -> None:
assert _acc_bench.run_acc_benchmark(ns) == 0 assert _acc_bench.run_acc_benchmark(ns) == 0
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"], "rocm": "MI325"}, num_cards=2)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_qwen3_omni_seed_tts_wer_bench(omni_server) -> None: def test_qwen3_omni_seed_tts_wer_bench(omni_server) -> None:
_require_vllm_cli() _require_vllm_cli()
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
from __future__ import annotations from __future__ import annotations
@@ -44,7 +44,7 @@ SSIM_THRESHOLDS = {
} }
pytestmark = [ pytestmark = [
pytest.mark.full_model, pytest.mark.slow,
pytest.mark.diffusion, pytest.mark.diffusion,
pytest.mark.skipif( pytest.mark.skipif(
not GOLDEN_BASE_URL, not GOLDEN_BASE_URL,
@@ -169,6 +169,7 @@ def _validate_metadata(payload: Any, manifest: dict[str, Any], variant: str, tas
def _download_case(variant: str, task: str, output_dir: Path, filenames: set[str]) -> dict[str, Any]: def _download_case(variant: str, task: str, output_dir: Path, filenames: set[str]) -> dict[str, Any]:
output_dir.mkdir(parents=True, exist_ok=True) output_dir.mkdir(parents=True, exist_ok=True)
assert GOLDEN_BASE_URL is not None
base_url = f"{GOLDEN_BASE_URL.rstrip('/')}/{variant}/{task}" base_url = f"{GOLDEN_BASE_URL.rstrip('/')}/{variant}/{task}"
response = requests.get(f"{base_url}/manifest.json", timeout=60) response = requests.get(f"{base_url}/manifest.json", timeout=60)
response.raise_for_status() response.raise_for_status()
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
from __future__ import annotations from __future__ import annotations
@@ -11,7 +11,7 @@ import torch
from tests.helpers.mark import hardware_marks from tests.helpers.mark import hardware_marks
pytestmark = [ pytestmark = [
pytest.mark.full_model, pytest.mark.slow,
pytest.mark.diffusion, pytest.mark.diffusion,
pytest.mark.benchmark, pytest.mark.benchmark,
] ]
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
from __future__ import annotations from __future__ import annotations
@@ -7,7 +7,7 @@ import gc
import os import os
from dataclasses import dataclass from dataclasses import dataclass
from pathlib import Path from pathlib import Path
from typing import Any from typing import Any, TypedDict
import pytest import pytest
import torch import torch
@@ -16,7 +16,7 @@ import torch.nn.functional as F
from tests.helpers.mark import hardware_marks from tests.helpers.mark import hardware_marks
pytestmark = [ pytestmark = [
pytest.mark.full_model, pytest.mark.slow,
pytest.mark.diffusion, pytest.mark.diffusion,
pytest.mark.benchmark, pytest.mark.benchmark,
] ]
@@ -30,7 +30,23 @@ HEIGHT = 192
WIDTH = 320 WIDTH = 320
NUM_FRAMES = 9 NUM_FRAMES = 9
VARIANTS = {
class _VariantConfig(TypedDict):
model: str
revision: str
model_env: str
max_abs: float
relative_l2: float
cosine: float
cfg_max_abs: float
cfg_relative_l2: float
cfg_cosine: float
step_max_abs: float
step_relative_l2: float
step_cosine: float
VARIANTS: dict[str, _VariantConfig] = {
"480p": { "480p": {
"model": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers", "model": "Efficient-Large-Model/SANA-Video_2B_480p_diffusers",
"revision": "fed3bce411c58a0f688a31afe8f52e61acc2b15f", "revision": "fed3bce411c58a0f688a31afe8f52e61acc2b15f",
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
from __future__ import annotations from __future__ import annotations
@@ -35,6 +35,7 @@ def _model_name() -> str:
pytest.skip(f"Set {MODEL_ENV_VAR} to run Cosmos3 full-model smoke tests.") pytest.skip(f"Set {MODEL_ENV_VAR} to run Cosmos3 full-model smoke tests.")
if not torch.cuda.is_available(): if not torch.cuda.is_available():
pytest.skip("Cosmos3 full-model smoke tests require CUDA.") pytest.skip("Cosmos3 full-model smoke tests require CUDA.")
assert model
return model return model
@@ -56,7 +57,7 @@ def _image_data_url(image: Image.Image) -> str:
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_cosmos3_t2i_serving_smoke(accuracy_artifact_root: Path) -> None: def test_cosmos3_t2i_serving_smoke(accuracy_artifact_root: Path) -> None:
output_dir = model_output_dir(accuracy_artifact_root, MODEL_ID) output_dir = model_output_dir(accuracy_artifact_root, MODEL_ID)
with OmniServer(_model_name(), _server_args(), use_omni=True) as server: with OmniServer(_model_name(), _server_args(), use_omni=True) as server:
@@ -97,7 +98,7 @@ def test_cosmos3_t2i_serving_smoke(accuracy_artifact_root: Path) -> None:
], ],
) )
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_cosmos3_video_serving_smoke( def test_cosmos3_video_serving_smoke(
accuracy_artifact_root: Path, accuracy_artifact_root: Path,
name: str, name: str,
@@ -29,6 +29,7 @@ from tests.e2e.accuracy.helpers import (
assert_similarity, assert_similarity,
env_to_apply_ftfy_mock_in_subproc, env_to_apply_ftfy_mock_in_subproc,
model_output_dir, model_output_dir,
resolve_device_threshold,
) )
from tests.e2e.accuracy.helpers import ( from tests.e2e.accuracy.helpers import (
parse_psnr_score as _parse_psnr_score, parse_psnr_score as _parse_psnr_score,
@@ -49,16 +50,25 @@ from vllm_omni.diffusion.models.diffusers_adapter.pipeline_diffusers_adapter imp
pytestmark = [pytest.mark.full_model, pytest.mark.diffusion] pytestmark = [pytest.mark.full_model, pytest.mark.diffusion]
def _set_matched_attention_backend(pipe: DiffusionPipeline) -> None: def _flash_attempt_backends() -> list[str]:
"""Walk the same backend chain the omni server's diffusers adapter walks. """Backends in ``CUDA_FLASH_ATTENTION_BACKEND_ATTEMPTS`` that can actually launch.
The server side (--diffusion-load-format diffusers) resolves its attention Those names are Hopper FA2/FA3. ``set_attention_backend`` only checks import,
backend through the adapter's preference chain, skipping backends that are so a newer GPU still "selects" them and then dies with "no kernel image".
unavailable on the image (e.g. the FA3 hub kernel has no build variant for Do not probe by launching: a missing cubin can leave the CUDA context dead.
the image's torch — build 2953). The reference run must resolve to the Capability >= 10 is outside that wheel, including future SKUs in that family.
same backend or the similarity comparison measures kernel differences.
""" """
for backend in CUDA_FLASH_ATTENTION_BACKEND_ATTEMPTS: if not torch.cuda.is_available():
return []
major, _ = torch.cuda.get_device_capability()
if major >= 10:
return []
return list(CUDA_FLASH_ATTENTION_BACKEND_ATTEMPTS)
def _set_matched_attention_backend(pipe: DiffusionPipeline) -> None:
"""Pick a Diffusers attention backend the reference run can actually execute."""
for backend in _flash_attempt_backends():
try: try:
pipe.transformer.set_attention_backend(backend) pipe.transformer.set_attention_backend(backend)
return return
@@ -297,7 +307,7 @@ def _run_diffusers_qwen_image(*, model: str, output_path: Path) -> tuple[Image.I
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
@pytest.mark.parametrize("model_id", ["Qwen/Qwen-Image"]) @pytest.mark.parametrize("model_id", ["Qwen/Qwen-Image"])
def test_diffusers_backend_t2i_matches_diffusers(model_id: str, accuracy_artifact_root: Path) -> None: def test_diffusers_backend_t2i_matches_diffusers(model_id: str, accuracy_artifact_root: Path) -> None:
output_dir = model_output_dir(accuracy_artifact_root, model_id + "-diffusers-backend") output_dir = model_output_dir(accuracy_artifact_root, model_id + "-diffusers-backend")
@@ -336,7 +346,7 @@ def test_diffusers_backend_t2i_matches_diffusers(model_id: str, accuracy_artifac
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
@pytest.mark.parametrize( @pytest.mark.parametrize(
"model_id", "model_id",
[ [
@@ -363,7 +373,11 @@ def test_diffusers_backend_i2v_matches_diffusers(
model=model_id, output_path=diffusers_path, conditioning_image=resized_image model=model_id, output_path=diffusers_path, conditioning_image=resized_image
) )
diffusers_latency = diffusers_latency * 1000 diffusers_latency = diffusers_latency * 1000
latency_threshold_factor = 0.3 # H100 keeps the historical 30% slack. B200 measured ~35.8% (6008 vs 4425 ms).
gpu_key, latency_threshold_factor = resolve_device_threshold(
{"H100": 0.3, "B200": 0.36},
label="latency threshold factor",
)
latency_threshold = diffusers_latency * (1 + latency_threshold_factor) latency_threshold = diffusers_latency * (1 + latency_threshold_factor)
ssim_output = _run_ffmpeg_similarity("ssim", vllm_path, diffusers_path) ssim_output = _run_ffmpeg_similarity("ssim", vllm_path, diffusers_path)
@@ -372,7 +386,8 @@ def test_diffusers_backend_i2v_matches_diffusers(
psnr_score = _parse_psnr_score(psnr_output) psnr_score = _parse_psnr_score(psnr_output)
print(f"{model_id} latency metrics:") print(f"{model_id} latency metrics:")
print( print(
f" Latency={vllm_latency:.2f}ms, threshold<={latency_threshold:.2f}ms, diffusers latency={diffusers_latency:.2f}ms, lower is better" f" Latency={vllm_latency:.2f}ms, threshold<={latency_threshold:.2f}ms, "
f"diffusers latency={diffusers_latency:.2f}ms, slack={latency_threshold_factor:.0%} ({gpu_key}), lower is better"
) )
print(f"{model_id} similarity metrics:") print(f"{model_id} similarity metrics:")
print(f" SSIM: value={ssim_score:.6f}, threshold>={VIDEO_SSIM_THRESHOLD:.6f}, range=[-1, 1], higher is better") print(f" SSIM: value={ssim_score:.6f}, threshold>={VIDEO_SSIM_THRESHOLD:.6f}, range=[-1, 1], higher is better")
+7 -6
View File
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
from __future__ import annotations from __future__ import annotations
@@ -12,6 +12,7 @@ import tempfile
import time import time
from dataclasses import dataclass from dataclasses import dataclass
from pathlib import Path from pathlib import Path
from typing import Any, cast
import pytest import pytest
import requests import requests
@@ -288,7 +289,7 @@ def _quant_accuracy_cases() -> list[pytest.ParameterSet]:
def _make_config(enable_kv_reuse: bool, path: Path) -> None: def _make_config(enable_kv_reuse: bool, path: Path) -> None:
config = copy.deepcopy(_DEPLOY_CONFIG) config = cast(dict[str, Any], copy.deepcopy(_DEPLOY_CONFIG))
config["stages"][0]["omni_kv_config"] = {"need_send_cache": enable_kv_reuse} config["stages"][0]["omni_kv_config"] = {"need_send_cache": enable_kv_reuse}
config["stages"][1]["omni_kv_config"] = {"need_recv_cache": enable_kv_reuse} config["stages"][1]["omni_kv_config"] = {"need_recv_cache": enable_kv_reuse}
path.write_text(yaml.dump(config, default_flow_style=False, sort_keys=False)) path.write_text(yaml.dump(config, default_flow_style=False, sort_keys=False))
@@ -303,7 +304,7 @@ def _quant_tensor_parallel_size() -> int:
def _make_quant_dit_config(path: Path) -> None: def _make_quant_dit_config(path: Path) -> None:
config = copy.deepcopy(_QUANT_DIT_CONFIG) config = cast(dict[str, Any], copy.deepcopy(_QUANT_DIT_CONFIG))
config["stages"][0]["devices"] = _quant_devices() config["stages"][0]["devices"] = _quant_devices()
config["stages"][0]["parallel_config"]["tensor_parallel_size"] = _quant_tensor_parallel_size() config["stages"][0]["parallel_config"]["tensor_parallel_size"] = _quant_tensor_parallel_size()
path.write_text(yaml.dump(config, default_flow_style=False, sort_keys=False)) path.write_text(yaml.dump(config, default_flow_style=False, sort_keys=False))
@@ -448,7 +449,7 @@ def test_image_to_image_alignment_online(accuracy_artifact_root: Path) -> None:
"""Online API test: same pipeline, same seed as offline → PSNR >= 10 dB.""" """Online API test: same pipeline, same seed as offline → PSNR >= 10 dB."""
if importlib.util.find_spec("FlagEmbedding") is None: if importlib.util.find_spec("FlagEmbedding") is None:
raise ImportError("Missing dependency: FlagEmbedding\nInstall with: pip install FlagEmbedding") raise ImportError("Missing dependency: FlagEmbedding\nInstall with: pip install FlagEmbedding")
from tabulate import tabulate from tabulate import tabulate # type: ignore[import-untyped]
output_dir = model_output_dir(accuracy_artifact_root, MODEL_NAME + "-online") output_dir = model_output_dir(accuracy_artifact_root, MODEL_NAME + "-online")
@@ -556,7 +557,7 @@ def _run_dit_model(
torch.accelerator.empty_cache() torch.accelerator.empty_cache()
@hardware_test(res={"cuda": "H100"}, num_cards=8) @hardware_test(res={"cuda": "H200"}, num_cards=8)
@pytest.mark.skipif( @pytest.mark.skipif(
torch.accelerator.device_count() < AR_TP_SIZE + DIT_TP_SIZE, torch.accelerator.device_count() < AR_TP_SIZE + DIT_TP_SIZE,
reason=f"Needs {AR_TP_SIZE + DIT_TP_SIZE}+ GPUs ({AR_TP_SIZE} AR + {DIT_TP_SIZE} DiT)", reason=f"Needs {AR_TP_SIZE + DIT_TP_SIZE}+ GPUs ({AR_TP_SIZE} AR + {DIT_TP_SIZE} DiT)",
@@ -564,7 +565,7 @@ def _run_dit_model(
def test_image_to_image_alignment(accuracy_artifact_root: Path) -> None: def test_image_to_image_alignment(accuracy_artifact_root: Path) -> None:
if importlib.util.find_spec("FlagEmbedding") is None: if importlib.util.find_spec("FlagEmbedding") is None:
raise ImportError("Missing dependency: FlagEmbedding\nInstall with: pip install FlagEmbedding") raise ImportError("Missing dependency: FlagEmbedding\nInstall with: pip install FlagEmbedding")
from tabulate import tabulate # lazy import from tabulate import tabulate # type: ignore[import-untyped]
"""KV reuse ON vs OFF: same pipeline, same seed → PSNR >= 10 dB.""" """KV reuse ON vs OFF: same pipeline, same seed → PSNR >= 10 dB."""
output_dir = model_output_dir(accuracy_artifact_root, MODEL_NAME + "-offline-kv-reuse") output_dir = model_output_dir(accuracy_artifact_root, MODEL_NAME + "-offline-kv-reuse")
@@ -299,7 +299,7 @@ def _assert_against_baseline(image: Image.Image, label: str) -> None:
@pytest.mark.full_model @pytest.mark.full_model
@hardware_test(res={"cuda": "H100", "npu": "A3"}, num_cards=4) @hardware_test(res={"cuda": ["H100", "B200"], "npu": "A3"}, num_cards=4)
def test_hunyuan_image3_pixel_accuracy_online(accuracy_artifact_root: Path) -> None: def test_hunyuan_image3_pixel_accuracy_online(accuracy_artifact_root: Path) -> None:
model = _model_name() model = _model_name()
output_dir = model_output_dir(accuracy_artifact_root, MODEL_NAME) output_dir = model_output_dir(accuracy_artifact_root, MODEL_NAME)
@@ -314,7 +314,7 @@ def test_hunyuan_image3_pixel_accuracy_online(accuracy_artifact_root: Path) -> N
@pytest.mark.full_model @pytest.mark.full_model
@hardware_test(res={"cuda": "H100", "npu": "A3"}, num_cards=4) @hardware_test(res={"cuda": ["H100", "B200"], "npu": "A3"}, num_cards=4)
def test_hunyuan_image3_pixel_accuracy_offline(accuracy_artifact_root: Path) -> None: def test_hunyuan_image3_pixel_accuracy_offline(accuracy_artifact_root: Path) -> None:
model = _model_name() model = _model_name()
output_dir = model_output_dir(accuracy_artifact_root, MODEL_NAME) output_dir = model_output_dir(accuracy_artifact_root, MODEL_NAME)
+2 -2
View File
@@ -233,7 +233,7 @@ def _run_diffusers_qwen_image_2512(*, model: str, output_path: Path) -> Image.Im
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_qwen_image_matches_diffusers(accuracy_artifact_root: Path) -> None: def test_qwen_image_matches_diffusers(accuracy_artifact_root: Path) -> None:
model = _model_name() model = _model_name()
output_dir = model_output_dir(accuracy_artifact_root, MODEL_ID) output_dir = model_output_dir(accuracy_artifact_root, MODEL_ID)
@@ -253,7 +253,7 @@ def test_qwen_image_matches_diffusers(accuracy_artifact_root: Path) -> None:
@pytest.mark.benchmark @pytest.mark.benchmark
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_qwen_image_2512_matches_diffusers_pixelwise(accuracy_artifact_root: Path) -> None: def test_qwen_image_2512_matches_diffusers_pixelwise(accuracy_artifact_root: Path) -> None:
model = _model_2512_name() model = _model_2512_name()
output_dir = model_output_dir(accuracy_artifact_root, MODEL_2512_ID) output_dir = model_output_dir(accuracy_artifact_root, MODEL_2512_ID)
@@ -195,7 +195,7 @@ def _generate_offline_video(*, image_source: str) -> tuple[Path, Path]:
@pytest.mark.benchmark @pytest.mark.benchmark
@pytest.mark.full_model @pytest.mark.full_model
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_wan22_i2v_diffusers_offline_generates_video( def test_wan22_i2v_diffusers_offline_generates_video(
wan22_i2v_image_source: str | None, wan22_i2v_image_source: str | None,
) -> None: ) -> None:
@@ -217,7 +217,7 @@ def test_wan22_i2v_diffusers_offline_generates_video(
@pytest.mark.benchmark @pytest.mark.benchmark
@pytest.mark.full_model @pytest.mark.full_model
@hardware_test(res={"cuda": "H100"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=2)
@pytest.mark.parametrize("omni_server", SERVER_CASES, indirect=True) @pytest.mark.parametrize("omni_server", SERVER_CASES, indirect=True)
def test_wan22_i2v_online_serving_generates_video( def test_wan22_i2v_online_serving_generates_video(
omni_server, omni_server,
@@ -244,7 +244,7 @@ def test_wan22_i2v_online_serving_generates_video(
@pytest.mark.benchmark @pytest.mark.benchmark
@pytest.mark.full_model @pytest.mark.full_model
@hardware_test(res={"cuda": "H100"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=2)
def test_wan22_i2v_serving_matches_diffusers_video_similarity( def test_wan22_i2v_serving_matches_diffusers_video_similarity(
wan22_i2v_image_source: str | None, wan22_i2v_image_source: str | None,
) -> None: ) -> None:
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
Regression tests for AsyncOmni collective_rpc in inline diffusion mode. Regression tests for AsyncOmni collective_rpc in inline diffusion mode.
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""E2E tests for AsyncOmni Qwen-Image generation with trajectory_* fields. """E2E tests for AsyncOmni Qwen-Image generation with trajectory_* fields.
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
from __future__ import annotations from __future__ import annotations
@@ -83,7 +83,7 @@ def _as_uint8_frames(video: np.ndarray) -> np.ndarray:
_MAX_DIFFERING_FRACTION = 0.35 _MAX_DIFFERING_FRACTION = 0.35
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_device_postprocess_produces_equivalent_frames() -> None: def test_device_postprocess_produces_equivalent_frames() -> None:
float_path = _generate(False) float_path = _generate(False)
device_path = _generate(True) device_path = _generate(True)
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""E2E tests for dots.tts native AR offline inference.""" """E2E tests for dots.tts native AR offline inference."""
from collections.abc import Mapping from collections.abc import Mapping
@@ -246,7 +246,7 @@ def _transcribe_for(wav: torch.Tensor, tmp_dir: str, name: str, accepts) -> str:
pytest.param( pytest.param(
"The quick brown fox jumps over the lazy dog.", "The quick brown fox jumps over the lazy dog.",
None, None,
marks=pytest.mark.full_model, marks=pytest.mark.slow,
id="second_text", id="second_text",
), ),
], ],
@@ -274,7 +274,7 @@ def test_gepard_offline_zero_shot(omni_runner, run_level: str, text: str, keywor
assert keyword in transcript, f"expected {keyword!r} in transcript, got {transcript!r}" assert keyword in transcript, f"expected {keyword!r} in transcript, got {transcript!r}"
@pytest.mark.full_model @pytest.mark.slow
@hardware_test(res={"cuda": "L4"}, num_cards=1) @hardware_test(res={"cuda": "L4"}, num_cards=1)
def test_gepard_offline_long_text_skips_repetition(omni_runner, run_level: str) -> None: def test_gepard_offline_long_text_skips_repetition(omni_runner, run_level: str) -> None:
"""The other branch of the prompt layout, end to end. """The other branch of the prompt layout, end to end.
@@ -57,7 +57,7 @@ def omni() -> Generator[Omni, None, None]:
yield runner.omni yield runner.omni
@hardware_test(res={"cuda": "H100"}, num_cards=4) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=4)
def test_i2t_generates_text(omni: Omni) -> None: def test_i2t_generates_text(omni: Omni) -> None:
"""Verify I2T output's first 20 token IDs match the HF greedy baseline.""" """Verify I2T output's first 20 token IDs match the HF greedy baseline."""
# Solid-color image keeps the input self-contained and reproducible. # Solid-color image keeps the input self-contained and reproducible.
@@ -47,7 +47,7 @@ pytestmark = [
] ]
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
def test_lingbot_world_v2_tp1_one_block(omni_runner_handler: OmniRunnerHandler) -> None: def test_lingbot_world_v2_tp1_one_block(omni_runner_handler: OmniRunnerHandler) -> None:
"""Load the real checkpoint and generate one causal block on one GPU.""" """Load the real checkpoint and generate one causal block on one GPU."""
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
from collections.abc import Generator from collections.abc import Generator
from typing import Any
import numpy as np import numpy as np
import pytest import pytest
@@ -105,15 +106,17 @@ def _generate_avatar_frames(
num_frames: int = 5, num_frames: int = 5,
sampling_extra_args: dict | None = None, sampling_extra_args: dict | None = None,
): ):
extra_info: dict[str, Any] = dict(additional_information or {})
extra_info.update({"stage": stage, "resolution": "480p"})
multi_modal_data: dict[str, Any] = {"audio": audio_path}
if image_path is not None:
multi_modal_data["image"] = image_path
prompt = { prompt = {
"prompt": PROMPT, "prompt": PROMPT,
"negative_prompt": NEGATIVE_PROMPT, "negative_prompt": NEGATIVE_PROMPT,
"multi_modal_data": {"audio": audio_path}, "multi_modal_data": multi_modal_data,
"additional_information": additional_information or {}, "additional_information": extra_info,
} }
prompt["additional_information"].update({"stage": stage, "resolution": "480p"})
if image_path is not None:
prompt["multi_modal_data"]["image"] = image_path
outputs = omni_runner.generate( outputs = omni_runner.generate(
[prompt], [prompt],
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""E2E test for Qwen-Image AutoRound W4A16 quantized inference. """E2E test for Qwen-Image AutoRound W4A16 quantized inference.
Verifies that the W4A16 quantized Qwen-Image checkpoint loads end-to-end Verifies that the W4A16 quantized Qwen-Image checkpoint loads end-to-end
@@ -47,8 +47,9 @@ def _first_request_images(outputs) -> list:
return req_out.images return req_out.images
@pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@hardware_test(res={"cuda": "L4"}) @hardware_test(res={"cuda": ["L4", "B200"]})
def test_qwen_image_autoround_w4a16_load(): def test_qwen_image_autoround_w4a16_load():
"""Load the W4A16 quantized Qwen-Image model and run a minimal generation. """Load the W4A16 quantized Qwen-Image model and run a minimal generation.
@@ -68,8 +69,9 @@ def test_qwen_image_autoround_w4a16_load():
assert arr.std() > 1.0, "Generated image appears blank (std ≈ 0)" assert arr.std() > 1.0, "Generated image appears blank (std ≈ 0)"
@pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@hardware_test(res={"cuda": "L4"}) @hardware_test(res={"cuda": ["L4", "B200"]})
def test_qwen_image_autoround_w4a16_generate(): def test_qwen_image_autoround_w4a16_generate():
"""Full generation: 512×512, 20 steps, CFG=5.0. """Full generation: 512×512, 20 steps, CFG=5.0.
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""E2E test for VoxCPM2 native AR offline inference.""" """E2E test for VoxCPM2 native AR offline inference."""
import os import os
@@ -156,7 +156,7 @@ def _generate_t2v_video(offline_client, prompt: str = "A cat sitting on a table"
# ------------------------------------------------------------------ # ------------------------------------------------------------------
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
@pytest.mark.parametrize("omni_runner", quant_i2v_params, indirect=True) @pytest.mark.parametrize("omni_runner", quant_i2v_params, indirect=True)
def test_wan22_i2v_autoround_w4a16_generates_video(omni_runner, offline_client): def test_wan22_i2v_autoround_w4a16_generates_video(omni_runner, offline_client):
"""Load the W4A16 quantized Wan2.2 I2V model and verify it produces a valid video.""" """Load the W4A16 quantized Wan2.2 I2V model and verify it produces a valid video."""
@@ -180,7 +180,7 @@ def test_wan22_i2v_autoround_w4a16_generates_video(omni_runner, offline_client):
# ------------------------------------------------------------------ # ------------------------------------------------------------------
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
@pytest.mark.parametrize("omni_runner", quant_t2v_params, indirect=True) @pytest.mark.parametrize("omni_runner", quant_t2v_params, indirect=True)
def test_wan22_t2v_autoround_w4a16_generates_video(omni_runner, offline_client): def test_wan22_t2v_autoround_w4a16_generates_video(omni_runner, offline_client):
"""Load the W4A16 quantized Wan2.2 T2V model and verify it produces a valid video.""" """Load the W4A16 quantized Wan2.2 T2V model and verify it produces a valid video."""
@@ -202,7 +202,7 @@ def test_wan22_t2v_autoround_w4a16_generates_video(omni_runner, offline_client):
# ------------------------------------------------------------------ # ------------------------------------------------------------------
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
@pytest.mark.parametrize("omni_runner", quant_i2v_params, indirect=True) @pytest.mark.parametrize("omni_runner", quant_i2v_params, indirect=True)
def test_wan22_i2v_autoround_w4a16_quant_peak(omni_runner, offline_client): def test_wan22_i2v_autoround_w4a16_quant_peak(omni_runner, offline_client):
"""Measure peak GPU memory of W4A16 quantized I2V model.""" """Measure peak GPU memory of W4A16 quantized I2V model."""
@@ -218,7 +218,7 @@ def test_wan22_i2v_autoround_w4a16_quant_peak(omni_runner, offline_client):
# ------------------------------------------------------------------ # ------------------------------------------------------------------
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
@pytest.mark.parametrize("omni_runner", baseline_i2v_params, indirect=True) @pytest.mark.parametrize("omni_runner", baseline_i2v_params, indirect=True)
def test_wan22_i2v_autoround_w4a16_baseline_peak(omni_runner, offline_client): def test_wan22_i2v_autoround_w4a16_baseline_peak(omni_runner, offline_client):
"""Measure peak GPU memory of BF16 baseline I2V model.""" """Measure peak GPU memory of BF16 baseline I2V model."""
@@ -234,7 +234,7 @@ def test_wan22_i2v_autoround_w4a16_baseline_peak(omni_runner, offline_client):
# ------------------------------------------------------------------ # ------------------------------------------------------------------
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
def test_wan22_i2v_autoround_w4a16_memory_savings(): def test_wan22_i2v_autoround_w4a16_memory_savings():
"""Assert quantized I2V model uses meaningfully less memory than BF16 baseline.""" """Assert quantized I2V model uses meaningfully less memory than BF16 baseline."""
quant_peak = _memory_results["quant_i2v"] quant_peak = _memory_results["quant_i2v"]
@@ -259,7 +259,7 @@ def test_wan22_i2v_autoround_w4a16_memory_savings():
# ------------------------------------------------------------------ # ------------------------------------------------------------------
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
@pytest.mark.parametrize("omni_runner", quant_t2v_params, indirect=True) @pytest.mark.parametrize("omni_runner", quant_t2v_params, indirect=True)
def test_wan22_t2v_autoround_w4a16_quant_peak(omni_runner, offline_client): def test_wan22_t2v_autoround_w4a16_quant_peak(omni_runner, offline_client):
"""Measure peak GPU memory of W4A16 quantized T2V model.""" """Measure peak GPU memory of W4A16 quantized T2V model."""
@@ -275,7 +275,7 @@ def test_wan22_t2v_autoround_w4a16_quant_peak(omni_runner, offline_client):
# ------------------------------------------------------------------ # ------------------------------------------------------------------
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
@pytest.mark.parametrize("omni_runner", baseline_t2v_params, indirect=True) @pytest.mark.parametrize("omni_runner", baseline_t2v_params, indirect=True)
def test_wan22_t2v_autoround_w4a16_baseline_peak(omni_runner, offline_client): def test_wan22_t2v_autoround_w4a16_baseline_peak(omni_runner, offline_client):
"""Measure peak GPU memory of BF16 baseline T2V model.""" """Measure peak GPU memory of BF16 baseline T2V model."""
@@ -291,7 +291,7 @@ def test_wan22_t2v_autoround_w4a16_baseline_peak(omni_runner, offline_client):
# ------------------------------------------------------------------ # ------------------------------------------------------------------
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
def test_wan22_t2v_autoround_w4a16_memory_savings(): def test_wan22_t2v_autoround_w4a16_memory_savings():
"""Assert quantized T2V model uses meaningfully less memory than BF16 baseline.""" """Assert quantized T2V model uses meaningfully less memory than BF16 baseline."""
quant_peak = _memory_results["quant_t2v"] quant_peak = _memory_results["quant_t2v"]
@@ -33,19 +33,13 @@ NEGATIVE_PROMPT = "low quality, blurry, distorted"
MODEL = "hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_t2v" MODEL = "hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_t2v"
SINGLE_CARD_MARKS = hardware_marks(res={"cuda": "H100"})
PARALLEL_MARKS = hardware_marks(res={"cuda": "H100"}, num_cards=2)
# Only the most basic single-card deployment row is cheap enough for PR (L2) / merge (L3)
# CI; the CacheDiT / parallel feature combinations run nightly (L4).
_CORE_MARKS = [pytest.mark.core_model, pytest.mark.advanced_model]
_FULL_MARKS = [pytest.mark.full_model]
def _get_diffusion_feature_cases(model: str): def _get_diffusion_feature_cases(model: str):
"""Return diffusion feature cases for HunyuanVideo-1.5. """Return diffusion feature cases for HunyuanVideo-1.5.
Designed for 2x H100 environment per issue #1832. Designed for 2x H100 environment per issue #1832.
Only the CPU-offload row is cheap enough for PR (L2) / merge (L3);
CacheDiT / parallel combinations run nightly (L4).
""" """
return [ return [
# (1 GPU) CPU offload # (1 GPU) CPU offload
@@ -57,7 +51,11 @@ def _get_diffusion_feature_cases(model: str):
], ],
), ),
id="single_card_cpu_offload", id="single_card_cpu_offload",
marks=SINGLE_CARD_MARKS + _CORE_MARKS, marks=[
*hardware_marks(res={"cuda": "H100"}),
pytest.mark.core_model,
pytest.mark.advanced_model,
],
), ),
# (1 GPU) CacheDiT + Layerwise CPU offloading # (1 GPU) CacheDiT + Layerwise CPU offloading
pytest.param( pytest.param(
@@ -70,7 +68,10 @@ def _get_diffusion_feature_cases(model: str):
], ],
), ),
id="single_card_cachedit_layerwise", id="single_card_cachedit_layerwise",
marks=SINGLE_CARD_MARKS + _FULL_MARKS, marks=[
*hardware_marks(res={"cuda": ["H100", "B200"]}),
pytest.mark.full_model,
],
), ),
# (2 GPUs) CacheDiT + TP=2 + VAE patch parallel=2 # (2 GPUs) CacheDiT + TP=2 + VAE patch parallel=2
pytest.param( pytest.param(
@@ -87,7 +88,10 @@ def _get_diffusion_feature_cases(model: str):
], ],
), ),
id="parallel_cachedit_tp2_vae2", id="parallel_cachedit_tp2_vae2",
marks=PARALLEL_MARKS + _FULL_MARKS, marks=[
*hardware_marks(res={"cuda": ["H100", "B200"]}, num_cards=2),
pytest.mark.full_model,
],
), ),
] ]
@@ -20,7 +20,7 @@ PROMPT = "a robotic arm picks up a red block"
NEGATIVE_PROMPT = "low quality, blurry, watermark, text" NEGATIVE_PROMPT = "low quality, blurry, watermark, text"
DEFAULT_SAMPLING_PARAMS = '{"0":{"num_frames":81,"num_inference_steps":40,"guidance_scale":6.0}}' DEFAULT_SAMPLING_PARAMS = '{"0":{"num_frames":81,"num_inference_steps":40,"guidance_scale":6.0}}'
SINGLE_CARD_FEATURE_MARKS = hardware_marks(res={"cuda": "H100"}) SINGLE_CARD_FEATURE_MARKS = hardware_marks(res={"cuda": ["H100", "B200"]})
def _get_diffusion_feature_cases(model: str): def _get_diffusion_feature_cases(model: str):
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
L4 expansion coverage for ``robbyant/lingbot-video-dense-1.3b``. L4 expansion coverage for ``robbyant/lingbot-video-dense-1.3b``.
@@ -26,7 +26,7 @@ MODEL = "robbyant/lingbot-video-dense-1.3b"
PROMPT = "a robotic arm picks up a red block" PROMPT = "a robotic arm picks up a red block"
NEGATIVE_PROMPT = "low quality, blurry, watermark, text" NEGATIVE_PROMPT = "low quality, blurry, watermark, text"
SINGLE_CARD_FEATURE_MARKS = hardware_marks(res={"cuda": "H100"}) SINGLE_CARD_FEATURE_MARKS = hardware_marks(res={"cuda": ["H100", "B200"]})
def _get_diffusion_feature_cases(model: str): def _get_diffusion_feature_cases(model: str):
@@ -20,7 +20,7 @@ PROMPT = "a robotic arm picks up a red block"
NEGATIVE_PROMPT = "low quality, blurry, watermark, text" NEGATIVE_PROMPT = "low quality, blurry, watermark, text"
SMOKE_DEFAULT_SAMPLING_PARAMS = '{"0":{"num_frames":81,"num_inference_steps":2,"guidance_scale":3.0}}' SMOKE_DEFAULT_SAMPLING_PARAMS = '{"0":{"num_frames":81,"num_inference_steps":2,"guidance_scale":3.0}}'
SINGLE_CARD_MARKS = hardware_marks(res={"cuda": "H100"}) SINGLE_CARD_MARKS = hardware_marks(res={"cuda": ["H100", "B200"]})
def _get_server_cases(model: str): def _get_server_cases(model: str):
@@ -51,7 +51,7 @@ def _cached_server_vad_artifact() -> None:
) )
@hardware_test(res={"cuda": "H100", "npu": "A3"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"], "npu": "A3"}, num_cards=1)
@pytest.mark.parametrize("omni_server", SERVER_PARAMS, indirect=True) @pytest.mark.parametrize("omni_server", SERVER_PARAMS, indirect=True)
def test_duplex_admission_and_expiry_reaper(omni_server, tmp_path: Path) -> None: def test_duplex_admission_and_expiry_reaper(omni_server, tmp_path: Path) -> None:
args = multi_session_args( args = multi_session_args(
@@ -79,7 +79,7 @@ def test_duplex_admission_and_expiry_reaper(omni_server, tmp_path: Path) -> None
# still talking, which only holds when the duplex pipeline sustains real-time # still talking, which only holds when the duplex pipeline sustains real-time
# throughput. The current NPU stack runs several times slower than real time, # throughput. The current NPU stack runs several times slower than real time,
# so it never reaches a mid-stream decision point. # so it never reaches a mid-stream decision point.
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", SERVER_PARAMS, indirect=True) @pytest.mark.parametrize("omni_server", SERVER_PARAMS, indirect=True)
def test_duplex_soft_interrupt(omni_server, tmp_path: Path) -> None: def test_duplex_soft_interrupt(omni_server, tmp_path: Path) -> None:
input_wav = validated_soft_interrupt_wav() input_wav = validated_soft_interrupt_wav()
@@ -112,7 +112,7 @@ def test_duplex_soft_interrupt(omni_server, tmp_path: Path) -> None:
assert result["followup_response_transcript_ok"] is True assert result["followup_response_transcript_ok"] is True
@hardware_test(res={"cuda": "H100"}, num_cards=1) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", SERVER_PARAMS, indirect=True) @pytest.mark.parametrize("omni_server", SERVER_PARAMS, indirect=True)
def test_duplex_server_vad_hard_interrupt(_cached_server_vad_artifact, omni_server) -> None: def test_duplex_server_vad_hard_interrupt(_cached_server_vad_artifact, omni_server) -> None:
result = asyncio.run( result = asyncio.run(
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""E2E online serving test for π0 (Pi-Zero) OpenPI websocket serving. """E2E online serving test for π0 (Pi-Zero) OpenPI websocket serving.
@@ -58,7 +58,7 @@ test_params = [
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.diffusion @pytest.mark.diffusion
@hardware_test(res={"cuda": "H100"}) @hardware_test(res={"cuda": ["H100", "B200"]})
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_pi0_openpi_online(omni_server): def test_pi0_openpi_online(omni_server):
try: try:
@@ -91,7 +91,7 @@ def _assert_audio_outputs(responses: list[OmniResponse], *, expect_text: bool) -
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.omni @pytest.mark.omni
@hardware_test(res={"cuda": "H100"}, num_cards=4) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=4)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_text_only_batch_uses_multi_replica_talker(omni_server, online_client) -> None: def test_text_only_batch_uses_multi_replica_talker(omni_server, online_client) -> None:
request_config = { request_config = {
@@ -108,7 +108,7 @@ def test_text_only_batch_uses_multi_replica_talker(omni_server, online_client) -
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.omni @pytest.mark.omni
@hardware_test(res={"cuda": "H100"}, num_cards=4) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=4)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_text_to_audio_stream_batch_uses_multi_replica_vocoder(omni_server, online_client) -> None: def test_text_to_audio_stream_batch_uses_multi_replica_vocoder(omni_server, online_client) -> None:
request_config = { request_config = {
@@ -125,7 +125,7 @@ def test_text_to_audio_stream_batch_uses_multi_replica_vocoder(omni_server, onli
@pytest.mark.full_model @pytest.mark.full_model
@pytest.mark.omni @pytest.mark.omni
@hardware_test(res={"cuda": "H100"}, num_cards=4) @hardware_test(res={"cuda": ["H100", "B200"]}, num_cards=4)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_mixed_modal_stream_batch_generates_text_and_audio(omni_server, online_client) -> None: def test_mixed_modal_stream_batch_generates_text_and_audio(omni_server, online_client) -> None:
request_config = { request_config = {
@@ -69,7 +69,7 @@ tts_no_async_chunk_server_params = [
DEFAULT_AUDIO_SPEECH_TIMEOUT_S = 180.0 DEFAULT_AUDIO_SPEECH_TIMEOUT_S = 180.0
@hardware_test(res={"cuda": "L4"}, num_cards=1) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=1)
@pytest.mark.parametrize( @pytest.mark.parametrize(
"omni_server", "omni_server",
tts_async_chunk_server_params + tts_no_async_chunk_server_params, tts_async_chunk_server_params + tts_no_async_chunk_server_params,
@@ -99,7 +99,7 @@ def test_voice_clone_streaming_001(omni_server, online_client) -> None:
online_client.send_audio_speech_request(request_config, request_num=get_max_batch_size("few")) online_client.send_audio_speech_request(request_config, request_num=get_max_batch_size("few"))
@hardware_test(res={"cuda": "L4"}, num_cards=1) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=1)
@pytest.mark.parametrize( @pytest.mark.parametrize(
"omni_server", "omni_server",
tts_async_chunk_server_params + tts_no_async_chunk_server_params, tts_async_chunk_server_params + tts_no_async_chunk_server_params,
@@ -127,7 +127,7 @@ def test_response_format_001(omni_server, online_client) -> None:
online_client.send_audio_speech_request(request_config) online_client.send_audio_speech_request(request_config)
@hardware_test(res={"cuda": "L4"}, num_cards=1) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", tts_async_chunk_server_params, indirect=True) @pytest.mark.parametrize("omni_server", tts_async_chunk_server_params, indirect=True)
def test_xvector_then_icl_same_ref_audio_keeps_engine_alive(omni_server, online_client) -> None: def test_xvector_then_icl_same_ref_audio_keeps_engine_alive(omni_server, online_client) -> None:
"""Regression for #5049: x-vector-only then ICL on the same ``ref_audio``. """Regression for #5049: x-vector-only then ICL on the same ``ref_audio``.
@@ -60,7 +60,7 @@ tts_server_params = [
] ]
@hardware_test(res={"cuda": "L4"}, num_cards=1) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", tts_server_params, indirect=True) @pytest.mark.parametrize("omni_server", tts_server_params, indirect=True)
def test_voice_001(omni_server, online_client) -> None: def test_voice_001(omni_server, online_client) -> None:
""" """
@@ -92,7 +92,7 @@ def test_voice_001(omni_server, online_client) -> None:
raise raise
@hardware_test(res={"cuda": "L4"}, num_cards=1) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", tts_server_params, indirect=True) @pytest.mark.parametrize("omni_server", tts_server_params, indirect=True)
def test_voice_002(omni_server, online_client) -> None: def test_voice_002(omni_server, online_client) -> None:
""" """
@@ -115,7 +115,7 @@ def test_voice_002(omni_server, online_client) -> None:
online_client.send_audio_speech_request(request_config) online_client.send_audio_speech_request(request_config)
@hardware_test(res={"cuda": "L4"}, num_cards=1) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", tts_server_params, indirect=True) @pytest.mark.parametrize("omni_server", tts_server_params, indirect=True)
def test_voice_003(omni_server, online_client) -> None: def test_voice_003(omni_server, online_client) -> None:
""" """
@@ -138,7 +138,7 @@ def test_voice_003(omni_server, online_client) -> None:
online_client.send_audio_speech_request(request_config) online_client.send_audio_speech_request(request_config)
@hardware_test(res={"cuda": "L4"}, num_cards=1) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", tts_server_params, indirect=True) @pytest.mark.parametrize("omni_server", tts_server_params, indirect=True)
def test_sample_rate_001(omni_server, online_client) -> None: def test_sample_rate_001(omni_server, online_client) -> None:
"""The speech API resamples Qwen3-TTS output from native 24 kHz to 8 kHz.""" """The speech API resamples Qwen3-TTS output from native 24 kHz to 8 kHz."""
@@ -155,7 +155,7 @@ def test_sample_rate_001(omni_server, online_client) -> None:
online_client.send_audio_speech_request(request_config) online_client.send_audio_speech_request(request_config)
@hardware_test(res={"cuda": "L4"}, num_cards=1) @hardware_test(res={"cuda": ["L4", "B200"]}, num_cards=1)
@pytest.mark.parametrize("omni_server", tts_server_params, indirect=True) @pytest.mark.parametrize("omni_server", tts_server_params, indirect=True)
def test_language_001(omni_server, online_client) -> None: def test_language_001(omni_server, online_client) -> None:
""" """
@@ -21,8 +21,8 @@ pytestmark = [pytest.mark.diffusion, pytest.mark.full_model]
T2I_PROMPT = "A photo of a cat sitting on a laptop keyboard, digital art style." T2I_PROMPT = "A photo of a cat sitting on a laptop keyboard, digital art style."
NEGATIVE_PROMPT = "blurry, low quality" NEGATIVE_PROMPT = "blurry, low quality"
SINGLE_CARD_FEATURE_MARKS = hardware_marks(res={"cuda": "H100"}) SINGLE_CARD_FEATURE_MARKS = hardware_marks(res={"cuda": ["H100", "B200"]})
PARALLEL_FEATURE_MARKS = hardware_marks(res={"cuda": "H100"}, num_cards=2) PARALLEL_FEATURE_MARKS = hardware_marks(res={"cuda": ["H100", "B200"]}, num_cards=2)
MODEL_IMAGE = "Qwen/Qwen-Image" MODEL_IMAGE = "Qwen/Qwen-Image"
MODEL_2512 = "Qwen/Qwen-Image-2512" MODEL_2512 = "Qwen/Qwen-Image-2512"
+1 -1
View File
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
Online serving smoke for SANA-WM image-to-video (first-frame I2V via ``/v1/videos``). Online serving smoke for SANA-WM image-to-video (first-frame I2V via ``/v1/videos``).
@@ -30,8 +30,8 @@ PROMPT = "Two anthropomorphic cats in comfy boxing gear and bright gloves fight
NEGATIVE_PROMPT = "low quality, blurry, distorted face, extra limbs, bad anatomy, watermark, logo, text, ugly, deformed, mutated, jpeg artifacts" NEGATIVE_PROMPT = "low quality, blurry, distorted face, extra limbs, bad anatomy, watermark, logo, text, ugly, deformed, mutated, jpeg artifacts"
# CUDA marks (original matrix, unchanged) # CUDA marks (original matrix, unchanged)
CUDA_SINGLE_CARD_MARKS = hardware_marks(res={"cuda": "H100"}) CUDA_SINGLE_CARD_MARKS = hardware_marks(res={"cuda": ["H100", "B200"]})
CUDA_PARALLEL_MARKS = hardware_marks(res={"cuda": "H100"}, num_cards=2) CUDA_PARALLEL_MARKS = hardware_marks(res={"cuda": ["H100", "B200"]}, num_cards=2)
# NPU marks # NPU marks
NPU_TWO_CARD_MARKS = hardware_marks(res={"npu": "A2"}, num_cards=2) NPU_TWO_CARD_MARKS = hardware_marks(res={"npu": "A2"}, num_cards=2)
@@ -19,7 +19,7 @@ import pytest
from tests.helpers.mark import hardware_marks from tests.helpers.mark import hardware_marks
from tests.helpers.runtime import OmniServer, OmniServerParams, OnlineOmniClient from tests.helpers.runtime import OmniServer, OmniServerParams, OnlineOmniClient
pytestmark = [pytest.mark.diffusion, pytest.mark.full_model] pytestmark = [pytest.mark.diffusion, pytest.mark.slow]
MODEL = "Tongyi-MAI/Z-Image-Turbo" MODEL = "Tongyi-MAI/Z-Image-Turbo"
PROMPT = "A high-detail studio photo of an orange tabby cat sitting on a laptop keyboard." PROMPT = "A high-detail studio photo of an orange tabby cat sitting on a laptop keyboard."
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
Offline inference tests: image-to-video. Offline inference tests: image-to-video.
See examples/offline_inference/image_to_video/README.md See examples/offline_inference/image_to_video/README.md
@@ -17,7 +20,7 @@ pytestmark = [
pytest.mark.usefixtures("clean_gpu_memory_between_tests"), pytest.mark.usefixtures("clean_gpu_memory_between_tests"),
pytest.mark.full_model, pytest.mark.full_model,
pytest.mark.example, pytest.mark.example,
*hardware_marks(res={"cuda": "H100"}), *hardware_marks(res={"cuda": ["H100", "B200"]}),
] ]
I2V_SCRIPT = EXAMPLES / "offline_inference" / "image_to_video" / "image_to_video.py" I2V_SCRIPT = EXAMPLES / "offline_inference" / "image_to_video" / "image_to_video.py"
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project # SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""Offline E2E test for InternVLA-A1 open-loop inference.""" """Offline E2E test for InternVLA-A1 open-loop inference."""
@@ -26,6 +26,7 @@ def _required_env(name: str) -> str:
value = os.getenv(name) value = os.getenv(name)
if not value: if not value:
pytest.skip(f"{name} is not set") pytest.skip(f"{name} is not set")
assert value
return value return value
@@ -18,7 +18,7 @@ pytestmark = [
pytest.mark.usefixtures("clean_gpu_memory_between_tests"), pytest.mark.usefixtures("clean_gpu_memory_between_tests"),
pytest.mark.full_model, pytest.mark.full_model,
pytest.mark.example, pytest.mark.example,
*hardware_marks(res={"cuda": "H100"}), *hardware_marks(res={"cuda": ["H100", "B200"]}),
] ]
T2I_SCRIPT = EXAMPLES / "offline_inference" / "text_to_image" / "text_to_image.py" T2I_SCRIPT = EXAMPLES / "offline_inference" / "text_to_image" / "text_to_image.py"
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""VACE coverage through the shared text-to-video and image-to-video examples.""" """VACE coverage through the shared text-to-video and image-to-video examples."""
from pathlib import Path from pathlib import Path
@@ -14,7 +17,7 @@ pytestmark = [
pytest.mark.full_model, pytest.mark.full_model,
pytest.mark.diffusion, pytest.mark.diffusion,
pytest.mark.example, pytest.mark.example,
*hardware_marks(res={"cuda": "H100"}), *hardware_marks(res={"cuda": ["H100", "B200"]}),
] ]
TEXT_TO_VIDEO_README = EXAMPLES / "offline_inference" / "text_to_video" / "text_to_video.md" TEXT_TO_VIDEO_README = EXAMPLES / "offline_inference" / "text_to_video" / "text_to_video.md"
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
Online serving tests: Qwen2.5-Omni-7B. Online serving tests: Qwen2.5-Omni-7B.
See examples/online_serving/qwen2_5_omni/README.md See examples/online_serving/qwen2_5_omni/README.md
@@ -42,7 +45,7 @@ test_params = [
common_args = ["python", os.path.join(example_dir, "openai_chat_completion_client_for_multimodal_generation.py")] common_args = ["python", os.path.join(example_dir, "openai_chat_completion_client_for_multimodal_generation.py")]
@hardware_test(res={"cuda": "L4", "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2}) @hardware_test(res={"cuda": ["L4", "B200"], "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2})
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_send_multimodal_request_001(omni_server) -> None: def test_send_multimodal_request_001(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -77,7 +80,7 @@ def test_send_multimodal_request_001(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "L4", "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2}) @hardware_test(res={"cuda": ["L4", "B200"], "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2})
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_send_multimodal_request_002(omni_server) -> None: def test_send_multimodal_request_002(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -112,7 +115,7 @@ def test_send_multimodal_request_002(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "L4", "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2}) @hardware_test(res={"cuda": ["L4", "B200"], "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2})
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_send_multimodal_request_003(omni_server) -> None: def test_send_multimodal_request_003(omni_server) -> None:
command = [ command = [
@@ -137,7 +140,7 @@ def test_send_multimodal_request_003(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "L4", "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2}) @hardware_test(res={"cuda": ["L4", "B200"], "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2})
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_modality_control_001(omni_server) -> None: def test_modality_control_001(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -165,7 +168,7 @@ def test_modality_control_001(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "L4", "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2}) @hardware_test(res={"cuda": ["L4", "B200"], "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2})
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_modality_control_002(omni_server) -> None: def test_modality_control_002(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -192,7 +195,7 @@ def test_modality_control_002(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "L4", "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2}) @hardware_test(res={"cuda": ["L4", "B200"], "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2})
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_modality_control_003(omni_server) -> None: def test_modality_control_003(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -228,7 +231,7 @@ def test_modality_control_003(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "L4", "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2}) @hardware_test(res={"cuda": ["L4", "B200"], "rocm": "MI325"}, num_cards={"cuda": 4, "rocm": 2})
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_stream_001(omni_server) -> None: def test_stream_001(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
Online serving tests: Qwen3-Omni. Online serving tests: Qwen3-Omni.
See examples/online_serving/qwen3_omni/README.md See examples/online_serving/qwen3_omni/README.md
@@ -41,7 +44,7 @@ test_params = [
common_args = ["python", os.path.join(example_dir, "openai_chat_completion_client_for_multimodal_generation.py")] common_args = ["python", os.path.join(example_dir, "openai_chat_completion_client_for_multimodal_generation.py")]
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"], "rocm": "MI325"}, num_cards=2)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_send_multimodal_request_001(omni_server) -> None: def test_send_multimodal_request_001(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -69,7 +72,7 @@ def test_send_multimodal_request_001(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"], "rocm": "MI325"}, num_cards=2)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_send_multimodal_request_002(omni_server) -> None: def test_send_multimodal_request_002(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -100,7 +103,7 @@ def test_send_multimodal_request_002(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"], "rocm": "MI325"}, num_cards=2)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_send_multimodal_request_003(omni_server) -> None: def test_send_multimodal_request_003(omni_server) -> None:
command = ["bash", os.path.join(example_dir, "qwen3_omni/run_curl_multimodal_generation.sh"), "use_image"] command = ["bash", os.path.join(example_dir, "qwen3_omni/run_curl_multimodal_generation.sh"), "use_image"]
@@ -115,7 +118,7 @@ def test_send_multimodal_request_003(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"], "rocm": "MI325"}, num_cards=2)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_modality_control_001(omni_server) -> None: def test_modality_control_001(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -137,7 +140,7 @@ def test_modality_control_001(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"], "rocm": "MI325"}, num_cards=2)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_modality_control_002(omni_server) -> None: def test_modality_control_002(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -159,7 +162,7 @@ def test_modality_control_002(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"], "rocm": "MI325"}, num_cards=2)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_modality_control_003(omni_server) -> None: def test_modality_control_003(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -189,7 +192,7 @@ def test_modality_control_003(omni_server) -> None:
# TODO: Verify the E2E latency after confirmation baseline. # TODO: Verify the E2E latency after confirmation baseline.
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2) @hardware_test(res={"cuda": ["H100", "B200"], "rocm": "MI325"}, num_cards=2)
@pytest.mark.parametrize("omni_server", test_params, indirect=True) @pytest.mark.parametrize("omni_server", test_params, indirect=True)
def test_stream_001(omni_server) -> None: def test_stream_001(omni_server) -> None:
command = common_args + [ command = common_args + [
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
Online serving tests: text-to-image. Online serving tests: text-to-image.
See examples/online_serving/text_to_image/README.md See examples/online_serving/text_to_image/README.md
@@ -18,7 +21,7 @@ from tests.helpers.assertions import assert_image_valid
from tests.helpers.mark import hardware_marks from tests.helpers.mark import hardware_marks
from tests.helpers.runtime import OmniServer, OmniServerParams from tests.helpers.runtime import OmniServer, OmniServerParams
pytestmark = [pytest.mark.full_model, pytest.mark.example, *hardware_marks(res={"cuda": "H100"})] pytestmark = [pytest.mark.full_model, pytest.mark.example, *hardware_marks(res={"cuda": ["H100", "B200"]})]
T2I_ONLINE_CLIENT = EXAMPLES / "online_serving" / "text_to_image" / "openai_chat_client.py" T2I_ONLINE_CLIENT = EXAMPLES / "online_serving" / "text_to_image" / "openai_chat_client.py"
EXAMPLE_OUTPUT_SUBFOLDER = "example_online_t2i" EXAMPLE_OUTPUT_SUBFOLDER = "example_online_t2i"
@@ -1,3 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
""" """
Analogous to: https://github.com/vllm-project/vllm/blob/v0.23.0/tests/models/multimodal/generation/vlm_utils/case_filtering.py Analogous to: https://github.com/vllm-project/vllm/blob/v0.23.0/tests/models/multimodal/generation/vlm_utils/case_filtering.py
@@ -45,7 +48,6 @@ def get_test_group_marks(model_name: str, test_group: list[DiffusionAccs] | None
f"but the max CI device count is {MAX_CI_DEVICES}. " f"but the max CI device count is {MAX_CI_DEVICES}. "
) )
marks.extend(hardware_marks(res={"cuda": "L4"}, num_cards=required_devices))
# hardware_marks only adds skipif for num_cards > 1, so we currently handle the single-device case # hardware_marks only adds skipif for num_cards > 1, so we currently handle the single-device case
# directly here. This should probably be handled in a more common way later on. # directly here. This should probably be handled in a more common way later on.
assert current_omni_platform is not None and current_omni_platform.device_count is not None assert current_omni_platform is not None and current_omni_platform.device_count is not None
@@ -53,8 +55,10 @@ def get_test_group_marks(model_name: str, test_group: list[DiffusionAccs] | None
if current_omni_platform.is_cuda() and device_count < required_devices: if current_omni_platform.is_cuda() and device_count < required_devices:
marks.append(pytest.mark.skip(reason=f"Need {required_devices} devices, got {device_count}")) marks.append(pytest.mark.skip(reason=f"Need {required_devices} devices, got {device_count}"))
if required_devices > 1: if required_devices > 1:
marks.extend(hardware_marks(res={"cuda": ["L4", "B200"]}, num_cards=required_devices))
marks.append(pytest.mark.full_model) marks.append(pytest.mark.full_model)
else: else:
marks.extend(hardware_marks(res={"cuda": "L4"}, num_cards=1))
marks.append(pytest.mark.core_model) marks.append(pytest.mark.core_model)
return marks return marks