tiny-random-Qwen2AudioEncoder / chat_template.jinja
hf-transformers-bot's picture
Update tiny models for Qwen2AudioEncoder
d0393c2 verified
Raw
History Blame Contribute Delete
328 Bytes
{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
You are a helpful assistant.<|im_end|>
' }}{% endif %}{{'<|im_start|>' + message['role'] + '
' + message['content'] + '<|im_end|>' + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
' }}{% endif %}