-
Notifications
You must be signed in to change notification settings - Fork 1k
Update deserialize of added tokens #1891
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
Update deserialize of added tokens #1891
Conversation
…on-and-add-token-metho
…token-metho' of github.com:ArthurZucker/tokenizers into codex/optimize-addedvocabulary-deserialization-and-add-token-metho
…dd tokens to the vocab man....
…ptimize-addedvocabulary-deserialization-and-add-token-metho
|
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. |
…ptimize-addedvocabulary-deserialization-and-add-token-metho
|
@jannisborn ty for testing 😉 |
…on-and-add-token-metho
…token-metho' of github.com:huggingface/tokenizers into codex/optimize-addedvocabulary-deserialization-and-add-token-metho
|
Amazing @ArthurZucker, it's still lightspeed fast. Loading a tokenizer with 150K tokens, 140K of which are special tokens, takes 3.5sec |
|
Damnnn amazing! 🤗 |
| with: | ||
| command: audit | ||
| args: -D warnings -f ./tokenizers/Cargo.lock --ignore RUSTSEC-2024-0436 --ignore RUSTSEC-2025-0014 | ||
| args: -D warnings -f ./tokenizers/Cargo.lock --ignore RUSTSEC-2024-0436 --ignore RUSTSEC-2025-0014 --ignore RUSTSEC-2025-0119 |
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.
Could be the opportunity to do some cleaning within our deps, but don't know the context that much.
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.
yeah just unmaintained...
8-9x speedup on special tokens and about 4x on non-special cases for deserialization
Fixes #1635 and superseeds #1782