-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
[LlamaTokenizerFast
] Refactor default llama
#28881
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Coming next release! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds great to me
@@ -1329,7 +1329,7 @@ def tokenizer(self, proto): | |||
"You're trying to run a `Unigram` model but you're file was trained with a different algorithm" | |||
) | |||
user_defined_symbols = [ | |||
AddedToken(token, normalized=False, special=False) for token in proto.trainer_spec.user_defined_symbols | |||
AddedToken(token, normalized=True, special=False) for token in proto.trainer_spec.user_defined_symbols |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a must? Unless with only the split this works.
What does this PR do?
This requires huggingface/tokenizers#1476 to be merged.
Finally FIXES ALL THE remaining tokenizer issues!
Fixes #29617 as well (will update Gemma one)
fixes #28577
fixes #29617
fixes #29626
fixes #29694
fixes #29868
fixes #29872
fixes #30416
enabled by huggingface/tokenizers#1476