-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Spec Decode][Benchmark] Generalize spec decode offline benchmark to more methods and datasets #18847
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
[Spec Decode][Benchmark] Generalize spec decode offline benchmark to more methods and datasets #18847
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 🚀 |
pre-commit is failing because CustomDataset is not defined. It will get fixed when #18511 gets merged. |
…ffline-dataset
I am not sure if I should delete offline_inference/eagle.py in this PR. |
@WoosukKwon - the tests have passed. |
Regarding an off-topic matter, what is the distinction between |
@ZhongYingMatrix - benchmark used to be outside vllm folder so importing it as vllm module was not possible which is why there has been some migration effort to move it to within vllm. Going forward the plan is to use it from within vllm and deprecate the one outside. I am not aware of the timeline though. |
@WoosukKwon - is there anything else needed before we merge this? |
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.
LGTM! Thanks for the refactoring!
…more methods and datasets (vllm-project#18847) Signed-off-by: kouroshhakha <kourosh@anyscale.com>
…more methods and datasets (vllm-project#18847) Signed-off-by: minpeter <kali2005611@gmail.com>
…more methods and datasets (vllm-project#18847)
…more methods and datasets (vllm-project#18847)
…more methods and datasets (vllm-project#18847) Signed-off-by: avigny <47987522+avigny@users.noreply.github.com>
…more methods and datasets (vllm-project#18847)
Merge after #18511 so that CustomDataset can be used.
Currently, offline benchmark only supports eagle via
offline_inference/eagle.py
and supports mtbench dataset which users have to download and place in the right directory.This PR improves the benchmark setup:
offline_inference/spec_decode.py
which supports ngram as well. This makes computing AL of ngram as easy as eagle. I am not sure if I should deleteoffline_inference/eagle.py
in this PR.benchmarks/datasets.py
which is used in online benchmarkingbenchmarks/serve.py
tobenchmarks/datasets.py
so that it can be shared by offline and online benchmarkingTesting
online benchmark
server
client
Before this PR
After this PR
offline benchmark