Upload tokenizer
Browse files- special_tokens_map.json +2 -2
- tokenizer_config.json +4 -4
special_tokens_map.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
"single_word": false
|
16 |
},
|
17 |
{
|
18 |
-
"content": "
|
19 |
"lstrip": false,
|
20 |
"normalized": false,
|
21 |
"rstrip": false,
|
@@ -24,7 +24,7 @@
|
|
24 |
],
|
25 |
"bos_token": "<s>",
|
26 |
"eos_token": "</s>",
|
27 |
-
"pad_token": "
|
28 |
"unk_token": {
|
29 |
"content": "<unk>",
|
30 |
"lstrip": false,
|
|
|
15 |
"single_word": false
|
16 |
},
|
17 |
{
|
18 |
+
"content": "</s>",
|
19 |
"lstrip": false,
|
20 |
"normalized": false,
|
21 |
"rstrip": false,
|
|
|
24 |
],
|
25 |
"bos_token": "<s>",
|
26 |
"eos_token": "</s>",
|
27 |
+
"pad_token": "</s>",
|
28 |
"unk_token": {
|
29 |
"content": "<unk>",
|
30 |
"lstrip": false,
|
tokenizer_config.json
CHANGED
@@ -31,16 +31,16 @@
|
|
31 |
"additional_special_tokens": [
|
32 |
"<s>",
|
33 |
"</s>",
|
34 |
-
"
|
35 |
],
|
36 |
"bos_token": "<s>",
|
37 |
"chat_template": "{%- set system_message_present = messages | selectattr('role', 'equalto', 'system') | list -%}{%- if not system_message_present -%}{%- set messages = [{ \"content\": \"You are an AI agent acting as a human assistant.\", \"role\": \"system\" }] + messages -%}{%- endif -%}{%- for message in messages -%}<|{{ message.role }}|>{{ '\n' }}{%- if message.role == 'system' -%}{{ message.content }}{%- if tools and tools | length > 0 -%}{{ '\n\n' }}You are aware of the following tools in your environment:{{ '\n' }}{\n \"tools\": [{{ '\n' }}{%- for tool in tools -%}{{ ' ' }}{\n \"function\": {\n \"description\": \"{{ tool.function.description }}\",{{ '\n' }} \"name\": \"{{ tool.function.name }}\",{{ '\n' }} \"parameters\": {{ tool.function.parameters | tojson }}{{ '\n' }} },{{ '\n' }} \"type\": \"{{ tool.type }}\"{{ '\n' }} }{%- if not loop.last -%},{%- endif -%}{{ '\n' }}{%- endfor -%}{{ ' ' }}]{{ '\n' }}}{{ '\n\n' }}If you would like to suggest one or more tool calls, please respond in the following format:{{ '\n' }}{\n \"finish_reason\": \"tool_calls\",{{ '\n' }} \"tool_calls\": [{{ '\n' }}{{ ' ' }}{\n \"arguments\": \"{\\\"parameter_name\\\": \\\"parameter_value\\\"}\",{{ '\n' }} \"id\": \"call_id\",{{ '\n' }} \"name\": \"tool_name\"{{ '\n' }} }{{ '\n' }} ]{{ '\n' }}}{%- endif -%}{{ eos_token }}{{ '\n' }}{%- endif -%}{%- if message.role == 'user' -%}{{ message.content }}{{ eos_token }}{{ '\n' }}{%- endif -%}{%- if message.role == 'assistant' -%}{% generation %}{%- if message.tool_calls and message.tool_calls | length > 0 -%}{\n \"finish_reason\": \"tool_calls\",{{ '\n' }} \"tool_calls\": [{{ '\n' }}{%- for tool_call in message.tool_calls -%}{{ ' ' }}{\n \"arguments\": {{ tool_call.function.arguments | tojson }},{{ '\n' }} \"id\": \"{{ tool_call.id }}\",{{ '\n' }} \"name\": \"{{ tool_call.function.name }}\"{{ '\n' }} }{%- if not loop.last -%},{%- endif -%}{{ '\n' }}{%- endfor -%}{{ ' ' }}]{{ '\n' }}}{%- else -%}{{ message.content }}{%- endif -%}{% endgeneration %}{{ eos_token }}{{ '\n' }}{%- endif -%}{%- if message.role == 'tool' -%}{\n \"content\": {{ message.content | tojson }},{{ '\n' }} \"name\": \"{{ message.name }}\",{{ '\n' }} \"tool_call_id\": \"{{ message.tool_call_id }}\"{{ '\n' }}}{{ eos_token }}{{ '\n' }}{%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%}{{ '<|assistant|>\n' }}{%- endif -%}",
|
38 |
"clean_up_tokenization_spaces": false,
|
39 |
"eos_token": "</s>",
|
40 |
"legacy": false,
|
41 |
-
"model_max_length":
|
42 |
-
"pad_token": "
|
43 |
-
"padding_side": "
|
44 |
"sp_model_kwargs": {},
|
45 |
"tokenizer_class": "LlamaTokenizer",
|
46 |
"unk_token": "<unk>",
|
|
|
31 |
"additional_special_tokens": [
|
32 |
"<s>",
|
33 |
"</s>",
|
34 |
+
"</s>"
|
35 |
],
|
36 |
"bos_token": "<s>",
|
37 |
"chat_template": "{%- set system_message_present = messages | selectattr('role', 'equalto', 'system') | list -%}{%- if not system_message_present -%}{%- set messages = [{ \"content\": \"You are an AI agent acting as a human assistant.\", \"role\": \"system\" }] + messages -%}{%- endif -%}{%- for message in messages -%}<|{{ message.role }}|>{{ '\n' }}{%- if message.role == 'system' -%}{{ message.content }}{%- if tools and tools | length > 0 -%}{{ '\n\n' }}You are aware of the following tools in your environment:{{ '\n' }}{\n \"tools\": [{{ '\n' }}{%- for tool in tools -%}{{ ' ' }}{\n \"function\": {\n \"description\": \"{{ tool.function.description }}\",{{ '\n' }} \"name\": \"{{ tool.function.name }}\",{{ '\n' }} \"parameters\": {{ tool.function.parameters | tojson }}{{ '\n' }} },{{ '\n' }} \"type\": \"{{ tool.type }}\"{{ '\n' }} }{%- if not loop.last -%},{%- endif -%}{{ '\n' }}{%- endfor -%}{{ ' ' }}]{{ '\n' }}}{{ '\n\n' }}If you would like to suggest one or more tool calls, please respond in the following format:{{ '\n' }}{\n \"finish_reason\": \"tool_calls\",{{ '\n' }} \"tool_calls\": [{{ '\n' }}{{ ' ' }}{\n \"arguments\": \"{\\\"parameter_name\\\": \\\"parameter_value\\\"}\",{{ '\n' }} \"id\": \"call_id\",{{ '\n' }} \"name\": \"tool_name\"{{ '\n' }} }{{ '\n' }} ]{{ '\n' }}}{%- endif -%}{{ eos_token }}{{ '\n' }}{%- endif -%}{%- if message.role == 'user' -%}{{ message.content }}{{ eos_token }}{{ '\n' }}{%- endif -%}{%- if message.role == 'assistant' -%}{% generation %}{%- if message.tool_calls and message.tool_calls | length > 0 -%}{\n \"finish_reason\": \"tool_calls\",{{ '\n' }} \"tool_calls\": [{{ '\n' }}{%- for tool_call in message.tool_calls -%}{{ ' ' }}{\n \"arguments\": {{ tool_call.function.arguments | tojson }},{{ '\n' }} \"id\": \"{{ tool_call.id }}\",{{ '\n' }} \"name\": \"{{ tool_call.function.name }}\"{{ '\n' }} }{%- if not loop.last -%},{%- endif -%}{{ '\n' }}{%- endfor -%}{{ ' ' }}]{{ '\n' }}}{%- else -%}{{ message.content }}{%- endif -%}{% endgeneration %}{{ eos_token }}{{ '\n' }}{%- endif -%}{%- if message.role == 'tool' -%}{\n \"content\": {{ message.content | tojson }},{{ '\n' }} \"name\": \"{{ message.name }}\",{{ '\n' }} \"tool_call_id\": \"{{ message.tool_call_id }}\"{{ '\n' }}}{{ eos_token }}{{ '\n' }}{%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%}{{ '<|assistant|>\n' }}{%- endif -%}",
|
38 |
"clean_up_tokenization_spaces": false,
|
39 |
"eos_token": "</s>",
|
40 |
"legacy": false,
|
41 |
+
"model_max_length": 2048,
|
42 |
+
"pad_token": "</s>",
|
43 |
+
"padding_side": "right",
|
44 |
"sp_model_kwargs": {},
|
45 |
"tokenizer_class": "LlamaTokenizer",
|
46 |
"unk_token": "<unk>",
|