zubenelgenubi-124m / chat_template.jinja
farpluto's picture
Upload 124M GPT trained from scratch with SmolLM distillation
ca40472 verified
raw
history blame contribute delete
196 Bytes
{% for message in messages %}{{'<|im_start|>' + message['role'] + '
' + message['content'] + '<|im_end|>' + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
' }}{% endif %}