Download chat_template.json from cragtmp/llama3.2-VL-org: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/cragtmp/llama3.2-VL-org/resolve/main/chat_template.json
- Command line
-
hf download hf://cragtmp/llama3.2-VL-org/chat_template.json
-
curl -L -o chat_template.json https://huggingface.co/cragtmp/llama3.2-VL-org/resolve/main/chat_template.json
557 Bytes
| { | |
| "chat_template": "{% for message in messages %}{% if loop.index0 == 0 %}{{ bos_token }}{% endif %}{{ '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n' }}{% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' %}{{ '<|image|>' }}{% elif content['type'] == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}{{ '<|eot_id|>' }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}" | |
| } |