Upload config.json
Browse files- config.json +54 -0
config.json
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "None",
|
3 |
+
"additional_vocab_size": 2,
|
4 |
+
"alpha_initializer": "zeros",
|
5 |
+
"alpha_type": "float",
|
6 |
+
"alphas_initializer_range": 0.0,
|
7 |
+
"architectures": [
|
8 |
+
"IdeficsForVisionText2Text"
|
9 |
+
],
|
10 |
+
"bos_token_id": 1,
|
11 |
+
"cross_layer_activation_function": "swiglu",
|
12 |
+
"cross_layer_interval": 4,
|
13 |
+
"dropout": 0.0,
|
14 |
+
"eos_token_id": 2,
|
15 |
+
"freeze_lm_head": false,
|
16 |
+
"freeze_text_layers": false,
|
17 |
+
"freeze_text_module_exceptions": [],
|
18 |
+
"freeze_vision_layers": false,
|
19 |
+
"freeze_vision_module_exceptions": [],
|
20 |
+
"hidden_act": "silu",
|
21 |
+
"hidden_size": 4096,
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 11008,
|
24 |
+
"max_position_embeddings": 2048,
|
25 |
+
"max_sequence_length": 2048,
|
26 |
+
"model_type": "idefics",
|
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 |
+
"hidden_act": "gelu",
|
40 |
+
"embed_dim": 1280,
|
41 |
+
"image_size": 224,
|
42 |
+
"intermediate_size": 5120,
|
43 |
+
"patch_size": 14,
|
44 |
+
"num_attention_heads": 16,
|
45 |
+
"num_hidden_layers": 32
|
46 |
+
},
|
47 |
+
"perceiver_config": {
|
48 |
+
"qk_layer_norms_perceiver": true,
|
49 |
+
"resampler_depth": 6,
|
50 |
+
"resampler_head_dim": 96,
|
51 |
+
"resampler_n_heads": 16,
|
52 |
+
"resampler_n_latents": 64
|
53 |
+
}
|
54 |
+
}
|