Transformers
PyTorch
flava
pretraining
Inference Endpoints
Amanpreet Singh commited on
Commit
47dd2ba
1 Parent(s): 336656f

Add first version of flava full model

Browse files
Files changed (2) hide show
  1. config.json +249 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "FlavaForPretraining"
4
+ ],
5
+ "ce_ignore_index": -100,
6
+ "global_backprop_contrastive": true,
7
+ "global_contrastive_weight": 1.0,
8
+ "hidden_size": 768,
9
+ "image_config": {
10
+ "_name_or_path": "",
11
+ "add_cross_attention": false,
12
+ "architectures": null,
13
+ "attention_probs_dropout_prob": 0.0,
14
+ "bad_words_ids": null,
15
+ "bos_token_id": null,
16
+ "chunk_size_feed_forward": 0,
17
+ "cross_attention_hidden_size": null,
18
+ "decoder_start_token_id": null,
19
+ "diversity_penalty": 0.0,
20
+ "do_sample": false,
21
+ "early_stopping": false,
22
+ "encoder_no_repeat_ngram_size": 0,
23
+ "encoder_stride": 16,
24
+ "eos_token_id": null,
25
+ "exponential_decay_length_penalty": null,
26
+ "finetuning_task": null,
27
+ "forced_bos_token_id": null,
28
+ "forced_eos_token_id": null,
29
+ "hidden_act": "gelu",
30
+ "hidden_dropout_prob": 0.0,
31
+ "hidden_size": 768,
32
+ "id2label": {
33
+ "0": "LABEL_0",
34
+ "1": "LABEL_1"
35
+ },
36
+ "image_size": 224,
37
+ "initializer_range": 0.02,
38
+ "intermediate_size": 3072,
39
+ "is_decoder": false,
40
+ "is_encoder_decoder": false,
41
+ "label2id": {
42
+ "LABEL_0": 0,
43
+ "LABEL_1": 1
44
+ },
45
+ "layer_norm_eps": 1e-12,
46
+ "length_penalty": 1.0,
47
+ "mask_token": true,
48
+ "max_length": 20,
49
+ "min_length": 0,
50
+ "model_type": "flava_image_model",
51
+ "no_repeat_ngram_size": 0,
52
+ "num_attention_heads": 12,
53
+ "num_beam_groups": 1,
54
+ "num_beams": 1,
55
+ "num_channels": 3,
56
+ "num_hidden_layers": 12,
57
+ "num_return_sequences": 1,
58
+ "output_attentions": false,
59
+ "output_hidden_states": false,
60
+ "output_scores": false,
61
+ "pad_token_id": null,
62
+ "patch_size": 16,
63
+ "prefix": null,
64
+ "problem_type": null,
65
+ "pruned_heads": {},
66
+ "qkv_bias": true,
67
+ "remove_invalid_values": false,
68
+ "repetition_penalty": 1.0,
69
+ "return_dict": true,
70
+ "return_dict_in_generate": false,
71
+ "sep_token_id": null,
72
+ "task_specific_params": null,
73
+ "temperature": 1.0,
74
+ "tie_encoder_decoder": false,
75
+ "tie_word_embeddings": true,
76
+ "tokenizer_class": null,
77
+ "top_k": 50,
78
+ "top_p": 1.0,
79
+ "torch_dtype": null,
80
+ "torchscript": false,
81
+ "transformers_version": "4.18.0.dev0",
82
+ "typical_p": 1.0,
83
+ "use_bfloat16": false,
84
+ "vocab_size": 8192
85
+ },
86
+ "image_config_dict": null,
87
+ "initializer_factor": 1.0,
88
+ "initializer_range": 0.02,
89
+ "itm_weight": 1.0,
90
+ "layer_norm_eps": 1e-12,
91
+ "logit_scale_init_value": 2.6592,
92
+ "mim_weight": 1.0,
93
+ "mlm_weight": 1.0,
94
+ "mmm_image_weight": 1.0,
95
+ "mmm_text_weight": 1.0,
96
+ "model_type": "flava",
97
+ "multimodal_config": {
98
+ "_name_or_path": "",
99
+ "add_cross_attention": false,
100
+ "architectures": null,
101
+ "attention_probs_dropout_prob": 0.0,
102
+ "bad_words_ids": null,
103
+ "bos_token_id": null,
104
+ "chunk_size_feed_forward": 0,
105
+ "cross_attention_hidden_size": null,
106
+ "decoder_start_token_id": null,
107
+ "diversity_penalty": 0.0,
108
+ "do_sample": false,
109
+ "early_stopping": false,
110
+ "encoder_no_repeat_ngram_size": 0,
111
+ "eos_token_id": null,
112
+ "exponential_decay_length_penalty": null,
113
+ "finetuning_task": null,
114
+ "forced_bos_token_id": null,
115
+ "forced_eos_token_id": null,
116
+ "hidden_act": "gelu",
117
+ "hidden_dropout_prob": 0.0,
118
+ "hidden_size": 768,
119
+ "id2label": {
120
+ "0": "LABEL_0",
121
+ "1": "LABEL_1"
122
+ },
123
+ "initializer_range": 0.02,
124
+ "intermediate_size": 3072,
125
+ "is_decoder": false,
126
+ "is_encoder_decoder": false,
127
+ "label2id": {
128
+ "LABEL_0": 0,
129
+ "LABEL_1": 1
130
+ },
131
+ "layer_norm_eps": 1e-12,
132
+ "length_penalty": 1.0,
133
+ "max_length": 20,
134
+ "min_length": 0,
135
+ "model_type": "flava_multimodal_model",
136
+ "no_repeat_ngram_size": 0,
137
+ "num_attention_heads": 12,
138
+ "num_beam_groups": 1,
139
+ "num_beams": 1,
140
+ "num_hidden_layers": 6,
141
+ "num_return_sequences": 1,
142
+ "output_attentions": false,
143
+ "output_hidden_states": false,
144
+ "output_scores": false,
145
+ "pad_token_id": null,
146
+ "prefix": null,
147
+ "problem_type": null,
148
+ "pruned_heads": {},
149
+ "qkv_bias": true,
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
+ "task_specific_params": null,
156
+ "temperature": 1.0,
157
+ "tie_encoder_decoder": false,
158
+ "tie_word_embeddings": true,
159
+ "tokenizer_class": null,
160
+ "top_k": 50,
161
+ "top_p": 1.0,
162
+ "torch_dtype": null,
163
+ "torchscript": false,
164
+ "transformers_version": "4.18.0.dev0",
165
+ "typical_p": 1.0,
166
+ "use_bfloat16": false,
167
+ "use_cls_token": true
168
+ },
169
+ "multimodal_config_dict": null,
170
+ "projection_dim": 768,
171
+ "text_config": {
172
+ "_name_or_path": "",
173
+ "add_cross_attention": false,
174
+ "architectures": null,
175
+ "attention_probs_dropout_prob": 0.0,
176
+ "bad_words_ids": 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
+ "early_stopping": false,
184
+ "encoder_no_repeat_ngram_size": 0,
185
+ "eos_token_id": null,
186
+ "exponential_decay_length_penalty": null,
187
+ "finetuning_task": null,
188
+ "forced_bos_token_id": null,
189
+ "forced_eos_token_id": null,
190
+ "hidden_act": "gelu",
191
+ "hidden_dropout_prob": 0.0,
192
+ "hidden_size": 768,
193
+ "id2label": {
194
+ "0": "LABEL_0",
195
+ "1": "LABEL_1"
196
+ },
197
+ "initializer_range": 0.02,
198
+ "intermediate_size": 3072,
199
+ "is_decoder": false,
200
+ "is_encoder_decoder": false,
201
+ "label2id": {
202
+ "LABEL_0": 0,
203
+ "LABEL_1": 1
204
+ },
205
+ "layer_norm_eps": 1e-12,
206
+ "length_penalty": 1.0,
207
+ "max_length": 20,
208
+ "max_position_embeddings": 512,
209
+ "min_length": 0,
210
+ "model_type": "flava_text_model",
211
+ "no_repeat_ngram_size": 0,
212
+ "num_attention_heads": 12,
213
+ "num_beam_groups": 1,
214
+ "num_beams": 1,
215
+ "num_hidden_layers": 12,
216
+ "num_return_sequences": 1,
217
+ "output_attentions": false,
218
+ "output_hidden_states": false,
219
+ "output_scores": false,
220
+ "pad_token_id": 0,
221
+ "position_embedding_type": "absolute",
222
+ "prefix": null,
223
+ "problem_type": null,
224
+ "pruned_heads": {},
225
+ "qkv_bias": true,
226
+ "remove_invalid_values": false,
227
+ "repetition_penalty": 1.0,
228
+ "return_dict": true,
229
+ "return_dict_in_generate": false,
230
+ "sep_token_id": null,
231
+ "task_specific_params": null,
232
+ "temperature": 1.0,
233
+ "tie_encoder_decoder": false,
234
+ "tie_word_embeddings": true,
235
+ "tokenizer_class": null,
236
+ "top_k": 50,
237
+ "top_p": 1.0,
238
+ "torch_dtype": null,
239
+ "torchscript": false,
240
+ "transformers_version": "4.18.0.dev0",
241
+ "type_vocab_size": 2,
242
+ "typical_p": 1.0,
243
+ "use_bfloat16": false,
244
+ "vocab_size": 30522
245
+ },
246
+ "text_config_dict": null,
247
+ "torch_dtype": "float32",
248
+ "transformers_version": null
249
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c3d1a84cdda3d63f3820387a234dc7134cb290ddd606ebc8e9732b0fb277c54
3
+ size 1215626631