Skip to content
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

[Performance] [Speculative decoding]: Replace scoring spec tokens via batched 1-step generation by n-step prefill #7255

Closed
wants to merge 0 commits into from

Conversation

sergeykochetkov
Copy link

@sergeykochetkov sergeykochetkov commented Aug 7, 2024

FIX #5239, #7586

No (or small) performance improvements at speculative decoding partly related to unefficient scoring. Currently vLLM uses batch_expansion which to score n speculative tokens creates batch of n+1 generation requests. Idea of current PR is to score n spec tokens by single prefill request.

Copy link

github-actions bot commented Aug 7, 2024

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which consists a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of default ones by unblocking the steps in your fast-check build on Buildkite UI.

Once the PR is approved and ready to go, please make sure to run full CI as it is required to merge (or just use auto-merge).

To run full CI, you can do one of these:

  • Comment /ready on the PR
  • Add ready label to the PR
  • Enable auto-merge.

🚀

@sergeykochetkov sergeykochetkov changed the title initial [Performance] [Speculative decoding]: Replace scoring spec tokens via batched 1-step generation by n-step prefill Aug 17, 2024
@ccamacho
Copy link

++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Performance]: Speculative Performance almost same or lower
2 participants