Download chat_template.jinja from hf-tiny-v2/tiny-random-PhimoeForCausalLM: direct link, hf CLI and curl.
- Browser
- Download file 430 Bytes
-
https://huggingface.co/hf-tiny-v2/tiny-random-PhimoeForCausalLM/resolve/main/chat_template.jinja
- Command line
-
hf download hf://hf-tiny-v2/tiny-random-PhimoeForCausalLM/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/hf-tiny-v2/tiny-random-PhimoeForCausalLM/resolve/main/chat_template.jinja
430 Bytes
| {% for message in messages %}{% if message['role'] == 'system' and message['content'] %}{{'<|system|> | |
| ' + message['content'] + '<|end|> | |
| '}}{% elif message['role'] == 'user' %}{{'<|user|> | |
| ' + message['content'] + '<|end|> | |
| '}}{% elif message['role'] == 'assistant' %}{{'<|assistant|> | |
| ' + message['content'] + '<|end|> | |
| '}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|> | |
| ' }}{% else %}{{ eos_token }}{% endif %} |