[Test] Reduce Perf test case and fix modify stage config (#1449)
Signed-off-by: yenuo26 <410167048@qq.com>
This commit is contained in:
1 parent
5e7974c15b
commit
1ae2e1e4c4
6 files changed
+40
-151
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
steps:
|
steps:
|
||||||
- label: "Omni Model Test with H100"
|
- label: "Omni Model Test with H100"
|
||||||
timeout_in_minutes: 60
|
timeout_in_minutes: 90
|
||||||
depends_on: upload-nightly-pipeline
|
depends_on: upload-nightly-pipeline
|
||||||
if: build.env("NIGHTLY") == "1"
|
if: build.env("NIGHTLY") == "1"
|
||||||
commands:
|
commands:
|
||||||
@@ -41,7 +41,6 @@ steps:
|
|||||||
depends_on: upload-nightly-pipeline
|
depends_on: upload-nightly-pipeline
|
||||||
if: build.env("NIGHTLY") == "1"
|
if: build.env("NIGHTLY") == "1"
|
||||||
commands:
|
commands:
|
||||||
- export VLLM_LOGGING_LEVEL=DEBUG
|
|
||||||
- export VLLM_WORKER_MULTIPROC_METHOD=spawn
|
- export VLLM_WORKER_MULTIPROC_METHOD=spawn
|
||||||
- pytest -s -v tests/examples/online_serving/test_qwen2_5_omni.py -m "advanced_model" --run-level "advanced_model"
|
- pytest -s -v tests/examples/online_serving/test_qwen2_5_omni.py -m "advanced_model" --run-level "advanced_model"
|
||||||
agents:
|
agents:
|
||||||
@@ -50,6 +49,7 @@ steps:
|
|||||||
- docker#v5.2.0:
|
- docker#v5.2.0:
|
||||||
image: public.ecr.aws/q9t5s3a7/vllm-ci-test-repo:$BUILDKITE_COMMIT
|
image: public.ecr.aws/q9t5s3a7/vllm-ci-test-repo:$BUILDKITE_COMMIT
|
||||||
always-pull: true
|
always-pull: true
|
||||||
|
shm-size: "8gb"
|
||||||
propagate-environment: true
|
propagate-environment: true
|
||||||
environment:
|
environment:
|
||||||
- "HF_HOME=/fsx/hf_cache"
|
- "HF_HOME=/fsx/hf_cache"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ COPY . .
|
|||||||
|
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y ffmpeg sox libsox-fmt-all && \
|
apt-get install -y ffmpeg sox libsox-fmt-all jq && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|||||||
+33
-32
@@ -848,41 +848,42 @@ def modify_stage_config(
|
|||||||
del config[key]
|
del config[key]
|
||||||
|
|
||||||
# Apply updates
|
# Apply updates
|
||||||
for key, value in updates.items():
|
if updates:
|
||||||
if key == "stage_args":
|
for key, value in updates.items():
|
||||||
if value and isinstance(value, dict):
|
if key == "stage_args":
|
||||||
stage_args = config.get("stage_args", [])
|
if value and isinstance(value, dict):
|
||||||
if not stage_args:
|
stage_args = config.get("stage_args", [])
|
||||||
raise ValueError("stage_args does not exist in config")
|
if not stage_args:
|
||||||
|
raise ValueError("stage_args does not exist in config")
|
||||||
|
|
||||||
for stage_id, stage_updates in value.items():
|
for stage_id, stage_updates in value.items():
|
||||||
# Find stage by ID
|
# Find stage by ID
|
||||||
target_stage = None
|
target_stage = None
|
||||||
for stage in stage_args:
|
for stage in stage_args:
|
||||||
if stage.get("stage_id") == int(stage_id):
|
if stage.get("stage_id") == int(stage_id):
|
||||||
target_stage = stage
|
target_stage = stage
|
||||||
break
|
break
|
||||||
|
|
||||||
if target_stage is None:
|
if target_stage is None:
|
||||||
available_ids = [s.get("stage_id") for s in stage_args if "stage_id" in s]
|
available_ids = [s.get("stage_id") for s in stage_args if "stage_id" in s]
|
||||||
raise KeyError(f"Stage ID {stage_id} not found, available: {available_ids}")
|
raise KeyError(f"Stage ID {stage_id} not found, available: {available_ids}")
|
||||||
|
|
||||||
# Apply updates to this stage
|
# Apply updates to this stage
|
||||||
for path, val in stage_updates.items():
|
for path, val in stage_updates.items():
|
||||||
# Check if this is a simple key (not dot-separated)
|
# Check if this is a simple key (not dot-separated)
|
||||||
# Example: 'engine_input_source' vs 'engine_args.max_model_len'
|
# Example: 'engine_input_source' vs 'engine_args.max_model_len'
|
||||||
if "." not in path:
|
if "." not in path:
|
||||||
# Direct key assignment (e.g., updating a list value)
|
# Direct key assignment (e.g., updating a list value)
|
||||||
target_stage[path] = val
|
target_stage[path] = val
|
||||||
else:
|
else:
|
||||||
# Dot-separated path (e.g., nested dict access)
|
# Dot-separated path (e.g., nested dict access)
|
||||||
apply_update(target_stage, path, val)
|
apply_update(target_stage, path, val)
|
||||||
elif "." in key:
|
elif "." in key:
|
||||||
# Apply using dot-separated path
|
# Apply using dot-separated path
|
||||||
apply_update(config, key, value)
|
apply_update(config, key, value)
|
||||||
else:
|
else:
|
||||||
# Direct top-level key
|
# Direct top-level key
|
||||||
config[key] = value
|
config[key] = value
|
||||||
|
|
||||||
# Save to new file with timestamp
|
# Save to new file with timestamp
|
||||||
timestamp = int(time.time())
|
timestamp = int(time.time())
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ def test_mix_to_text_audio_001(omni_server, openai_client) -> None:
|
|||||||
"messages": messages,
|
"messages": messages,
|
||||||
"stream": True,
|
"stream": True,
|
||||||
"key_words": {
|
"key_words": {
|
||||||
"audio": ["water", "chirping", "crackling"],
|
"audio": ["water", "chirping", "crackling", "rain"],
|
||||||
"image": ["square", "quadrate"],
|
"image": ["square", "quadrate"],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ from tests.utils import hardware_test
|
|||||||
|
|
||||||
models = ["Qwen/Qwen3-Omni-30B-A3B-Instruct"]
|
models = ["Qwen/Qwen3-Omni-30B-A3B-Instruct"]
|
||||||
|
|
||||||
AUDIO_KEY = ["water", "chirping", "crackling"]
|
AUDIO_KEY = ["water", "chirping", "crackling", "rain"]
|
||||||
IMAGE_KEY = ["square", "quadrate"]
|
IMAGE_KEY = ["square", "quadrate"]
|
||||||
VIDEO_KEY = ["sphere", "globe", "circle", "round", "ball"]
|
VIDEO_KEY = ["sphere", "globe", "circle", "round", "ball"]
|
||||||
|
|
||||||
@@ -267,6 +267,7 @@ def test_text_image_to_text_audio_001(omni_server, openai_client) -> None:
|
|||||||
openai_client.send_request(request_config)
|
openai_client.send_request(request_config)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip(reason="There is a known issue with oom error.")
|
||||||
@pytest.mark.advanced_model
|
@pytest.mark.advanced_model
|
||||||
@pytest.mark.omni
|
@pytest.mark.omni
|
||||||
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2)
|
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2)
|
||||||
@@ -287,6 +288,7 @@ def test_text_video_to_text_audio_001(omni_server, openai_client) -> None:
|
|||||||
openai_client.send_request(request_config, request_num=get_max_batch_size())
|
openai_client.send_request(request_config, request_num=get_max_batch_size())
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip(reason="There is a known issue with shape mismatch error.")
|
||||||
@pytest.mark.advanced_model
|
@pytest.mark.advanced_model
|
||||||
@pytest.mark.omni
|
@pytest.mark.omni
|
||||||
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2)
|
@hardware_test(res={"cuda": "H100", "rocm": "MI325"}, num_cards=2)
|
||||||
|
|||||||
@@ -6,28 +6,6 @@
|
|||||||
"stage_config_name": "qwen3_omni.yaml"
|
"stage_config_name": "qwen3_omni.yaml"
|
||||||
},
|
},
|
||||||
"benchmark_params": [
|
"benchmark_params": [
|
||||||
{
|
|
||||||
"dataset_name": "random",
|
|
||||||
"num_prompts": [
|
|
||||||
10,
|
|
||||||
40,
|
|
||||||
100
|
|
||||||
],
|
|
||||||
"request_rate": [
|
|
||||||
0.1,
|
|
||||||
0.5,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"random_input_len": 2500,
|
|
||||||
"random_output_len": 900,
|
|
||||||
"ignore_eos": true,
|
|
||||||
"percentile-metrics": "ttft,tpot,itl,e2el,audio_rtf,audio_ttfp,audio_duration",
|
|
||||||
"baseline": {
|
|
||||||
"mean_ttft_ms": 100000,
|
|
||||||
"mean_audio_ttfp_ms": 100000,
|
|
||||||
"mean_audio_rtf": 100000
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"dataset_name": "random",
|
"dataset_name": "random",
|
||||||
"num_prompts": [
|
"num_prompts": [
|
||||||
@@ -84,41 +62,6 @@
|
|||||||
"mean_audio_ttfp_ms": 100000,
|
"mean_audio_ttfp_ms": 100000,
|
||||||
"mean_audio_rtf": 100000
|
"mean_audio_rtf": 100000
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"dataset_name": "random-mm",
|
|
||||||
"num_prompts": [
|
|
||||||
10,
|
|
||||||
40,
|
|
||||||
100
|
|
||||||
],
|
|
||||||
"request_rate": [
|
|
||||||
0.1,
|
|
||||||
0.5,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"random_input_len": 100,
|
|
||||||
"random_output_len": 100,
|
|
||||||
"random_range_ratio": 0.0,
|
|
||||||
"ignore_eos": true,
|
|
||||||
"random_mm_base_items_per_request": 3,
|
|
||||||
"random_mm_num_mm_items_range_ratio": 0,
|
|
||||||
"random_mm_limit_mm_per_prompt": {
|
|
||||||
"image": 1,
|
|
||||||
"video": 1,
|
|
||||||
"audio": 1
|
|
||||||
},
|
|
||||||
"random_mm_bucket_config": {
|
|
||||||
"(32, 32, 1)": 0.5,
|
|
||||||
"(0, 1, 1)": 0.1,
|
|
||||||
"(32, 32, 2)": 0.4
|
|
||||||
},
|
|
||||||
"percentile-metrics": "ttft,tpot,itl,e2el,audio_rtf,audio_ttfp,audio_duration",
|
|
||||||
"baseline": {
|
|
||||||
"mean_ttft_ms": 100000,
|
|
||||||
"mean_audio_ttfp_ms": 100000,
|
|
||||||
"mean_audio_rtf": 100000
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -147,28 +90,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"benchmark_params": [
|
"benchmark_params": [
|
||||||
{
|
|
||||||
"dataset_name": "random",
|
|
||||||
"num_prompts": [
|
|
||||||
10,
|
|
||||||
40,
|
|
||||||
100
|
|
||||||
],
|
|
||||||
"request_rate": [
|
|
||||||
0.1,
|
|
||||||
0.5,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"random_input_len": 2500,
|
|
||||||
"random_output_len": 900,
|
|
||||||
"ignore_eos": true,
|
|
||||||
"percentile-metrics": "ttft,tpot,itl,e2el,audio_rtf,audio_ttfp,audio_duration",
|
|
||||||
"baseline": {
|
|
||||||
"mean_ttft_ms": 100000,
|
|
||||||
"mean_audio_ttfp_ms": 100000,
|
|
||||||
"mean_audio_rtf": 100000
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"dataset_name": "random",
|
"dataset_name": "random",
|
||||||
"num_prompts": [
|
"num_prompts": [
|
||||||
@@ -225,41 +146,6 @@
|
|||||||
"mean_audio_ttfp_ms": 100000,
|
"mean_audio_ttfp_ms": 100000,
|
||||||
"mean_audio_rtf": 100000
|
"mean_audio_rtf": 100000
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"dataset_name": "random-mm",
|
|
||||||
"num_prompts": [
|
|
||||||
10,
|
|
||||||
40,
|
|
||||||
100
|
|
||||||
],
|
|
||||||
"request_rate": [
|
|
||||||
0.1,
|
|
||||||
0.5,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"random_input_len": 100,
|
|
||||||
"random_output_len": 100,
|
|
||||||
"random_range_ratio": 0.0,
|
|
||||||
"ignore_eos": true,
|
|
||||||
"random_mm_base_items_per_request": 3,
|
|
||||||
"random_mm_num_mm_items_range_ratio": 0,
|
|
||||||
"random_mm_limit_mm_per_prompt": {
|
|
||||||
"image": 1,
|
|
||||||
"video": 1,
|
|
||||||
"audio": 1
|
|
||||||
},
|
|
||||||
"random_mm_bucket_config": {
|
|
||||||
"(32, 32, 1)": 0.5,
|
|
||||||
"(0, 1, 1)": 0.1,
|
|
||||||
"(32, 32, 2)": 0.4
|
|
||||||
},
|
|
||||||
"percentile-metrics": "ttft,tpot,itl,e2el,audio_rtf,audio_ttfp,audio_duration",
|
|
||||||
"baseline": {
|
|
||||||
"mean_ttft_ms": 100000,
|
|
||||||
"mean_audio_ttfp_ms": 100000,
|
|
||||||
"mean_audio_rtf": 100000
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user