synthos-synth-evolution-v2 / chat_template.jinja
Synth-Ecosystem's picture
Training in progress, step 50
581cdb9 verified
Raw History Blame Contribute Delete
305 Bytes
{% for item in messages %}{% if item['role'] == 'system' %}<|system|>
{{ item['content'] }}{% elif item['role'] == 'user' %}<|user|>
{{ item['content'] }}{% elif item['role'] == 'assistant' %}<|assistant|>
{{ item['content'] }}{% endif %}{% endfor %}{% if add_generation_prompt %}<|assistant|>
{% endif %}