Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -158,7 +158,7 @@
|
|
158 |
"<empty_output>"
|
159 |
],
|
160 |
"bos_token": "<|endoftext|>",
|
161 |
-
"chat_template": "{
|
162 |
"clean_up_tokenization_spaces": false,
|
163 |
"eos_token": "<|im_end|>",
|
164 |
"model_max_length": 8192,
|
|
|
158 |
"<empty_output>"
|
159 |
],
|
160 |
"bos_token": "<|endoftext|>",
|
161 |
+
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{%- if messages[0]['role'] == 'system' %}{{ '<|im_start|>' + messages[0]['role'] + '\n' + messages[0]['content'] + '<|im_end|>\n' }}{%- else %}{{ '<|im_start|>system\nSei un assistente AI utile ed intelligente di nome ReDiX<|im_end|>\n' }}{%- endif %}{% for message in messages %}{{ '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
162 |
"clean_up_tokenization_spaces": false,
|
163 |
"eos_token": "<|im_end|>",
|
164 |
"model_max_length": 8192,
|