Update tokenizer_config.json
Browse files- tokenizer_config.json +10 -4
tokenizer_config.json
CHANGED
@@ -4765,10 +4765,16 @@
|
|
4765 |
},
|
4766 |
"bos_token": "<|begin▁of▁sentence|>",
|
4767 |
"clean_up_tokenization_spaces": false,
|
4768 |
-
"chat_template":
|
4769 |
-
|
4770 |
-
|
4771 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
4772 |
"eos_token": "<|end▁of▁sentence|>",
|
4773 |
"model_max_length": 16384,
|
4774 |
"pad_token": "<|▁pad▁|>",
|
|
|
4765 |
},
|
4766 |
"bos_token": "<|begin▁of▁sentence|>",
|
4767 |
"clean_up_tokenization_spaces": false,
|
4768 |
+
"chat_template": [
|
4769 |
+
{
|
4770 |
+
"name": "default",
|
4771 |
+
"template": "{% if messages[0]['role'] | lower == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% set system_message = 'You are a helpful language and vision assistant. You are able to understand the visual content that the user provides, and assist the user with a variety of tasks using natural language.' %}{% endif %}{{ bos_token + system_message }}{% for message in loop_messages %}{{ '\\n\\n' + message['role'] + ': ' + message['content'] | trim }}{% endfor %}{% if add_generation_prompt %}{{ '\\n\\n' + 'Assistant:' }}{% endif %}"
|
4772 |
+
},
|
4773 |
+
{
|
4774 |
+
"name": "text_to_image",
|
4775 |
+
"template": "{{ '<|begin▁of▁sentence|>' }}{% for message in messages %}{{ message['role'] + ': ' + message['content'] | trim + '\\n\\n' }}{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:<begin_of_image>' }}{% endif %}"
|
4776 |
+
}
|
4777 |
+
],
|
4778 |
"eos_token": "<|end▁of▁sentence|>",
|
4779 |
"model_max_length": 16384,
|
4780 |
"pad_token": "<|▁pad▁|>",
|