-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Fix for slow the bug tokenizer adding spaces to single id decodes #32564
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
itazap
merged 25 commits into
huggingface:main
from
DuyguA:fix/tokenizer-decoding-space
Sep 18, 2024
Merged
Changes from 12 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
74da1b4
_decode signature change and quick return
DuyguA 6f4c1e6
added bunch of decoding tests
DuyguA 7ddc3ca
signature match and return
DuyguA 15c2d9e
added tests for decoding
DuyguA 3716cfd
merged decoding test
DuyguA 251a5ac
more tests for special tokens
DuyguA 2e82e67
cosmetics
DuyguA 97d5cb1
fixed param
DuyguA f5da92b
ruffed the file
DuyguA 2b097eb
refinement for single special tokens
DuyguA 420993c
added test for single special tokens
DuyguA 689b93e
Merge branch 'huggingface:main' into fix/tokenizer-decoding-space
DuyguA 8a29adf
slight change to test name
DuyguA 0d858cd
minor change test name for skip tokens
DuyguA 7ed431e
killed already defined var
DuyguA 0c812cc
minor update with vars
DuyguA 29c5950
killed already defined var once more
DuyguA edca13e
Merge branch 'huggingface:main' into fix/tokenizer-decoding-space
DuyguA a0227b1
Merge branch 'huggingface:main' into fix/tokenizer-decoding-space
DuyguA 7a2a9c1
Merge branch 'huggingface:main' into fix/tokenizer-decoding-space
DuyguA 7373ab7
Merge branch 'huggingface:main' into fix/tokenizer-decoding-space
DuyguA ffbfd05
Merge branch 'huggingface:main' into fix/tokenizer-decoding-space
DuyguA 2362fe6
Merge branch 'huggingface:main' into fix/tokenizer-decoding-space
DuyguA eefe4b2
Merge branch 'huggingface:main' into fix/tokenizer-decoding-space
DuyguA 1051d1c
Merge branch 'huggingface:main' into fix/tokenizer-decoding-space
DuyguA 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
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.
Uh oh!
There was an error while loading. Please reload this page.