Disable FlashInfer sampler by default#26859
Merged
tlrmchlsmth merged 1 commit intovllm-project:mainfrom Oct 15, 2025
Merged
Conversation
Signed-off-by: mgoin <mgoin64@gmail.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request correctly disables the FlashInfer sampler by default, requiring users to opt-in by setting VLLM_USE_FLASHINFER_SAMPLER=1. The change from envs.VLLM_USE_FLASHINFER_SAMPLER is not False to a direct boolean check simplifies the logic and makes the default behavior consistent. The corresponding log message is also appropriately changed from a warning to a debug message. The implementation is sound and improves code clarity.
tlrmchlsmth
approved these changes
Oct 15, 2025
5 tasks
bbartels
pushed a commit
to bbartels/vllm
that referenced
this pull request
Oct 16, 2025
Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: bbartels <benjamin@bartels.dev>
5 tasks
1 task
lywa1998
pushed a commit
to lywa1998/vllm
that referenced
this pull request
Oct 20, 2025
Signed-off-by: mgoin <mgoin64@gmail.com>
alhridoy
pushed a commit
to alhridoy/vllm
that referenced
this pull request
Oct 24, 2025
Signed-off-by: mgoin <mgoin64@gmail.com>
0xrushi
pushed a commit
to 0xrushi/vllm
that referenced
this pull request
Oct 26, 2025
Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
0xrushi
pushed a commit
to 0xrushi/vllm
that referenced
this pull request
Oct 26, 2025
Signed-off-by: mgoin <mgoin64@gmail.com> Signed-off-by: 0xrushi <6279035+0xrushi@users.noreply.github.com>
1 task
npanpaliya
pushed a commit
to odh-on-pz/vllm-cpu
that referenced
this pull request
Oct 30, 2025
Signed-off-by: mgoin <mgoin64@gmail.com>
npanpaliya
pushed a commit
to odh-on-pz/vllm-cpu
that referenced
this pull request
Oct 30, 2025
…#26859) (red-hat-data-services#295) vllm-project/vllm#26859 Signed-off-by: mgoin <mgoin64@gmail.com>
1 task
rtourgeman
pushed a commit
to rtourgeman/vllm
that referenced
this pull request
Nov 10, 2025
Signed-off-by: mgoin <mgoin64@gmail.com>
|
Hi @mgoin can we get a concrete reproducing example (or a link to the issues) for reproducing the correctness/IMA issues you mentioned? It will be very helpful for us to improve the stability. |
devpatelio
pushed a commit
to SumanthRH/vllm
that referenced
this pull request
Nov 29, 2025
Signed-off-by: mgoin <mgoin64@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
There have been increasing reports of correctness issues or IMA with FlashInfer's top-p & top-k sampling kernel (see #26480 (comment)). For instance, it seems it can generates the same output even when the temperature is quite high (even though the seed is not set). vLLM generates different results (expectedly) once the kernel is disabled.
Since flashinfer-python is a default dep of vLLM CUDA now, many more users would be using this kernel by default. Let us disable it by default for now so users can opt-in
Test Plan
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.