Update tokenizer_config.json
Browse files- tokenizer_config.json +10 -1
tokenizer_config.json
CHANGED
@@ -2079,7 +2079,16 @@
|
|
2079 |
"<pad>"
|
2080 |
],
|
2081 |
"bos_token": "<|begin_of_text|>",
|
2082 |
-
"chat_template":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2083 |
"clean_up_tokenization_spaces": true,
|
2084 |
"eos_token": "<|eot_id|>",
|
2085 |
"model_input_names": [
|
|
|
2079 |
"<pad>"
|
2080 |
],
|
2081 |
"bos_token": "<|begin_of_text|>",
|
2082 |
+
"chat_template": [
|
2083 |
+
{
|
2084 |
+
"name": "default",
|
2085 |
+
"template": "{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% if loop.last and add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}{% endfor %}",
|
2086 |
+
},
|
2087 |
+
{
|
2088 |
+
"name": "tool_use",
|
2089 |
+
"template": "{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% if loop.last and add_generation_prompt %}{{ '<|start_header_id|>' }}{% endif %}{% endfor %}",
|
2090 |
+
}
|
2091 |
+
]
|
2092 |
"clean_up_tokenization_spaces": true,
|
2093 |
"eos_token": "<|eot_id|>",
|
2094 |
"model_input_names": [
|