[DO NOT MERGE] Add offline throughput benchmark script for multi-modal models#18154
Open
haojin2 wants to merge 1 commit intosgl-project:mainfrom
Open
[DO NOT MERGE] Add offline throughput benchmark script for multi-modal models#18154haojin2 wants to merge 1 commit intosgl-project:mainfrom
haojin2 wants to merge 1 commit intosgl-project:mainfrom
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
466c89f to
b81f932
Compare
mickqian
reviewed
Feb 3, 2026
Collaborator
|
also, could you clean the code a bit?x |
Open
4 tasks
5e71a2c to
8021c9e
Compare
8021c9e to
86ee88e
Compare
Contributor
Author
|
cc @zhaochenyang20 Refactored as requested |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Address part of step 1 for #18077
Modifications
Accuracy Tests
N/A
Benchmarking and Profiling
GLM-Image+sglangbackend +torch.compile:python3 -m sglang.multimodal_gen.benchmarks.bench_offline_throughput --model-path zai-org/GLM-Image --height 512 --width 512 --num-inference-steps 20 --backend sglang --enable-torch-compile --num-prompts 20 --batch-size 1with resulting report:GLM-Image+diffusersbackend:python3 -m sglang.multimodal_gen.benchmarks.bench_offline_throughput --model-path zai-org/GLM-Image --height 512 --width 512 --num-inference-steps 20 --backend diffusers --num-prompts 20 --batch-size 1with resulting report:\server:
sglang serve --model-path zai-org/GLM-Image --backend sglangbench_serving:
python3 -m sglang.multimodal_gen.benchmarks.bench_serving --dataset vbench --num-prompts 10 --width 512 --height 512 --model zai-org/GLM-ImageChecklist
Review Process
/tag-run-ci-label,/rerun-failed-ci,/tag-and-rerun-ci