restore
Browse files- config.json +12 -144
config.json
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
"_name_or_path": ".",
|
4 |
"additional_vocab_size": 2,
|
5 |
"alpha_initializer": "zeros",
|
6 |
"alpha_type": "float",
|
@@ -28,158 +27,27 @@
|
|
28 |
"num_attention_heads": 32,
|
29 |
"num_hidden_layers": 32,
|
30 |
"pad_token_id": 0,
|
31 |
-
"perceiver_config": {
|
32 |
-
"_name_or_path": "",
|
33 |
-
"add_cross_attention": false,
|
34 |
-
"architectures": null,
|
35 |
-
"bad_words_ids": null,
|
36 |
-
"begin_suppress_tokens": null,
|
37 |
-
"bos_token_id": null,
|
38 |
-
"chunk_size_feed_forward": 0,
|
39 |
-
"cross_attention_hidden_size": null,
|
40 |
-
"decoder_start_token_id": null,
|
41 |
-
"diversity_penalty": 0.0,
|
42 |
-
"do_sample": false,
|
43 |
-
"early_stopping": false,
|
44 |
-
"encoder_no_repeat_ngram_size": 0,
|
45 |
-
"eos_token_id": null,
|
46 |
-
"exponential_decay_length_penalty": null,
|
47 |
-
"finetuning_task": null,
|
48 |
-
"forced_bos_token_id": null,
|
49 |
-
"forced_eos_token_id": null,
|
50 |
-
"id2label": {
|
51 |
-
"0": "LABEL_0",
|
52 |
-
"1": "LABEL_1"
|
53 |
-
},
|
54 |
-
"is_decoder": false,
|
55 |
-
"is_encoder_decoder": false,
|
56 |
-
"label2id": {
|
57 |
-
"LABEL_0": 0,
|
58 |
-
"LABEL_1": 1
|
59 |
-
},
|
60 |
-
"length_penalty": 1.0,
|
61 |
-
"max_length": 20,
|
62 |
-
"min_length": 0,
|
63 |
-
"model_type": "idefics",
|
64 |
-
"no_repeat_ngram_size": 0,
|
65 |
-
"num_beam_groups": 1,
|
66 |
-
"num_beams": 1,
|
67 |
-
"num_return_sequences": 1,
|
68 |
-
"output_attentions": false,
|
69 |
-
"output_hidden_states": false,
|
70 |
-
"output_scores": false,
|
71 |
-
"pad_token_id": null,
|
72 |
-
"prefix": null,
|
73 |
-
"problem_type": null,
|
74 |
-
"pruned_heads": {},
|
75 |
-
"qk_layer_norms_perceiver": true,
|
76 |
-
"remove_invalid_values": false,
|
77 |
-
"repetition_penalty": 1.0,
|
78 |
-
"resampler_depth": 6,
|
79 |
-
"resampler_head_dim": 96,
|
80 |
-
"resampler_n_heads": 16,
|
81 |
-
"resampler_n_latents": 64,
|
82 |
-
"return_dict": true,
|
83 |
-
"return_dict_in_generate": false,
|
84 |
-
"sep_token_id": null,
|
85 |
-
"suppress_tokens": null,
|
86 |
-
"task_specific_params": null,
|
87 |
-
"temperature": 1.0,
|
88 |
-
"tf_legacy_loss": false,
|
89 |
-
"tie_encoder_decoder": false,
|
90 |
-
"tie_word_embeddings": true,
|
91 |
-
"tokenizer_class": null,
|
92 |
-
"top_k": 50,
|
93 |
-
"top_p": 1.0,
|
94 |
-
"torch_dtype": null,
|
95 |
-
"torchscript": false,
|
96 |
-
"transformers_version": "4.32.0.dev0",
|
97 |
-
"typical_p": 1.0,
|
98 |
-
"use_bfloat16": false,
|
99 |
-
"use_resampler": false
|
100 |
-
},
|
101 |
"qk_layer_norms": true,
|
102 |
"rms_norm_eps": 1e-06,
|
103 |
"tie_word_embeddings": false,
|
104 |
-
"torch_dtype": "
|
105 |
"transformers_version": "4.28.0.dev0",
|
106 |
"use_cache": true,
|
107 |
"use_resampler": true,
|
|
|
108 |
"vision_config": {
|
109 |
-
"_name_or_path": "",
|
110 |
-
"add_cross_attention": false,
|
111 |
-
"architectures": null,
|
112 |
-
"attention_dropout": 0.0,
|
113 |
-
"bad_words_ids": null,
|
114 |
-
"begin_suppress_tokens": null,
|
115 |
-
"bos_token_id": null,
|
116 |
-
"chunk_size_feed_forward": 0,
|
117 |
-
"cross_attention_hidden_size": null,
|
118 |
-
"decoder_start_token_id": null,
|
119 |
-
"diversity_penalty": 0.0,
|
120 |
-
"do_sample": false,
|
121 |
-
"early_stopping": false,
|
122 |
"embed_dim": 1280,
|
123 |
-
"encoder_no_repeat_ngram_size": 0,
|
124 |
-
"eos_token_id": null,
|
125 |
-
"exponential_decay_length_penalty": null,
|
126 |
-
"finetuning_task": null,
|
127 |
-
"forced_bos_token_id": null,
|
128 |
-
"forced_eos_token_id": null,
|
129 |
-
"hidden_act": "quick_gelu",
|
130 |
-
"id2label": {
|
131 |
-
"0": "LABEL_0",
|
132 |
-
"1": "LABEL_1"
|
133 |
-
},
|
134 |
"image_size": 224,
|
135 |
-
"initializer_factor": 1.0,
|
136 |
-
"initializer_range": 0.02,
|
137 |
"intermediate_size": 5120,
|
138 |
-
"is_decoder": false,
|
139 |
-
"is_encoder_decoder": false,
|
140 |
-
"label2id": {
|
141 |
-
"LABEL_0": 0,
|
142 |
-
"LABEL_1": 1
|
143 |
-
},
|
144 |
-
"layer_norm_eps": 1e-05,
|
145 |
-
"length_penalty": 1.0,
|
146 |
-
"max_length": 20,
|
147 |
-
"min_length": 0,
|
148 |
-
"model_type": "idefics",
|
149 |
-
"no_repeat_ngram_size": 0,
|
150 |
-
"num_attention_heads": 16,
|
151 |
-
"num_beam_groups": 1,
|
152 |
-
"num_beams": 1,
|
153 |
-
"num_channels": 3,
|
154 |
-
"num_hidden_layers": 32,
|
155 |
-
"num_return_sequences": 1,
|
156 |
-
"output_attentions": false,
|
157 |
-
"output_hidden_states": false,
|
158 |
-
"output_scores": false,
|
159 |
-
"pad_token_id": null,
|
160 |
"patch_size": 14,
|
161 |
-
"
|
162 |
-
"
|
163 |
-
"pruned_heads": {},
|
164 |
-
"remove_invalid_values": false,
|
165 |
-
"repetition_penalty": 1.0,
|
166 |
-
"return_dict": true,
|
167 |
-
"return_dict_in_generate": false,
|
168 |
-
"sep_token_id": null,
|
169 |
-
"suppress_tokens": null,
|
170 |
-
"task_specific_params": null,
|
171 |
-
"temperature": 1.0,
|
172 |
-
"tf_legacy_loss": false,
|
173 |
-
"tie_encoder_decoder": false,
|
174 |
-
"tie_word_embeddings": true,
|
175 |
-
"tokenizer_class": null,
|
176 |
-
"top_k": 50,
|
177 |
-
"top_p": 1.0,
|
178 |
-
"torch_dtype": null,
|
179 |
-
"torchscript": false,
|
180 |
-
"transformers_version": "4.32.0.dev0",
|
181 |
-
"typical_p": 1.0,
|
182 |
-
"use_bfloat16": false
|
183 |
},
|
184 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "None",
|
|
|
3 |
"additional_vocab_size": 2,
|
4 |
"alpha_initializer": "zeros",
|
5 |
"alpha_type": "float",
|
|
|
27 |
"num_attention_heads": 32,
|
28 |
"num_hidden_layers": 32,
|
29 |
"pad_token_id": 0,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
"qk_layer_norms": true,
|
31 |
"rms_norm_eps": 1e-06,
|
32 |
"tie_word_embeddings": false,
|
33 |
+
"torch_dtype": "bfloat16",
|
34 |
"transformers_version": "4.28.0.dev0",
|
35 |
"use_cache": true,
|
36 |
"use_resampler": true,
|
37 |
+
"vocab_size": 32000,
|
38 |
"vision_config": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
"embed_dim": 1280,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
"image_size": 224,
|
|
|
|
|
41 |
"intermediate_size": 5120,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
"patch_size": 14,
|
43 |
+
"num_attention_heads": 16,
|
44 |
+
"num_hidden_layers": 32
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
},
|
46 |
+
"perceiver_config": {
|
47 |
+
"qk_layer_norms_perceiver": true,
|
48 |
+
"resampler_depth": 6,
|
49 |
+
"resampler_head_dim": 96,
|
50 |
+
"resampler_n_heads": 16,
|
51 |
+
"resampler_n_latents": 64
|
52 |
+
}
|
53 |
}
|