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

SamplingParams add "spaces_between_special_tokens" argument #392

Conversation

ZX-ModelCloud
Copy link
Contributor

@ZX-ModelCloud ZX-ModelCloud commented Apr 25, 2024

Add tokenizer decode parameter spaces_between_special_tokens.

See: https://github.com/vllm-project/vllm/blob/main/vllm/sampling_params.py#L95

@Qubitium
Copy link
Contributor

We have tested this and this param is important to normalize fast vs non-fast hf tokenizers as to how spaces are handled.

@merrymercy merrymercy merged commit 183df47 into sgl-project:main Apr 30, 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.

None yet

3 participants