InfiX-V1-base / config.json
fuhanjie's picture bhipee's picture
Super-squash branch 'main' using huggingface_hub
8c82757
Raw History Blame Contribute Delete
3.19 kB
{
"architectures": [
"InfixV1ForCausalLM"
],
"model_type": "infix_v1",
"torch_dtype": "bfloat16",
"transformers_version": "4.50.0",
"hidden_size": 4096,
"intermediate_size": 15488,
"num_attention_heads": 64,
"num_key_value_heads": 4,
"swa_num_attention_heads": 80,
"swa_num_key_value_heads": 8,
"swa_head_dim": 192,
"swa_v_head_dim": 128,
"partial_rotary_factor": 0.5,
"swa_partial_rotary_factor": 0.334,
"v_head_dim": 128,
"num_hidden_layers": 42,
"max_position_embeddings": 262144,
"vocab_size": 129280,
"head_dim": 128,
"rms_norm_eps": 1e-05,
"rope_theta": 10000000.0,
"swa_rope_theta": 50000.0,
"n_routed_experts": 288,
"num_experts_per_tok": 13,
"moe_intermediate_size": 1408,
"shared_expert_intermediate_size": 1408,
"first_k_dense_replace": 1,
"norm_topk_prob": true,
"scoring_func": "sigmoid",
"routed_scaling_factor": 2.0,
"use_moe_router_bias": true,
"need_fp32_gate": true,
"rope_fp32": true,
"moe_router_weight_fp32": true,
"layer_types": [
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"sliding_attention",
"sliding_attention",
"sliding_attention",
"full_attention",
"full_attention"
],
"sliding_window": 512,
"qk_layernorm": true,
"softmax_type": "learnable",
"tie_word_embeddings": false,
"bos_token_id": 0,
"eos_token_id": 1,
"pad_token_id": 2,
"swiglu_limits": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
16.0,
16.0,
16.0
],
"swiglu_limits_shared": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
16.0
],
"auto_map": {
"AutoConfig": "configuration_infix_v1.InfixV1Config",
"AutoModelForCausalLM": "modeling_infix_v1.InfixV1ForCausalLM"
}
}