unrented5443
commited on
Commit
•
b1d5852
1
Parent(s):
615c876
Upload tokenizer
Browse files- special_tokens_map.json +2 -2
- tokenizer.json +2 -2
- tokenizer_config.json +18 -6
special_tokens_map.json
CHANGED
@@ -4,14 +4,14 @@
|
|
4 |
"<end_of_turn>"
|
5 |
],
|
6 |
"bos_token": {
|
7 |
-
"content": "<
|
8 |
"lstrip": false,
|
9 |
"normalized": false,
|
10 |
"rstrip": false,
|
11 |
"single_word": false
|
12 |
},
|
13 |
"eos_token": {
|
14 |
-
"content": "
|
15 |
"lstrip": false,
|
16 |
"normalized": false,
|
17 |
"rstrip": false,
|
|
|
4 |
"<end_of_turn>"
|
5 |
],
|
6 |
"bos_token": {
|
7 |
+
"content": "<s>",
|
8 |
"lstrip": false,
|
9 |
"normalized": false,
|
10 |
"rstrip": false,
|
11 |
"single_word": false
|
12 |
},
|
13 |
"eos_token": {
|
14 |
+
"content": "</s>",
|
15 |
"lstrip": false,
|
16 |
"normalized": false,
|
17 |
"rstrip": 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:a2d83c8e6a960de3d36db939e71a1857057ea89ce784a795979fe885457c3e9c
|
3 |
+
size 17478274
|
tokenizer_config.json
CHANGED
@@ -49,26 +49,38 @@
|
|
49 |
"rstrip": false,
|
50 |
"single_word": false,
|
51 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
},
|
54 |
"additional_special_tokens": [
|
55 |
"<start_of_turn>",
|
56 |
"<end_of_turn>"
|
57 |
],
|
58 |
-
"bos_token": "<
|
59 |
"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 %}",
|
60 |
"clean_up_tokenization_spaces": false,
|
61 |
-
"eos_token": "
|
62 |
"legacy": null,
|
63 |
-
"max_length": 2048,
|
64 |
"model_max_length": 1000000000000000019884624838656,
|
65 |
"pad_token": "<pad>",
|
66 |
"sp_model_kwargs": {},
|
67 |
"spaces_between_special_tokens": false,
|
68 |
-
"stride": 0,
|
69 |
"tokenizer_class": "GemmaTokenizer",
|
70 |
-
"truncation_side": "right",
|
71 |
-
"truncation_strategy": "longest_first",
|
72 |
"unk_token": "<unk>",
|
73 |
"use_default_system_prompt": false
|
74 |
}
|
|
|
49 |
"rstrip": false,
|
50 |
"single_word": false,
|
51 |
"special": true
|
52 |
+
},
|
53 |
+
"204": {
|
54 |
+
"content": "<s>",
|
55 |
+
"lstrip": false,
|
56 |
+
"normalized": false,
|
57 |
+
"rstrip": false,
|
58 |
+
"single_word": false,
|
59 |
+
"special": true
|
60 |
+
},
|
61 |
+
"213": {
|
62 |
+
"content": "</s>",
|
63 |
+
"lstrip": false,
|
64 |
+
"normalized": false,
|
65 |
+
"rstrip": false,
|
66 |
+
"single_word": false,
|
67 |
+
"special": true
|
68 |
}
|
69 |
},
|
70 |
"additional_special_tokens": [
|
71 |
"<start_of_turn>",
|
72 |
"<end_of_turn>"
|
73 |
],
|
74 |
+
"bos_token": "<s>",
|
75 |
"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 %}",
|
76 |
"clean_up_tokenization_spaces": false,
|
77 |
+
"eos_token": "</s>",
|
78 |
"legacy": null,
|
|
|
79 |
"model_max_length": 1000000000000000019884624838656,
|
80 |
"pad_token": "<pad>",
|
81 |
"sp_model_kwargs": {},
|
82 |
"spaces_between_special_tokens": false,
|
|
|
83 |
"tokenizer_class": "GemmaTokenizer",
|
|
|
|
|
84 |
"unk_token": "<unk>",
|
85 |
"use_default_system_prompt": false
|
86 |
}
|