File size: 4,268 Bytes
3324e42 0acd546 3324e42 0acd546 3324e42 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | {
"architectures": [
"MiniMaxM3SparseForConditionalGeneration"
],
"auto_map": {
"AutoConfig": "configuration_minimax_m3_vl.MiniMaxM3VLConfig"
},
"model_type": "minimax_m3_vl",
"text_config": {
"hidden_size": 32,
"intermediate_size": 32,
"num_hidden_layers": 8,
"num_attention_heads": 1,
"num_key_value_heads": 1,
"head_dim": 32,
"vocab_size": 200064,
"max_position_embeddings": 1048576,
"rms_norm_eps": 1e-06,
"use_gemma_norm": true,
"attention_output_gate": false,
"rope_theta": 10000000,
"rotary_dim": 32,
"partial_rotary_factor": 0.5,
"hidden_act": "swigluoai",
"use_qk_norm": true,
"tie_word_embeddings": false,
"dense_intermediate_size": 64,
"shared_intermediate_size": 32,
"num_local_experts": 128,
"num_experts_per_tok": 4,
"n_shared_experts": 1,
"scoring_func": "sigmoid",
"use_routing_bias": true,
"moe_layer_freq": [
0,
0,
0,
1,
1,
1,
1,
1
],
"qk_norm_type": "per_head",
"swiglu_alpha": 1.702,
"swiglu_limit": 7.0,
"routed_scaling_factor": 2.0,
"sparse_attention_config": {
"use_sparse_attention": true,
"sparse_index_dim": 32,
"sparse_num_index_heads": 1,
"sparse_topk_blocks": 1,
"sparse_block_size": 32,
"sparse_score_type": "max",
"sparse_init_block": 0,
"sparse_local_block": 1,
"sparse_attention_freq": [
1,
1,
1,
1,
1,
1,
1,
1
],
"sparse_disable_index_value": [
1,
1,
1,
1,
1,
1,
1,
1
]
},
"architectures": [
"MiniMaxM3SparseForCausalLM"
]
},
"vision_config": {
"hidden_size": 64,
"num_attention_heads": 2,
"num_hidden_layers": 2,
"intermediate_size": 128,
"patch_size": 14,
"image_size": 28,
"projection_dim": 32,
"position_embedding_type": "rope",
"rope_mode": "3d",
"rope_theta": 10000.0,
"attention_dropout": 0.0,
"hidden_act": "gelu",
"initializer_factor": 1.0,
"initializer_range": 0.02,
"layer_norm_eps": 1e-05,
"model_type": "clip_vision_model",
"num_channels": 3,
"vocab_size": 32000,
"img_token_compression_config": {
"image_token_compression_method": "patch_merge",
"spatial_merge_size": 2,
"temporal_patch_size": 2
},
"vision_segment_max_frames": 4
},
"img_token_compression_config": {
"image_token_compression_method": "patch_merge",
"spatial_merge_size": 2,
"temporal_patch_size": 2
},
"image_grid_pinpoints": "[(336, 336), (336, 672), (336, 1008), (336, 1344), (336, 1680), (336, 2016), (672, 336), (672, 672), (672, 1008), (672, 1344), (672, 1680), (672, 2016), (1008, 336), (1008, 672), (1008, 1008), (1008, 1344), (1008, 1680), (1008, 2016), (1344, 336), (1344, 672), (1344, 1008), (1344, 1344), (1344, 1680), (1344, 2016), (1680, 336), (1680, 672), (1680, 1008), (1680, 1344), (1680, 1680), (1680, 2016), (2016, 336), (2016, 672), (2016, 1008), (2016, 1344), (2016, 1680), (2016, 2016)]",
"image_seq_length": 576,
"image_token_index": 200025,
"video_token_index": 200026,
"multimodal_projector_bias": true,
"num_reward_heads": 0,
"process_image_mode": "dynamic_res",
"projector_hidden_act": "gelu",
"vision_feature_layer": -1,
"vision_feature_select_strategy": "full",
"torch_dtype": "bfloat16",
"transformers_version": "4.52.4",
"projector_hidden_size": 32,
"quantization_config": {
"quant_method": "mxfp8",
"activation_scheme": "dynamic",
"weight_block_size": [
1,
32
],
"ignored_layers": [
"language_model.model.embed_tokens",
"language_model.lm_head",
"vision_tower",
"multi_modal_projector",
"language_model.model.layers.3.block_sparse_moe.gate",
"language_model.model.layers.4.block_sparse_moe.gate",
"language_model.model.layers.5.block_sparse_moe.gate",
"language_model.model.layers.6.block_sparse_moe.gate",
"language_model.model.layers.7.block_sparse_moe.gate"
],
"group_size": 16,
"moe_quant_algo": "NVFP4",
"moe_quant_format": "nvfp4-pack-quantized"
}
}
|