# Chat template utilities

For an overview of the chat templates bundled with TRL and the rationale behind the training patches, see [Chat Templates](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
