asr2_ru / chat_template.jinja
Flyoz's picture
(Trained with Unsloth)
4be2e06 verified
raw
history blame contribute delete
329 Bytes
{{ bos_token }}{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>
'+ message['content'] | trim + '<|eot_id|>' %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>
' }}{% endif %}