Upload tokenizer
Browse files- special_tokens_map.json +23 -17
- tokenizer.json +2 -2
- tokenizer_config.json +7 -23
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:e6ce83119bb404f7f0a6e621b76759d476357dcd01241a90f9ca136ae2b3c11c
|
3 |
+
size 34362972
|
tokenizer_config.json
CHANGED
@@ -1993,34 +1993,18 @@
|
|
1993 |
"rstrip": false,
|
1994 |
"single_word": false,
|
1995 |
"special": false
|
1996 |
-
},
|
1997 |
-
"256000": {
|
1998 |
-
"content": "<|im_start|>",
|
1999 |
-
"lstrip": false,
|
2000 |
-
"normalized": false,
|
2001 |
-
"rstrip": false,
|
2002 |
-
"single_word": false,
|
2003 |
-
"special": true
|
2004 |
-
},
|
2005 |
-
"256001": {
|
2006 |
-
"content": "<|im_end|>",
|
2007 |
-
"lstrip": false,
|
2008 |
-
"normalized": false,
|
2009 |
-
"rstrip": false,
|
2010 |
-
"single_word": false,
|
2011 |
-
"special": true
|
2012 |
}
|
2013 |
},
|
2014 |
"additional_special_tokens": [
|
2015 |
-
"
|
2016 |
-
"
|
2017 |
],
|
2018 |
-
"bos_token": "
|
2019 |
-
"chat_template": "{% for message in messages %}{{'
|
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",
|
|
|
1993 |
"rstrip": false,
|
1994 |
"single_word": false,
|
1995 |
"special": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1996 |
}
|
1997 |
},
|
1998 |
"additional_special_tokens": [
|
1999 |
+
"<start_of_turn>",
|
2000 |
+
"<end_of_turn>"
|
2001 |
],
|
2002 |
+
"bos_token": "<bos>",
|
2003 |
+
"chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
|
2004 |
"clean_up_tokenization_spaces": false,
|
2005 |
+
"eos_token": "<eos>",
|
2006 |
+
"model_max_length": 1000000000000000019884624838656,
|
2007 |
+
"pad_token": "<pad>",
|
2008 |
"sp_model_kwargs": {},
|
2009 |
"spaces_between_special_tokens": false,
|
2010 |
"tokenizer_class": "GemmaTokenizer",
|