Skip to content

Commit

Permalink
Update importance-of-chat-templates.md
Browse files Browse the repository at this point in the history
- fix chatml template config
  • Loading branch information
PhilipMay authored Apr 19, 2024
1 parent eadabf4 commit 05f16aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/blog/2024/importance-of-chat-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ In the case of ChatML, it looks like this:
{{ '<|assistant|>\n' + message['content'] + eos_token }}
{% endif %}
{% if loop.last and add_generation_prompt %}
{{ '<|assistant|>' }}
{{ '<|im_start|>assistant\n' }}
{% endif %}
{% endfor %}
```
Expand Down

0 comments on commit 05f16aa

Please sign in to comment.