Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -0
tokenizer_config.json
CHANGED
@@ -4757,6 +4757,7 @@
|
|
4757 |
},
|
4758 |
"bos_token": "<|begin▁of▁sentence|>",
|
4759 |
"clean_up_tokenization_spaces": false,
|
|
|
4760 |
"eos_token": "<|end▁of▁sentence|>",
|
4761 |
"model_max_length": 16384,
|
4762 |
"pad_token": "<|▁pad▁|>",
|
|
|
4757 |
},
|
4758 |
"bos_token": "<|begin▁of▁sentence|>",
|
4759 |
"clean_up_tokenization_spaces": false,
|
4760 |
+
"chat_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 %}",
|
4761 |
"eos_token": "<|end▁of▁sentence|>",
|
4762 |
"model_max_length": 16384,
|
4763 |
"pad_token": "<|▁pad▁|>",
|