matiss commited on
Commit
7e6f53b
·
verified ·
1 Parent(s): 58a3cfa

Upload tokenizer

Browse files
Files changed (1) hide show
  1. chat_template.jinja +9 -6
chat_template.jinja CHANGED
@@ -1,6 +1,9 @@
1
- {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
2
- You are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>
3
- ' }}{% endif %}{{'<|im_start|>' + message['role'] + '
4
- ' + message['content'] + '<|im_end|>' + '
5
- '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
6
- ' }}{% endif %}
 
 
 
 
1
+ {% for message in messages %}
2
+ {% if loop.first and messages[0]['role'] != 'system' %}
3
+ {{ '<|im_start|>system' + '\n' + 'Tu esi izpalīdzīga mākslīgā intelekta asistente.<|im_end|>' + '\n' }}
4
+ {% endif %}
5
+ {{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}
6
+ {% endfor %}
7
+ {% if add_generation_prompt %}
8
+ {{ '<|im_start|>assistant' + '\n' }}
9
+ {% endif %}