lyan62 commited on
Commit
89871dd
1 Parent(s): 1f6658f
Files changed (2) hide show
  1. config.json +321 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/ceph/hpc/data/d2024d05-018-users/wenyan/code/RobustCap/checkpoint-88560/config.json",
3
+ "architectures": [
4
+ "SmallCap"
5
+ ],
6
+ "decoder": {
7
+ "_name_or_path": "facebook/opt-350m",
8
+ "_remove_final_layer_norm": false,
9
+ "activation_dropout": 0.0,
10
+ "activation_function": "relu",
11
+ "add_cross_attention": true,
12
+ "architectures": [
13
+ "OPTForCausalLM"
14
+ ],
15
+ "attention_dropout": 0.0,
16
+ "bad_words_ids": null,
17
+ "bos_token_id": 2,
18
+ "chunk_size_feed_forward": 0,
19
+ "cross_attention_hidden_size": null,
20
+ "cross_attention_reduce_factor": 16,
21
+ "decoder_start_token_id": null,
22
+ "diversity_penalty": 0.0,
23
+ "do_layer_norm_before": false,
24
+ "do_sample": false,
25
+ "dropout": 0.1,
26
+ "early_stopping": false,
27
+ "encoder_hidden_size": 768,
28
+ "encoder_no_repeat_ngram_size": 0,
29
+ "eos_token_id": 2,
30
+ "exponential_decay_length_penalty": null,
31
+ "ffn_dim": 4096,
32
+ "finetuning_task": null,
33
+ "forced_bos_token_id": null,
34
+ "forced_eos_token_id": null,
35
+ "hidden_size": 1024,
36
+ "id2label": {
37
+ "0": "LABEL_0",
38
+ "1": "LABEL_1"
39
+ },
40
+ "init_std": 0.02,
41
+ "is_decoder": true,
42
+ "is_encoder_decoder": false,
43
+ "label2id": {
44
+ "LABEL_0": 0,
45
+ "LABEL_1": 1
46
+ },
47
+ "layerdrop": 0.0,
48
+ "length_penalty": 1.0,
49
+ "max_length": 20,
50
+ "max_position_embeddings": 2048,
51
+ "min_length": 0,
52
+ "model_type": "this_opt",
53
+ "no_repeat_ngram_size": 0,
54
+ "num_attention_heads": 16,
55
+ "num_beam_groups": 1,
56
+ "num_beams": 1,
57
+ "num_hidden_layers": 24,
58
+ "num_return_sequences": 1,
59
+ "output_attentions": false,
60
+ "output_hidden_states": false,
61
+ "output_scores": false,
62
+ "pad_token_id": 1,
63
+ "poly_m": 0,
64
+ "prefix": "</s>",
65
+ "problem_type": null,
66
+ "pruned_heads": {},
67
+ "remove_invalid_values": false,
68
+ "repetition_penalty": 1.0,
69
+ "ret_mlp": false,
70
+ "return_dict": true,
71
+ "return_dict_in_generate": false,
72
+ "sep_token_id": null,
73
+ "task_specific_params": null,
74
+ "temperature": 1.0,
75
+ "tf_legacy_loss": false,
76
+ "tie_encoder_decoder": false,
77
+ "tie_word_embeddings": true,
78
+ "tokenizer_class": null,
79
+ "top_k": 50,
80
+ "top_p": 1.0,
81
+ "torch_dtype": "float16",
82
+ "torchscript": false,
83
+ "transformers_version": "4.21.1",
84
+ "typical_p": 1.0,
85
+ "use_bfloat16": false,
86
+ "use_cache": true,
87
+ "vocab_size": 50272,
88
+ "word_embed_proj_dim": 512,
89
+ "xa_first": false
90
+ },
91
+ "encoder": {
92
+ "_name_or_path": "openai/clip-vit-base-patch32",
93
+ "add_cross_attention": false,
94
+ "architectures": [
95
+ "CLIPModel"
96
+ ],
97
+ "bad_words_ids": null,
98
+ "bos_token_id": null,
99
+ "chunk_size_feed_forward": 0,
100
+ "cross_attention_hidden_size": null,
101
+ "decoder_start_token_id": null,
102
+ "diversity_penalty": 0.0,
103
+ "do_sample": false,
104
+ "early_stopping": false,
105
+ "encoder_no_repeat_ngram_size": 0,
106
+ "eos_token_id": null,
107
+ "exponential_decay_length_penalty": null,
108
+ "finetuning_task": null,
109
+ "forced_bos_token_id": null,
110
+ "forced_eos_token_id": null,
111
+ "id2label": {
112
+ "0": "LABEL_0",
113
+ "1": "LABEL_1"
114
+ },
115
+ "initializer_factor": 1.0,
116
+ "is_decoder": false,
117
+ "is_encoder_decoder": false,
118
+ "label2id": {
119
+ "LABEL_0": 0,
120
+ "LABEL_1": 1
121
+ },
122
+ "length_penalty": 1.0,
123
+ "logit_scale_init_value": 2.6592,
124
+ "max_length": 20,
125
+ "min_length": 0,
126
+ "model_type": "clip",
127
+ "no_repeat_ngram_size": 0,
128
+ "num_beam_groups": 1,
129
+ "num_beams": 1,
130
+ "num_return_sequences": 1,
131
+ "output_attentions": false,
132
+ "output_hidden_states": false,
133
+ "output_scores": false,
134
+ "pad_token_id": null,
135
+ "prefix": null,
136
+ "problem_type": null,
137
+ "projection_dim": 512,
138
+ "pruned_heads": {},
139
+ "remove_invalid_values": false,
140
+ "repetition_penalty": 1.0,
141
+ "return_dict": true,
142
+ "return_dict_in_generate": false,
143
+ "sep_token_id": null,
144
+ "task_specific_params": null,
145
+ "temperature": 1.0,
146
+ "text_config": {
147
+ "_name_or_path": "",
148
+ "add_cross_attention": false,
149
+ "architectures": null,
150
+ "attention_dropout": 0.0,
151
+ "bad_words_ids": null,
152
+ "bos_token_id": 0,
153
+ "chunk_size_feed_forward": 0,
154
+ "cross_attention_hidden_size": null,
155
+ "decoder_start_token_id": null,
156
+ "diversity_penalty": 0.0,
157
+ "do_sample": false,
158
+ "dropout": 0.0,
159
+ "early_stopping": false,
160
+ "encoder_no_repeat_ngram_size": 0,
161
+ "eos_token_id": 2,
162
+ "exponential_decay_length_penalty": null,
163
+ "finetuning_task": null,
164
+ "forced_bos_token_id": null,
165
+ "forced_eos_token_id": null,
166
+ "hidden_act": "quick_gelu",
167
+ "hidden_size": 512,
168
+ "id2label": {
169
+ "0": "LABEL_0",
170
+ "1": "LABEL_1"
171
+ },
172
+ "initializer_factor": 1.0,
173
+ "initializer_range": 0.02,
174
+ "intermediate_size": 2048,
175
+ "is_decoder": false,
176
+ "is_encoder_decoder": false,
177
+ "label2id": {
178
+ "LABEL_0": 0,
179
+ "LABEL_1": 1
180
+ },
181
+ "layer_norm_eps": 1e-05,
182
+ "length_penalty": 1.0,
183
+ "max_length": 20,
184
+ "max_position_embeddings": 77,
185
+ "min_length": 0,
186
+ "model_type": "clip_text_model",
187
+ "no_repeat_ngram_size": 0,
188
+ "num_attention_heads": 8,
189
+ "num_beam_groups": 1,
190
+ "num_beams": 1,
191
+ "num_hidden_layers": 12,
192
+ "num_return_sequences": 1,
193
+ "output_attentions": false,
194
+ "output_hidden_states": false,
195
+ "output_scores": false,
196
+ "pad_token_id": 1,
197
+ "prefix": null,
198
+ "problem_type": null,
199
+ "pruned_heads": {},
200
+ "remove_invalid_values": false,
201
+ "repetition_penalty": 1.0,
202
+ "return_dict": true,
203
+ "return_dict_in_generate": false,
204
+ "sep_token_id": null,
205
+ "task_specific_params": null,
206
+ "temperature": 1.0,
207
+ "tf_legacy_loss": false,
208
+ "tie_encoder_decoder": false,
209
+ "tie_word_embeddings": true,
210
+ "tokenizer_class": null,
211
+ "top_k": 50,
212
+ "top_p": 1.0,
213
+ "torch_dtype": null,
214
+ "torchscript": false,
215
+ "transformers_version": "4.21.1",
216
+ "typical_p": 1.0,
217
+ "use_bfloat16": false,
218
+ "vocab_size": 49408
219
+ },
220
+ "text_config_dict": null,
221
+ "tf_legacy_loss": false,
222
+ "tie_encoder_decoder": false,
223
+ "tie_word_embeddings": true,
224
+ "tokenizer_class": null,
225
+ "top_k": 50,
226
+ "top_p": 1.0,
227
+ "torch_dtype": null,
228
+ "torchscript": false,
229
+ "transformers_version": null,
230
+ "typical_p": 1.0,
231
+ "use_bfloat16": false,
232
+ "vision_config": {
233
+ "_name_or_path": "",
234
+ "add_cross_attention": false,
235
+ "architectures": null,
236
+ "attention_dropout": 0.0,
237
+ "bad_words_ids": null,
238
+ "bos_token_id": null,
239
+ "chunk_size_feed_forward": 0,
240
+ "cross_attention_hidden_size": null,
241
+ "decoder_start_token_id": null,
242
+ "diversity_penalty": 0.0,
243
+ "do_sample": false,
244
+ "dropout": 0.0,
245
+ "early_stopping": false,
246
+ "encoder_no_repeat_ngram_size": 0,
247
+ "eos_token_id": null,
248
+ "exponential_decay_length_penalty": null,
249
+ "finetuning_task": null,
250
+ "forced_bos_token_id": null,
251
+ "forced_eos_token_id": null,
252
+ "hidden_act": "quick_gelu",
253
+ "hidden_size": 768,
254
+ "id2label": {
255
+ "0": "LABEL_0",
256
+ "1": "LABEL_1"
257
+ },
258
+ "image_size": 224,
259
+ "initializer_factor": 1.0,
260
+ "initializer_range": 0.02,
261
+ "intermediate_size": 3072,
262
+ "is_decoder": false,
263
+ "is_encoder_decoder": false,
264
+ "label2id": {
265
+ "LABEL_0": 0,
266
+ "LABEL_1": 1
267
+ },
268
+ "layer_norm_eps": 1e-05,
269
+ "length_penalty": 1.0,
270
+ "max_length": 20,
271
+ "min_length": 0,
272
+ "model_type": "clip_vision_model",
273
+ "no_repeat_ngram_size": 0,
274
+ "num_attention_heads": 12,
275
+ "num_beam_groups": 1,
276
+ "num_beams": 1,
277
+ "num_channels": 3,
278
+ "num_hidden_layers": 12,
279
+ "num_return_sequences": 1,
280
+ "output_attentions": false,
281
+ "output_hidden_states": false,
282
+ "output_scores": false,
283
+ "pad_token_id": null,
284
+ "patch_size": 32,
285
+ "prefix": null,
286
+ "problem_type": null,
287
+ "pruned_heads": {},
288
+ "remove_invalid_values": false,
289
+ "repetition_penalty": 1.0,
290
+ "return_dict": true,
291
+ "return_dict_in_generate": false,
292
+ "sep_token_id": null,
293
+ "task_specific_params": null,
294
+ "temperature": 1.0,
295
+ "tf_legacy_loss": false,
296
+ "tie_encoder_decoder": false,
297
+ "tie_word_embeddings": true,
298
+ "tokenizer_class": null,
299
+ "top_k": 50,
300
+ "top_p": 1.0,
301
+ "torch_dtype": null,
302
+ "torchscript": false,
303
+ "transformers_version": "4.21.1",
304
+ "typical_p": 1.0,
305
+ "use_bfloat16": false
306
+ },
307
+ "vision_config_dict": null
308
+ },
309
+ "eos_token_id": 4,
310
+ "is_encoder_decoder": true,
311
+ "k": 4,
312
+ "max_length": 25,
313
+ "model_type": "smallcap",
314
+ "pad_token_id": 328,
315
+ "rag": true,
316
+ "retrieval_encoder": "RN50x64",
317
+ "tie_word_embeddings": false,
318
+ "torch_dtype": "float32",
319
+ "transformers_version": null,
320
+ "vocab_size": 50272
321
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01ffbb3f919882cb4216a559449eab992c7c6ab4830ff441665b16e9e5767961
3
+ size 1800182855