Download chat_template.jinja from hf-tiny-v2/tiny-random-DiffLlamaForQuestionAnswering: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/hf-tiny-v2/tiny-random-DiffLlamaForQuestionAnswering/resolve/main/chat_template.jinja
- Command line
-
hf download hf://hf-tiny-v2/tiny-random-DiffLlamaForQuestionAnswering/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/hf-tiny-v2/tiny-random-DiffLlamaForQuestionAnswering/resolve/main/chat_template.jinja
389 Bytes
| {% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|> | |
| '+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|> | |
| ' }}{% endif %} |