Skip to content

Commit 7387baf

Browse files
committed
[CI] fix: benchmark cannot run as expected
1 parent 4b8b6d2 commit 7387baf

9 files changed

Lines changed: 11 additions & 75 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ cython_debug/
188188
# you could uncomment the following to ignore the entire vscode folder
189189
.vscode/
190190

191+
# sglang diffusion worker generated outputs
192+
outputs/
193+
191194
# Ruff stuff:
192195
.ruff_cache/
193196

development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Run tests:
99
```bash
1010
pip install pytest
1111
pytest tests/unit -v
12-
```
12+
```
-2.25 MB
Binary file not shown.
-92.3 KB
Binary file not shown.
-98 KB
Binary file not shown.

tests/benchmarks/diffusion_router/bench_router.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
55
Example:
66
python tests/benchmarks/diffusion_router/bench_router.py \
7-
--model Wan-AI/Wan2.2-T2V-A14B-Diffusers \
7+
--model Qwen/Qwen-Image \
88
--num-workers 2 \
99
--num-prompts 20 \
10-
--max-concurrency 4
10+
--max-concurrency 2
1111
"""
1212

1313
from __future__ import annotations
@@ -201,19 +201,15 @@ def _build_bench_command(args: argparse.Namespace, base_url: str) -> list[str]:
201201
cmd = [
202202
sys.executable,
203203
"-m",
204-
"sglang.bench_serving",
205-
"--backend",
206-
"sglang",
204+
"sglang.multimodal_gen.benchmarks.bench_serving",
207205
"--base-url",
208206
base_url,
209207
"--model",
210208
args.model,
211-
"--dataset-name",
209+
"--dataset",
212210
args.dataset,
213211
"--num-prompts",
214212
str(args.num_prompts),
215-
"--max-concurrency",
216-
str(args.max_concurrency),
217213
"--request-rate",
218214
str(args.request_rate),
219215
"--log-level",
@@ -222,6 +218,8 @@ def _build_bench_command(args: argparse.Namespace, base_url: str) -> list[str]:
222218

223219
if args.dataset_path:
224220
cmd += ["--dataset-path", args.dataset_path]
221+
if args.max_concurrency:
222+
cmd += ["--max-concurrency", str(args.max_concurrency)]
225223
if args.task:
226224
cmd += ["--task", args.task]
227225
if args.width:

tests/benchmarks/diffusion_router/bench_routing_algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Example:
77
python tests/benchmarks/diffusion_router/bench_routing_algorithms.py \
8-
--model Wan-AI/Wan2.2-T2V-A14B-Diffusers \
8+
--model Qwen/Qwen-Image \
99
--num-workers 2 \
1010
--num-prompts 10 \
1111
--max-concurrency 2

tests/benchmarks/diffusion_router/outputs/routing_algo_compare_20260220_215441/routing_algorithm_comparison.csv

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/benchmarks/diffusion_router/outputs/routing_algo_compare_20260220_215441/routing_algorithm_comparison.json

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)