Commit
•
68a664f
1
Parent(s):
895c2bc
Update for `transformers` (#4)
Browse files- update (0a81e909f33579ca7be704e6d0ed7c80a92c3ddc)
- add video index (c9ac946b4f01cedd69f250cc48bc616b5922bfe6)
- add pipeline (ecc0d31cf8348ba79b6d9c9bceb51857cd1c07d0)
Co-authored-by: Raushan Turganbay <RaushanTurganbay@users.noreply.huggingface.co>
- README.md +1 -1
- added_tokens.json +4 -0
- config.json +5 -203
- generation_config.json +8 -0
- model-00001-of-00005.safetensors +2 -2
- model.safetensors.index.json +0 -0
- processor_config.json +4 -0
- qformer_tokenizer/special_tokens_map.json +42 -6
- qformer_tokenizer/tokenizer_config.json +52 -0
- special_tokens_map.json +21 -3
- tokenizer.json +24 -3
- tokenizer_config.json +843 -0
README.md
CHANGED
@@ -4,7 +4,7 @@ license: mit
|
|
4 |
tags:
|
5 |
- vision
|
6 |
- image-captioning
|
7 |
-
pipeline_tag: image-to-text
|
8 |
---
|
9 |
|
10 |
# InstructBLIP model
|
|
|
4 |
tags:
|
5 |
- vision
|
6 |
- image-captioning
|
7 |
+
pipeline_tag: image-text-to-text
|
8 |
---
|
9 |
|
10 |
# InstructBLIP model
|
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<image>": 32100,
|
3 |
+
"<video>": 32101
|
4 |
+
}
|
config.json
CHANGED
@@ -1,251 +1,53 @@
|
|
1 |
{
|
2 |
-
"_commit_hash": null,
|
3 |
"architectures": [
|
4 |
"InstructBlipForConditionalGeneration"
|
5 |
],
|
|
|
6 |
"initializer_factor": 1.0,
|
7 |
"initializer_range": 0.02,
|
8 |
"is_encoder_decoder": true,
|
9 |
"model_type": "instructblip",
|
10 |
"num_query_tokens": 32,
|
11 |
"qformer_config": {
|
12 |
-
"_name_or_path": "",
|
13 |
-
"add_cross_attention": false,
|
14 |
-
"architectures": null,
|
15 |
-
"attention_probs_dropout_prob": 0.1,
|
16 |
-
"bad_words_ids": null,
|
17 |
-
"begin_suppress_tokens": null,
|
18 |
-
"bos_token_id": null,
|
19 |
-
"chunk_size_feed_forward": 0,
|
20 |
-
"cross_attention_frequency": 2,
|
21 |
-
"cross_attention_hidden_size": null,
|
22 |
-
"decoder_start_token_id": null,
|
23 |
-
"diversity_penalty": 0.0,
|
24 |
-
"do_sample": false,
|
25 |
-
"early_stopping": false,
|
26 |
-
"encoder_hidden_size": 1408,
|
27 |
-
"encoder_no_repeat_ngram_size": 0,
|
28 |
-
"eos_token_id": null,
|
29 |
-
"exponential_decay_length_penalty": null,
|
30 |
-
"finetuning_task": null,
|
31 |
-
"forced_bos_token_id": null,
|
32 |
-
"forced_eos_token_id": null,
|
33 |
-
"hidden_act": "gelu",
|
34 |
-
"hidden_dropout_prob": 0.1,
|
35 |
-
"hidden_size": 768,
|
36 |
-
"id2label": {
|
37 |
-
"0": "LABEL_0",
|
38 |
-
"1": "LABEL_1"
|
39 |
-
},
|
40 |
-
"initializer_range": 0.02,
|
41 |
-
"intermediate_size": 3072,
|
42 |
-
"is_decoder": false,
|
43 |
-
"is_encoder_decoder": false,
|
44 |
-
"label2id": {
|
45 |
-
"LABEL_0": 0,
|
46 |
-
"LABEL_1": 1
|
47 |
-
},
|
48 |
-
"layer_norm_eps": 1e-12,
|
49 |
-
"length_penalty": 1.0,
|
50 |
-
"max_length": 20,
|
51 |
-
"max_position_embeddings": 512,
|
52 |
-
"min_length": 0,
|
53 |
"model_type": "instructblip_qformer",
|
54 |
-
"no_repeat_ngram_size": 0,
|
55 |
-
"num_attention_heads": 12,
|
56 |
-
"num_beam_groups": 1,
|
57 |
-
"num_beams": 1,
|
58 |
-
"num_hidden_layers": 12,
|
59 |
-
"num_return_sequences": 1,
|
60 |
-
"output_attentions": false,
|
61 |
-
"output_hidden_states": false,
|
62 |
-
"output_scores": false,
|
63 |
-
"pad_token_id": 0,
|
64 |
-
"position_embedding_type": "absolute",
|
65 |
-
"prefix": null,
|
66 |
-
"problem_type": null,
|
67 |
-
"pruned_heads": {},
|
68 |
-
"remove_invalid_values": false,
|
69 |
-
"repetition_penalty": 1.0,
|
70 |
-
"return_dict": true,
|
71 |
-
"return_dict_in_generate": false,
|
72 |
-
"sep_token_id": null,
|
73 |
-
"suppress_tokens": null,
|
74 |
-
"task_specific_params": null,
|
75 |
-
"temperature": 1.0,
|
76 |
-
"tf_legacy_loss": false,
|
77 |
-
"tie_encoder_decoder": false,
|
78 |
-
"tie_word_embeddings": true,
|
79 |
-
"tokenizer_class": null,
|
80 |
-
"top_k": 50,
|
81 |
-
"top_p": 1.0,
|
82 |
-
"torch_dtype": null,
|
83 |
-
"torchscript": false,
|
84 |
-
"transformers_version": "4.31.0.dev0",
|
85 |
-
"typical_p": 1.0,
|
86 |
-
"use_bfloat16": false,
|
87 |
"vocab_size": 30523
|
88 |
},
|
89 |
"text_config": {
|
90 |
-
"_name_or_path": "",
|
91 |
-
"add_cross_attention": false,
|
92 |
"architectures": [
|
93 |
"T5ForConditionalGeneration"
|
94 |
],
|
95 |
-
"bad_words_ids": null,
|
96 |
-
"begin_suppress_tokens": null,
|
97 |
"bos_token_id": 1,
|
98 |
-
"
|
99 |
-
"cross_attention_hidden_size": null,
|
100 |
"d_ff": 10240,
|
101 |
"d_kv": 64,
|
102 |
"d_model": 4096,
|
103 |
"decoder_start_token_id": 0,
|
104 |
"dense_act_fn": "gelu",
|
105 |
-
"diversity_penalty": 0.0,
|
106 |
-
"do_sample": false,
|
107 |
"dropout_rate": 0.1,
|
108 |
-
"early_stopping": false,
|
109 |
-
"encoder_no_repeat_ngram_size": 0,
|
110 |
"eos_token_id": 1,
|
111 |
-
"exponential_decay_length_penalty": null,
|
112 |
"feed_forward_proj": "gated-gelu",
|
113 |
-
"finetuning_task": null,
|
114 |
-
"forced_bos_token_id": null,
|
115 |
-
"forced_eos_token_id": null,
|
116 |
-
"id2label": {
|
117 |
-
"0": "LABEL_0",
|
118 |
-
"1": "LABEL_1"
|
119 |
-
},
|
120 |
"initializer_factor": 1.0,
|
121 |
-
"is_decoder": false,
|
122 |
"is_encoder_decoder": true,
|
123 |
"is_gated_act": true,
|
124 |
-
"label2id": {
|
125 |
-
"LABEL_0": 0,
|
126 |
-
"LABEL_1": 1
|
127 |
-
},
|
128 |
"layer_norm_epsilon": 1e-06,
|
129 |
-
"length_penalty": 1.0,
|
130 |
-
"max_length": 20,
|
131 |
-
"min_length": 0,
|
132 |
"model_type": "t5",
|
133 |
-
"no_repeat_ngram_size": 0,
|
134 |
-
"num_beam_groups": 1,
|
135 |
-
"num_beams": 1,
|
136 |
"num_decoder_layers": 24,
|
137 |
"num_heads": 64,
|
138 |
"num_layers": 24,
|
139 |
-
"num_return_sequences": 1,
|
140 |
-
"output_attentions": false,
|
141 |
-
"output_hidden_states": false,
|
142 |
"output_past": true,
|
143 |
-
"output_scores": false,
|
144 |
"pad_token_id": 0,
|
145 |
-
"prefix": null,
|
146 |
-
"problem_type": null,
|
147 |
-
"pruned_heads": {},
|
148 |
"relative_attention_max_distance": 128,
|
149 |
"relative_attention_num_buckets": 32,
|
150 |
-
"remove_invalid_values": false,
|
151 |
-
"repetition_penalty": 1.0,
|
152 |
-
"return_dict": true,
|
153 |
-
"return_dict_in_generate": false,
|
154 |
-
"sep_token_id": null,
|
155 |
-
"suppress_tokens": null,
|
156 |
-
"task_specific_params": null,
|
157 |
-
"temperature": 1.0,
|
158 |
-
"tf_legacy_loss": false,
|
159 |
-
"tie_encoder_decoder": false,
|
160 |
"tie_word_embeddings": false,
|
161 |
-
"tokenizer_class": null,
|
162 |
-
"top_k": 50,
|
163 |
-
"top_p": 1.0,
|
164 |
"torch_dtype": "float32",
|
165 |
-
"torchscript": false,
|
166 |
-
"transformers_version": "4.31.0.dev0",
|
167 |
-
"typical_p": 1.0,
|
168 |
-
"use_bfloat16": false,
|
169 |
-
"use_cache": true,
|
170 |
"vocab_size": 32128
|
171 |
},
|
172 |
"tie_word_embeddings": false,
|
173 |
"torch_dtype": "float32",
|
174 |
-
"transformers_version":
|
175 |
"use_decoder_only_language_model": false,
|
|
|
176 |
"vision_config": {
|
177 |
-
"
|
178 |
-
"add_cross_attention": false,
|
179 |
-
"architectures": null,
|
180 |
-
"attention_dropout": 0.0,
|
181 |
-
"bad_words_ids": null,
|
182 |
-
"begin_suppress_tokens": null,
|
183 |
-
"bos_token_id": null,
|
184 |
-
"chunk_size_feed_forward": 0,
|
185 |
-
"cross_attention_hidden_size": null,
|
186 |
-
"decoder_start_token_id": null,
|
187 |
-
"diversity_penalty": 0.0,
|
188 |
-
"do_sample": false,
|
189 |
-
"early_stopping": false,
|
190 |
-
"encoder_no_repeat_ngram_size": 0,
|
191 |
-
"eos_token_id": null,
|
192 |
-
"exponential_decay_length_penalty": null,
|
193 |
-
"finetuning_task": null,
|
194 |
-
"forced_bos_token_id": null,
|
195 |
-
"forced_eos_token_id": null,
|
196 |
-
"hidden_act": "gelu",
|
197 |
-
"hidden_size": 1408,
|
198 |
-
"id2label": {
|
199 |
-
"0": "LABEL_0",
|
200 |
-
"1": "LABEL_1"
|
201 |
-
},
|
202 |
-
"image_size": 224,
|
203 |
-
"initializer_range": 1e-10,
|
204 |
-
"intermediate_size": 6144,
|
205 |
-
"is_decoder": false,
|
206 |
-
"is_encoder_decoder": false,
|
207 |
-
"label2id": {
|
208 |
-
"LABEL_0": 0,
|
209 |
-
"LABEL_1": 1
|
210 |
-
},
|
211 |
-
"layer_norm_eps": 1e-06,
|
212 |
-
"length_penalty": 1.0,
|
213 |
-
"max_length": 20,
|
214 |
-
"min_length": 0,
|
215 |
-
"model_type": "instructblip_vision_model",
|
216 |
-
"no_repeat_ngram_size": 0,
|
217 |
-
"num_attention_heads": 16,
|
218 |
-
"num_beam_groups": 1,
|
219 |
-
"num_beams": 1,
|
220 |
-
"num_hidden_layers": 39,
|
221 |
-
"num_return_sequences": 1,
|
222 |
-
"output_attentions": false,
|
223 |
-
"output_hidden_states": false,
|
224 |
-
"output_scores": false,
|
225 |
-
"pad_token_id": null,
|
226 |
-
"patch_size": 14,
|
227 |
-
"prefix": null,
|
228 |
-
"problem_type": null,
|
229 |
-
"pruned_heads": {},
|
230 |
-
"qkv_bias": true,
|
231 |
-
"remove_invalid_values": false,
|
232 |
-
"repetition_penalty": 1.0,
|
233 |
-
"return_dict": true,
|
234 |
-
"return_dict_in_generate": false,
|
235 |
-
"sep_token_id": null,
|
236 |
-
"suppress_tokens": null,
|
237 |
-
"task_specific_params": null,
|
238 |
-
"temperature": 1.0,
|
239 |
-
"tf_legacy_loss": false,
|
240 |
-
"tie_encoder_decoder": false,
|
241 |
-
"tie_word_embeddings": true,
|
242 |
-
"tokenizer_class": null,
|
243 |
-
"top_k": 50,
|
244 |
-
"top_p": 1.0,
|
245 |
-
"torch_dtype": null,
|
246 |
-
"torchscript": false,
|
247 |
-
"transformers_version": "4.31.0.dev0",
|
248 |
-
"typical_p": 1.0,
|
249 |
-
"use_bfloat16": false
|
250 |
}
|
251 |
}
|
|
|
1 |
{
|
|
|
2 |
"architectures": [
|
3 |
"InstructBlipForConditionalGeneration"
|
4 |
],
|
5 |
+
"image_token_index": 32100,
|
6 |
"initializer_factor": 1.0,
|
7 |
"initializer_range": 0.02,
|
8 |
"is_encoder_decoder": true,
|
9 |
"model_type": "instructblip",
|
10 |
"num_query_tokens": 32,
|
11 |
"qformer_config": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
"model_type": "instructblip_qformer",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
"vocab_size": 30523
|
14 |
},
|
15 |
"text_config": {
|
|
|
|
|
16 |
"architectures": [
|
17 |
"T5ForConditionalGeneration"
|
18 |
],
|
|
|
|
|
19 |
"bos_token_id": 1,
|
20 |
+
"classifier_dropout": 0.0,
|
|
|
21 |
"d_ff": 10240,
|
22 |
"d_kv": 64,
|
23 |
"d_model": 4096,
|
24 |
"decoder_start_token_id": 0,
|
25 |
"dense_act_fn": "gelu",
|
|
|
|
|
26 |
"dropout_rate": 0.1,
|
|
|
|
|
27 |
"eos_token_id": 1,
|
|
|
28 |
"feed_forward_proj": "gated-gelu",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
"initializer_factor": 1.0,
|
|
|
30 |
"is_encoder_decoder": true,
|
31 |
"is_gated_act": true,
|
|
|
|
|
|
|
|
|
32 |
"layer_norm_epsilon": 1e-06,
|
|
|
|
|
|
|
33 |
"model_type": "t5",
|
|
|
|
|
|
|
34 |
"num_decoder_layers": 24,
|
35 |
"num_heads": 64,
|
36 |
"num_layers": 24,
|
|
|
|
|
|
|
37 |
"output_past": true,
|
|
|
38 |
"pad_token_id": 0,
|
|
|
|
|
|
|
39 |
"relative_attention_max_distance": 128,
|
40 |
"relative_attention_num_buckets": 32,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
"tie_word_embeddings": false,
|
|
|
|
|
|
|
42 |
"torch_dtype": "float32",
|
|
|
|
|
|
|
|
|
|
|
43 |
"vocab_size": 32128
|
44 |
},
|
45 |
"tie_word_embeddings": false,
|
46 |
"torch_dtype": "float32",
|
47 |
+
"transformers_version": "4.47.0.dev0",
|
48 |
"use_decoder_only_language_model": false,
|
49 |
+
"video_token_index": 32101,
|
50 |
"vision_config": {
|
51 |
+
"model_type": "instructblip_vision_model"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
}
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"decoder_start_token_id": 0,
|
5 |
+
"eos_token_id": 1,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"transformers_version": "4.47.0.dev0"
|
8 |
+
}
|
model-00001-of-00005.safetensors
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:b56ef1c79e46cfd6e667f4bc94cc063b451080a7a5ce6bdfd62943ea99bca9a8
|
3 |
+
size 9990574488
|
model.safetensors.index.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
processor_config.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"num_query_tokens": 32,
|
3 |
+
"processor_class": "InstructBlipProcessor"
|
4 |
+
}
|
qformer_tokenizer/special_tokens_map.json
CHANGED
@@ -1,8 +1,44 @@
|
|
1 |
{
|
2 |
-
"bos_token":
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
|
|
1 |
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "[DEC]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "[CLS]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"mask_token": {
|
17 |
+
"content": "[MASK]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"pad_token": {
|
24 |
+
"content": "[PAD]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"sep_token": {
|
31 |
+
"content": "[SEP]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"unk_token": {
|
38 |
+
"content": "[UNK]",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
}
|
44 |
}
|
qformer_tokenizer/tokenizer_config.json
CHANGED
@@ -1,7 +1,59 @@
|
|
1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
"clean_up_tokenization_spaces": true,
|
3 |
"cls_token": "[CLS]",
|
4 |
"do_lower_case": true,
|
|
|
5 |
"mask_token": "[MASK]",
|
6 |
"model_max_length": 512,
|
7 |
"pad_token": "[PAD]",
|
|
|
1 |
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
},
|
43 |
+
"30522": {
|
44 |
+
"content": "[DEC]",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": false,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": false,
|
49 |
+
"special": true
|
50 |
+
}
|
51 |
+
},
|
52 |
+
"bos_token": "[DEC]",
|
53 |
"clean_up_tokenization_spaces": true,
|
54 |
"cls_token": "[CLS]",
|
55 |
"do_lower_case": true,
|
56 |
+
"extra_special_tokens": {},
|
57 |
"mask_token": "[MASK]",
|
58 |
"model_max_length": 512,
|
59 |
"pad_token": "[PAD]",
|
special_tokens_map.json
CHANGED
@@ -101,7 +101,25 @@
|
|
101 |
"<extra_id_98>",
|
102 |
"<extra_id_99>"
|
103 |
],
|
104 |
-
"eos_token":
|
105 |
-
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
}
|
|
|
101 |
"<extra_id_98>",
|
102 |
"<extra_id_99>"
|
103 |
],
|
104 |
+
"eos_token": {
|
105 |
+
"content": "</s>",
|
106 |
+
"lstrip": false,
|
107 |
+
"normalized": false,
|
108 |
+
"rstrip": false,
|
109 |
+
"single_word": false
|
110 |
+
},
|
111 |
+
"pad_token": {
|
112 |
+
"content": "<pad>",
|
113 |
+
"lstrip": false,
|
114 |
+
"normalized": false,
|
115 |
+
"rstrip": false,
|
116 |
+
"single_word": false
|
117 |
+
},
|
118 |
+
"unk_token": {
|
119 |
+
"content": "<unk>",
|
120 |
+
"lstrip": false,
|
121 |
+
"normalized": false,
|
122 |
+
"rstrip": false,
|
123 |
+
"single_word": false
|
124 |
+
}
|
125 |
}
|
tokenizer.json
CHANGED
@@ -929,6 +929,24 @@
|
|
929 |
"rstrip": false,
|
930 |
"normalized": false,
|
931 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
932 |
}
|
933 |
],
|
934 |
"normalizer": {
|
@@ -950,7 +968,8 @@
|
|
950 |
"pre_tokenizer": {
|
951 |
"type": "Metaspace",
|
952 |
"replacement": "▁",
|
953 |
-
"
|
|
|
954 |
},
|
955 |
"post_processor": {
|
956 |
"type": "TemplateProcessing",
|
@@ -1009,7 +1028,8 @@
|
|
1009 |
"decoder": {
|
1010 |
"type": "Metaspace",
|
1011 |
"replacement": "▁",
|
1012 |
-
"
|
|
|
1013 |
},
|
1014 |
"model": {
|
1015 |
"type": "Unigram",
|
@@ -129415,6 +129435,7 @@
|
|
129415 |
"<extra_id_0>",
|
129416 |
0.0
|
129417 |
]
|
129418 |
-
]
|
|
|
129419 |
}
|
129420 |
}
|
|
|
929 |
"rstrip": false,
|
930 |
"normalized": false,
|
931 |
"special": true
|
932 |
+
},
|
933 |
+
{
|
934 |
+
"id": 32100,
|
935 |
+
"content": "<image>",
|
936 |
+
"single_word": false,
|
937 |
+
"lstrip": false,
|
938 |
+
"rstrip": false,
|
939 |
+
"normalized": false,
|
940 |
+
"special": true
|
941 |
+
},
|
942 |
+
{
|
943 |
+
"id": 32101,
|
944 |
+
"content": "<video>",
|
945 |
+
"single_word": false,
|
946 |
+
"lstrip": false,
|
947 |
+
"rstrip": false,
|
948 |
+
"normalized": false,
|
949 |
+
"special": true
|
950 |
}
|
951 |
],
|
952 |
"normalizer": {
|
|
|
968 |
"pre_tokenizer": {
|
969 |
"type": "Metaspace",
|
970 |
"replacement": "▁",
|
971 |
+
"prepend_scheme": "always",
|
972 |
+
"split": true
|
973 |
},
|
974 |
"post_processor": {
|
975 |
"type": "TemplateProcessing",
|
|
|
1028 |
"decoder": {
|
1029 |
"type": "Metaspace",
|
1030 |
"replacement": "▁",
|
1031 |
+
"prepend_scheme": "always",
|
1032 |
+
"split": true
|
1033 |
},
|
1034 |
"model": {
|
1035 |
"type": "Unigram",
|
|
|
129435 |
"<extra_id_0>",
|
129436 |
0.0
|
129437 |
]
|
129438 |
+
],
|
129439 |
+
"byte_fallback": false
|
129440 |
}
|
129441 |
}
|
tokenizer_config.json
CHANGED
@@ -1,4 +1,846 @@
|
|
1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 |
"<extra_id_0>",
|
4 |
"<extra_id_1>",
|
@@ -104,6 +946,7 @@
|
|
104 |
"clean_up_tokenization_spaces": true,
|
105 |
"eos_token": "</s>",
|
106 |
"extra_ids": 100,
|
|
|
107 |
"model_max_length": 512,
|
108 |
"pad_token": "<pad>",
|
109 |
"processor_class": "InstructBlipProcessor",
|
|
|
1 |
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<pad>",
|
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": "<unk>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"32000": {
|
28 |
+
"content": "<extra_id_99>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"32001": {
|
36 |
+
"content": "<extra_id_98>",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
},
|
43 |
+
"32002": {
|
44 |
+
"content": "<extra_id_97>",
|
45 |
+
"lstrip": false,
|
46 |
+
"normalized": false,
|
47 |
+
"rstrip": false,
|
48 |
+
"single_word": false,
|
49 |
+
"special": true
|
50 |
+
},
|
51 |
+
"32003": {
|
52 |
+
"content": "<extra_id_96>",
|
53 |
+
"lstrip": false,
|
54 |
+
"normalized": false,
|
55 |
+
"rstrip": false,
|
56 |
+
"single_word": false,
|
57 |
+
"special": true
|
58 |
+
},
|
59 |
+
"32004": {
|
60 |
+
"content": "<extra_id_95>",
|
61 |
+
"lstrip": false,
|
62 |
+
"normalized": false,
|
63 |
+
"rstrip": false,
|
64 |
+
"single_word": false,
|
65 |
+
"special": true
|
66 |
+
},
|
67 |
+
"32005": {
|
68 |
+
"content": "<extra_id_94>",
|
69 |
+
"lstrip": false,
|
70 |
+
"normalized": false,
|
71 |
+
"rstrip": false,
|
72 |
+
"single_word": false,
|
73 |
+
"special": true
|
74 |
+
},
|
75 |
+
"32006": {
|
76 |
+
"content": "<extra_id_93>",
|
77 |
+
"lstrip": false,
|
78 |
+
"normalized": false,
|
79 |
+
"rstrip": false,
|
80 |
+
"single_word": false,
|
81 |
+
"special": true
|
82 |
+
},
|
83 |
+
"32007": {
|
84 |
+
"content": "<extra_id_92>",
|
85 |
+
"lstrip": false,
|
86 |
+
"normalized": false,
|
87 |
+
"rstrip": false,
|
88 |
+
"single_word": false,
|
89 |
+
"special": true
|
90 |
+
},
|
91 |
+
"32008": {
|
92 |
+
"content": "<extra_id_91>",
|
93 |
+
"lstrip": false,
|
94 |
+
"normalized": false,
|
95 |
+
"rstrip": false,
|
96 |
+
"single_word": false,
|
97 |
+
"special": true
|
98 |
+
},
|
99 |
+
"32009": {
|
100 |
+
"content": "<extra_id_90>",
|
101 |
+
"lstrip": false,
|
102 |
+
"normalized": false,
|
103 |
+
"rstrip": false,
|
104 |
+
"single_word": false,
|
105 |
+
"special": true
|
106 |
+
},
|
107 |
+
"32010": {
|
108 |
+
"content": "<extra_id_89>",
|
109 |
+
"lstrip": false,
|
110 |
+
"normalized": false,
|
111 |
+
"rstrip": false,
|
112 |
+
"single_word": false,
|
113 |
+
"special": true
|
114 |
+
},
|
115 |
+
"32011": {
|
116 |
+
"content": "<extra_id_88>",
|
117 |
+
"lstrip": false,
|
118 |
+
"normalized": false,
|
119 |
+
"rstrip": false,
|
120 |
+
"single_word": false,
|
121 |
+
"special": true
|
122 |
+
},
|
123 |
+
"32012": {
|
124 |
+
"content": "<extra_id_87>",
|
125 |
+
"lstrip": false,
|
126 |
+
"normalized": false,
|
127 |
+
"rstrip": false,
|
128 |
+
"single_word": false,
|
129 |
+
"special": true
|
130 |
+
},
|
131 |
+
"32013": {
|
132 |
+
"content": "<extra_id_86>",
|
133 |
+
"lstrip": false,
|
134 |
+
"normalized": false,
|
135 |
+
"rstrip": false,
|
136 |
+
"single_word": false,
|
137 |
+
"special": true
|
138 |
+
},
|
139 |
+
"32014": {
|
140 |
+
"content": "<extra_id_85>",
|
141 |
+
"lstrip": false,
|
142 |
+
"normalized": false,
|
143 |
+
"rstrip": false,
|
144 |
+
"single_word": false,
|
145 |
+
"special": true
|
146 |
+
},
|
147 |
+
"32015": {
|
148 |
+
"content": "<extra_id_84>",
|
149 |
+
"lstrip": false,
|
150 |
+
"normalized": false,
|
151 |
+
"rstrip": false,
|
152 |
+
"single_word": false,
|
153 |
+
"special": true
|
154 |
+
},
|
155 |
+
"32016": {
|
156 |
+
"content": "<extra_id_83>",
|
157 |
+
"lstrip": false,
|
158 |
+
"normalized": false,
|
159 |
+
"rstrip": false,
|
160 |
+
"single_word": false,
|
161 |
+
"special": true
|
162 |
+
},
|
163 |
+
"32017": {
|
164 |
+
"content": "<extra_id_82>",
|
165 |
+
"lstrip": false,
|
166 |
+
"normalized": false,
|
167 |
+
"rstrip": false,
|
168 |
+
"single_word": false,
|
169 |
+
"special": true
|
170 |
+
},
|
171 |
+
"32018": {
|
172 |
+
"content": "<extra_id_81>",
|
173 |
+
"lstrip": false,
|
174 |
+
"normalized": false,
|
175 |
+
"rstrip": false,
|
176 |
+
"single_word": false,
|
177 |
+
"special": true
|
178 |
+
},
|
179 |
+
"32019": {
|
180 |
+
"content": "<extra_id_80>",
|
181 |
+
"lstrip": false,
|
182 |
+
"normalized": false,
|
183 |
+
"rstrip": false,
|
184 |
+
"single_word": false,
|
185 |
+
"special": true
|
186 |
+
},
|
187 |
+
"32020": {
|
188 |
+
"content": "<extra_id_79>",
|
189 |
+
"lstrip": false,
|
190 |
+
"normalized": false,
|
191 |
+
"rstrip": false,
|
192 |
+
"single_word": false,
|
193 |
+
"special": true
|
194 |
+
},
|
195 |
+
"32021": {
|
196 |
+
"content": "<extra_id_78>",
|
197 |
+
"lstrip": false,
|
198 |
+
"normalized": false,
|
199 |
+
"rstrip": false,
|
200 |
+
"single_word": false,
|
201 |
+
"special": true
|
202 |
+
},
|
203 |
+
"32022": {
|
204 |
+
"content": "<extra_id_77>",
|
205 |
+
"lstrip": false,
|
206 |
+
"normalized": false,
|
207 |
+
"rstrip": false,
|
208 |
+
"single_word": false,
|
209 |
+
"special": true
|
210 |
+
},
|
211 |
+
"32023": {
|
212 |
+
"content": "<extra_id_76>",
|
213 |
+
"lstrip": false,
|
214 |
+
"normalized": false,
|
215 |
+
"rstrip": false,
|
216 |
+
"single_word": false,
|
217 |
+
"special": true
|
218 |
+
},
|
219 |
+
"32024": {
|
220 |
+
"content": "<extra_id_75>",
|
221 |
+
"lstrip": false,
|
222 |
+
"normalized": false,
|
223 |
+
"rstrip": false,
|
224 |
+
"single_word": false,
|
225 |
+
"special": true
|
226 |
+
},
|
227 |
+
"32025": {
|
228 |
+
"content": "<extra_id_74>",
|
229 |
+
"lstrip": false,
|
230 |
+
"normalized": false,
|
231 |
+
"rstrip": false,
|
232 |
+
"single_word": false,
|
233 |
+
"special": true
|
234 |
+
},
|
235 |
+
"32026": {
|
236 |
+
"content": "<extra_id_73>",
|
237 |
+
"lstrip": false,
|
238 |
+
"normalized": false,
|
239 |
+
"rstrip": false,
|
240 |
+
"single_word": false,
|
241 |
+
"special": true
|
242 |
+
},
|
243 |
+
"32027": {
|
244 |
+
"content": "<extra_id_72>",
|
245 |
+
"lstrip": false,
|
246 |
+
"normalized": false,
|
247 |
+
"rstrip": false,
|
248 |
+
"single_word": false,
|
249 |
+
"special": true
|
250 |
+
},
|
251 |
+
"32028": {
|
252 |
+
"content": "<extra_id_71>",
|
253 |
+
"lstrip": false,
|
254 |
+
"normalized": false,
|
255 |
+
"rstrip": false,
|
256 |
+
"single_word": false,
|
257 |
+
"special": true
|
258 |
+
},
|
259 |
+
"32029": {
|
260 |
+
"content": "<extra_id_70>",
|
261 |
+
"lstrip": false,
|
262 |
+
"normalized": false,
|
263 |
+
"rstrip": false,
|
264 |
+
"single_word": false,
|
265 |
+
"special": true
|
266 |
+
},
|
267 |
+
"32030": {
|
268 |
+
"content": "<extra_id_69>",
|
269 |
+
"lstrip": false,
|
270 |
+
"normalized": false,
|
271 |
+
"rstrip": false,
|
272 |
+
"single_word": false,
|
273 |
+
"special": true
|
274 |
+
},
|
275 |
+
"32031": {
|
276 |
+
"content": "<extra_id_68>",
|
277 |
+
"lstrip": false,
|
278 |
+
"normalized": false,
|
279 |
+
"rstrip": false,
|
280 |
+
"single_word": false,
|
281 |
+
"special": true
|
282 |
+
},
|
283 |
+
"32032": {
|
284 |
+
"content": "<extra_id_67>",
|
285 |
+
"lstrip": false,
|
286 |
+
"normalized": false,
|
287 |
+
"rstrip": false,
|
288 |
+
"single_word": false,
|
289 |
+
"special": true
|
290 |
+
},
|
291 |
+
"32033": {
|
292 |
+
"content": "<extra_id_66>",
|
293 |
+
"lstrip": false,
|
294 |
+
"normalized": false,
|
295 |
+
"rstrip": false,
|
296 |
+
"single_word": false,
|
297 |
+
"special": true
|
298 |
+
},
|
299 |
+
"32034": {
|
300 |
+
"content": "<extra_id_65>",
|
301 |
+
"lstrip": false,
|
302 |
+
"normalized": false,
|
303 |
+
"rstrip": false,
|
304 |
+
"single_word": false,
|
305 |
+
"special": true
|
306 |
+
},
|
307 |
+
"32035": {
|
308 |
+
"content": "<extra_id_64>",
|
309 |
+
"lstrip": false,
|
310 |
+
"normalized": false,
|
311 |
+
"rstrip": false,
|
312 |
+
"single_word": false,
|
313 |
+
"special": true
|
314 |
+
},
|
315 |
+
"32036": {
|
316 |
+
"content": "<extra_id_63>",
|
317 |
+
"lstrip": false,
|
318 |
+
"normalized": false,
|
319 |
+
"rstrip": false,
|
320 |
+
"single_word": false,
|
321 |
+
"special": true
|
322 |
+
},
|
323 |
+
"32037": {
|
324 |
+
"content": "<extra_id_62>",
|
325 |
+
"lstrip": false,
|
326 |
+
"normalized": false,
|
327 |
+
"rstrip": false,
|
328 |
+
"single_word": false,
|
329 |
+
"special": true
|
330 |
+
},
|
331 |
+
"32038": {
|
332 |
+
"content": "<extra_id_61>",
|
333 |
+
"lstrip": false,
|
334 |
+
"normalized": false,
|
335 |
+
"rstrip": false,
|
336 |
+
"single_word": false,
|
337 |
+
"special": true
|
338 |
+
},
|
339 |
+
"32039": {
|
340 |
+
"content": "<extra_id_60>",
|
341 |
+
"lstrip": false,
|
342 |
+
"normalized": false,
|
343 |
+
"rstrip": false,
|
344 |
+
"single_word": false,
|
345 |
+
"special": true
|
346 |
+
},
|
347 |
+
"32040": {
|
348 |
+
"content": "<extra_id_59>",
|
349 |
+
"lstrip": false,
|
350 |
+
"normalized": false,
|
351 |
+
"rstrip": false,
|
352 |
+
"single_word": false,
|
353 |
+
"special": true
|
354 |
+
},
|
355 |
+
"32041": {
|
356 |
+
"content": "<extra_id_58>",
|
357 |
+
"lstrip": false,
|
358 |
+
"normalized": false,
|
359 |
+
"rstrip": false,
|
360 |
+
"single_word": false,
|
361 |
+
"special": true
|
362 |
+
},
|
363 |
+
"32042": {
|
364 |
+
"content": "<extra_id_57>",
|
365 |
+
"lstrip": false,
|
366 |
+
"normalized": false,
|
367 |
+
"rstrip": false,
|
368 |
+
"single_word": false,
|
369 |
+
"special": true
|
370 |
+
},
|
371 |
+
"32043": {
|
372 |
+
"content": "<extra_id_56>",
|
373 |
+
"lstrip": false,
|
374 |
+
"normalized": false,
|
375 |
+
"rstrip": false,
|
376 |
+
"single_word": false,
|
377 |
+
"special": true
|
378 |
+
},
|
379 |
+
"32044": {
|
380 |
+
"content": "<extra_id_55>",
|
381 |
+
"lstrip": false,
|
382 |
+
"normalized": false,
|
383 |
+
"rstrip": false,
|
384 |
+
"single_word": false,
|
385 |
+
"special": true
|
386 |
+
},
|
387 |
+
"32045": {
|
388 |
+
"content": "<extra_id_54>",
|
389 |
+
"lstrip": false,
|
390 |
+
"normalized": false,
|
391 |
+
"rstrip": false,
|
392 |
+
"single_word": false,
|
393 |
+
"special": true
|
394 |
+
},
|
395 |
+
"32046": {
|
396 |
+
"content": "<extra_id_53>",
|
397 |
+
"lstrip": false,
|
398 |
+
"normalized": false,
|
399 |
+
"rstrip": false,
|
400 |
+
"single_word": false,
|
401 |
+
"special": true
|
402 |
+
},
|
403 |
+
"32047": {
|
404 |
+
"content": "<extra_id_52>",
|
405 |
+
"lstrip": false,
|
406 |
+
"normalized": false,
|
407 |
+
"rstrip": false,
|
408 |
+
"single_word": false,
|
409 |
+
"special": true
|
410 |
+
},
|
411 |
+
"32048": {
|
412 |
+
"content": "<extra_id_51>",
|
413 |
+
"lstrip": false,
|
414 |
+
"normalized": false,
|
415 |
+
"rstrip": false,
|
416 |
+
"single_word": false,
|
417 |
+
"special": true
|
418 |
+
},
|
419 |
+
"32049": {
|
420 |
+
"content": "<extra_id_50>",
|
421 |
+
"lstrip": false,
|
422 |
+
"normalized": false,
|
423 |
+
"rstrip": false,
|
424 |
+
"single_word": false,
|
425 |
+
"special": true
|
426 |
+
},
|
427 |
+
"32050": {
|
428 |
+
"content": "<extra_id_49>",
|
429 |
+
"lstrip": false,
|
430 |
+
"normalized": false,
|
431 |
+
"rstrip": false,
|
432 |
+
"single_word": false,
|
433 |
+
"special": true
|
434 |
+
},
|
435 |
+
"32051": {
|
436 |
+
"content": "<extra_id_48>",
|
437 |
+
"lstrip": false,
|
438 |
+
"normalized": false,
|
439 |
+
"rstrip": false,
|
440 |
+
"single_word": false,
|
441 |
+
"special": true
|
442 |
+
},
|
443 |
+
"32052": {
|
444 |
+
"content": "<extra_id_47>",
|
445 |
+
"lstrip": false,
|
446 |
+
"normalized": false,
|
447 |
+
"rstrip": false,
|
448 |
+
"single_word": false,
|
449 |
+
"special": true
|
450 |
+
},
|
451 |
+
"32053": {
|
452 |
+
"content": "<extra_id_46>",
|
453 |
+
"lstrip": false,
|
454 |
+
"normalized": false,
|
455 |
+
"rstrip": false,
|
456 |
+
"single_word": false,
|
457 |
+
"special": true
|
458 |
+
},
|
459 |
+
"32054": {
|
460 |
+
"content": "<extra_id_45>",
|
461 |
+
"lstrip": false,
|
462 |
+
"normalized": false,
|
463 |
+
"rstrip": false,
|
464 |
+
"single_word": false,
|
465 |
+
"special": true
|
466 |
+
},
|
467 |
+
"32055": {
|
468 |
+
"content": "<extra_id_44>",
|
469 |
+
"lstrip": false,
|
470 |
+
"normalized": false,
|
471 |
+
"rstrip": false,
|
472 |
+
"single_word": false,
|
473 |
+
"special": true
|
474 |
+
},
|
475 |
+
"32056": {
|
476 |
+
"content": "<extra_id_43>",
|
477 |
+
"lstrip": false,
|
478 |
+
"normalized": false,
|
479 |
+
"rstrip": false,
|
480 |
+
"single_word": false,
|
481 |
+
"special": true
|
482 |
+
},
|
483 |
+
"32057": {
|
484 |
+
"content": "<extra_id_42>",
|
485 |
+
"lstrip": false,
|
486 |
+
"normalized": false,
|
487 |
+
"rstrip": false,
|
488 |
+
"single_word": false,
|
489 |
+
"special": true
|
490 |
+
},
|
491 |
+
"32058": {
|
492 |
+
"content": "<extra_id_41>",
|
493 |
+
"lstrip": false,
|
494 |
+
"normalized": false,
|
495 |
+
"rstrip": false,
|
496 |
+
"single_word": false,
|
497 |
+
"special": true
|
498 |
+
},
|
499 |
+
"32059": {
|
500 |
+
"content": "<extra_id_40>",
|
501 |
+
"lstrip": false,
|
502 |
+
"normalized": false,
|
503 |
+
"rstrip": false,
|
504 |
+
"single_word": false,
|
505 |
+
"special": true
|
506 |
+
},
|
507 |
+
"32060": {
|
508 |
+
"content": "<extra_id_39>",
|
509 |
+
"lstrip": false,
|
510 |
+
"normalized": false,
|
511 |
+
"rstrip": false,
|
512 |
+
"single_word": false,
|
513 |
+
"special": true
|
514 |
+
},
|
515 |
+
"32061": {
|
516 |
+
"content": "<extra_id_38>",
|
517 |
+
"lstrip": false,
|
518 |
+
"normalized": false,
|
519 |
+
"rstrip": false,
|
520 |
+
"single_word": false,
|
521 |
+
"special": true
|
522 |
+
},
|
523 |
+
"32062": {
|
524 |
+
"content": "<extra_id_37>",
|
525 |
+
"lstrip": false,
|
526 |
+
"normalized": false,
|
527 |
+
"rstrip": false,
|
528 |
+
"single_word": false,
|
529 |
+
"special": true
|
530 |
+
},
|
531 |
+
"32063": {
|
532 |
+
"content": "<extra_id_36>",
|
533 |
+
"lstrip": false,
|
534 |
+
"normalized": false,
|
535 |
+
"rstrip": false,
|
536 |
+
"single_word": false,
|
537 |
+
"special": true
|
538 |
+
},
|
539 |
+
"32064": {
|
540 |
+
"content": "<extra_id_35>",
|
541 |
+
"lstrip": false,
|
542 |
+
"normalized": false,
|
543 |
+
"rstrip": false,
|
544 |
+
"single_word": false,
|
545 |
+
"special": true
|
546 |
+
},
|
547 |
+
"32065": {
|
548 |
+
"content": "<extra_id_34>",
|
549 |
+
"lstrip": false,
|
550 |
+
"normalized": false,
|
551 |
+
"rstrip": false,
|
552 |
+
"single_word": false,
|
553 |
+
"special": true
|
554 |
+
},
|
555 |
+
"32066": {
|
556 |
+
"content": "<extra_id_33>",
|
557 |
+
"lstrip": false,
|
558 |
+
"normalized": false,
|
559 |
+
"rstrip": false,
|
560 |
+
"single_word": false,
|
561 |
+
"special": true
|
562 |
+
},
|
563 |
+
"32067": {
|
564 |
+
"content": "<extra_id_32>",
|
565 |
+
"lstrip": false,
|
566 |
+
"normalized": false,
|
567 |
+
"rstrip": false,
|
568 |
+
"single_word": false,
|
569 |
+
"special": true
|
570 |
+
},
|
571 |
+
"32068": {
|
572 |
+
"content": "<extra_id_31>",
|
573 |
+
"lstrip": false,
|
574 |
+
"normalized": false,
|
575 |
+
"rstrip": false,
|
576 |
+
"single_word": false,
|
577 |
+
"special": true
|
578 |
+
},
|
579 |
+
"32069": {
|
580 |
+
"content": "<extra_id_30>",
|
581 |
+
"lstrip": false,
|
582 |
+
"normalized": false,
|
583 |
+
"rstrip": false,
|
584 |
+
"single_word": false,
|
585 |
+
"special": true
|
586 |
+
},
|
587 |
+
"32070": {
|
588 |
+
"content": "<extra_id_29>",
|
589 |
+
"lstrip": false,
|
590 |
+
"normalized": false,
|
591 |
+
"rstrip": false,
|
592 |
+
"single_word": false,
|
593 |
+
"special": true
|
594 |
+
},
|
595 |
+
"32071": {
|
596 |
+
"content": "<extra_id_28>",
|
597 |
+
"lstrip": false,
|
598 |
+
"normalized": false,
|
599 |
+
"rstrip": false,
|
600 |
+
"single_word": false,
|
601 |
+
"special": true
|
602 |
+
},
|
603 |
+
"32072": {
|
604 |
+
"content": "<extra_id_27>",
|
605 |
+
"lstrip": false,
|
606 |
+
"normalized": false,
|
607 |
+
"rstrip": false,
|
608 |
+
"single_word": false,
|
609 |
+
"special": true
|
610 |
+
},
|
611 |
+
"32073": {
|
612 |
+
"content": "<extra_id_26>",
|
613 |
+
"lstrip": false,
|
614 |
+
"normalized": false,
|
615 |
+
"rstrip": false,
|
616 |
+
"single_word": false,
|
617 |
+
"special": true
|
618 |
+
},
|
619 |
+
"32074": {
|
620 |
+
"content": "<extra_id_25>",
|
621 |
+
"lstrip": false,
|
622 |
+
"normalized": false,
|
623 |
+
"rstrip": false,
|
624 |
+
"single_word": false,
|
625 |
+
"special": true
|
626 |
+
},
|
627 |
+
"32075": {
|
628 |
+
"content": "<extra_id_24>",
|
629 |
+
"lstrip": false,
|
630 |
+
"normalized": false,
|
631 |
+
"rstrip": false,
|
632 |
+
"single_word": false,
|
633 |
+
"special": true
|
634 |
+
},
|
635 |
+
"32076": {
|
636 |
+
"content": "<extra_id_23>",
|
637 |
+
"lstrip": false,
|
638 |
+
"normalized": false,
|
639 |
+
"rstrip": false,
|
640 |
+
"single_word": false,
|
641 |
+
"special": true
|
642 |
+
},
|
643 |
+
"32077": {
|
644 |
+
"content": "<extra_id_22>",
|
645 |
+
"lstrip": false,
|
646 |
+
"normalized": false,
|
647 |
+
"rstrip": false,
|
648 |
+
"single_word": false,
|
649 |
+
"special": true
|
650 |
+
},
|
651 |
+
"32078": {
|
652 |
+
"content": "<extra_id_21>",
|
653 |
+
"lstrip": false,
|
654 |
+
"normalized": false,
|
655 |
+
"rstrip": false,
|
656 |
+
"single_word": false,
|
657 |
+
"special": true
|
658 |
+
},
|
659 |
+
"32079": {
|
660 |
+
"content": "<extra_id_20>",
|
661 |
+
"lstrip": false,
|
662 |
+
"normalized": false,
|
663 |
+
"rstrip": false,
|
664 |
+
"single_word": false,
|
665 |
+
"special": true
|
666 |
+
},
|
667 |
+
"32080": {
|
668 |
+
"content": "<extra_id_19>",
|
669 |
+
"lstrip": false,
|
670 |
+
"normalized": false,
|
671 |
+
"rstrip": false,
|
672 |
+
"single_word": false,
|
673 |
+
"special": true
|
674 |
+
},
|
675 |
+
"32081": {
|
676 |
+
"content": "<extra_id_18>",
|
677 |
+
"lstrip": false,
|
678 |
+
"normalized": false,
|
679 |
+
"rstrip": false,
|
680 |
+
"single_word": false,
|
681 |
+
"special": true
|
682 |
+
},
|
683 |
+
"32082": {
|
684 |
+
"content": "<extra_id_17>",
|
685 |
+
"lstrip": false,
|
686 |
+
"normalized": false,
|
687 |
+
"rstrip": false,
|
688 |
+
"single_word": false,
|
689 |
+
"special": true
|
690 |
+
},
|
691 |
+
"32083": {
|
692 |
+
"content": "<extra_id_16>",
|
693 |
+
"lstrip": false,
|
694 |
+
"normalized": false,
|
695 |
+
"rstrip": false,
|
696 |
+
"single_word": false,
|
697 |
+
"special": true
|
698 |
+
},
|
699 |
+
"32084": {
|
700 |
+
"content": "<extra_id_15>",
|
701 |
+
"lstrip": false,
|
702 |
+
"normalized": false,
|
703 |
+
"rstrip": false,
|
704 |
+
"single_word": false,
|
705 |
+
"special": true
|
706 |
+
},
|
707 |
+
"32085": {
|
708 |
+
"content": "<extra_id_14>",
|
709 |
+
"lstrip": false,
|
710 |
+
"normalized": false,
|
711 |
+
"rstrip": false,
|
712 |
+
"single_word": false,
|
713 |
+
"special": true
|
714 |
+
},
|
715 |
+
"32086": {
|
716 |
+
"content": "<extra_id_13>",
|
717 |
+
"lstrip": false,
|
718 |
+
"normalized": false,
|
719 |
+
"rstrip": false,
|
720 |
+
"single_word": false,
|
721 |
+
"special": true
|
722 |
+
},
|
723 |
+
"32087": {
|
724 |
+
"content": "<extra_id_12>",
|
725 |
+
"lstrip": false,
|
726 |
+
"normalized": false,
|
727 |
+
"rstrip": false,
|
728 |
+
"single_word": false,
|
729 |
+
"special": true
|
730 |
+
},
|
731 |
+
"32088": {
|
732 |
+
"content": "<extra_id_11>",
|
733 |
+
"lstrip": false,
|
734 |
+
"normalized": false,
|
735 |
+
"rstrip": false,
|
736 |
+
"single_word": false,
|
737 |
+
"special": true
|
738 |
+
},
|
739 |
+
"32089": {
|
740 |
+
"content": "<extra_id_10>",
|
741 |
+
"lstrip": false,
|
742 |
+
"normalized": false,
|
743 |
+
"rstrip": false,
|
744 |
+
"single_word": false,
|
745 |
+
"special": true
|
746 |
+
},
|
747 |
+
"32090": {
|
748 |
+
"content": "<extra_id_9>",
|
749 |
+
"lstrip": false,
|
750 |
+
"normalized": false,
|
751 |
+
"rstrip": false,
|
752 |
+
"single_word": false,
|
753 |
+
"special": true
|
754 |
+
},
|
755 |
+
"32091": {
|
756 |
+
"content": "<extra_id_8>",
|
757 |
+
"lstrip": false,
|
758 |
+
"normalized": false,
|
759 |
+
"rstrip": false,
|
760 |
+
"single_word": false,
|
761 |
+
"special": true
|
762 |
+
},
|
763 |
+
"32092": {
|
764 |
+
"content": "<extra_id_7>",
|
765 |
+
"lstrip": false,
|
766 |
+
"normalized": false,
|
767 |
+
"rstrip": false,
|
768 |
+
"single_word": false,
|
769 |
+
"special": true
|
770 |
+
},
|
771 |
+
"32093": {
|
772 |
+
"content": "<extra_id_6>",
|
773 |
+
"lstrip": false,
|
774 |
+
"normalized": false,
|
775 |
+
"rstrip": false,
|
776 |
+
"single_word": false,
|
777 |
+
"special": true
|
778 |
+
},
|
779 |
+
"32094": {
|
780 |
+
"content": "<extra_id_5>",
|
781 |
+
"lstrip": false,
|
782 |
+
"normalized": false,
|
783 |
+
"rstrip": false,
|
784 |
+
"single_word": false,
|
785 |
+
"special": true
|
786 |
+
},
|
787 |
+
"32095": {
|
788 |
+
"content": "<extra_id_4>",
|
789 |
+
"lstrip": false,
|
790 |
+
"normalized": false,
|
791 |
+
"rstrip": false,
|
792 |
+
"single_word": false,
|
793 |
+
"special": true
|
794 |
+
},
|
795 |
+
"32096": {
|
796 |
+
"content": "<extra_id_3>",
|
797 |
+
"lstrip": false,
|
798 |
+
"normalized": false,
|
799 |
+
"rstrip": false,
|
800 |
+
"single_word": false,
|
801 |
+
"special": true
|
802 |
+
},
|
803 |
+
"32097": {
|
804 |
+
"content": "<extra_id_2>",
|
805 |
+
"lstrip": false,
|
806 |
+
"normalized": false,
|
807 |
+
"rstrip": false,
|
808 |
+
"single_word": false,
|
809 |
+
"special": true
|
810 |
+
},
|
811 |
+
"32098": {
|
812 |
+
"content": "<extra_id_1>",
|
813 |
+
"lstrip": false,
|
814 |
+
"normalized": false,
|
815 |
+
"rstrip": false,
|
816 |
+
"single_word": false,
|
817 |
+
"special": true
|
818 |
+
},
|
819 |
+
"32099": {
|
820 |
+
"content": "<extra_id_0>",
|
821 |
+
"lstrip": false,
|
822 |
+
"normalized": false,
|
823 |
+
"rstrip": false,
|
824 |
+
"single_word": false,
|
825 |
+
"special": true
|
826 |
+
},
|
827 |
+
"32100": {
|
828 |
+
"content": "<image>",
|
829 |
+
"lstrip": false,
|
830 |
+
"normalized": false,
|
831 |
+
"rstrip": false,
|
832 |
+
"single_word": false,
|
833 |
+
"special": true
|
834 |
+
},
|
835 |
+
"32101": {
|
836 |
+
"content": "<video>",
|
837 |
+
"lstrip": false,
|
838 |
+
"normalized": false,
|
839 |
+
"rstrip": false,
|
840 |
+
"single_word": false,
|
841 |
+
"special": true
|
842 |
+
}
|
843 |
+
},
|
844 |
"additional_special_tokens": [
|
845 |
"<extra_id_0>",
|
846 |
"<extra_id_1>",
|
|
|
946 |
"clean_up_tokenization_spaces": true,
|
947 |
"eos_token": "</s>",
|
948 |
"extra_ids": 100,
|
949 |
+
"extra_special_tokens": {},
|
950 |
"model_max_length": 512,
|
951 |
"pad_token": "<pad>",
|
952 |
"processor_class": "InstructBlipProcessor",
|