lukaskellerstein
commited on
Commit
•
56212f7
1
Parent(s):
f8b4ca4
Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -6181,7 +6181,7 @@
|
|
6181 |
}
|
6182 |
},
|
6183 |
"bos_token": "<s>",
|
6184 |
-
"chat_template": "{{bos_token}}{% set user_messages = messages | selectattr('role', 'equalto', 'user') | list %}{% for message in messages %}{% if message['role'] == 'user' %}{% if message == user_messages[-1] %}{% if tools %}{{'[AVAILABLE_TOOLS]'+ tools|string + '[/AVAILABLE_TOOLS]'}}{% endif %}{{ '[INST]' + message['content'] + '[/INST]' }}{% else %}{{ '[INST]' + message['content'] + '[/INST]' }}{% endif %}{% elif message['role'] == 'assistant' %}{% if message['tool_calls'] %}{{'[TOOL_CALLS]' + message['tool_calls']|string + eos_token}}{% else %}{{ ' ' + message['content'] + ' ' + eos_token}}{% endif %}{% elif message['role'] == 'tool' %}{{'[TOOL_RESULTS]' + message['content'] + '[/TOOL_RESULTS]'}}{% endif %}{% endfor %}",
|
6185 |
"clean_up_tokenization_spaces": false,
|
6186 |
"eos_token": "</s>",
|
6187 |
"legacy": false,
|
|
|
6181 |
}
|
6182 |
},
|
6183 |
"bos_token": "<s>",
|
6184 |
+
"chat_template": "{{bos_token}}{% set user_messages = messages | selectattr('role', 'equalto', 'user') | list %}{% for message in messages %}{% if message['role'] == 'user' %}{% if message == user_messages[-1] %}{% if tools %}{{'[AVAILABLE_TOOLS]'+ tools|string + '[/AVAILABLE_TOOLS]'}}{% endif %}{{ '[INST]' + message['content'] + '[/INST]' }}{% else %}{{ '[INST]' + message['content'] + '[/INST]' }}{% endif %}{% elif message['role'] == 'assistant' %}{% if message['tool_calls'] %}{{'[TOOL_CALLS]' + message['tool_calls']|string + eos_token}}{% else %}{{ ' ' + message['content'] + ' ' + eos_token}}{% endif %}{% elif message['role'] == 'tool' %}{{'[TOOL_RESULTS]' + message['content']|string + '[/TOOL_RESULTS]'}}{% endif %}{% endfor %}",
|
6185 |
"clean_up_tokenization_spaces": false,
|
6186 |
"eos_token": "</s>",
|
6187 |
"legacy": false,
|