Fix typo in chat template example (#35250)

Fix template example typo
This commit is contained in:
EricWinsorDSIT
2024-12-13 00:53:21 +00:00
committed by GitHub
parent 11ba1d472c
commit 31f9a289a6

View File

@@ -683,7 +683,7 @@ one is a little simplified from the actual one!
``` ```
{%- for message in messages %} {%- for message in messages %}
{{- '<|' + message['role'] + |>\n' }} {{- '<|' + message['role'] + '|>\n' }}
{{- message['content'] + eos_token }} {{- message['content'] + eos_token }}
{%- endfor %} {%- endfor %}
{%- if add_generation_prompt %} {%- if add_generation_prompt %}
@@ -1116,4 +1116,4 @@ name to be included in the tool response, then rendering it can be as simple as:
``` ```
Again, remember that the actual formatting and special tokens are model-specific - you should take a lot of care Again, remember that the actual formatting and special tokens are model-specific - you should take a lot of care
to ensure that tokens, whitespace and everything else exactly match the format your model was trained with! to ensure that tokens, whitespace and everything else exactly match the format your model was trained with!