update template
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -176,7 +176,7 @@
|
|
176 |
"<reponame>"
|
177 |
],
|
178 |
"bos_token": "<|endoftext|>",
|
179 |
-
"chat_template": "{% set function_str = messages.get('functions_str', {}) %}\n{% set query = messages['query'] %}\n{% set sys_prompt = 'You are a helpful assistant with access to the following function calls. Your task is to produce a sequence of function calls necessary to generate response to the user utterance. Use the following function calls as required. ' %}\n{% set funcstr = function_str|join('\n') %}\n{{ 'SYSTEM: ' + sys_prompt + '\n<|function_call_library|>\n' + funcstr + '\n\nIf none of the functions are relevant or the given question lacks the parameters required by the function, please output \"<function_call> {\"name\": \"no_function\", \"arguments\": {}}\".\n\nUSER: ' + query}}\n{% if add_generation_prompt %}\n{{ 'ASSISTANT:' }}
|
180 |
"clean_up_tokenization_spaces": true,
|
181 |
"eos_token": "<|endoftext|>",
|
182 |
"model_max_length": 8192,
|
|
|
176 |
"<reponame>"
|
177 |
],
|
178 |
"bos_token": "<|endoftext|>",
|
179 |
+
"chat_template": "{% set function_str = messages.get('functions_str', {}) %}\n{% set query = messages['query'] %}\n{% set sys_prompt = 'You are a helpful assistant with access to the following function calls. Your task is to produce a sequence of function calls necessary to generate response to the user utterance. Use the following function calls as required. ' %}\n{% set funcstr = function_str|join('\n') %}\n{{ 'SYSTEM: ' + sys_prompt + '\n<|function_call_library|>\n' + funcstr + '\n\nIf none of the functions are relevant or the given question lacks the parameters required by the function, please output \"<function_call> {\"name\": \"no_function\", \"arguments\": {}}\".\n\nUSER: ' + query}}\n{% if add_generation_prompt %}\n{{ 'ASSISTANT:' }}{% endif %}",
|
180 |
"clean_up_tokenization_spaces": true,
|
181 |
"eos_token": "<|endoftext|>",
|
182 |
"model_max_length": 8192,
|