Allow apply_chat_template to pass kwargs to the template and support a dict of templates #29658
Allow apply_chat_template to pass kwargs to the template
1e908c7c
Fix priority for template_kwargs
024f786b
Fix docstring
02220776
style fix
2cb238cd
Add the option for the model to have a dict of templates
1df5db7a
Rocketknight1
changed the title Allow apply_chat_template to pass kwargs to the template Allow apply_chat_template to pass kwargs to the template and support a dict of templates 1 year ago
Error message cleanup
6a39d6c7
Add test for chat template dicts
8d9789c5
Simplify the chat template dict test and apply it to all tokenizers i…
53ca0fb2
Save chat template dicts as lists with fixed key names
6b71e6e8
Add test for serialization/reloading
e814006a
Add require_jinja just to be safe, even though I don't think we use it
97442a6b
Rocketknight1
deleted the allow_chat_template_kwargs branch 1 year ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub