johannhartmann
commited on
Commit
•
e6c266e
1
Parent(s):
616adee
Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -33,6 +33,7 @@
|
|
33 |
"</s>"
|
34 |
],
|
35 |
"bos_token": "<s>",
|
|
|
36 |
"clean_up_tokenization_spaces": false,
|
37 |
"eos_token": "</s>",
|
38 |
"legacy": true,
|
|
|
33 |
"</s>"
|
34 |
],
|
35 |
"bos_token": "<s>",
|
36 |
+
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content']}}{% if (loop.last and add_generation_prompt) or not loop.last %}{{ '<|im_end|>' + '\n'}}{% endif %}{% endfor %}\n{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
37 |
"clean_up_tokenization_spaces": false,
|
38 |
"eos_token": "</s>",
|
39 |
"legacy": true,
|