internlm2_5-7b-chat / chat_template.jinja
ArthurZ's picture
ArthurZ HF Staff
Add converted tokenizer (no trust_remote_code needed)
f9afffb verified
raw
history blame
211 Bytes
{{ bos_token }}{% for message in messages %}{{'<|im_start|>' + message['role'] + '
' + message['content'] + '<|im_end|>' + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
' }}{% endif %}