Upload tokenizer
Browse files- special_tokens_map.json +3 -7
- tokenizer.json +2 -2
- tokenizer.model +2 -2
- tokenizer_config.json +17 -38
special_tokens_map.json
CHANGED
|
@@ -1,24 +1,20 @@
|
|
| 1 |
{
|
| 2 |
-
"additional_special_tokens": [
|
| 3 |
-
"<start_of_turn>",
|
| 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,
|
| 18 |
"single_word": false
|
| 19 |
},
|
| 20 |
"pad_token": {
|
| 21 |
-
"content": "<
|
| 22 |
"lstrip": false,
|
| 23 |
"normalized": false,
|
| 24 |
"rstrip": false,
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
"lstrip": false,
|
| 5 |
"normalized": false,
|
| 6 |
"rstrip": false,
|
| 7 |
"single_word": false
|
| 8 |
},
|
| 9 |
"eos_token": {
|
| 10 |
+
"content": "</s>",
|
| 11 |
"lstrip": false,
|
| 12 |
"normalized": false,
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
},
|
| 16 |
"pad_token": {
|
| 17 |
+
"content": "</s>",
|
| 18 |
"lstrip": false,
|
| 19 |
"normalized": false,
|
| 20 |
"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:fc4f0bd70b3709312d9d1d9e5ba674794b6bc5abc17429897a540f93882f25fc
|
| 3 |
+
size 1795303
|
tokenizer.model
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:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
|
| 3 |
+
size 493443
|
tokenizer_config.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
{
|
| 2 |
"add_bos_token": true,
|
| 3 |
"add_eos_token": false,
|
|
|
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
"0": {
|
| 6 |
-
"content": "<
|
| 7 |
"lstrip": false,
|
| 8 |
"normalized": false,
|
| 9 |
"rstrip": false,
|
|
@@ -11,7 +12,7 @@
|
|
| 11 |
"special": true
|
| 12 |
},
|
| 13 |
"1": {
|
| 14 |
-
"content": "<
|
| 15 |
"lstrip": false,
|
| 16 |
"normalized": false,
|
| 17 |
"rstrip": false,
|
|
@@ -19,31 +20,7 @@
|
|
| 19 |
"special": true
|
| 20 |
},
|
| 21 |
"2": {
|
| 22 |
-
"content": "<
|
| 23 |
-
"lstrip": false,
|
| 24 |
-
"normalized": false,
|
| 25 |
-
"rstrip": false,
|
| 26 |
-
"single_word": false,
|
| 27 |
-
"special": true
|
| 28 |
-
},
|
| 29 |
-
"3": {
|
| 30 |
-
"content": "<unk>",
|
| 31 |
-
"lstrip": false,
|
| 32 |
-
"normalized": false,
|
| 33 |
-
"rstrip": false,
|
| 34 |
-
"single_word": false,
|
| 35 |
-
"special": true
|
| 36 |
-
},
|
| 37 |
-
"106": {
|
| 38 |
-
"content": "<start_of_turn>",
|
| 39 |
-
"lstrip": false,
|
| 40 |
-
"normalized": false,
|
| 41 |
-
"rstrip": false,
|
| 42 |
-
"single_word": false,
|
| 43 |
-
"special": true
|
| 44 |
-
},
|
| 45 |
-
"107": {
|
| 46 |
-
"content": "<end_of_turn>",
|
| 47 |
"lstrip": false,
|
| 48 |
"normalized": false,
|
| 49 |
"rstrip": false,
|
|
@@ -51,20 +28,22 @@
|
|
| 51 |
"special": true
|
| 52 |
}
|
| 53 |
},
|
| 54 |
-
"additional_special_tokens": [
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
],
|
| 58 |
-
"bos_token": "<bos>",
|
| 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":
|
|
|
|
| 63 |
"model_max_length": 1000000000000000019884624838656,
|
| 64 |
-
"pad_token": "<
|
| 65 |
"sp_model_kwargs": {},
|
| 66 |
"spaces_between_special_tokens": false,
|
| 67 |
-
"
|
|
|
|
|
|
|
|
|
|
| 68 |
"unk_token": "<unk>",
|
| 69 |
-
"use_default_system_prompt": false
|
|
|
|
| 70 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"add_bos_token": true,
|
| 3 |
"add_eos_token": false,
|
| 4 |
+
"add_prefix_space": true,
|
| 5 |
"added_tokens_decoder": {
|
| 6 |
"0": {
|
| 7 |
+
"content": "<unk>",
|
| 8 |
"lstrip": false,
|
| 9 |
"normalized": false,
|
| 10 |
"rstrip": false,
|
|
|
|
| 12 |
"special": true
|
| 13 |
},
|
| 14 |
"1": {
|
| 15 |
+
"content": "<s>",
|
| 16 |
"lstrip": false,
|
| 17 |
"normalized": false,
|
| 18 |
"rstrip": false,
|
|
|
|
| 20 |
"special": true
|
| 21 |
},
|
| 22 |
"2": {
|
| 23 |
+
"content": "</s>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
"lstrip": false,
|
| 25 |
"normalized": false,
|
| 26 |
"rstrip": false,
|
|
|
|
| 28 |
"special": true
|
| 29 |
}
|
| 30 |
},
|
| 31 |
+
"additional_special_tokens": [],
|
| 32 |
+
"bos_token": "<s>",
|
| 33 |
+
"chat_template": "{{ bos_token }}{% 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'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token + ' ' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
|
|
|
|
|
|
|
|
|
|
| 34 |
"clean_up_tokenization_spaces": false,
|
| 35 |
+
"eos_token": "</s>",
|
| 36 |
+
"legacy": true,
|
| 37 |
+
"max_length": 2048,
|
| 38 |
"model_max_length": 1000000000000000019884624838656,
|
| 39 |
+
"pad_token": "</s>",
|
| 40 |
"sp_model_kwargs": {},
|
| 41 |
"spaces_between_special_tokens": false,
|
| 42 |
+
"stride": 0,
|
| 43 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 44 |
+
"truncation_side": "right",
|
| 45 |
+
"truncation_strategy": "longest_first",
|
| 46 |
"unk_token": "<unk>",
|
| 47 |
+
"use_default_system_prompt": false,
|
| 48 |
+
"use_fast": true
|
| 49 |
}
|