baskra commited on
Commit
bb3fa9a
·
1 Parent(s): 49f7b58

Upload model

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