-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
[benchmark] Port benchmark request sent optimization to benchmark_serving #21209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request refactors benchmarks/benchmark_serving.py to reuse the request generation logic from vllm/benchmarks/serve.py, effectively reducing code duplication. The change also includes a micro-optimization in vllm/benchmarks/serve.py to avoid unnecessary time.time() calls when the request rate is unlimited. The changes are well-reasoned and the provided test results demonstrate a positive performance impact. The code appears correct and improves maintainability.
yeqcharlotte
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome thanks!
houseroad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Signed-off-by: Jialin Ouyang <[email protected]>
Head branch was pushed to by a user without write access
…ving (vllm-project#21209) Signed-off-by: Jialin Ouyang <[email protected]> Signed-off-by: qizixi <[email protected]>
…ving (vllm-project#21209) Signed-off-by: Jialin Ouyang <[email protected]> Signed-off-by: x22x22 <[email protected]>
…ving (vllm-project#21209) Signed-off-by: Jialin Ouyang <[email protected]>
…ving (vllm-project#21209) Signed-off-by: Jialin Ouyang <[email protected]>
…ving (vllm-project#21209) Signed-off-by: Jialin Ouyang <[email protected]> Signed-off-by: Jinzhen Lin <[email protected]>
…ving (vllm-project#21209) Signed-off-by: Jialin Ouyang <[email protected]> Signed-off-by: Paul Pak <[email protected]>
…ving (vllm-project#21209) Signed-off-by: Jialin Ouyang <[email protected]> Signed-off-by: Diego-Castan <[email protected]>
…ving (vllm-project#21209) Signed-off-by: Jialin Ouyang <[email protected]>
…ving (vllm-project#21209) Signed-off-by: Jialin Ouyang <[email protected]>
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.Purpose
Port changes in #21108 to benchmark_serving script as well. However, instead of copypasta the code changes, we directly let benchmark_serving scripts depends on serve.py functions to avoid code duplication.
In a long run, we would completely get rid of benchmark_serving (#21206). However, that's out of the scope of this PR which is focusing on closing gaps among these 2 benchmark scripts.
Test Plan
Check request throughput in the following scenarios:
Test Result
Fixed request rate benchmark run
Before (Request Rate 200)




After (Request Rate 200)
Before (Request Rate 1000)
After (Request Rate 1000)
Unlimited request rate
Request Rate slight improvements: 418.24 -> 433.88
Additional observations It UNEXPECTED that the server request throughput of Unlimited request rate is worse request rate 1000, which indicates there're weakness of the benchmark scripts or server for churn of requests. We're going to follow up for the investigation as a separate issue.
Before


After
(Optional) Documentation Update