Download chat_template.jinja from hf-tiny-v2/tiny-random-ColModernVBertForRetrieval: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/hf-tiny-v2/tiny-random-ColModernVBertForRetrieval/resolve/main/chat_template.jinja
- Command line
-
hf download hf://hf-tiny-v2/tiny-random-ColModernVBertForRetrieval/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/hf-tiny-v2/tiny-random-ColModernVBertForRetrieval/resolve/main/chat_template.jinja
408 Bytes
| <|begin_of_text|>{% for message in messages %}{{message['role'] | capitalize}}{% 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> | |
| {% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %} |