CserDu123 commited on
Commit
14ab5e8
·
verified ·
1 Parent(s): 6a5374a

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 %}