[Benchmark] Add local OmniInteract performance cases (#6817)
Signed-off-by: natureofnature <wzliu@connect.hku.hk> Co-authored-by: Ruirui Yang | Rein <73573651+R2-Y@users.noreply.github.com> Co-authored-by: amy-why-3459 <wuhaiyan17@huawei.com>
This commit is contained in:
6 files changed
+167
-5
No files matched your search
@@ -0,0 +1,87 @@
|
||||
[
|
||||
{
|
||||
"test_name": "test_minicpmo_4_5_omniinteract",
|
||||
"mark": [
|
||||
{
|
||||
"hardware_marks": {
|
||||
"res": {
|
||||
"cuda": "H100"
|
||||
},
|
||||
"num_cards": 1
|
||||
}
|
||||
},
|
||||
"local_model",
|
||||
"omni"
|
||||
],
|
||||
"server_params": {
|
||||
"model": "openbmb/MiniCPM-o-4_5",
|
||||
"extra_cli_args": [
|
||||
"--deploy-config",
|
||||
"vllm_omni/deploy/minicpmo_4_5.yaml",
|
||||
"--trust-remote-code"
|
||||
]
|
||||
},
|
||||
"benchmark_params": [
|
||||
{
|
||||
"dataset_name": "omniinteract",
|
||||
"dataset_path": "lucky-lance/OmniInteract@e195f75fe2666fcc5fe74f537ae49ca143a79969",
|
||||
"backend": "openai-realtime-duplex",
|
||||
"endpoint": "/v1/realtime",
|
||||
"num_prompts": [
|
||||
4
|
||||
],
|
||||
"max_concurrency": [
|
||||
2
|
||||
],
|
||||
"num_warmups": 0,
|
||||
"disable_shuffle": true,
|
||||
"trust_remote_code": true,
|
||||
"omniinteract_subsets": "1q1a",
|
||||
"omniinteract_ref_audio": "tests/assets/minicpmo_4_5/response_required_16k.wav",
|
||||
"omniinteract_output_dir": "tests/dfx/perf/results/omniinteract/1q1a",
|
||||
"omniinteract_max_video_duration_s": 600,
|
||||
"percentile-metrics": "ttft,tpot,itl,e2el,audio_ttfp,audio_rtf,audio_duration"
|
||||
},
|
||||
{
|
||||
"dataset_name": "omniinteract",
|
||||
"dataset_path": "lucky-lance/OmniInteract@e195f75fe2666fcc5fe74f537ae49ca143a79969",
|
||||
"backend": "openai-realtime-duplex",
|
||||
"endpoint": "/v1/realtime",
|
||||
"num_prompts": [
|
||||
4
|
||||
],
|
||||
"max_concurrency": [
|
||||
2
|
||||
],
|
||||
"num_warmups": 0,
|
||||
"disable_shuffle": true,
|
||||
"trust_remote_code": true,
|
||||
"omniinteract_subsets": "1q1a_math",
|
||||
"omniinteract_ref_audio": "tests/assets/minicpmo_4_5/response_required_16k.wav",
|
||||
"omniinteract_output_dir": "tests/dfx/perf/results/omniinteract/1q1a_math",
|
||||
"omniinteract_max_video_duration_s": 600,
|
||||
"percentile-metrics": "ttft,tpot,itl,e2el,audio_ttfp,audio_rtf,audio_duration"
|
||||
},
|
||||
{
|
||||
"dataset_name": "omniinteract",
|
||||
"dataset_path": "lucky-lance/OmniInteract@e195f75fe2666fcc5fe74f537ae49ca143a79969",
|
||||
"backend": "openai-realtime-duplex",
|
||||
"endpoint": "/v1/realtime",
|
||||
"num_prompts": [
|
||||
4
|
||||
],
|
||||
"max_concurrency": [
|
||||
2
|
||||
],
|
||||
"num_warmups": 0,
|
||||
"disable_shuffle": true,
|
||||
"trust_remote_code": true,
|
||||
"omniinteract_subsets": "1qna",
|
||||
"omniinteract_ref_audio": "tests/assets/minicpmo_4_5/response_required_16k.wav",
|
||||
"omniinteract_output_dir": "tests/dfx/perf/results/omniinteract/1qna",
|
||||
"omniinteract_max_video_duration_s": 600,
|
||||
"percentile-metrics": "ttft,tpot,itl,e2el,audio_ttfp,audio_rtf,audio_duration"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -518,6 +518,40 @@ def test_omni_duplex_expected_audio_turns_rejects_incomplete_session():
|
||||
)
|
||||
|
||||
|
||||
def test_num_warmups_preserves_explicit_zero():
|
||||
from tests.dfx.perf.scripts.run_benchmark import _resolve_num_warmups
|
||||
|
||||
assert _resolve_num_warmups({}, default=4) == 4
|
||||
assert _resolve_num_warmups({"num_warmups": 0}, default=4) == 0
|
||||
|
||||
|
||||
def test_omniinteract_result_accepts_complete_artifacts():
|
||||
from tests.dfx.perf.scripts.run_benchmark import assert_result
|
||||
|
||||
assert_result(
|
||||
{
|
||||
"completed": 4,
|
||||
"omniinteract": {"total": 4, "success": 4, "failed": 0, "artifacts_complete": True},
|
||||
},
|
||||
{"dataset_name": "omniinteract"},
|
||||
4,
|
||||
)
|
||||
|
||||
|
||||
def test_omniinteract_result_rejects_incomplete_artifacts():
|
||||
from tests.dfx.perf.scripts.run_benchmark import assert_result
|
||||
|
||||
with pytest.raises(AssertionError, match="artifacts are incomplete"):
|
||||
assert_result(
|
||||
{
|
||||
"completed": 4,
|
||||
"omniinteract": {"total": 4, "success": 4, "failed": 0, "artifacts_complete": False},
|
||||
},
|
||||
{"dataset_name": "omniinteract"},
|
||||
4,
|
||||
)
|
||||
|
||||
|
||||
def test_omni_tpot_baseline_accepts_measured_finite_sample():
|
||||
from tests.dfx.perf.scripts.run_benchmark import assert_result
|
||||
|
||||
|
||||
Reference in new issue
Block a user