Upload tokenizer
Browse files- added_tokens.json +2 -2
- special_tokens_map.json +23 -17
- tokenizer.json +2 -2
- tokenizer_config.json +10 -9
added_tokens.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"<functioncall>": 256000,
|
| 3 |
+
"<functionresponse>": 256001
|
| 4 |
}
|
special_tokens_map.json
CHANGED
|
@@ -1,23 +1,29 @@
|
|
| 1 |
{
|
| 2 |
"additional_special_tokens": [
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
"lstrip": false,
|
| 6 |
-
"normalized": false,
|
| 7 |
-
"rstrip": false,
|
| 8 |
-
"single_word": false
|
| 9 |
-
},
|
| 10 |
-
{
|
| 11 |
-
"content": "<|im_end|>",
|
| 12 |
-
"lstrip": false,
|
| 13 |
-
"normalized": false,
|
| 14 |
-
"rstrip": false,
|
| 15 |
-
"single_word": false
|
| 16 |
-
}
|
| 17 |
],
|
| 18 |
-
"bos_token":
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
"unk_token": {
|
| 22 |
"content": "<unk>",
|
| 23 |
"lstrip": false,
|
|
|
|
| 1 |
{
|
| 2 |
"additional_special_tokens": [
|
| 3 |
+
"<start_of_turn>",
|
| 4 |
+
"<end_of_turn>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
],
|
| 6 |
+
"bos_token": {
|
| 7 |
+
"content": "<bos>",
|
| 8 |
+
"lstrip": false,
|
| 9 |
+
"normalized": false,
|
| 10 |
+
"rstrip": false,
|
| 11 |
+
"single_word": false
|
| 12 |
+
},
|
| 13 |
+
"eos_token": {
|
| 14 |
+
"content": "<eos>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false
|
| 19 |
+
},
|
| 20 |
+
"pad_token": {
|
| 21 |
+
"content": "<pad>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false
|
| 26 |
+
},
|
| 27 |
"unk_token": {
|
| 28 |
"content": "<unk>",
|
| 29 |
"lstrip": false,
|
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:d1ac18fc4c4056a1be274a7e351f55ff64c8aed413b43c201ea60101d2e868f0
|
| 3 |
+
size 17525743
|
tokenizer_config.json
CHANGED
|
@@ -1995,7 +1995,7 @@
|
|
| 1995 |
"special": false
|
| 1996 |
},
|
| 1997 |
"256000": {
|
| 1998 |
-
"content": "
|
| 1999 |
"lstrip": false,
|
| 2000 |
"normalized": false,
|
| 2001 |
"rstrip": false,
|
|
@@ -2003,7 +2003,7 @@
|
|
| 2003 |
"special": true
|
| 2004 |
},
|
| 2005 |
"256001": {
|
| 2006 |
-
"content": "
|
| 2007 |
"lstrip": false,
|
| 2008 |
"normalized": false,
|
| 2009 |
"rstrip": false,
|
|
@@ -2012,15 +2012,16 @@
|
|
| 2012 |
}
|
| 2013 |
},
|
| 2014 |
"additional_special_tokens": [
|
| 2015 |
-
"
|
| 2016 |
-
"
|
| 2017 |
],
|
| 2018 |
-
"bos_token": "
|
| 2019 |
-
"chat_template": "{% for
|
| 2020 |
"clean_up_tokenization_spaces": false,
|
| 2021 |
-
"eos_token": "
|
| 2022 |
-
"model_max_length":
|
| 2023 |
-
"pad_token": "
|
|
|
|
| 2024 |
"sp_model_kwargs": {},
|
| 2025 |
"spaces_between_special_tokens": false,
|
| 2026 |
"tokenizer_class": "GemmaTokenizer",
|
|
|
|
| 1995 |
"special": false
|
| 1996 |
},
|
| 1997 |
"256000": {
|
| 1998 |
+
"content": "<functioncall>",
|
| 1999 |
"lstrip": false,
|
| 2000 |
"normalized": false,
|
| 2001 |
"rstrip": false,
|
|
|
|
| 2003 |
"special": true
|
| 2004 |
},
|
| 2005 |
"256001": {
|
| 2006 |
+
"content": "<functionresponse>",
|
| 2007 |
"lstrip": false,
|
| 2008 |
"normalized": false,
|
| 2009 |
"rstrip": false,
|
|
|
|
| 2012 |
}
|
| 2013 |
},
|
| 2014 |
"additional_special_tokens": [
|
| 2015 |
+
"<start_of_turn>",
|
| 2016 |
+
"<end_of_turn>"
|
| 2017 |
],
|
| 2018 |
+
"bos_token": "<bos>",
|
| 2019 |
+
"chat_template": "\n{# Macro used to render JSON elements as text. Used to render tool descriptions in chat #}\n{%- macro render_json(el, indent=4) -%}\n {%- if el is string %}\n{{'\"' + el + '\"'}}\n {%- elif el is mapping %}\n {%- for key, value in el.items() %}\n {%- if value is string %}\n{{ \" \" * indent + '\"' + key + '\": \"' + value + '\"' }}\n {%- elif value is mapping %}\n{{ \" \" * indent + '\"' + key + '\": {' }}\n{{ render_json(value, indent + 4) }}\n{{ \" \" * indent + \"}\" }}\n {%- elif value is sequence %}\n{{ \" \" * indent + '\"' + key + '\": [\n'}}\n {%- for v in value %}\n{{- \" \" * (indent + 4) + render_json(v, indent + 4) }}\n{%- if not loop.last -%},\n{% endif %}\n {%- endfor %} {# FOR LOOP values #}\n{{ '\n' + \" \" * indent + \"]\" }}\n {%- else -%}\n{{ \" \" * indent + '\"' + key + '\" :' + value|string }}\n {%- endif -%}\n{%- if not loop.last %},\n{% endif %}\n {%- endfor %} {# FOR LOOP el.items() #}\n {%- elif el is sequence -%}\n {%- for v in el -%}\n{{\" \" * indent + render_json(v, indent + 4) }}\n{%- if not loop.last -%},\n{% endif %}\n {%- endfor -%}\n {%- else -%}\n{{ \" \" * indent + el|string }}\n {%- endif %}\n{%- endmacro %}\n\n{#- This block checks system prompt and list of tools #}\n{%- if not add_generation_prompt is defined %}\n {%- set add_generation_prompt = false %}\n{%- endif %}\n{%- if messages[0][\"role\"] == \"system\" %}\n {%- set system_init_message = messages[0][\"content\"] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set loop_messages = messages %}\n {%- set system_init_message = none %}\n{%- endif %}\n{%- if not tools is defined %}\n {%- set tools = none %}\n{%- endif %}\n{%- set user_messages = loop_messages | selectattr(\"role\", \"equalto\", \"user\") | list %}\n\n\n{#- This block format full dialogue messages #}\n{{- bos_token }}\n{%- if system_init_message is defined -%}\n{{- \"<start_of_turn>system\" + '\n' + system_init_message}}\n {%- if tools is not none %}\n {%- for tool in tools %}\n {%- set tool = tool.function %}\n {{- '{\n' }}\n {{- render_json(tool, 4) }}\n {%- if not loop.last %}\n {{- \"\n},\n\" }}\n {%- else %}\n {{- \"\n}\n\" }}\n {% endif %}\n {%- endfor %}\n {%- else %}\n {{- '\n\n' }}\n {%- endif %}\n{%- else -%}\n{{ \"<start_of_turn>user\" + '\n'}}\n{%- endif -%}\n{{ loop_messages[0]['content'] + '<end_of_turn>\n' }}\n{%- for message in loop_messages[1:] %}\n {%- if message[\"role\"] == \"user\" %}\n {{- \"<start_of_turn>user\" + '\n' + message['content'] + '<end_of_turn>\n' }}\n {%- elif message[\"role\"] == \"model\" %}\n {{- \"<start_of_turn>model\" + '\n' + message['content'] + '<end_of_turn>\n' }}\n {%- elif message[\"role\"] == \"system\" %}\n {{- \"<start_of_turn>system\" + '\n' + message['content'] + '<end_of_turn>\n' }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {%- if loop_messages[-1]['role'] == \"user\" or loop_messages[-1]['role'] == \"system\" %}\n{{ '<start_of_turn>model\n' }}\n {%- else %}\n {{- raise_exception(\"For add_generation_prompt=True, the last message role must be 'user' or 'system'.\") }}\n {%- endif %}\n{%- endif %}\n\n",
|
| 2020 |
"clean_up_tokenization_spaces": false,
|
| 2021 |
+
"eos_token": "<eos>",
|
| 2022 |
+
"model_max_length": 8192,
|
| 2023 |
+
"pad_token": "<pad>",
|
| 2024 |
+
"padding_side": "right",
|
| 2025 |
"sp_model_kwargs": {},
|
| 2026 |
"spaces_between_special_tokens": false,
|
| 2027 |
"tokenizer_class": "GemmaTokenizer",
|