Skip to content

[Bugfix][V1] Fix flashinfer sampling - #14815

Merged
WoosukKwon merged 4 commits into
vllm-project:mainfrom
DefTruth:fix-flashinfer-sampling
Mar 15, 2025
Merged

[Bugfix][V1] Fix flashinfer sampling#14815
WoosukKwon merged 4 commits into
vllm-project:mainfrom
DefTruth:fix-flashinfer-sampling

Conversation

@DefTruth

@DefTruth DefTruth commented Mar 14, 2025

Copy link
Copy Markdown
Contributor

small fix base on #14788
Currently, we have errors when using FlashInfer>=v0.2.3 for top-p & top-k sampling. As a workaround, we disable FlashInfer for top-p & top-k sampling by default while FlashInfer>=v0.2.3. The sampling API removes the success return value of all sampling API, which is not compatible with earlier design. reference: https://github.com/flashinfer-ai/flashinfer/releases/tag/v0.2.3

@github-actions

Copy link
Copy Markdown

👋 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 fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

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 ready label to the PR or enable auto-merge.

🚀

@mergify mergify Bot added the v1 label Mar 14, 2025

@WoosukKwon WoosukKwon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the PR!

@WoosukKwon
WoosukKwon merged commit acaea3b into vllm-project:main Mar 15, 2025
@DefTruth
DefTruth deleted the fix-flashinfer-sampling branch March 15, 2025 11:05
@yzh119

yzh119 commented Mar 25, 2025

Copy link
Copy Markdown

Hi @WoosukKwon @DefTruth , it should be easy to switch to the new API, maybe @xslingcn can help create a new PR for the new API?

@WoosukKwon

Copy link
Copy Markdown
Collaborator

@yzh119 Thanks for brining this up. We do want to upgrade the version, but didn't have bandwidth recently. We'd really appreciate it if @xslingcn or anyone could take this!

lulmer pushed a commit to lulmer/vllm that referenced this pull request Apr 7, 2025
Signed-off-by: Louis Ulmer <ulmerlouis@gmail.com>
shreyankg pushed a commit to shreyankg/vllm that referenced this pull request May 3, 2025
RichardoMrMu pushed a commit to RichardoMrMu/vllm that referenced this pull request May 12, 2025
Signed-off-by: Mu Huai <tianbowen.tbw@antgroup.com>
0826joyce pushed a commit to 0826joyce/vllm-serving-optimization that referenced this pull request May 19, 2026
philippesic pushed a commit to philippesic/vllm-semantic-cache that referenced this pull request Jul 19, 2026
plasticchris pushed a commit to plasticchris/vllm that referenced this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants