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

Make skip_special_tokens a generation parameter. #893

Closed
cyanic-selkie opened this issue Aug 28, 2023 · 2 comments
Closed

Make skip_special_tokens a generation parameter. #893

cyanic-selkie opened this issue Aug 28, 2023 · 2 comments

Comments

@cyanic-selkie
Copy link

Hi,

I have a few models that return structured output by utilizing special tokens as delimiters. As of now, vLLM always skips special tokens during decoding. Would it be possible to add skip_special_tokens as a generation parameter?

TGI sort of supports this by giving you the option to return individual tokens with their IDs and a boolean indicating whether they are special or not.

@bingfengyiren
Copy link

I had the same problem as you.

@WoosukKwon
Copy link
Collaborator

@cyanic-selkie and @bingfengyiren We've just merged #1186, which adds skip_special_tokens to SamplingParams. This feature will be included in a new release which will be released very soon.

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

No branches or pull requests

3 participants