Upload folder using huggingface_hub
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
@@ -195,7 +195,7 @@
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
-
"chat_template": "{# System message #}\n{{- \"<|im_start|>system\\n\" }}\n{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content'] | trim %}\n {%- set messages = messages[1:] %}\n {{- system_message + \"\\n\" }}\n{%- else %}\n {%- set system_message = \"You are a helpful assistant that can use tools. You are developed by developed by Salesforce xLAM team.\" %}\n {% set format_instruction %}\nYou have access to a set of tools. When using tools, make calls in a single JSON array: \n\n[{\"name\": \"tool_call_name\", \"arguments\": {\"arg1\": \"value1\", \"arg2\": \"value2\"}}, ... (additional parallel tool calls as needed)]\n\nIf no tool is suitable, state that explicitly. If the user's input lacks required parameters, ask for clarification. \nDo not interpret or respond until tool results are returned. Once they are available, process them or make additional calls if needed. \nFor tasks that don't require tools, such as casual conversation or general advice, respond directly in plain text. \n {% endset %}\n {{- system_message + \"\\n\" }}\n {{- format_instruction + \"\\n\" }}\n{%- endif %}\n \n\n{%- if tools is not none %}\n {{- \"The available tools are:\\n\" }}\n {%- for func in tools %}\n {{- func | tojson(indent=4) }}\n {{- \"\\n\\n\" }}\n {%- endfor %}\n{%- endif %}\n{{- \"<|im_end|>\" }}\n\n{# Conversation messages #}\n{%- for message in messages %}\n {%- if message['role'] == 'tool' %}\n {{- \"<|im_start|>tool\\n\" }}\n {%- if message.content is defined and message.content.content is defined %}\n {%- set content = message.content.content %}\n {%- else %}\n {%- set content = message.content %}\n {%- endif %}\n {%- if content is mapping or content is iterable and content is not string %}\n {{- content | tojson }}\n {%- else %}\n {{- content }}\n {%- endif %}\n {{- \"<|im_end|>\\n\" }}\n {%- elif 'tool_calls' in message %}\n {{- \"<|im_start|>assistant\\n\" }}\n {%- if message
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
"eos_token": "<|im_end|>",
|
201 |
"errors": "replace",
|
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
+
"chat_template": "{# System message #}\n{{- \"<|im_start|>system\\n\" }}\n{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content'] | trim %}\n {%- set messages = messages[1:] %}\n {{- system_message + \"\\n\" }}\n{%- else %}\n {%- set system_message = \"You are a helpful assistant that can use tools. You are developed by developed by Salesforce xLAM team.\" %}\n {% set format_instruction %}\nYou have access to a set of tools. When using tools, make calls in a single JSON array: \n\n[{\"name\": \"tool_call_name\", \"arguments\": {\"arg1\": \"value1\", \"arg2\": \"value2\"}}, ... (additional parallel tool calls as needed)]\n\nIf no tool is suitable, state that explicitly. If the user's input lacks required parameters, ask for clarification. \nDo not interpret or respond until tool results are returned. Once they are available, process them or make additional calls if needed. \nFor tasks that don't require tools, such as casual conversation or general advice, respond directly in plain text. \n {% endset %}\n {{- system_message + \"\\n\" }}\n {{- format_instruction + \"\\n\" }}\n{%- endif %}\n \n\n{%- if tools is not none %}\n {{- \"The available tools are:\\n\" }}\n {%- for func in tools %}\n {{- func | tojson(indent=4) }}\n {{- \"\\n\\n\" }}\n {%- endfor %}\n{%- endif %}\n{{- \"<|im_end|>\" }}\n\n{# Conversation messages #}\n{%- for message in messages %}\n {%- if message['role'] == 'tool' %}\n {{- \"<|im_start|>tool\\n\" }}\n {%- if message.content is defined and message.content.content is defined %}\n {%- set content = message.content.content %}\n {%- else %}\n {%- set content = message.content %}\n {%- endif %}\n {%- if content is mapping or content is iterable and content is not string %}\n {{- content | tojson }}\n {%- else %}\n {{- content }}\n {%- endif %}\n {{- \"<|im_end|>\\n\" }}\n {%- elif 'tool_calls' in message %}\n {{- \"<|im_start|>assistant\\n\" }}\n {%- if message['tool_calls'] %}\n {{- \"[\" }}\n {%- for tool_call in message.tool_calls %}\n {%- set out = tool_call.function | tojson %}\n {{- out }}\n {%- if not loop.last %}\n {{- \", \" }}\n {%- endif %}\n {%- endfor %}\n {{- \"]\"}}\n {%- elif message['content'] %}\n {{- message['content'] | trim }}\n {%- else %}\n {{- \"[]\\n\" }}\n {%- endif %}\n {{- \"<|im_end|>\\n\" }}\n {%- else %}\n {{- \"<|im_start|>\" + message['role'] + \"\\n\" + message['content'] | trim + \"<|im_end|>\\n\" }}\n {%- endif %}\n{%- endfor %}\n\n{%- if add_generation_prompt %}\n {{- \"<|im_start|>assistant\\n\" }}\n{%- endif %}\n",
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
"eos_token": "<|im_end|>",
|
201 |
"errors": "replace",
|