Commit
·
ab709f9
1
Parent(s):
75b86f7
Remove double bos
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
|
@@ -286,7 +286,7 @@
|
|
| 286 |
},
|
| 287 |
"additional_special_tokens": [],
|
| 288 |
"bos_token": "<s>",
|
| 289 |
-
"chat_template": "{
|
| 290 |
"clean_up_tokenization_spaces": true,
|
| 291 |
"eos_token": "<|im_end|>",
|
| 292 |
"legacy": true,
|
|
|
|
| 286 |
},
|
| 287 |
"additional_special_tokens": [],
|
| 288 |
"bos_token": "<s>",
|
| 289 |
+
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
| 290 |
"clean_up_tokenization_spaces": true,
|
| 291 |
"eos_token": "<|im_end|>",
|
| 292 |
"legacy": true,
|