Qwen3-4B-Function-Calling-Pro / chat_template.jinja
sweatSmile's picture
Upload merged Qwen3-4B fine-tuned on xlam-function-calling dataset
07246f3 verified
raw
history blame contribute delete
456 Bytes
{% for message in messages %}{% if message['role'] == 'user' %}{{ '<start_of_turn>user
' + message['content'] + '<end_of_turn>
' }}{% elif message['role'] == 'system' %}{{ '<start_of_turn>system
' + message['content'] + '<end_of_turn>
' }}{% elif message['role'] == 'assistant' %}{{ '<start_of_turn>model
' + message['content'] + '<end_of_turn>
' }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<start_of_turn>model
' }}{% endif %}{% endfor %}