Spark / checkpoint-8000 /chat_template.jinja
spitfire4794's picture
Squash history to single initial commit
3955082
Raw History Blame Contribute Delete
208 Bytes
{{ bos_token }}{% for message in messages %}{{ '<|im_start|>' + message['role'] + '
' + message['content'] + '<|im_end|>
' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
' }}{% endif %}