Skip to content

Conversation

njhill
Copy link
Contributor

@njhill njhill commented Mar 11, 2024

In particular so that it can be disabled for chat/instruct models where an explicit template is used that already includes these tokens. For example the leading <s> token added by llama and mixtral tokenizers.

This allows it to be configured globally. We could potentially support per-request in future.

@njhill njhill force-pushed the omit_special_tokens branch from 7c1ff02 to 2afbf1c Compare March 11, 2024 21:47
In particular so that it can be disabled for chat/instruct models where an explicit template is used that already includes these tokens.

(for example the leading <s> token added by llama and mixtral tokenizers)

Signed-off-by: Nick Hill <[email protected]>
@njhill njhill force-pushed the omit_special_tokens branch from 2afbf1c to 7f074ac Compare March 21, 2024 17:26
Xaenalt pushed a commit to Xaenalt/text-generation-inference that referenced this pull request Aug 14, 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.

1 participant