Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -116,7 +116,7 @@
|
|
116 |
},
|
117 |
"additional_special_tokens": ["<|im_start|>", "<|im_end|>", "<|object_ref_start|>","<|object_ref_end|>","<|box_start|>","<|box_end|>","<|quad_start|>","<|quad_end|>","<|vision_start|>","<|vision_end|>","<|vision_pad|>","<|image_pad|>","<|video_pad|>"],
|
118 |
"bos_token": null,
|
119 |
-
"chat_template": "{%
|
120 |
"clean_up_tokenization_spaces": false,
|
121 |
"eos_token": "<|im_end|>",
|
122 |
"padding_side": "left",
|
|
|
116 |
},
|
117 |
"additional_special_tokens": ["<|im_start|>", "<|im_end|>", "<|object_ref_start|>","<|object_ref_end|>","<|box_start|>","<|box_end|>","<|quad_start|>","<|quad_end|>","<|vision_start|>","<|vision_end|>","<|vision_pad|>","<|image_pad|>","<|video_pad|>"],
|
118 |
"bos_token": null,
|
119 |
+
"chat_template": "{% if messages is string %}{{ messages }}{% else %}{% for content in messages %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}",
|
120 |
"clean_up_tokenization_spaces": false,
|
121 |
"eos_token": "<|im_end|>",
|
122 |
"padding_side": "left",
|