For an overview of the chat templates bundled with TRL and the rationale behind the training patches, see Chat Templates.
Chat Template Utilities
For an overview of the chat templates bundled with TRL and the rationale behind the training patches, see Chat Templates.
clone_chat_template
[[autodoc]] clone_chat_template
is_chat_template_prefix_preserving
[[autodoc]] chat_template_utils.is_chat_template_prefix_preserving
get_training_chat_template
[[autodoc]] chat_template_utils.get_training_chat_template
Source and license
Source: TRL documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.