Upload tokenizer
Browse files- special_tokens_map.json +21 -19
- tokenizer.json +2 -2
- tokenizer_config.json +4 -24
special_tokens_map.json
CHANGED
|
@@ -1,21 +1,23 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|begin▁of▁sentence|>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|end▁of▁sentence|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<|end▁of▁sentence|>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
}
|
| 23 |
}
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffa86cef3959eefc717ca8c3da95d93840fc629bf660d33f2fa23e935a6a67ec
|
| 3 |
+
size 17209627
|
tokenizer_config.json
CHANGED
|
@@ -2050,36 +2050,16 @@
|
|
| 2050 |
"rstrip": false,
|
| 2051 |
"single_word": false,
|
| 2052 |
"special": true
|
| 2053 |
-
},
|
| 2054 |
-
"128256": {
|
| 2055 |
-
"content": "<|im_start|>",
|
| 2056 |
-
"lstrip": false,
|
| 2057 |
-
"normalized": false,
|
| 2058 |
-
"rstrip": false,
|
| 2059 |
-
"single_word": false,
|
| 2060 |
-
"special": true
|
| 2061 |
-
},
|
| 2062 |
-
"128257": {
|
| 2063 |
-
"content": "<|im_end|>",
|
| 2064 |
-
"lstrip": false,
|
| 2065 |
-
"normalized": false,
|
| 2066 |
-
"rstrip": false,
|
| 2067 |
-
"single_word": false,
|
| 2068 |
-
"special": true
|
| 2069 |
}
|
| 2070 |
},
|
| 2071 |
-
"
|
| 2072 |
-
|
| 2073 |
-
"<|im_end|>"
|
| 2074 |
-
],
|
| 2075 |
-
"bos_token": "<|im_start|>",
|
| 2076 |
-
"chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
| 2077 |
"clean_up_tokenization_spaces": false,
|
| 2078 |
-
"eos_token": "<
|
| 2079 |
"extra_special_tokens": {},
|
| 2080 |
"legacy": true,
|
| 2081 |
"model_max_length": 16384,
|
| 2082 |
-
"pad_token": "<
|
| 2083 |
"sp_model_kwargs": {},
|
| 2084 |
"tokenizer_class": "LlamaTokenizer",
|
| 2085 |
"unk_token": null,
|
|
|
|
| 2050 |
"rstrip": false,
|
| 2051 |
"single_word": false,
|
| 2052 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2053 |
}
|
| 2054 |
},
|
| 2055 |
+
"bos_token": "<|begin▁of▁sentence|>",
|
| 2056 |
+
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set ns = namespace(is_first=false, is_tool=false, is_output_first=true, system_prompt='') %}{%- for message in messages %}{%- if message['role'] == 'system' %}{% set ns.system_prompt = message['content'] %}{%- endif %}{%- endfor %}{{bos_token}}{{ns.system_prompt}}{%- for message in messages %}{%- if message['role'] == 'user' %}{%- set ns.is_tool = false -%}{{'<|User|>' + message['content']}}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is none %}{%- set ns.is_tool = false -%}{%- for tool in message['tool_calls']%}{%- if not ns.is_first %}{{'<|Assistant|><|tool▁calls▁begin|><|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\\n' + '```json' + '\\n' + tool['function']['arguments'] + '\\n' + '```' + '<|tool▁call▁end|>'}}{%- set ns.is_first = true -%}{%- else %}{{'\\n' + '<|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\\n' + '```json' + '\\n' + tool['function']['arguments'] + '\\n' + '```' + '<|tool▁call▁end|>'}}{{'<|tool▁calls▁end|><|end▁of▁sentence|>'}}{%- endif %}{%- endfor %}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is not none %}{%- if ns.is_tool %}{{'<|tool▁outputs▁end|>' + message['content'] + '<|end▁of▁sentence|>'}}{%- set ns.is_tool = false -%}{%- else %}{% set content = message['content'] %}{% if '</think>' in content %}{% set content = content.split('</think>')[-1] %}{% endif %}{{'<|Assistant|>' + content + '<|end▁of▁sentence|>'}}{%- endif %}{%- endif %}{%- if message['role'] == 'tool' %}{%- set ns.is_tool = true -%}{%- if ns.is_output_first %}{{'<|tool▁outputs▁begin|><|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- set ns.is_output_first = false %}{%- else %}{{'\\n<|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- endif %}{%- endif %}{%- endfor -%}{% if ns.is_tool %}{{'<|tool▁outputs▁end|>'}}{% endif %}{% if add_generation_prompt and not ns.is_tool %}{{'<|Assistant|>'}}{% endif %}",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2057 |
"clean_up_tokenization_spaces": false,
|
| 2058 |
+
"eos_token": "<|end▁of▁sentence|>",
|
| 2059 |
"extra_special_tokens": {},
|
| 2060 |
"legacy": true,
|
| 2061 |
"model_max_length": 16384,
|
| 2062 |
+
"pad_token": "<|end▁of▁sentence|>",
|
| 2063 |
"sp_model_kwargs": {},
|
| 2064 |
"tokenizer_class": "LlamaTokenizer",
|
| 2065 |
"unk_token": null,
|