-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚀
@huggingface/jinja
100% chat template coverage. (#536)
With this PR, I'm pleased to announce that `@huggingface/jinja` is now compatible with every single _valid_[^1] chat template on the HF Hub (as of 2024/03/05), including the very complex function calling ones (like [fireworks-ai/firefunction-v1](https://huggingface.co/fireworks-ai/firefunction-v1))! 🥳, and we match the python output exactly in each case! Interestingly, of the ~11k public conversational models, there were only ~250 unique templates. This will also ensure all models tagged with `conversational` will have working conversational widgets! [^1]: Only 1 invalid chat template was discovered (containing invalid quote characters), and a PR has been made for it [here](https://huggingface.co/YokaiKoibito/llama2_70b_chat_uncensored-fp16/discussions/1#65e8686f034b83aeb8d40528). Of course, future models may introduce more complex chat templates, and we'll continue to add support for them! cc @Wauplin @Rocketknight1 @osanseviero
- Loading branch information
Showing
7 changed files
with
901 additions
and
158 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
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
Oops, something went wrong.