bert4torch_config / openbmb /MiniCPM-V-2_6 /bert4torch_config.json
Tongjilibo's picture
调整为所属文件夹
7e27337
{
"model": "minicpmv",
"hidden_act": "silu",
"attention_probs_dropout_prob": 0.0,
"bos_token_id": 151643,
"eos_token_id": 151645,
"intermediate_size": 18944,
"initializer_range": 0.02,
"layer_norm_eps": 1e-06,
"hidden_size": 3584,
"num_attention_heads": 28,
"num_hidden_layers": 28,
"num_key_value_heads": 4,
"rope_theta": 1000000.0,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"_attn_implementation": "sdpa",
"is_causal": true,
"vocab_size": 151666,
"segment_vocab_size": 0,
"skip_init": true,
"rope_rank": "updown",
"max_position_embeddings": 32768,
"sliding_window": 131072,
"max_window_layers": 28,
"convert_lm_logits_dtype": "float32",
"generation_config": {"tokenizer_config": {"skip_special_tokens": true}, "eos_token_id": [151643, 151645],
"max_length": 32768},
"use_image_id": true,
"batch_vision_input": true,
"drop_vision_last_layer": false,
"vision_batch_size": 16,
"image_size": 448,
"patch_size": 14,
"query_num": 64,
"slice_config": {
"max_slice_nums": 9,
"patch_size": 14,
"model_type": "minicpmv"
},
"slice_mode": true,
"vision_config": {
"hidden_size": 1152,
"image_size": 980,
"intermediate_size": 4304,
"model_type": "siglip",
"num_attention_heads": 16,
"num_hidden_layers": 27,
"patch_size": 14
}
}