Download chat_template.json from docling-project/CodeFormulaV2: direct link, hf CLI and curl.
- Browser
- Download file 422 Bytes
-
https://huggingface.co/docling-project/CodeFormulaV2/resolve/main/chat_template.json
- Command line
-
hf download hf://docling-project/CodeFormulaV2/chat_template.json
-
curl -L -o chat_template.json https://huggingface.co/docling-project/CodeFormulaV2/resolve/main/chat_template.json
422 Bytes
| { | |
| "chat_template": "<|start_of_role|>{% for message in messages %}{{message['role']}}{% if message['content'][0]['type'] == 'image' %}{{':'}}{% else %}{{': '}}{% endif %}{% for line in message['content'] %}{% if line['type'] == 'text' %}{{line['text']}}{% elif line['type'] == 'image' %}{{ '<image>' }}{% endif %}{% endfor %}<end_of_utterance>\n{% endfor %}{% if add_generation_prompt %}{{ 'assistant:' }}{% endif %}" | |
| } | |