Upload rebuttal-009-internvl_3_5_4b_dapo-ckpt_458/chat_template.jinja with huggingface_hub
Browse files
rebuttal-009-internvl_3_5_4b_dapo-ckpt_458/chat_template.jinja
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
{% for message in messages %}{{'<|im_start|>' + message['role'] + '
|
| 3 |
+
'}}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' %}{{ '<image>
|
| 4 |
+
' }}{% elif content['type'] == 'video' %}{{ '<video>
|
| 5 |
+
' }}{% elif content['type'] == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}{{'<|im_end|>
|
| 6 |
+
'}}{% endfor %}{% if add_generation_prompt %}{{'<|im_start|>assistant
|
| 7 |
+
' }}{% endif %}
|