You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the output contains any of the special tokens, like <|im_start|> or <|im_end|>, they are rendered as empty string. This breaks custom stopping string functionality (e.g. adding "<|im_end|>" to stop strings does not work as it relies on string comparison).
The tokens are tokenized correctly, just not rendered:
main: prompt: '<|im_end|>'
main: number of tokens in prompt = 1
128009 -> ''
main: prompt: '<|im_start|>'
main: number of tokens in prompt = 1
128006 -> ''