Upload config.json with huggingface_hub
Browse files- config.json +53 -0
config.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"MiniCPMVForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"auto_map": {
|
| 6 |
+
"AutoConfig": "configuration_minicpmv.MiniCPMVConfig",
|
| 7 |
+
"AutoModel": "modeling_minicpmv.MiniCPMVForCausalLM",
|
| 8 |
+
"AutoModelForCausalLM": "modeling_minicpmv.MiniCPMVForCausalLM"
|
| 9 |
+
},
|
| 10 |
+
"model_type": "minicpmv",
|
| 11 |
+
"llm_config": {
|
| 12 |
+
"model_type": "minicpm",
|
| 13 |
+
"attention_bias": false,
|
| 14 |
+
"attention_dropout": 0.0,
|
| 15 |
+
"bos_token_id": 1,
|
| 16 |
+
"dim_model_base": 256,
|
| 17 |
+
"eos_token_id": 2,
|
| 18 |
+
"hidden_act": "silu",
|
| 19 |
+
"hidden_size": 2304,
|
| 20 |
+
"initializer_range": 0.1,
|
| 21 |
+
"intermediate_size": 5760,
|
| 22 |
+
"max_position_embeddings": 4096,
|
| 23 |
+
"num_attention_heads": 36,
|
| 24 |
+
"num_hidden_layers": 40,
|
| 25 |
+
"num_key_value_heads": 36,
|
| 26 |
+
"pretraining_tp": 1,
|
| 27 |
+
"rms_norm_eps": 1e-05,
|
| 28 |
+
"rope_scaling": null,
|
| 29 |
+
"rope_theta": 10000.0,
|
| 30 |
+
"scale_depth": 1.4,
|
| 31 |
+
"scale_emb": 12,
|
| 32 |
+
"scale_resolution": 448,
|
| 33 |
+
"tie_word_embeddings": false,
|
| 34 |
+
"use_cache": true,
|
| 35 |
+
"vocab_size": 122753
|
| 36 |
+
},
|
| 37 |
+
"vpm_config": {
|
| 38 |
+
"hidden_size": 1152,
|
| 39 |
+
"image_size": 980,
|
| 40 |
+
"intermediate_size": 4304,
|
| 41 |
+
"model_type": "siglip_vision_model",
|
| 42 |
+
"num_attention_heads": 16,
|
| 43 |
+
"num_hidden_layers": 27,
|
| 44 |
+
"patch_size": 14
|
| 45 |
+
},
|
| 46 |
+
"query_num": 64,
|
| 47 |
+
"drop_vision_last_layer": true,
|
| 48 |
+
"torch_dtype": "bfloat16",
|
| 49 |
+
"slice_mode": true,
|
| 50 |
+
"max_slice_nums": 9,
|
| 51 |
+
"mm_use_im_start_end": true,
|
| 52 |
+
"transformers_version": "4.40.0"
|
| 53 |
+
}
|