Download chat_template.json from hf-internal-testing/tiny-processor-ovis2: direct link, hf CLI and curl.
- Browser
- Download file 512 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-processor-ovis2/resolve/main/chat_template.json
- Command line
-
hf download hf://hf-internal-testing/tiny-processor-ovis2/chat_template.json
-
curl -L -o chat_template.json https://huggingface.co/hf-internal-testing/tiny-processor-ovis2/resolve/main/chat_template.json
512 Bytes
| { | |
| "chat_template": "<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n'}}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' %}{{ '<image>\n' }}{% elif content['type'] == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}{{'<|im_end|>\n'}}{% endfor %}{% if add_generation_prompt %}{{'<|im_start|>assistant\n' }}{% endif %}" | |
| } | |