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: don't skip first special token. #1497

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

gesanqiu
Copy link
Contributor

If the first generated token is a special token and we set the skip_special_token=True, then we can't skip it in the read_offset, or else we will return the last input token as the new_text, which is repeated.

@WoosukKwon
Copy link
Collaborator

@gesanqiu LGTM. Thanks for the PR!
@Yard1 Thanks for the review!

@WoosukKwon WoosukKwon merged commit beac8dd into vllm-project:main Oct 29, 2023
2 checks passed
@gesanqiu gesanqiu deleted the keep_first_special_token branch January 29, 2024 14:36
hongxiayang pushed a commit to hongxiayang/vllm that referenced this pull request Feb 13, 2024
sjchoi1 pushed a commit to casys-kaist-internal/vllm that referenced this pull request May 7, 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