nielsr HF staff commited on
Commit
f32162e
1 Parent(s): 0be1e05

Upload Blip2ForConditionalGeneration

Browse files
config.json ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "architectures": [
4
+ "Blip2ForConditionalGeneration"
5
+ ],
6
+ "initializer_factor": 1.0,
7
+ "initializer_range": 0.02,
8
+ "model_type": "blip-2",
9
+ "num_query_tokens": 32,
10
+ "qformer_config": {
11
+ "_name_or_path": "",
12
+ "add_cross_attention": false,
13
+ "architectures": null,
14
+ "attention_probs_dropout_prob": 0.1,
15
+ "bad_words_ids": null,
16
+ "begin_suppress_tokens": null,
17
+ "bos_token_id": null,
18
+ "chunk_size_feed_forward": 0,
19
+ "classifier_dropout": null,
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": "blip_2_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.27.0.dev0",
85
+ "typical_p": 1.0,
86
+ "use_bfloat16": false,
87
+ "vocab_size": 30522
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
+ "chunk_size_feed_forward": 0,
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.27.0.dev0",
167
+ "typical_p": 1.0,
168
+ "use_bfloat16": false,
169
+ "use_cache": true,
170
+ "vocab_size": 32128
171
+ },
172
+ "torch_dtype": "float32",
173
+ "transformers_version": null,
174
+ "use_decoder_only_language_model": false,
175
+ "vision_config": {
176
+ "_name_or_path": "",
177
+ "add_cross_attention": false,
178
+ "architectures": null,
179
+ "attention_dropout": 0.0,
180
+ "bad_words_ids": null,
181
+ "begin_suppress_tokens": null,
182
+ "bos_token_id": null,
183
+ "chunk_size_feed_forward": 0,
184
+ "cross_attention_hidden_size": null,
185
+ "decoder_start_token_id": null,
186
+ "diversity_penalty": 0.0,
187
+ "do_sample": false,
188
+ "dropout": 0.0,
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_factor": 1.0,
204
+ "initializer_range": 1e-10,
205
+ "intermediate_size": 6144,
206
+ "is_decoder": false,
207
+ "is_encoder_decoder": false,
208
+ "label2id": {
209
+ "LABEL_0": 0,
210
+ "LABEL_1": 1
211
+ },
212
+ "layer_norm_eps": 1e-05,
213
+ "length_penalty": 1.0,
214
+ "max_length": 20,
215
+ "min_length": 0,
216
+ "model_type": "blip_2_vision_model",
217
+ "no_repeat_ngram_size": 0,
218
+ "num_attention_heads": 16,
219
+ "num_beam_groups": 1,
220
+ "num_beams": 1,
221
+ "num_channels": 3,
222
+ "num_hidden_layers": 39,
223
+ "num_return_sequences": 1,
224
+ "output_attentions": false,
225
+ "output_hidden_states": false,
226
+ "output_scores": false,
227
+ "pad_token_id": null,
228
+ "patch_size": 14,
229
+ "prefix": null,
230
+ "problem_type": null,
231
+ "projection_dim": 512,
232
+ "pruned_heads": {},
233
+ "qkv_bias": true,
234
+ "remove_invalid_values": false,
235
+ "repetition_penalty": 1.0,
236
+ "return_dict": true,
237
+ "return_dict_in_generate": false,
238
+ "sep_token_id": null,
239
+ "suppress_tokens": null,
240
+ "task_specific_params": null,
241
+ "temperature": 1.0,
242
+ "tf_legacy_loss": false,
243
+ "tie_encoder_decoder": false,
244
+ "tie_word_embeddings": true,
245
+ "tokenizer_class": null,
246
+ "top_k": 50,
247
+ "top_p": 1.0,
248
+ "torch_dtype": null,
249
+ "torchscript": false,
250
+ "transformers_version": "4.27.0.dev0",
251
+ "typical_p": 1.0,
252
+ "use_bfloat16": false
253
+ }
254
+ }
pytorch_model-00001-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f4a89a2be7e4dfb9df01d625de507e05ef7d98802373ecc2b9eef275e3a0e21
3
+ size 9366645070
pytorch_model-00002-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6c798d563cef908391f0dd851e79bf48dd0e3ab1c201ae263adfe5c2b570669
3
+ size 9865471479
pytorch_model-00003-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d531b198e00ec4921d780013e8e8e9d5a33d8f176eb1f0c1870a0990d9ecc46
3
+ size 9989230293
pytorch_model-00004-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e895a309e3feebd4002e85463a2c9e3f5e9f8b222eded51e9697ae300784475
3
+ size 9999745855
pytorch_model-00005-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf66dfbcca32106c3abdece9b6ebfd437388b77d22efdc397e4263b0bfd2c590
3
+ size 9697753745
pytorch_model-00006-of-00006.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:573fc31aa93a65a8f44678aee87fea5d39613b44bcc80886c0b01d25da59855f
3
+ size 526386090
pytorch_model.bin.index.json ADDED
The diff for this file is too large to render. See raw diff