qwen3.8-moe-fp8 / config.json
yujiepan's picture
Upload folder using huggingface_hub
5eea276 verified
Raw History Blame Contribute Delete
6.03 kB
{
"architectures": [
"Qwen3_5MoeForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"attn_output_gate": true,
"bos_token_id": 248044,
"dtype": "bfloat16",
"eos_token_id": 248044,
"full_attention_interval": 4,
"head_dim": 64,
"hidden_act": "silu",
"hidden_size": 32,
"initializer_range": 0.02,
"layer_types": [
"linear_attention",
"linear_attention",
"linear_attention",
"full_attention",
"linear_attention",
"linear_attention",
"linear_attention",
"full_attention"
],
"linear_conv_kernel_dim": 4,
"linear_key_head_dim": 128,
"linear_num_key_heads": 2,
"linear_num_value_heads": 16,
"linear_value_head_dim": 128,
"mamba_ssm_dtype": "float32",
"max_position_embeddings": 262144,
"model_type": "qwen3_5_moe_text",
"moe_intermediate_size": 128,
"mtp_num_hidden_layers": 1,
"mtp_use_dedicated_embeddings": false,
"num_attention_heads": 32,
"num_experts": 32,
"num_experts_per_tok": 10,
"num_hidden_layers": 8,
"num_key_value_heads": 2,
"output_gate_type": "swish",
"output_router_logits": false,
"pad_token_id": null,
"partial_rotary_factor": 0.25,
"rms_norm_eps": 1e-06,
"rope_parameters": {
"partial_rotary_factor": 0.25,
"rope_theta": 10000000,
"rope_type": "default"
},
"router_aux_loss_coef": 0.001,
"shared_expert_intermediate_size": 128,
"tie_word_embeddings": false,
"transformers_version": "4.57.3",
"use_cache": true,
"vocab_size": 248320,
"quantization_config": {
"quant_method": "fp8",
"activation_scheme": "dynamic",
"weight_per_tensor": false,
"act_per_tensor": false,
"weight_block_size": [
32,
32
],
"modules_to_not_convert": [
"lm_head",
"model.embed_tokens",
"model.layers.0.linear_attn.conv1d",
"model.layers.0.linear_attn.in_proj_a",
"model.layers.0.linear_attn.in_proj_b",
"model.layers.0.linear_attn.in_proj_qkv",
"model.layers.0.linear_attn.in_proj_z",
"model.layers.0.linear_attn.out_proj",
"model.layers.0.mlp.gate",
"model.layers.0.mlp.shared_expert.down_proj",
"model.layers.0.mlp.shared_expert.gate_proj",
"model.layers.0.mlp.shared_expert.up_proj",
"model.layers.0.mlp.shared_expert_gate",
"model.layers.1.linear_attn.conv1d",
"model.layers.1.linear_attn.in_proj_a",
"model.layers.1.linear_attn.in_proj_b",
"model.layers.1.linear_attn.in_proj_qkv",
"model.layers.1.linear_attn.in_proj_z",
"model.layers.1.linear_attn.out_proj",
"model.layers.1.mlp.gate",
"model.layers.1.mlp.shared_expert.down_proj",
"model.layers.1.mlp.shared_expert.gate_proj",
"model.layers.1.mlp.shared_expert.up_proj",
"model.layers.1.mlp.shared_expert_gate",
"model.layers.2.linear_attn.conv1d",
"model.layers.2.linear_attn.in_proj_a",
"model.layers.2.linear_attn.in_proj_b",
"model.layers.2.linear_attn.in_proj_qkv",
"model.layers.2.linear_attn.in_proj_z",
"model.layers.2.linear_attn.out_proj",
"model.layers.2.mlp.gate",
"model.layers.2.mlp.shared_expert.down_proj",
"model.layers.2.mlp.shared_expert.gate_proj",
"model.layers.2.mlp.shared_expert.up_proj",
"model.layers.2.mlp.shared_expert_gate",
"model.layers.3.mlp.gate",
"model.layers.3.mlp.shared_expert.down_proj",
"model.layers.3.mlp.shared_expert.gate_proj",
"model.layers.3.mlp.shared_expert.up_proj",
"model.layers.3.mlp.shared_expert_gate",
"model.layers.3.self_attn.k_proj",
"model.layers.3.self_attn.o_proj",
"model.layers.3.self_attn.q_proj",
"model.layers.3.self_attn.v_proj",
"model.layers.4.linear_attn.conv1d",
"model.layers.4.linear_attn.in_proj_a",
"model.layers.4.linear_attn.in_proj_b",
"model.layers.4.linear_attn.in_proj_qkv",
"model.layers.4.linear_attn.in_proj_z",
"model.layers.4.linear_attn.out_proj",
"model.layers.4.mlp.gate",
"model.layers.4.mlp.shared_expert.down_proj",
"model.layers.4.mlp.shared_expert.gate_proj",
"model.layers.4.mlp.shared_expert.up_proj",
"model.layers.4.mlp.shared_expert_gate",
"model.layers.5.linear_attn.conv1d",
"model.layers.5.linear_attn.in_proj_a",
"model.layers.5.linear_attn.in_proj_b",
"model.layers.5.linear_attn.in_proj_qkv",
"model.layers.5.linear_attn.in_proj_z",
"model.layers.5.linear_attn.out_proj",
"model.layers.5.mlp.gate",
"model.layers.5.mlp.shared_expert.down_proj",
"model.layers.5.mlp.shared_expert.gate_proj",
"model.layers.5.mlp.shared_expert.up_proj",
"model.layers.5.mlp.shared_expert_gate",
"model.layers.6.linear_attn.conv1d",
"model.layers.6.linear_attn.in_proj_a",
"model.layers.6.linear_attn.in_proj_b",
"model.layers.6.linear_attn.in_proj_qkv",
"model.layers.6.linear_attn.in_proj_z",
"model.layers.6.linear_attn.out_proj",
"model.layers.6.mlp.gate",
"model.layers.6.mlp.shared_expert.down_proj",
"model.layers.6.mlp.shared_expert.gate_proj",
"model.layers.6.mlp.shared_expert.up_proj",
"model.layers.6.mlp.shared_expert_gate",
"model.layers.7.mlp.gate",
"model.layers.7.mlp.shared_expert.down_proj",
"model.layers.7.mlp.shared_expert.gate_proj",
"model.layers.7.mlp.shared_expert.up_proj",
"model.layers.7.mlp.shared_expert_gate",
"model.layers.7.self_attn.k_proj",
"model.layers.7.self_attn.o_proj",
"model.layers.7.self_attn.q_proj",
"model.layers.7.self_attn.v_proj",
"mtp.fc",
"mtp.layers.0.mlp.gate",
"mtp.layers.0.mlp.shared_expert.down_proj",
"mtp.layers.0.mlp.shared_expert.gate_proj",
"mtp.layers.0.mlp.shared_expert.up_proj",
"mtp.layers.0.mlp.shared_expert_gate",
"mtp.layers.0.self_attn.k_proj",
"mtp.layers.0.self_attn.o_proj",
"mtp.layers.0.self_attn.q_proj",
"mtp.layers.0.self_attn.v_proj"
]
}
}