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