Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -2052,7 +2052,7 @@
|
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
"clean_up_tokenization_spaces": true,
|
2054 |
"eos_token": "<|end_of_text|>",
|
2055 |
-
"chat_template"
|
2056 |
"model_input_names": [
|
2057 |
"input_ids",
|
2058 |
"attention_mask"
|
|
|
2052 |
"bos_token": "<|begin_of_text|>",
|
2053 |
"clean_up_tokenization_spaces": true,
|
2054 |
"eos_token": "<|end_of_text|>",
|
2055 |
+
"chat_template": "{% for message in messages %}{{ '<|begin_of_text|>' + message['role'] + '\n' + message['content'] + '<|end_of_text|>\n' }}{% endfor %}{% if add_generation_prompt %}{{ '<|begin_of_text|>assistant\n' }}{% endif %}",
|
2056 |
"model_input_names": [
|
2057 |
"input_ids",
|
2058 |
"attention_mask"
|