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

Store eos_token_id in Sequence for easy access #3166

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

njhill
Copy link
Member

@njhill njhill commented Mar 3, 2024

Store eos_token_id in Sequence since it's accessed so frequently.

Store eos_token_id in Sequence since it's accessed so frequently.
@njhill njhill force-pushed the simplify-seq-eos branch from c358771 to 9d672bf Compare March 3, 2024 16:37
@Yard1 Yard1 requested review from WoosukKwon and Yard1 and removed request for WoosukKwon March 3, 2024 21:55
Copy link
Collaborator

@Yard1 Yard1 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!

@Yard1 Yard1 changed the title Some minor simplifications Store eos_token_id in Sequence for easy access Mar 5, 2024
@Yard1 Yard1 merged commit 8999ec3 into vllm-project:main Mar 5, 2024
22 checks passed
@njhill njhill deleted the simplify-seq-eos branch March 9, 2024 16:49
njhill added a commit to njhill/vllm that referenced this pull request Mar 9, 2024
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.
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.

2 participants