-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tokenizer
apply_chat_template
functionality (#647)
* Allow custom kwargs in `tokenizer.apply_chat_template` * Update jinja dependency version * Add `tokenizer_kwargs` options * Add support for dictionaries of chat templates in the tokenizer config * Add `CohereTokenizer` * `apply_chat_template` is no longer async * Add unit test for multiple chat templates * Update tokenizers.js * Also update when `chat_template` is undefined * Support setting tokenizer and text from URL * Update Claude tokenizer display name * Add Cohere Command-R tokenizer to playground * Add `Grok1Tokenizer` * Throw error if chat template object is malformed * Improved error checking * Remove redundant error check * `template_dict` can be a null-prototype object
- Loading branch information
Showing
6 changed files
with
110 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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