-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[Tokenizer] Support reading Tiktoken tokenizer.model. #9215
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
ZHUI
merged 28 commits into
PaddlePaddle:develop
from
lvdongyi:dev-20240927-support-tiktoken
Oct 30, 2024
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
0fd7240
add support of tiktoken tokenizer, refactor some code
lvdongyi d1ee434
Merge branch 'PaddlePaddle:develop' into dev-refactor-pretrained
lvdongyi 9004ac9
add support of tiktoken tokenizer, refactor some code
lvdongyi d004c33
clean code & add blobfile to requirements.txt
lvdongyi 0b61d11
Don't allow multiple Class in a
lvdongyi aad6750
update docstring, add a RuntimeError when AutoTokenizer failed to loa…
lvdongyi 04dff4d
update albert_english/__init__.py and mbart/__init__.py
lvdongyi 6475a83
fix typo, rm redundent notations
lvdongyi dea3ad4
some changes...
lvdongyi f5ae794
AutoTokenizer will not load TokenzierFast by default
lvdongyi ce684a1
Add test for external config
lvdongyi 75368d5
revert unnecrssary changes
lvdongyi 469ffbf
Update test_modeling_common.py
lvdongyi ee33fba
fix
lvdongyi 92e4e0e
Merge branch 'PaddlePaddle:develop' into dev-20240927-support-tiktoken
lvdongyi f0f4113
Merge branch 'PaddlePaddle:develop' into dev-20240927-support-tiktoken
lvdongyi 353fb41
rm redundent print
lvdongyi d279d8d
revert some changes
lvdongyi e367332
fix problem in TOKENIZER_MAPPING_NAMES
lvdongyi a422932
try fix
lvdongyi 7ff5a17
Merge branch 'PaddlePaddle:develop' into dev-20240927-support-tiktoken
lvdongyi d46655c
update
lvdongyi 3412f50
fix
lvdongyi 19521f9
rm redundent comment, resolve complicate
lvdongyi 99299b0
Merge branch 'PaddlePaddle:develop' into dev-20240927-support-tiktoken
lvdongyi 5c169fb
Merge branch 'PaddlePaddle:develop' into dev-20240927-support-tiktoken
lvdongyi d2d7eeb
add case of built-in tokenizers to handle CI error
lvdongyi 5579695
Merge branch 'PaddlePaddle:develop' into dev-20240927-support-tiktoken
lvdongyi 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
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
Oops, something went wrong.
Oops, something went wrong.
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.