Commit
•
1905a2c
1
Parent(s):
28436e8
Upload tokenizer
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
"<|im_end|>"
|
32 |
],
|
33 |
"bos_token": null,
|
34 |
-
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}<|im_start|>system\nYou are a helpful assistant<|im_end|>\n{% endif %}{% if message['role'] == 'function_metadata' %}<|im_start|>tools\nYou have access to the following functions. Use them if required:\n\n{{ message['content'] }}\n\nTo call a function, respond with a JSON object in this format:\n{\n \"name\": \"function_name\",\n \"arguments\": {\n \"argument1\": \"value1\",\n \"argument2\": \"value2\"\n }\n}\nRespond with a JSON object only if you wish to make a function call. Any other response will be treated as a regular query.
|
35 |
"clean_up_tokenization_spaces": false,
|
36 |
"eos_token": "<|im_end|>",
|
37 |
"errors": "replace",
|
|
|
31 |
"<|im_end|>"
|
32 |
],
|
33 |
"bos_token": null,
|
34 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}<|im_start|>system\nYou are a helpful assistant<|im_end|>\n{% endif %}{% if message['role'] == 'function_metadata' %}<|im_start|>tools\nYou have access to the following functions. Use them only if required:\n\n{{ message['content'] }}\n\nTo call a function, respond with a JSON object in this format:\n{\n \"name\": \"function_name\",\n \"arguments\": {\n \"argument1\": \"value1\",\n \"argument2\": \"value2\"\n }\n}\nRespond with a JSON object only if you wish to make a function call. Any other response will be treated as a regular query.When making a function call, provide only the JSON object, nothing else. Make one function call at a time. After the function call, wait for the response.\nOnly make use of the functions if they assist in providing the user with an answer. Otherwise, answer without making a function call.{% elif message['role'] == 'function_response' %}<|im_start|>function_response\nHere is the response to the function call. If helpful, use it to respond to the user's question:{{ message['content'] }}{% else %}{{'<|im_start|>' + message['role'] + '\n' + message['content']}}{% endif %}{% if (loop.last and add_generation_prompt) or not loop.last %}{{ '<|im_end|>' + '\n'}}{% endif %}{% endfor %}{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
35 |
"clean_up_tokenization_spaces": false,
|
36 |
"eos_token": "<|im_end|>",
|
37 |
"errors": "replace",
|