-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[Benchmark] Add benchmark script for CPU offloading #11533
[Benchmark] Add benchmark script for CPU offloading #11533
Conversation
Signed-off-by: ApostaC <[email protected]> Co-authored-by: KuntaiDu <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. 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 do one of these:
🚀 |
Signed-off-by: ApostaC <[email protected]>
Hey @comaniac , thanks for all the comments. I've addressed them and the PR is ready for review again. |
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.
Otherwise LGTM. Thanks!
Signed-off-by: ApostaC <[email protected]>
Note: This PR is part of the big CPU offloading PR #10874 -- this PR contains a benchmark script of "long document QA" use case, to test the effectiveness of CPU offloading
About the workload
The workload has N different long documents. It will shuffle the documents and query the serving engine multiple times, where each time it has N queries + each query has one of the documents as the prefix.
Example usage:
The following command runs the vLLM with 50GB CPU memory for offloading.
The workload samples 8 different prompts with a default input length of 20K tokens, then replicates each prompt 2 times.