Upload tokenizer
Browse files- special_tokens_map.json +30 -0
- tokenizer.json +144 -0
- tokenizer.model +3 -0
- tokenizer_config.json +40 -0
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<unk>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"version": "1.0",
|
3 |
+
"truncation": null,
|
4 |
+
"padding": null,
|
5 |
+
"added_tokens": [
|
6 |
+
{
|
7 |
+
"id": 0,
|
8 |
+
"content": "<unk>",
|
9 |
+
"single_word": false,
|
10 |
+
"lstrip": false,
|
11 |
+
"rstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"special": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"id": 1,
|
17 |
+
"content": "<s>",
|
18 |
+
"single_word": false,
|
19 |
+
"lstrip": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"normalized": false,
|
22 |
+
"special": true
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"id": 2,
|
26 |
+
"content": "</s>",
|
27 |
+
"single_word": false,
|
28 |
+
"lstrip": false,
|
29 |
+
"rstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"special": true
|
32 |
+
}
|
33 |
+
],
|
34 |
+
"normalizer": {
|
35 |
+
"type": "Sequence",
|
36 |
+
"normalizers": [
|
37 |
+
{
|
38 |
+
"type": "Prepend",
|
39 |
+
"prepend": "▁"
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"type": "Replace",
|
43 |
+
"pattern": {
|
44 |
+
"String": " "
|
45 |
+
},
|
46 |
+
"content": "▁"
|
47 |
+
}
|
48 |
+
]
|
49 |
+
},
|
50 |
+
"pre_tokenizer": null,
|
51 |
+
"post_processor": {
|
52 |
+
"type": "TemplateProcessing",
|
53 |
+
"single": [
|
54 |
+
{
|
55 |
+
"SpecialToken": {
|
56 |
+
"id": "<s>",
|
57 |
+
"type_id": 0
|
58 |
+
}
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"Sequence": {
|
62 |
+
"id": "A",
|
63 |
+
"type_id": 0
|
64 |
+
}
|
65 |
+
}
|
66 |
+
],
|
67 |
+
"pair": [
|
68 |
+
{
|
69 |
+
"SpecialToken": {
|
70 |
+
"id": "<s>",
|
71 |
+
"type_id": 0
|
72 |
+
}
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"Sequence": {
|
76 |
+
"id": "A",
|
77 |
+
"type_id": 0
|
78 |
+
}
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"SpecialToken": {
|
82 |
+
"id": "<s>",
|
83 |
+
"type_id": 1
|
84 |
+
}
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"Sequence": {
|
88 |
+
"id": "B",
|
89 |
+
"type_id": 1
|
90 |
+
}
|
91 |
+
}
|
92 |
+
],
|
93 |
+
"special_tokens": {
|
94 |
+
"<s>": {
|
95 |
+
"id": "<s>",
|
96 |
+
"ids": [
|
97 |
+
1
|
98 |
+
],
|
99 |
+
"tokens": [
|
100 |
+
"<s>"
|
101 |
+
]
|
102 |
+
}
|
103 |
+
}
|
104 |
+
},
|
105 |
+
"decoder": {
|
106 |
+
"type": "Sequence",
|
107 |
+
"decoders": [
|
108 |
+
{
|
109 |
+
"type": "Replace",
|
110 |
+
"pattern": {
|
111 |
+
"String": "▁"
|
112 |
+
},
|
113 |
+
"content": " "
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"type": "ByteFallback"
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"type": "Fuse"
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"type": "Strip",
|
123 |
+
"content": " ",
|
124 |
+
"start": 1,
|
125 |
+
"stop": 0
|
126 |
+
}
|
127 |
+
]
|
128 |
+
},
|
129 |
+
"model": {
|
130 |
+
"type": "BPE",
|
131 |
+
"dropout": null,
|
132 |
+
"unk_token": "<unk>",
|
133 |
+
"continuing_subword_prefix": null,
|
134 |
+
"end_of_word_suffix": null,
|
135 |
+
"fuse_unk": true,
|
136 |
+
"byte_fallback": true,
|
137 |
+
"vocab": {
|
138 |
+
"<unk>": 0,
|
139 |
+
"<s>": 1,
|
140 |
+
"</s>": 2
|
141 |
+
},
|
142 |
+
"merges": []
|
143 |
+
}
|
144 |
+
}
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"bos_token": "<s>",
|
29 |
+
"chat_template": "{% for message in messages %}{% if message['role'] == 'user' %}{{ '<|user|>' + message['content'] + eos_token }}{% elif message['role'] == 'system' %}{{ '<|system|>' + message['content'] + eos_token }}{% elif message['role'] == 'assistant' %}{{ '<|assistant|>' + message['content'] + eos_token }}{% endif %}{% if loop.last and add_generation_prompt %}{{ '<|assistant|>' }}{% endif %}{% endfor %}",
|
30 |
+
"clean_up_tokenization_spaces": false,
|
31 |
+
"eos_token": "</s>",
|
32 |
+
"legacy": false,
|
33 |
+
"model_max_length": 2048,
|
34 |
+
"pad_token": "</s>",
|
35 |
+
"padding_side": "right",
|
36 |
+
"sp_model_kwargs": {},
|
37 |
+
"tokenizer_class": "LlamaTokenizer",
|
38 |
+
"unk_token": "<unk>",
|
39 |
+
"use_default_system_prompt": false
|
40 |
+
}
|