Skip to main content

Perf Baseline Generation Script

python/sglang/multimodal_gen/test/scripts/gen_perf_baselines.py starts a local diffusion server, issues requests for selected test cases, aggregates stage/denoise-step/E2E timings from the perf log, and writes the results back to the scenarios section of perf_baselines.json.

Usage

Update a single case:
Select by regex:
Run all keys from the baseline file scenarios:
Specify input/output paths and timeout: