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

[Fix] Fix best_of behavior when n=1 #3298

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

njhill
Copy link
Member

@njhill njhill commented Mar 9, 2024

#3166 included a change to avoid applying best_of logic when there's a single sequence, but it incorrectly checks for n==1 rather than len(seqs)==1.

I'll add a test for this too.

vllm-project#3166 included a change to avoid applying best_of logic when there's a single sequence, but it incorrectly checks for n==1 rather than len(seqs)==1.
Copy link
Member

@zhuohan123 zhuohan123 left a 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 fix!

@Yard1 Yard1 merged commit 4b59f00 into vllm-project:main Mar 11, 2024
24 checks passed
@njhill njhill deleted the fix_best_of branch March 11, 2024 17:16
dtransposed pushed a commit to afeldman-nm/vllm that referenced this pull request Mar 26, 2024
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.

3 participants