tanquangduong
commited on
Upload tokenizer
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -203,7 +203,7 @@
|
|
203 |
"<|video_pad|>"
|
204 |
],
|
205 |
"bos_token": null,
|
206 |
-
"chat_template":
|
207 |
"clean_up_tokenization_spaces": false,
|
208 |
"eos_token": "<|endoftext|>",
|
209 |
"errors": "replace",
|
|
|
203 |
"<|video_pad|>"
|
204 |
],
|
205 |
"bos_token": null,
|
206 |
+
"chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ messages[0]['content'] + '\n\n' }}{% set loop_messages = messages[1:] %}{% else %}{{ 'Below are some instructions that describe some tasks. Write responses that appropriately complete each request.\n\n' }}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{{ '### Instruction:\n' + message['content'] + '\n\n' }}{% elif message['role'] == 'assistant' %}{{ '### Response:\n' + message['content'] + eos_token + '\n\n' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '### Response:\n' }}{% endif %}",
|
207 |
"clean_up_tokenization_spaces": false,
|
208 |
"eos_token": "<|endoftext|>",
|
209 |
"errors": "replace",
|