nielsr HF staff commited on
Commit
968a2ad
1 Parent(s): 291e8a3

Upload InstructBlipForConditionalGeneration

Browse files
config.json ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "architectures": [
4
+ "InstructBlipForConditionalGeneration"
5
+ ],
6
+ "initializer_factor": 1.0,
7
+ "initializer_range": 0.02,
8
+ "model_type": "instructblip",
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": "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.30.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
+ "LLaMAForCausalLM"
94
+ ],
95
+ "bad_words_ids": null,
96
+ "begin_suppress_tokens": null,
97
+ "bos_token_id": 0,
98
+ "chunk_size_feed_forward": 0,
99
+ "cross_attention_hidden_size": null,
100
+ "decoder_start_token_id": null,
101
+ "diversity_penalty": 0.0,
102
+ "do_sample": false,
103
+ "early_stopping": false,
104
+ "encoder_no_repeat_ngram_size": 0,
105
+ "eos_token_id": 1,
106
+ "exponential_decay_length_penalty": null,
107
+ "finetuning_task": null,
108
+ "forced_bos_token_id": null,
109
+ "forced_eos_token_id": null,
110
+ "hidden_act": "silu",
111
+ "hidden_size": 4096,
112
+ "id2label": {
113
+ "0": "LABEL_0",
114
+ "1": "LABEL_1"
115
+ },
116
+ "initializer_range": 0.02,
117
+ "intermediate_size": 11008,
118
+ "is_decoder": false,
119
+ "is_encoder_decoder": false,
120
+ "label2id": {
121
+ "LABEL_0": 0,
122
+ "LABEL_1": 1
123
+ },
124
+ "length_penalty": 1.0,
125
+ "max_length": 20,
126
+ "max_position_embeddings": 2048,
127
+ "max_sequence_length": 2048,
128
+ "min_length": 0,
129
+ "model_type": "llama",
130
+ "no_repeat_ngram_size": 0,
131
+ "num_attention_heads": 32,
132
+ "num_beam_groups": 1,
133
+ "num_beams": 1,
134
+ "num_hidden_layers": 32,
135
+ "num_return_sequences": 1,
136
+ "output_attentions": false,
137
+ "output_hidden_states": false,
138
+ "output_scores": false,
139
+ "pad_token_id": -1,
140
+ "prefix": null,
141
+ "problem_type": null,
142
+ "pruned_heads": {},
143
+ "remove_invalid_values": false,
144
+ "repetition_penalty": 1.0,
145
+ "return_dict": true,
146
+ "return_dict_in_generate": false,
147
+ "rms_norm_eps": 1e-06,
148
+ "sep_token_id": null,
149
+ "suppress_tokens": null,
150
+ "task_specific_params": null,
151
+ "temperature": 1.0,
152
+ "tf_legacy_loss": false,
153
+ "tie_encoder_decoder": false,
154
+ "tie_word_embeddings": false,
155
+ "tokenizer_class": null,
156
+ "top_k": 50,
157
+ "top_p": 1.0,
158
+ "torch_dtype": "float16",
159
+ "torchscript": false,
160
+ "transformers_version": "4.30.0.dev0",
161
+ "typical_p": 1.0,
162
+ "use_bfloat16": false,
163
+ "use_cache": true,
164
+ "vocab_size": 32001
165
+ },
166
+ "tie_word_embeddings": false,
167
+ "torch_dtype": "float32",
168
+ "transformers_version": null,
169
+ "use_decoder_only_language_model": true,
170
+ "vision_config": {
171
+ "_name_or_path": "",
172
+ "add_cross_attention": false,
173
+ "architectures": null,
174
+ "attention_dropout": 0.0,
175
+ "bad_words_ids": null,
176
+ "begin_suppress_tokens": null,
177
+ "bos_token_id": null,
178
+ "chunk_size_feed_forward": 0,
179
+ "cross_attention_hidden_size": null,
180
+ "decoder_start_token_id": null,
181
+ "diversity_penalty": 0.0,
182
+ "do_sample": false,
183
+ "dropout": 0.0,
184
+ "early_stopping": false,
185
+ "encoder_no_repeat_ngram_size": 0,
186
+ "eos_token_id": null,
187
+ "exponential_decay_length_penalty": null,
188
+ "finetuning_task": null,
189
+ "forced_bos_token_id": null,
190
+ "forced_eos_token_id": null,
191
+ "hidden_act": "gelu",
192
+ "hidden_size": 1408,
193
+ "id2label": {
194
+ "0": "LABEL_0",
195
+ "1": "LABEL_1"
196
+ },
197
+ "image_size": 224,
198
+ "initializer_factor": 1.0,
199
+ "initializer_range": 1e-10,
200
+ "intermediate_size": 6144,
201
+ "is_decoder": false,
202
+ "is_encoder_decoder": false,
203
+ "label2id": {
204
+ "LABEL_0": 0,
205
+ "LABEL_1": 1
206
+ },
207
+ "layer_norm_eps": 1e-05,
208
+ "length_penalty": 1.0,
209
+ "max_length": 20,
210
+ "min_length": 0,
211
+ "model_type": "instructblip_vision_model",
212
+ "no_repeat_ngram_size": 0,
213
+ "num_attention_heads": 16,
214
+ "num_beam_groups": 1,
215
+ "num_beams": 1,
216
+ "num_channels": 3,
217
+ "num_hidden_layers": 39,
218
+ "num_return_sequences": 1,
219
+ "output_attentions": false,
220
+ "output_hidden_states": false,
221
+ "output_scores": false,
222
+ "pad_token_id": null,
223
+ "patch_size": 14,
224
+ "prefix": null,
225
+ "problem_type": null,
226
+ "projection_dim": 512,
227
+ "pruned_heads": {},
228
+ "qkv_bias": true,
229
+ "remove_invalid_values": false,
230
+ "repetition_penalty": 1.0,
231
+ "return_dict": true,
232
+ "return_dict_in_generate": false,
233
+ "sep_token_id": null,
234
+ "suppress_tokens": null,
235
+ "task_specific_params": null,
236
+ "temperature": 1.0,
237
+ "tf_legacy_loss": false,
238
+ "tie_encoder_decoder": false,
239
+ "tie_word_embeddings": true,
240
+ "tokenizer_class": null,
241
+ "top_k": 50,
242
+ "top_p": 1.0,
243
+ "torch_dtype": null,
244
+ "torchscript": false,
245
+ "transformers_version": "4.30.0.dev0",
246
+ "typical_p": 1.0,
247
+ "use_bfloat16": false
248
+ }
249
+ }
pytorch_model-00001-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc12d7e2839b496874bc9b07891e707f6e88a3cbf63bb6c6efd30ddf52202bff
3
+ size 9900584575
pytorch_model-00002-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aed0461f4d8351f9df2841c6cbc90edb4587a50ab61c83ba55db14631864caa7
3
+ size 9961947159
pytorch_model-00003-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49d00664a475a75875b398119f528be9d56a7ca297b66852f0967af6979b40cb
3
+ size 9915777391
pytorch_model-00004-of-00004.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bd192538dc3a824d2448d50d1b6c965f0d517e21da952aa8ab31f0e9b23733d
3
+ size 1874958785
pytorch_model.bin.index.json ADDED
The diff for this file is too large to render. See raw diff