Mediocreatmybest commited on
Commit
cc0aa8e
1 Parent(s): 44f7175

Upload Blip2ForConditionalGeneration

Browse files
config.json ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": "f998da12f28eb37d7e7f080cfe3291d6d9d7e1fb",
3
+ "_name_or_path": "Salesforce/blip2-opt-6.7b",
4
+ "architectures": [
5
+ "Blip2ForConditionalGeneration"
6
+ ],
7
+ "initializer_factor": 1.0,
8
+ "initializer_range": 0.02,
9
+ "model_type": "blip-2",
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
+ "classifier_dropout": null,
21
+ "cross_attention_frequency": 2,
22
+ "cross_attention_hidden_size": null,
23
+ "decoder_start_token_id": null,
24
+ "diversity_penalty": 0.0,
25
+ "do_sample": false,
26
+ "early_stopping": false,
27
+ "encoder_hidden_size": 1408,
28
+ "encoder_no_repeat_ngram_size": 0,
29
+ "eos_token_id": null,
30
+ "exponential_decay_length_penalty": null,
31
+ "finetuning_task": null,
32
+ "forced_bos_token_id": null,
33
+ "forced_eos_token_id": null,
34
+ "hidden_act": "gelu",
35
+ "hidden_dropout_prob": 0.1,
36
+ "hidden_size": 768,
37
+ "id2label": {
38
+ "0": "LABEL_0",
39
+ "1": "LABEL_1"
40
+ },
41
+ "initializer_range": 0.02,
42
+ "intermediate_size": 3072,
43
+ "is_decoder": false,
44
+ "is_encoder_decoder": false,
45
+ "label2id": {
46
+ "LABEL_0": 0,
47
+ "LABEL_1": 1
48
+ },
49
+ "layer_norm_eps": 1e-12,
50
+ "length_penalty": 1.0,
51
+ "max_length": 20,
52
+ "max_position_embeddings": 512,
53
+ "min_length": 0,
54
+ "model_type": "blip_2_qformer",
55
+ "no_repeat_ngram_size": 0,
56
+ "num_attention_heads": 12,
57
+ "num_beam_groups": 1,
58
+ "num_beams": 1,
59
+ "num_hidden_layers": 12,
60
+ "num_return_sequences": 1,
61
+ "output_attentions": false,
62
+ "output_hidden_states": false,
63
+ "output_scores": false,
64
+ "pad_token_id": 0,
65
+ "position_embedding_type": "absolute",
66
+ "prefix": null,
67
+ "problem_type": null,
68
+ "pruned_heads": {},
69
+ "remove_invalid_values": false,
70
+ "repetition_penalty": 1.0,
71
+ "return_dict": true,
72
+ "return_dict_in_generate": false,
73
+ "sep_token_id": null,
74
+ "suppress_tokens": null,
75
+ "task_specific_params": null,
76
+ "temperature": 1.0,
77
+ "tf_legacy_loss": false,
78
+ "tie_encoder_decoder": false,
79
+ "tie_word_embeddings": true,
80
+ "tokenizer_class": null,
81
+ "top_k": 50,
82
+ "top_p": 1.0,
83
+ "torch_dtype": null,
84
+ "torchscript": false,
85
+ "transformers_version": "4.30.2",
86
+ "typical_p": 1.0,
87
+ "use_bfloat16": false,
88
+ "vocab_size": 30522
89
+ },
90
+ "quantization_config": {
91
+ "bnb_4bit_compute_dtype": "float32",
92
+ "bnb_4bit_quant_type": "fp4",
93
+ "bnb_4bit_use_double_quant": false,
94
+ "llm_int8_enable_fp32_cpu_offload": false,
95
+ "llm_int8_has_fp16_weight": false,
96
+ "llm_int8_skip_modules": null,
97
+ "llm_int8_threshold": 6.0,
98
+ "load_in_4bit": false,
99
+ "load_in_8bit": true
100
+ },
101
+ "text_config": {
102
+ "_name_or_path": "",
103
+ "_remove_final_layer_norm": false,
104
+ "activation_dropout": 0.0,
105
+ "activation_function": "relu",
106
+ "add_cross_attention": false,
107
+ "architectures": [
108
+ "OPTForCausalLM"
109
+ ],
110
+ "attention_dropout": 0.0,
111
+ "bad_words_ids": null,
112
+ "begin_suppress_tokens": null,
113
+ "bos_token_id": 2,
114
+ "chunk_size_feed_forward": 0,
115
+ "cross_attention_hidden_size": null,
116
+ "decoder_start_token_id": null,
117
+ "diversity_penalty": 0.0,
118
+ "do_layer_norm_before": true,
119
+ "do_sample": false,
120
+ "dropout": 0.1,
121
+ "early_stopping": false,
122
+ "enable_bias": true,
123
+ "encoder_no_repeat_ngram_size": 0,
124
+ "eos_token_id": 50118,
125
+ "exponential_decay_length_penalty": null,
126
+ "ffn_dim": 16384,
127
+ "finetuning_task": null,
128
+ "forced_bos_token_id": null,
129
+ "forced_eos_token_id": null,
130
+ "hidden_size": 4096,
131
+ "id2label": {
132
+ "0": "LABEL_0",
133
+ "1": "LABEL_1"
134
+ },
135
+ "init_std": 0.02,
136
+ "is_decoder": false,
137
+ "is_encoder_decoder": false,
138
+ "label2id": {
139
+ "LABEL_0": 0,
140
+ "LABEL_1": 1
141
+ },
142
+ "layer_norm_elementwise_affine": true,
143
+ "layerdrop": 0.0,
144
+ "length_penalty": 1.0,
145
+ "max_length": 20,
146
+ "max_position_embeddings": 2048,
147
+ "min_length": 0,
148
+ "model_type": "opt",
149
+ "no_repeat_ngram_size": 0,
150
+ "num_attention_heads": 32,
151
+ "num_beam_groups": 1,
152
+ "num_beams": 1,
153
+ "num_hidden_layers": 32,
154
+ "num_return_sequences": 1,
155
+ "output_attentions": false,
156
+ "output_hidden_states": false,
157
+ "output_scores": false,
158
+ "pad_token_id": 1,
159
+ "prefix": "</s>",
160
+ "problem_type": null,
161
+ "pruned_heads": {},
162
+ "remove_invalid_values": false,
163
+ "repetition_penalty": 1.0,
164
+ "return_dict": true,
165
+ "return_dict_in_generate": false,
166
+ "sep_token_id": null,
167
+ "suppress_tokens": null,
168
+ "task_specific_params": null,
169
+ "temperature": 1.0,
170
+ "tf_legacy_loss": false,
171
+ "tie_encoder_decoder": false,
172
+ "tie_word_embeddings": true,
173
+ "tokenizer_class": null,
174
+ "top_k": 50,
175
+ "top_p": 1.0,
176
+ "torch_dtype": "float16",
177
+ "torchscript": false,
178
+ "transformers_version": "4.30.2",
179
+ "typical_p": 1.0,
180
+ "use_bfloat16": false,
181
+ "use_cache": true,
182
+ "vocab_size": 50272,
183
+ "word_embed_proj_dim": 4096
184
+ },
185
+ "torch_dtype": "float16",
186
+ "transformers_version": null,
187
+ "use_decoder_only_language_model": true,
188
+ "vision_config": {
189
+ "_name_or_path": "",
190
+ "add_cross_attention": false,
191
+ "architectures": null,
192
+ "attention_dropout": 0.0,
193
+ "bad_words_ids": null,
194
+ "begin_suppress_tokens": null,
195
+ "bos_token_id": null,
196
+ "chunk_size_feed_forward": 0,
197
+ "cross_attention_hidden_size": null,
198
+ "decoder_start_token_id": null,
199
+ "diversity_penalty": 0.0,
200
+ "do_sample": false,
201
+ "dropout": 0.0,
202
+ "early_stopping": false,
203
+ "encoder_no_repeat_ngram_size": 0,
204
+ "eos_token_id": null,
205
+ "exponential_decay_length_penalty": null,
206
+ "finetuning_task": null,
207
+ "forced_bos_token_id": null,
208
+ "forced_eos_token_id": null,
209
+ "hidden_act": "gelu",
210
+ "hidden_size": 1408,
211
+ "id2label": {
212
+ "0": "LABEL_0",
213
+ "1": "LABEL_1"
214
+ },
215
+ "image_size": 224,
216
+ "initializer_factor": 1.0,
217
+ "initializer_range": 1e-10,
218
+ "intermediate_size": 6144,
219
+ "is_decoder": false,
220
+ "is_encoder_decoder": false,
221
+ "label2id": {
222
+ "LABEL_0": 0,
223
+ "LABEL_1": 1
224
+ },
225
+ "layer_norm_eps": 1e-05,
226
+ "length_penalty": 1.0,
227
+ "max_length": 20,
228
+ "min_length": 0,
229
+ "model_type": "blip_2_vision_model",
230
+ "no_repeat_ngram_size": 0,
231
+ "num_attention_heads": 16,
232
+ "num_beam_groups": 1,
233
+ "num_beams": 1,
234
+ "num_channels": 3,
235
+ "num_hidden_layers": 39,
236
+ "num_return_sequences": 1,
237
+ "output_attentions": false,
238
+ "output_hidden_states": false,
239
+ "output_scores": false,
240
+ "pad_token_id": null,
241
+ "patch_size": 14,
242
+ "prefix": null,
243
+ "problem_type": null,
244
+ "projection_dim": 512,
245
+ "pruned_heads": {},
246
+ "qkv_bias": true,
247
+ "remove_invalid_values": false,
248
+ "repetition_penalty": 1.0,
249
+ "return_dict": true,
250
+ "return_dict_in_generate": false,
251
+ "sep_token_id": null,
252
+ "suppress_tokens": null,
253
+ "task_specific_params": null,
254
+ "temperature": 1.0,
255
+ "tf_legacy_loss": false,
256
+ "tie_encoder_decoder": false,
257
+ "tie_word_embeddings": true,
258
+ "tokenizer_class": null,
259
+ "top_k": 50,
260
+ "top_p": 1.0,
261
+ "torch_dtype": null,
262
+ "torchscript": false,
263
+ "transformers_version": "4.30.2",
264
+ "typical_p": 1.0,
265
+ "use_bfloat16": false
266
+ }
267
+ }
pytorch_model-00001-of-00002.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:664aed8a3829059a28a7b75a53ac55e317ed1297227fc285002822375551cdec
3
+ size 9967892291
pytorch_model-00002-of-00002.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4547891df7d91fbe75b48286622ad9d52ed59b28721dd645f445e6bd23548adc
3
+ size 5538025617
pytorch_model.bin.index.json ADDED
The diff for this file is too large to render. See raw diff