letuan commited on
Commit
6c187b3
·
verified ·
1 Parent(s): d1333d8

Upload Blip2ForT5VQAV3

Browse files
Files changed (2) hide show
  1. config.json +258 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "_name_or_path": "mounts/models/vivrc_vlsp_mblip_mt0_xl_all_v3_datav2_finetune_x2_lr1e5_e4/checkpoint-180",
4
+ "architectures": [
5
+ "Blip2ForT5VQAV3"
6
+ ],
7
+ "initializer_factor": 1.0,
8
+ "initializer_range": 0.02,
9
+ "is_encoder_decoder": true,
10
+ "model_type": "blip-2",
11
+ "model_version": "mblip-mt0-v3",
12
+ "num_query_tokens": 32,
13
+ "qformer_config": {
14
+ "_name_or_path": "",
15
+ "add_cross_attention": false,
16
+ "architectures": null,
17
+ "attention_probs_dropout_prob": 0.1,
18
+ "bad_words_ids": null,
19
+ "begin_suppress_tokens": null,
20
+ "bos_token_id": null,
21
+ "chunk_size_feed_forward": 0,
22
+ "classifier_dropout": null,
23
+ "cross_attention_frequency": 2,
24
+ "cross_attention_hidden_size": null,
25
+ "decoder_start_token_id": null,
26
+ "diversity_penalty": 0.0,
27
+ "do_sample": false,
28
+ "early_stopping": false,
29
+ "encoder_hidden_size": 1408,
30
+ "encoder_no_repeat_ngram_size": 0,
31
+ "eos_token_id": null,
32
+ "exponential_decay_length_penalty": null,
33
+ "finetuning_task": null,
34
+ "forced_bos_token_id": null,
35
+ "forced_eos_token_id": null,
36
+ "hidden_act": "gelu",
37
+ "hidden_dropout_prob": 0.1,
38
+ "hidden_size": 768,
39
+ "id2label": {
40
+ "0": "LABEL_0",
41
+ "1": "LABEL_1"
42
+ },
43
+ "initializer_range": 0.02,
44
+ "intermediate_size": 3072,
45
+ "is_decoder": false,
46
+ "is_encoder_decoder": false,
47
+ "label2id": {
48
+ "LABEL_0": 0,
49
+ "LABEL_1": 1
50
+ },
51
+ "layer_norm_eps": 1e-12,
52
+ "length_penalty": 1.0,
53
+ "max_length": 20,
54
+ "max_position_embeddings": 512,
55
+ "min_length": 0,
56
+ "model_type": "blip_2_qformer",
57
+ "no_repeat_ngram_size": 0,
58
+ "num_attention_heads": 12,
59
+ "num_beam_groups": 1,
60
+ "num_beams": 1,
61
+ "num_hidden_layers": 12,
62
+ "num_return_sequences": 1,
63
+ "output_attentions": false,
64
+ "output_hidden_states": false,
65
+ "output_scores": false,
66
+ "pad_token_id": 0,
67
+ "position_embedding_type": "absolute",
68
+ "prefix": null,
69
+ "problem_type": null,
70
+ "pruned_heads": {},
71
+ "remove_invalid_values": false,
72
+ "repetition_penalty": 1.0,
73
+ "return_dict": true,
74
+ "return_dict_in_generate": false,
75
+ "sep_token_id": null,
76
+ "suppress_tokens": null,
77
+ "task_specific_params": null,
78
+ "temperature": 1.0,
79
+ "tf_legacy_loss": false,
80
+ "tie_encoder_decoder": false,
81
+ "tie_word_embeddings": true,
82
+ "tokenizer_class": null,
83
+ "top_k": 50,
84
+ "top_p": 1.0,
85
+ "torch_dtype": null,
86
+ "torchscript": false,
87
+ "transformers_version": "4.30.2",
88
+ "typical_p": 1.0,
89
+ "use_bfloat16": false,
90
+ "vocab_size": 30522
91
+ },
92
+ "text_config": {
93
+ "_name_or_path": "/media/gregor/DATA/projects/wuerzburg/mblip/checkpoints/mt0-xl/07_24_2023_08_03_33-1-79282",
94
+ "add_cross_attention": false,
95
+ "architectures": [
96
+ "MT5ForConditionalGeneration"
97
+ ],
98
+ "bad_words_ids": null,
99
+ "begin_suppress_tokens": null,
100
+ "bos_token_id": null,
101
+ "chunk_size_feed_forward": 0,
102
+ "cross_attention_hidden_size": null,
103
+ "d_ff": 5120,
104
+ "d_kv": 64,
105
+ "d_model": 2048,
106
+ "decoder_start_token_id": 0,
107
+ "dense_act_fn": "gelu_new",
108
+ "diversity_penalty": 0.0,
109
+ "do_sample": false,
110
+ "dropout_rate": 0.1,
111
+ "early_stopping": false,
112
+ "encoder_no_repeat_ngram_size": 0,
113
+ "eos_token_id": 1,
114
+ "exponential_decay_length_penalty": null,
115
+ "feed_forward_proj": "gated-gelu",
116
+ "finetuning_task": null,
117
+ "forced_bos_token_id": null,
118
+ "forced_eos_token_id": null,
119
+ "id2label": {
120
+ "0": "LABEL_0",
121
+ "1": "LABEL_1"
122
+ },
123
+ "initializer_factor": 1.0,
124
+ "is_decoder": false,
125
+ "is_encoder_decoder": true,
126
+ "is_gated_act": true,
127
+ "label2id": {
128
+ "LABEL_0": 0,
129
+ "LABEL_1": 1
130
+ },
131
+ "layer_norm_epsilon": 1e-06,
132
+ "length_penalty": 1.0,
133
+ "max_length": 20,
134
+ "min_length": 0,
135
+ "model_type": "mt5",
136
+ "no_repeat_ngram_size": 0,
137
+ "num_beam_groups": 1,
138
+ "num_beams": 1,
139
+ "num_decoder_layers": 24,
140
+ "num_heads": 32,
141
+ "num_layers": 24,
142
+ "num_return_sequences": 1,
143
+ "output_attentions": false,
144
+ "output_hidden_states": false,
145
+ "output_past": true,
146
+ "output_scores": false,
147
+ "pad_token_id": 0,
148
+ "prefix": null,
149
+ "problem_type": null,
150
+ "pruned_heads": {},
151
+ "relative_attention_max_distance": 128,
152
+ "relative_attention_num_buckets": 32,
153
+ "remove_invalid_values": false,
154
+ "repetition_penalty": 1.0,
155
+ "return_dict": true,
156
+ "return_dict_in_generate": false,
157
+ "sep_token_id": null,
158
+ "suppress_tokens": null,
159
+ "task_specific_params": null,
160
+ "temperature": 1.0,
161
+ "tf_legacy_loss": false,
162
+ "tie_encoder_decoder": false,
163
+ "tie_word_embeddings": false,
164
+ "tokenizer_class": "T5Tokenizer",
165
+ "top_k": 50,
166
+ "top_p": 1.0,
167
+ "torch_dtype": "float32",
168
+ "torchscript": false,
169
+ "transformers_version": "4.30.2",
170
+ "typical_p": 1.0,
171
+ "use_bfloat16": false,
172
+ "use_cache": true,
173
+ "vocab_size": 250112
174
+ },
175
+ "tie_word_embeddings": false,
176
+ "torch_dtype": "bfloat16",
177
+ "transformers_version": null,
178
+ "use_decoder_only_language_model": false,
179
+ "vision_config": {
180
+ "_name_or_path": "",
181
+ "add_cross_attention": false,
182
+ "architectures": null,
183
+ "attention_dropout": 0.0,
184
+ "bad_words_ids": null,
185
+ "begin_suppress_tokens": null,
186
+ "bos_token_id": null,
187
+ "chunk_size_feed_forward": 0,
188
+ "cross_attention_hidden_size": null,
189
+ "decoder_start_token_id": null,
190
+ "diversity_penalty": 0.0,
191
+ "do_sample": false,
192
+ "dropout": 0.0,
193
+ "early_stopping": false,
194
+ "encoder_no_repeat_ngram_size": 0,
195
+ "eos_token_id": null,
196
+ "exponential_decay_length_penalty": null,
197
+ "finetuning_task": null,
198
+ "forced_bos_token_id": null,
199
+ "forced_eos_token_id": null,
200
+ "hidden_act": "gelu",
201
+ "hidden_size": 1408,
202
+ "id2label": {
203
+ "0": "LABEL_0",
204
+ "1": "LABEL_1"
205
+ },
206
+ "image_size": 224,
207
+ "initializer_factor": 1.0,
208
+ "initializer_range": 1e-10,
209
+ "intermediate_size": 6144,
210
+ "is_decoder": false,
211
+ "is_encoder_decoder": false,
212
+ "label2id": {
213
+ "LABEL_0": 0,
214
+ "LABEL_1": 1
215
+ },
216
+ "layer_norm_eps": 1e-06,
217
+ "length_penalty": 1.0,
218
+ "max_length": 20,
219
+ "min_length": 0,
220
+ "model_type": "blip_2_vision_model",
221
+ "no_repeat_ngram_size": 0,
222
+ "num_attention_heads": 16,
223
+ "num_beam_groups": 1,
224
+ "num_beams": 1,
225
+ "num_channels": 3,
226
+ "num_hidden_layers": 39,
227
+ "num_return_sequences": 1,
228
+ "output_attentions": false,
229
+ "output_hidden_states": false,
230
+ "output_scores": false,
231
+ "pad_token_id": null,
232
+ "patch_size": 14,
233
+ "prefix": null,
234
+ "problem_type": null,
235
+ "projection_dim": 512,
236
+ "pruned_heads": {},
237
+ "qkv_bias": true,
238
+ "remove_invalid_values": false,
239
+ "repetition_penalty": 1.0,
240
+ "return_dict": true,
241
+ "return_dict_in_generate": false,
242
+ "sep_token_id": null,
243
+ "suppress_tokens": null,
244
+ "task_specific_params": null,
245
+ "temperature": 1.0,
246
+ "tf_legacy_loss": false,
247
+ "tie_encoder_decoder": false,
248
+ "tie_word_embeddings": true,
249
+ "tokenizer_class": null,
250
+ "top_k": 50,
251
+ "top_p": 1.0,
252
+ "torch_dtype": null,
253
+ "torchscript": false,
254
+ "transformers_version": "4.30.2",
255
+ "typical_p": 1.0,
256
+ "use_bfloat16": false
257
+ }
258
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14f4a063b8fd153e4a693138f27e1c5eaffff40bb474e0b3fd52aa7bc41bba11
3
+ size 9674232336