[CI][Perf] migrate diffusion DFX benches to vllm bench serve --omni (#7737)

Signed-off-by: wangyu <410167048@qq.com>
This commit is contained in:
wangyu authored and GitHub committed 2026-09-21 19:16:39 -07:00
1 parent a4ad73e08b
commit 0570b0da7e
30 files changed
+2040 -729

No files matched your search

+104 -85
View File
@@ -5,7 +5,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 2
}
@@ -14,8 +17,6 @@
"diffusion"
],
"description": "Cosmos3-Nano text-to-image official demo workload on 2 GPUs",
"server_type": "vllm-omni",
"benchmark_endpoint": "/v1/images/generations",
"server_params": {
"model": "nvidia/Cosmos3-Nano",
"serve_args": {
@@ -34,24 +35,28 @@
"benchmark_params": [
{
"name": "1024x1024_steps4",
"dataset": "random",
"task": "t2i",
"width": 1024,
"height": 1024,
"num-inference-steps": 4,
"num-prompts": 3,
"max-concurrency": 1,
"seed": 42,
"extra-body": {
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/images/generations",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 1024,
"height": 1024,
"num_inference_steps": 4,
"seed": 42,
"guidance_scale": 7.0,
"flow_shift": 3.0,
"guardrails": false
},
"baseline": {
"H100": {
"throughput_qps": 1.1958,
"latency_mean": 0.843,
"peak_memory_mb_mean": 80000.0
"request_throughput": 1.1958,
"mean_e2el_ms": 843.0,
"mean_peak_memory_mb": 80000.0
}
}
}
@@ -63,7 +68,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 2
}
@@ -72,8 +80,6 @@
"diffusion"
],
"description": "Cosmos3-Nano text-to-video official demo workload on 2 GPUs",
"server_type": "vllm-omni",
"benchmark_endpoint": "/v1/videos",
"server_params": {
"model": "nvidia/Cosmos3-Nano",
"serve_args": {
@@ -92,23 +98,21 @@
"benchmark_params": [
{
"name": "1280x720_frames189_steps4",
"dataset": "random",
"task": "t2v",
"num-prompts": 3,
"max-concurrency": 1,
"seed": 42,
"random-request-config": [
{
"width": 1280,
"height": 720,
"prompt": "A robot arm is cleaning a plate in the kitchen.",
"num_inference_steps": 4,
"num_frames": 189,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 1280,
"height": 720,
"num_inference_steps": 4,
"num_frames": 189,
"fps": 24,
"seed": 42,
"guidance_scale": 6.0,
"flow_shift": 10.0,
"max_sequence_length": 4096,
@@ -118,9 +122,9 @@
},
"baseline": {
"H100": {
"throughput_qps": 0.0307,
"latency_mean": 32.7665,
"peak_memory_mb_mean": 28762.4762
"request_throughput": 0.0307,
"mean_e2el_ms": 32766.5,
"mean_peak_memory_mb": 28762.4762
}
}
}
@@ -132,7 +136,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 2
}
@@ -141,8 +148,6 @@
"diffusion"
],
"description": "Cosmos3-Nano image-to-video official demo workload on 2 GPUs",
"server_type": "vllm-omni",
"benchmark_endpoint": "/v1/videos",
"server_params": {
"model": "nvidia/Cosmos3-Nano",
"serve_args": {
@@ -161,24 +166,30 @@
"benchmark_params": [
{
"name": "1280x720_frames189_steps4",
"dataset": "random",
"task": "i2v",
"num-prompts": 3,
"max-concurrency": 1,
"num-input-images": 1,
"seed": 42,
"random-request-config": [
{
"width": 1280,
"height": 720,
"prompt": "The scene comes to life with smooth, natural motion.",
"num_inference_steps": 4,
"num_frames": 189,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random-mm",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"random_range_ratio": 0.0,
"percentile_metrics": "e2el",
"random_mm_base_items_per_request": 1,
"random_mm_num_mm_items_range_ratio": 0,
"random_mm_limit_mm_per_prompt": {
"image": 1
},
"random_mm_bucket_config": {
"(720, 1280, 1)": 1.0
},
"extra_body": {
"width": 1280,
"height": 720,
"num_inference_steps": 4,
"num_frames": 189,
"fps": 24,
"seed": 42,
"guidance_scale": 6.0,
"flow_shift": 10.0,
"max_sequence_length": 4096,
@@ -186,9 +197,9 @@
},
"baseline": {
"H100": {
"throughput_qps": 0.0305,
"latency_mean": 33.1009,
"peak_memory_mb_mean": 29441.1429
"request_throughput": 0.0305,
"mean_e2el_ms": 33100.9,
"mean_peak_memory_mb": 29441.1429
}
}
}
@@ -200,7 +211,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 2
}
@@ -209,8 +223,6 @@
"diffusion"
],
"description": "Cosmos3-Nano video-to-video official demo workload on 2 GPUs",
"server_type": "vllm-omni",
"benchmark_endpoint": "/v1/videos",
"server_params": {
"model": "nvidia/Cosmos3-Nano",
"serve_args": {
@@ -229,23 +241,30 @@
"benchmark_params": [
{
"name": "1280x720_frames189_steps4",
"dataset": "random",
"task": "v2v",
"num-prompts": 3,
"max-concurrency": 1,
"seed": 42,
"random-request-config": [
{
"width": 1280,
"height": 720,
"prompt": "Continue the same scene with smooth natural motion.",
"num_inference_steps": 4,
"num_frames": 189,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random-mm",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"random_range_ratio": 0.0,
"percentile_metrics": "e2el",
"random_mm_base_items_per_request": 1,
"random_mm_num_mm_items_range_ratio": 0,
"random_mm_limit_mm_per_prompt": {
"video": 1
},
"random_mm_bucket_config": {
"(720, 1280, 189)": 1.0
},
"extra_body": {
"width": 1280,
"height": 720,
"num_inference_steps": 4,
"num_frames": 189,
"fps": 24,
"seed": 42,
"guidance_scale": 6.0,
"flow_shift": 10.0,
"max_sequence_length": 4096,
@@ -258,9 +277,9 @@
},
"baseline": {
"H100": {
"throughput_qps": 0.0299,
"latency_mean": 33.925,
"peak_memory_mb_mean": 29443.1429
"request_throughput": 0.0299,
"mean_e2el_ms": 33925.0,
"mean_peak_memory_mb": 29443.1429
}
}
}
@@ -5,7 +5,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 1
}
@@ -14,7 +17,6 @@
"diffusion"
],
"description": "Single-device baseline",
"server_type": "vllm-omni",
"server_params": {
"model": "hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_i2v",
"serve_args": {
@@ -25,26 +27,33 @@
"benchmark_params": [
{
"name": "832x480_frames33_steps4",
"dataset": "random",
"task": "i2v",
"num-prompts": 10,
"max-concurrency": 1,
"num-input-images": 1,
"seed": 42,
"enable-negative-prompt": true,
"random-request-config": [
{
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 33,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random-mm",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 10,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"random_range_ratio": 0.0,
"percentile_metrics": "e2el",
"random_mm_base_items_per_request": 1,
"random_mm_num_mm_items_range_ratio": 0,
"random_mm_limit_mm_per_prompt": {
"image": 1
},
"random_mm_bucket_config": {
"(480, 832, 1)": 1.0
},
"extra_body": {
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 33,
"fps": 24,
"seed": 42,
"guidance_scale": 6.0,
"flow_shift": 5.0
"flow_shift": 5.0,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
}
]
@@ -55,7 +64,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 2
}
@@ -64,7 +76,6 @@
"diffusion"
],
"description": "CacheDiT + TP=2 + VAE patch parallel=2 + VAE tiling",
"server_type": "vllm-omni",
"server_params": {
"model": "hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_i2v",
"serve_args": {
@@ -79,26 +90,33 @@
"benchmark_params": [
{
"name": "832x480_frames33_steps4",
"dataset": "random",
"task": "i2v",
"num-prompts": 10,
"max-concurrency": 1,
"num-input-images": 1,
"seed": 42,
"enable-negative-prompt": true,
"random-request-config": [
{
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 33,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random-mm",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 10,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"random_range_ratio": 0.0,
"percentile_metrics": "e2el",
"random_mm_base_items_per_request": 1,
"random_mm_num_mm_items_range_ratio": 0,
"random_mm_limit_mm_per_prompt": {
"image": 1
},
"random_mm_bucket_config": {
"(480, 832, 1)": 1.0
},
"extra_body": {
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 33,
"fps": 24,
"seed": 42,
"guidance_scale": 6.0,
"flow_shift": 5.0
"flow_shift": 5.0,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
}
]
@@ -5,7 +5,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 1
}
@@ -14,7 +17,6 @@
"diffusion"
],
"description": "Single-device baseline",
"server_type": "vllm-omni",
"server_params": {
"model": "hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_t2v",
"serve_args": {
@@ -25,25 +27,24 @@
"benchmark_params": [
{
"name": "832x480_frames33_steps4",
"dataset": "random",
"task": "t2v",
"num-prompts": 10,
"max-concurrency": 1,
"seed": 42,
"enable-negative-prompt": true,
"random-request-config": [
{
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 33,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 10,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 33,
"fps": 24,
"seed": 42,
"guidance_scale": 6.0,
"flow_shift": 5.0
"flow_shift": 5.0,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
}
]
@@ -64,7 +65,6 @@
"diffusion"
],
"description": "CacheDiT + TP=2 + VAE patch parallel=2 + VAE tiling",
"server_type": "vllm-omni",
"server_params": {
"model": "hunyuanvideo-community/HunyuanVideo-1.5-Diffusers-480p_t2v",
"serve_args": {
@@ -79,25 +79,24 @@
"benchmark_params": [
{
"name": "832x480_frames33_steps4",
"dataset": "random",
"task": "t2v",
"num-prompts": 10,
"max-concurrency": 1,
"seed": 42,
"enable-negative-prompt": true,
"random-request-config": [
{
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 33,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 10,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 33,
"fps": 24,
"seed": 42,
"guidance_scale": 6.0,
"flow_shift": 5.0
"flow_shift": 5.0,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
}
]
@@ -1,33 +1,50 @@
[
{
"test_name": "test_lingbot_video_single_device",
"description": "Single-device LingBot dense T2V baseline at 320x192, 9 frames, 2 steps.",
"server_type": "vllm-omni",
"server_params": {
"model": "robbyant/lingbot-video-dense-1.3b",
"serve_args": {
"model-class-name": "LingBotVideoPipeline",
"enable-diffusion-pipeline-profiler": true
}
},
"benchmark_params": [
{
"name": "320x192_frames9_steps2",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 320,
"height": 192,
"num-frames": 9,
"fps": 24,
"num-inference-steps": 2,
"num-prompts": 3,
"max-concurrency": 1,
"warmup-requests": 1,
"warmup-concurrency": 1,
"warmup-num-inference-steps": 2,
"enable-negative-prompt": true
}
]
}
{
"test_name": "test_lingbot_video_single_device",
"mark": [
{
"hardware_marks": {
"res": {
"cuda": [
"H100",
"B200"
]
},
"num_cards": 1
}
},
"full_model",
"diffusion"
],
"description": "Single-device LingBot dense T2V baseline at 320x192, 9 frames, 2 steps.",
"server_params": {
"model": "robbyant/lingbot-video-dense-1.3b",
"serve_args": {
"model-class-name": "LingBotVideoPipeline",
"enable-diffusion-pipeline-profiler": true
}
},
"benchmark_params": [
{
"name": "320x192_frames9_steps2",
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"num_warmups": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 320,
"height": 192,
"num_frames": 9,
"fps": 24,
"num_inference_steps": 2,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
}
]
}
]
+160 -115
View File
@@ -14,7 +14,6 @@
"diffusion"
],
"description": "Single-device baseline with enforce-eager (no torch.compile)",
"server_type": "vllm-omni",
"server_params": {
"model": "Lightricks/LTX-2",
"serve_args": {
@@ -25,31 +24,41 @@
"benchmark_params": [
{
"name": "256x256_145f_steps6",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 256,
"height": 256,
"num-frames": 145,
"fps": 24,
"num-inference-steps": 6,
"num-prompts": 3,
"max-concurrency": 1,
"enable-negative-prompt": true
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 256,
"height": 256,
"num_frames": 145,
"fps": 24,
"num_inference_steps": 6,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
},
{
"name": "480x768_41f_steps20",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 768,
"height": 480,
"num-frames": 41,
"fps": 24,
"num-inference-steps": 20,
"num-prompts": 3,
"max-concurrency": 1,
"enable-negative-prompt": true
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 768,
"height": 480,
"num_frames": 41,
"fps": 24,
"num_inference_steps": 20,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
}
]
},
@@ -68,7 +77,6 @@
"diffusion"
],
"description": "Single-device with torch.compile (default, no enforce-eager)",
"server_type": "vllm-omni",
"server_params": {
"model": "Lightricks/LTX-2",
"serve_args": {
@@ -78,31 +86,41 @@
"benchmark_params": [
{
"name": "256x256_145f_steps6",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 256,
"height": 256,
"num-frames": 145,
"fps": 24,
"num-inference-steps": 6,
"num-prompts": 3,
"max-concurrency": 1,
"enable-negative-prompt": true
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 256,
"height": 256,
"num_frames": 145,
"fps": 24,
"num_inference_steps": 6,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
},
{
"name": "480x768_41f_steps20",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 768,
"height": 480,
"num-frames": 41,
"fps": 24,
"num-inference-steps": 20,
"num-prompts": 3,
"max-concurrency": 1,
"enable-negative-prompt": true
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 768,
"height": 480,
"num_frames": 41,
"fps": 24,
"num_inference_steps": 20,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
}
]
},
@@ -121,7 +139,6 @@
"diffusion"
],
"description": "CFG-parallel=2 with enforce-eager",
"server_type": "vllm-omni",
"server_params": {
"model": "Lightricks/LTX-2",
"serve_args": {
@@ -133,31 +150,41 @@
"benchmark_params": [
{
"name": "256x256_145f_steps6",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 256,
"height": 256,
"num-frames": 145,
"fps": 24,
"num-inference-steps": 6,
"num-prompts": 3,
"max-concurrency": 1,
"enable-negative-prompt": true
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 256,
"height": 256,
"num_frames": 145,
"fps": 24,
"num_inference_steps": 6,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
},
{
"name": "480x768_41f_steps20",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 768,
"height": 480,
"num-frames": 41,
"fps": 24,
"num-inference-steps": 20,
"num-prompts": 3,
"max-concurrency": 1,
"enable-negative-prompt": true
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 768,
"height": 480,
"num_frames": 41,
"fps": 24,
"num_inference_steps": 20,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
}
]
},
@@ -176,7 +203,6 @@
"diffusion"
],
"description": "CFG-parallel=2 with torch.compile",
"server_type": "vllm-omni",
"server_params": {
"model": "Lightricks/LTX-2",
"serve_args": {
@@ -187,31 +213,41 @@
"benchmark_params": [
{
"name": "256x256_145f_steps6",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 256,
"height": 256,
"num-frames": 145,
"fps": 24,
"num-inference-steps": 6,
"num-prompts": 3,
"max-concurrency": 1,
"enable-negative-prompt": true
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 256,
"height": 256,
"num_frames": 145,
"fps": 24,
"num_inference_steps": 6,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
},
{
"name": "480x768_41f_steps20",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 768,
"height": 480,
"num-frames": 41,
"fps": 24,
"num-inference-steps": 20,
"num-prompts": 3,
"max-concurrency": 1,
"enable-negative-prompt": true
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 768,
"height": 480,
"num_frames": 41,
"fps": 24,
"num_inference_steps": 20,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
}
]
},
@@ -230,7 +266,6 @@
"diffusion"
],
"description": "CacheDiT with enforce-eager",
"server_type": "vllm-omni",
"server_params": {
"model": "Lightricks/LTX-2",
"serve_args": {
@@ -242,31 +277,41 @@
"benchmark_params": [
{
"name": "256x256_145f_steps6",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 256,
"height": 256,
"num-frames": 145,
"fps": 24,
"num-inference-steps": 6,
"num-prompts": 3,
"max-concurrency": 1,
"enable-negative-prompt": true
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 256,
"height": 256,
"num_frames": 145,
"fps": 24,
"num_inference_steps": 6,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
},
{
"name": "480x768_41f_steps20",
"dataset": "random",
"task": "t2v",
"backend": "v1/videos",
"width": 768,
"height": 480,
"num-frames": 41,
"fps": 24,
"num-inference-steps": 20,
"num-prompts": 3,
"max-concurrency": 1,
"enable-negative-prompt": true
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 768,
"height": 480,
"num_frames": 41,
"fps": 24,
"num_inference_steps": 20,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
}
}
]
}
@@ -5,7 +5,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 4
}
@@ -14,8 +17,6 @@
"diffusion"
],
"description": "MiniMax-H3 T2VA text-to-video+audio on 4 GPUs (USP4 + HSDP4, encoder-TP4, VAE-PP4 tile)",
"server_type": "vllm-omni",
"benchmark_endpoint": "/v1/videos",
"server_params": {
"model": "MiniMaxAI/MiniMax-H3",
"serve_args": {
@@ -38,33 +39,30 @@
"benchmark_params": [
{
"name": "1344x768_frames209_steps8",
"dataset": "random",
"task": "t2v",
"num-prompts": 3,
"max-concurrency": 1,
"warmup-requests": 1,
"warmup-concurrency": 1,
"seed": 42,
"random-request-config": [
{
"width": 1344,
"height": 768,
"prompt": "Cinematic drone shot pushing through misty mountain ridges at sunrise, golden light catching the clouds, slow and smooth.",
"num_inference_steps": 8,
"num_frames": 209,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"num_warmups": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 1344,
"height": 768,
"num_inference_steps": 8,
"num_frames": 209,
"fps": 24,
"seed": 42,
"flow_shift": 12.0,
"extra_params": "{\"task\":\"t2va\",\"duration\":8.7,\"aspect_ratio\":\"16:9\",\"audio_flow_shift\":3.0}"
},
"baseline": {
"H100": {
"throughput_qps": 0.0211,
"latency_mean": 38.3252,
"peak_memory_mb_mean": 54219.6
"request_throughput": 0.0211,
"mean_e2el_ms": 38325.2,
"mean_peak_memory_mb": 54219.6
}
}
}
@@ -76,7 +74,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 4
}
@@ -85,8 +86,6 @@
"diffusion"
],
"description": "MiniMax-H3 FL2VA first-frame image-to-video+audio on 4 GPUs (USP4 + HSDP4, encoder-TP4, VAE-PP4 tile)",
"server_type": "vllm-omni",
"benchmark_endpoint": "/v1/videos",
"server_params": {
"model": "MiniMaxAI/MiniMax-H3",
"serve_args": {
@@ -109,34 +108,39 @@
"benchmark_params": [
{
"name": "1344x768_frames209_steps8",
"dataset": "random",
"task": "ti2v",
"num-prompts": 3,
"max-concurrency": 1,
"warmup-requests": 1,
"warmup-concurrency": 1,
"seed": 42,
"random-request-config": [
{
"width": 1344,
"height": 768,
"prompt": "Continue the scene: the camera slowly pushes in on the subject as the background city lights drift and blur, with the actor singing softly and emotionally.",
"num_inference_steps": 8,
"num_frames": 209,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random-mm",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"num_warmups": 1,
"random_input_len": 8,
"random_output_len": 1,
"random_range_ratio": 0.0,
"percentile_metrics": "e2el",
"random_mm_base_items_per_request": 1,
"random_mm_num_mm_items_range_ratio": 0,
"random_mm_limit_mm_per_prompt": {
"image": 1
},
"random_mm_bucket_config": {
"(768, 1344, 1)": 1.0
},
"extra_body": {
"width": 1344,
"height": 768,
"num_inference_steps": 8,
"num_frames": 209,
"fps": 24,
"seed": 42,
"flow_shift": 12.0,
"extra_params": "{\"task\":\"fl2va\",\"duration\":8.7,\"audio_flow_shift\":3.0}"
},
"num-input-images": 1,
"baseline": {
"H100": {
"throughput_qps": 0.0212,
"latency_mean": 38.1385,
"peak_memory_mb_mean": 54622.8
"request_throughput": 0.0212,
"mean_e2el_ms": 38138.5,
"mean_peak_memory_mb": 54622.8
}
}
}
@@ -148,7 +152,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 4
}
@@ -157,8 +164,6 @@
"diffusion"
],
"description": "MiniMax-H3 Ref2VA video-reference-to-video+audio on 4 GPUs (USP4 + HSDP4, encoder-TP4, VAE-PP4 tile)",
"server_type": "vllm-omni",
"benchmark_endpoint": "/v1/videos",
"server_params": {
"model": "MiniMaxAI/MiniMax-H3",
"serve_args": {
@@ -181,33 +186,39 @@
"benchmark_params": [
{
"name": "1344x768_frames209_steps8",
"dataset": "random",
"task": "v2v",
"num-prompts": 3,
"max-concurrency": 1,
"warmup-requests": 1,
"warmup-concurrency": 1,
"seed": 42,
"random-request-config": [
{
"width": 1344,
"height": 768,
"prompt": "Restyle the reference footage into a cinematic night scene with neon reflections, keeping the same camera motion and subject.",
"num_inference_steps": 8,
"num_frames": 209,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random-mm",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"num_warmups": 1,
"random_input_len": 8,
"random_output_len": 1,
"random_range_ratio": 0.0,
"percentile_metrics": "e2el",
"random_mm_base_items_per_request": 1,
"random_mm_num_mm_items_range_ratio": 0,
"random_mm_limit_mm_per_prompt": {
"video": 1
},
"random_mm_bucket_config": {
"(480, 832, 209)": 1.0
},
"extra_body": {
"width": 1344,
"height": 768,
"num_inference_steps": 8,
"num_frames": 209,
"fps": 24,
"seed": 42,
"flow_shift": 12.0,
"extra_params": "{\"task\":\"ref2va\",\"duration\":8.7,\"aspect_ratio\":\"16:9\",\"audio_flow_shift\":3.0}"
},
"baseline": {
"H100": {
"throughput_qps": 0.0077,
"latency_mean": 105.7508,
"peak_memory_mb_mean": 55180.8
"request_throughput": 0.0077,
"mean_e2el_ms": 105750.8,
"mean_peak_memory_mb": 55180.8
}
}
}
@@ -219,7 +230,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 4
}
@@ -228,8 +242,6 @@
"diffusion"
],
"description": "MiniMax-H3 T2VA with 4-card distributed layerwise offload (DLO), 8 denoise steps (USP4 + HSDP4, encoder-TP4, VAE-PP4 tile)",
"server_type": "vllm-omni",
"benchmark_endpoint": "/v1/videos",
"server_params": {
"model": "MiniMaxAI/MiniMax-H3",
"serve_args": {
@@ -256,33 +268,30 @@
"benchmark_params": [
{
"name": "1344x768_frames209_steps8",
"dataset": "random",
"task": "t2v",
"num-prompts": 3,
"max-concurrency": 1,
"warmup-requests": 1,
"warmup-concurrency": 1,
"seed": 42,
"random-request-config": [
{
"width": 1344,
"height": 768,
"prompt": "Cinematic drone shot pushing through misty mountain ridges at sunrise, golden light catching the clouds, slow and smooth.",
"num_inference_steps": 8,
"num_frames": 209,
"fps": 24,
"weight": 1
}
],
"extra-body": {
"dataset_name": "random",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 3,
"max_concurrency": 1,
"num_warmups": 1,
"random_input_len": 8,
"random_output_len": 1,
"percentile_metrics": "e2el",
"extra_body": {
"width": 1344,
"height": 768,
"num_inference_steps": 8,
"num_frames": 209,
"fps": 24,
"seed": 42,
"flow_shift": 12.0,
"extra_params": "{\"task\":\"t2va\",\"duration\":8.7,\"aspect_ratio\":\"16:9\",\"audio_flow_shift\":3.0}"
},
"baseline": {
"H100": {
"throughput_qps": 0.0212,
"latency_mean": 38.2089,
"peak_memory_mb_mean": 36218.4
"request_throughput": 0.0212,
"mean_e2el_ms": 38208.9,
"mean_peak_memory_mb": 36218.4
}
}
}
+117 -7
View File
@@ -205,15 +205,53 @@ def test_is_diffusion_perf_config():
from tests.dfx.conftest import is_diffusion_perf_config
assert not is_diffusion_perf_config(
{"test_name": "omni_a", "mark": [{"hardware_marks": {"res": {"cuda": "H100"}}}, "omni"]}
{
"test_name": "omni_a",
"mark": [{"hardware_marks": {"res": {"cuda": "H100"}}}, "omni"],
"benchmark_params": [{"dataset_name": "random", "endpoint": "/v1/chat/completions"}],
}
)
assert is_diffusion_perf_config(
{
"test_name": "diff_a",
"server_type": "vllm-omni",
"mark": [{"hardware_marks": {"res": {"cuda": "H100"}}}, "diffusion"],
"benchmark_params": [{"task": "t2i", "dataset": "random"}],
}
)
videos_cfg = {
"test_name": "diff_videos",
"server_type": "vllm-omni",
"mark": [{"hardware_marks": {"res": {"cuda": "H100"}}}, "diffusion"],
"benchmark_params": [{"task": "t2v", "dataset_name": "random", "endpoint": "/v1/videos"}],
}
assert not is_diffusion_perf_config(videos_cfg)
custom_edits_cfg = {
"test_name": "diff_custom_edits",
"server_type": "vllm-omni",
"benchmark_endpoint": "/v1/images/edits",
"benchmark_params": [{"dataset": "custom", "task": "ti2i"}],
}
assert is_diffusion_perf_config(custom_edits_cfg)
def test_merge_omni_default_server_args_respects_json():
from tests.dfx.perf.scripts.run_benchmark import _merge_omni_default_server_args
extra = ("--stage-init-timeout", "1800", "--init-timeout", "1800", "--usp", "4")
assert _merge_omni_default_server_args(extra, use_omni=True) == []
assert _merge_omni_default_server_args((), use_omni=True) == [
"--stage-init-timeout",
"600",
"--init-timeout",
"900",
]
assert _merge_omni_default_server_args((), use_omni=False) == []
# Only fill the missing default; keep JSON's other timeouts.
assert _merge_omni_default_server_args(("--stage-init-timeout=1800",), use_omni=True) == [
"--init-timeout",
"900",
]
def test_benchmark_param_id_suffix_from_task_eval_phase():
@@ -303,12 +341,84 @@ def test_paired_omni_benchmark_reuses_server_and_preserves_case_metadata(tmp_pat
finally:
active_context.close()
assert events == [
("start", omni_p0_server),
("stop", omni_p0_server),
("start", tts_server),
("stop", tts_server),
]
def test_run_benchmark_persists_distinct_benchmark_params_name(tmp_path, monkeypatch):
"""Two benchmark_params under one test_name must keep distinct saved identity."""
import io
from pathlib import Path
from tests.dfx import conftest as dfx_conftest
result_dir = tmp_path / "results"
result_dir.mkdir()
monkeypatch.setenv("BENCHMARK_DIR", str(result_dir))
class _FakePopen:
def __init__(self, command, **kwargs):
self.stdout = io.StringIO("")
self.stderr = io.StringIO("")
result_dir_idx = command.index("--result-dir")
filename_idx = command.index("--result-filename")
out = Path(command[result_dir_idx + 1]) / command[filename_idx + 1]
out.parent.mkdir(parents=True, exist_ok=True)
out.write_text(json.dumps({"completed": 3, "request_throughput": 0.01}), encoding="utf-8")
def wait(self):
return 0
monkeypatch.setattr(dfx_conftest.subprocess, "Popen", _FakePopen)
shared_test = "test_wan22_i2v_usp2"
name_a = "832x480_frames81_steps4"
name_b = "1280x720_frames121_steps4"
result_a = dfx_conftest.run_benchmark(
args=["--host", "127.0.0.1", "--port", "8000"],
test_name=shared_test,
flow=1,
dataset_name="random-mm",
num_prompt=10,
random_input_len=8,
random_output_len=1,
resource_label="H800",
benchmark_params_name=name_a,
)
result_b = dfx_conftest.run_benchmark(
args=["--host", "127.0.0.1", "--port", "8000"],
test_name=shared_test,
flow=1,
dataset_name="random-mm",
num_prompt=10,
random_input_len=8,
random_output_len=1,
resource_label="H800",
benchmark_params_name=name_b,
)
assert result_a["test_name"] == shared_test
assert result_b["test_name"] == shared_test
assert result_a["name"] == name_a
assert result_b["name"] == name_b
assert "benchmark_params" not in result_a
assert "benchmark_params" not in result_b
files = sorted(p.name for p in result_dir.glob("result_*.json"))
assert len(files) == 2
assert any(name_a in name for name in files)
assert any(name_b in name for name in files)
assert files[0] != files[1]
def omni_group_key(record: dict) -> tuple:
return (
record.get("model_id") or "",
record.get("test_name") or "",
record.get("name") or "",
record.get("dataset_name") or "",
record.get("max_concurrency") if record.get("max_concurrency") is not None else 0,
record.get("num_prompts") if record.get("num_prompts") is not None else 0,
)
assert omni_group_key(result_a) != omni_group_key(result_b)
def test_is_hardware_nested_baseline():
@@ -5,7 +5,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"]
"cuda": [
"H100",
"B200"
]
},
"num_cards": 1
}
@@ -14,7 +17,6 @@
"diffusion"
],
"description": "Single-device baseline",
"server_type": "vllm-omni",
"server_params": {
"model": "Wan-AI/Wan2.2-I2V-A14B-Diffusers",
"serve_args": {
@@ -24,28 +26,37 @@
"benchmark_params": [
{
"name": "832x480_frames81_steps4",
"dataset": "random",
"task": "i2v",
"num-prompts": 10,
"max-concurrency": 1,
"num-input-images": 1,
"seed": 42,
"enable-negative-prompt": true,
"random-request-config": [
{
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 81,
"fps": 16,
"weight": 1
}
],
"dataset_name": "random-mm",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 10,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"random_range_ratio": 0.0,
"percentile_metrics": "e2el",
"random_mm_base_items_per_request": 1,
"random_mm_num_mm_items_range_ratio": 0,
"random_mm_limit_mm_per_prompt": {
"image": 1
},
"random_mm_bucket_config": {
"(480, 832, 1)": 1.0
},
"extra_body": {
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 81,
"fps": 16,
"seed": 42,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
},
"baseline": {
"H100": {
"throughput_qps": 0.0361,
"latency_mean": 27.6206,
"peak_memory_mb_mean": 80548.0
"request_throughput": 0.0361,
"mean_e2el_ms": 27620.6,
"mean_peak_memory_mb": 80548.0
}
}
}
@@ -57,7 +68,10 @@
{
"hardware_marks": {
"res": {
"cuda": ["H100", "B200"],
"cuda": [
"H100",
"B200"
],
"npu": "A3"
},
"num_cards": 2
@@ -67,7 +81,6 @@
"diffusion"
],
"description": "USP=2 + VAE patch parallel=2 + HSDP + VAE slicing",
"server_type": "vllm-omni",
"server_params": {
"model": "Wan-AI/Wan2.2-I2V-A14B-Diffusers",
"serve_args": {
@@ -81,55 +94,73 @@
"benchmark_params": [
{
"name": "832x480_frames81_steps4",
"dataset": "random",
"task": "i2v",
"num-prompts": 10,
"max-concurrency": 1,
"num-input-images": 1,
"seed": 42,
"enable-negative-prompt": true,
"random-request-config": [
{
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 81,
"fps": 16,
"weight": 1
}
],
"dataset_name": "random-mm",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 10,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"random_range_ratio": 0.0,
"percentile_metrics": "e2el",
"random_mm_base_items_per_request": 1,
"random_mm_num_mm_items_range_ratio": 0,
"random_mm_limit_mm_per_prompt": {
"image": 1
},
"random_mm_bucket_config": {
"(480, 832, 1)": 1.0
},
"extra_body": {
"width": 832,
"height": 480,
"num_inference_steps": 4,
"num_frames": 81,
"fps": 16,
"seed": 42,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
},
"baseline": {
"H100": {
"throughput_qps": 0.05263,
"latency_mean": 18.9415,
"peak_memory_mb_mean": 50053.7
"request_throughput": 0.05263,
"mean_e2el_ms": 18941.5,
"mean_peak_memory_mb": 50053.7
}
}
},
{
"name": "1280x720_frames121_steps4",
"dataset": "random",
"task": "i2v",
"num-prompts": 10,
"max-concurrency": 1,
"num-input-images": 1,
"seed": 42,
"enable-negative-prompt": true,
"random-request-config": [
{
"width": 1280,
"height": 720,
"num_inference_steps": 4,
"num_frames": 121,
"fps": 16,
"weight": 1
}
],
"dataset_name": "random-mm",
"tokenizer": "gpt2",
"endpoint": "/v1/videos",
"num_prompts": 10,
"max_concurrency": 1,
"random_input_len": 8,
"random_output_len": 1,
"random_range_ratio": 0.0,
"percentile_metrics": "e2el",
"random_mm_base_items_per_request": 1,
"random_mm_num_mm_items_range_ratio": 0,
"random_mm_limit_mm_per_prompt": {
"image": 1
},
"random_mm_bucket_config": {
"(720, 1280, 1)": 1.0
},
"extra_body": {
"width": 1280,
"height": 720,
"num_inference_steps": 4,
"num_frames": 121,
"fps": 16,
"seed": 42,
"negative_prompt": "Negative prompt for benchmarking diffusion models"
},
"baseline": {
"H100": {
"throughput_qps": 0.009595,
"latency_mean": 104.1058,
"peak_memory_mb_mean": 59718.0
"request_throughput": 0.009595,
"mean_e2el_ms": 104105.8,
"mean_peak_memory_mb": 59718.0
}
}
}