Download chat_template.jinja from hf-tiny-v2/tiny-random-AriaTextForCausalLM: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/hf-tiny-v2/tiny-random-AriaTextForCausalLM/resolve/main/chat_template.jinja
- Command line
-
hf download hf://hf-tiny-v2/tiny-random-AriaTextForCausalLM/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/hf-tiny-v2/tiny-random-AriaTextForCausalLM/resolve/main/chat_template.jinja
530 Bytes
| {% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}<|im_start|>{{ message['role'] }} | |
| {% if message['content'] is string %}{{ message['content'] }}{% elif message['content'] is iterable %}{% for item in message['content'] %}{% if item['type'] == 'text' %}{{ item['text'] }}{% elif item['type'] == 'image' %}<fim_prefix><|img|><fim_suffix>{% endif %}{% endfor %}{% endif %}<|im_end|> | |
| {% endfor %}{% if add_generation_prompt %}<|im_start|>assistant | |
| {% endif %} |