-
Notifications
You must be signed in to change notification settings - Fork 28.8k
Fix llama tokenizer #22402
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
Merged
Merged
Fix llama tokenizer #22402
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
d3b2050
draft
ArthurZucker 0da5717
update tokenization limma and conversion script
ArthurZucker a2f2b19
more udpates
ArthurZucker 7cf369c
initial commit
ArthurZucker ff70e2c
Merge branch 'main' of https://github.com/huggingface/transformers in…
ArthurZucker 0cf62ec
style
ArthurZucker 1f1a4bf
default pad to None
ArthurZucker 7e3ea59
draft tokenization tests
ArthurZucker 33dfe79
Merge branch 'main' of https://github.com/huggingface/transformers in…
ArthurZucker ea0c834
update test
ArthurZucker 3bd23e6
update tokenization tests
ArthurZucker 8edf9b1
nits
ArthurZucker a334056
update
ArthurZucker 5b9be49
versioning test
ArthurZucker 1b6532a
major fix
ArthurZucker d988805
fix more testst
ArthurZucker 6bdf1e0
finish fixing special masks
ArthurZucker 1ab5d7c
last nit
ArthurZucker 512f77f
more nits
ArthurZucker 4c3c2e2
add encode decode tests
ArthurZucker 3175977
add more
ArthurZucker 1871030
fix token type ids
ArthurZucker fd60fb6
style
ArthurZucker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 such a small nit that I included it 😅
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.
After rebasing, this test fails for me :( just reproduced on main:
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 not pointing to the correct part of the test. If the
cleanup_tokenization_spaces
is indeed False, the fail can happen for cache reasons or anything else (also failed for me at some point).Will check again