Upload tokenizer
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
|
@@ -2000,7 +2000,7 @@
|
|
| 2000 |
"<end_of_turn>"
|
| 2001 |
],
|
| 2002 |
"bos_token": "<bos>",
|
| 2003 |
-
"chat_template": "{{ bos_token }}\n{%- for message in messages %}\n {%- if loop.first and message['role'] == 'system' %}\n {{- '<start_of_turn>system\n' + message['content'] | trim + '<end_of_turn>\n' }}\n {%- elif message['role'] == 'assistant' %}\n {%- if 'tool_calls' in message %}\n {{- '<
|
| 2004 |
"clean_up_tokenization_spaces": false,
|
| 2005 |
"eos_token": "<end_of_turn>",
|
| 2006 |
"extra_special_tokens": {},
|
|
|
|
| 2000 |
"<end_of_turn>"
|
| 2001 |
],
|
| 2002 |
"bos_token": "<bos>",
|
| 2003 |
+
"chat_template": "{{ bos_token }}\n{%- for message in messages %}\n {%- if loop.first and message['role'] == 'system' %}\n {{- '<start_of_turn>system\n' + message['content'] | trim + '<end_of_turn>\n' }}\n {%- elif message['role'] == 'assistant' %}\n {{- '<start_of_turn>model\n' }}\n {%- if 'tool_calls' in message %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\n</tool_call>' }}\n {%- endfor %}\n {%- else %}\n {{- message['content'] | trim }}\n {%- endif %}\n {{- '<end_of_turn>\n' }}\n {%- elif message['role'] == 'tool' %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<start_of_turn>user' }}\n {%- endif %}\n {{- '\n<tool_response>\n' }}\n {{- message.content }}\n {{- '\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<end_of_turn>\n' }}\n {%- endif %}\n {%- else %}\n {{- '<start_of_turn>' + message['role'] + '\n' + message['content'] | trim + '<end_of_turn>\n' }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<start_of_turn>model\n' }}\n{%- endif %}",
|
| 2004 |
"clean_up_tokenization_spaces": false,
|
| 2005 |
"eos_token": "<end_of_turn>",
|
| 2006 |
"extra_special_tokens": {},
|