Qwen2-VL-2B-4bit / chat_template.json
prince-canuma's picture
Upload folder using huggingface_hub
5f534f0 verified
raw
history blame contribute delete
417 Bytes
{
"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 %}"
}