Add chat_template for /chat/completions
Browse files- tokenizer_config.json +2 -1
tokenizer_config.json
CHANGED
|
@@ -226,7 +226,8 @@
|
|
| 226 |
"<|image_pad|>",
|
| 227 |
"<|video_pad|>"
|
| 228 |
],
|
| 229 |
-
"bos_token":
|
|
|
|
| 230 |
"clean_up_tokenization_spaces": false,
|
| 231 |
"eos_token": "<|im_end|>",
|
| 232 |
"errors": "replace",
|
|
|
|
| 226 |
"<|image_pad|>",
|
| 227 |
"<|video_pad|>"
|
| 228 |
],
|
| 229 |
+
"bos_token": "<|endoftext|>",
|
| 230 |
+
"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 %}",
|
| 231 |
"clean_up_tokenization_spaces": false,
|
| 232 |
"eos_token": "<|im_end|>",
|
| 233 |
"errors": "replace",
|