Add files using upload-large-folder tool
Browse files- config.json +48 -0
- preprocessor_config.json +29 -0
config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Ernie4_5_VLMoeForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"hidden_act": "silu",
|
| 6 |
+
"hidden_size": 8192,
|
| 7 |
+
"intermediate_size": 28672,
|
| 8 |
+
"max_position_embeddings": 131072,
|
| 9 |
+
"num_attention_heads": 64,
|
| 10 |
+
"num_key_value_heads": 8,
|
| 11 |
+
"num_hidden_layers": 54,
|
| 12 |
+
"model_type": "ernie4_5_moe_vl",
|
| 13 |
+
"rms_norm_eps": 1e-05,
|
| 14 |
+
"vocab_size": 103424,
|
| 15 |
+
"rope_theta": 500000,
|
| 16 |
+
"use_rmsnorm": true,
|
| 17 |
+
"use_bias": false,
|
| 18 |
+
"moe_layer_start_index": 3,
|
| 19 |
+
"moe_capacity": [64,64,64],
|
| 20 |
+
"moe_gate": "topk",
|
| 21 |
+
"moe_k": 8,
|
| 22 |
+
"moe_layer_interval": 1,
|
| 23 |
+
"loss_subbatch_seqlen": 8192,
|
| 24 |
+
"rope_3d": true,
|
| 25 |
+
"freq_allocation": 20,
|
| 26 |
+
"spatial_conv_size": 2,
|
| 27 |
+
"temporal_conv_size": 2,
|
| 28 |
+
"moe_use_aux_free": true,
|
| 29 |
+
"moe_num_experts": [64, 64],
|
| 30 |
+
"moe_intermediate_size": [3584, 1536],
|
| 31 |
+
"dtype": "bfloat16",
|
| 32 |
+
"tie_word_embeddings": false,
|
| 33 |
+
"vision_config": {
|
| 34 |
+
"attn_implementation": "eager",
|
| 35 |
+
"depth": 32,
|
| 36 |
+
"embed_dim": 1280,
|
| 37 |
+
"hidden_act": "quick_gelu",
|
| 38 |
+
"hidden_size": 1280,
|
| 39 |
+
"in_channels": 3,
|
| 40 |
+
"in_chans": 3,
|
| 41 |
+
"mlp_ratio": 4,
|
| 42 |
+
"num_heads": 16,
|
| 43 |
+
"patch_size": 14,
|
| 44 |
+
"spatial_merge_size": 2,
|
| 45 |
+
"spatial_patch_size": 14,
|
| 46 |
+
"attn_sep": true
|
| 47 |
+
}
|
| 48 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 224,
|
| 4 |
+
"width": 224
|
| 5 |
+
},
|
| 6 |
+
"do_center_crop": false,
|
| 7 |
+
"do_convert_rgb": true,
|
| 8 |
+
"do_normalize": true,
|
| 9 |
+
"do_rescale": true,
|
| 10 |
+
"do_resize": true,
|
| 11 |
+
"image_mean": [
|
| 12 |
+
0.48145466,
|
| 13 |
+
0.4578275,
|
| 14 |
+
0.40821073
|
| 15 |
+
],
|
| 16 |
+
"image_std": [
|
| 17 |
+
0.26862954,
|
| 18 |
+
0.26130258,
|
| 19 |
+
0.27577711
|
| 20 |
+
],
|
| 21 |
+
"resample": 3,
|
| 22 |
+
"rescale_factor": 0.00392156862745098,
|
| 23 |
+
"size": {
|
| 24 |
+
"height": 224,
|
| 25 |
+
"width": 224
|
| 26 |
+
},
|
| 27 |
+
"min_pixels": 3136,
|
| 28 |
+
"max_pixels": 4816896
|
| 29 |
+
}
|