Naive-N0.5-Flash / config.json
Weiyun1025's picture
initial commit
9c9a11e
Raw History Blame Contribute Delete
2.61 kB
{
"add_full_attention_sink_bias": false,
"add_swa_attention_sink_bias": true,
"architectures": [
"NaiveN05FlashForCausalLM"
],
"attention_bias": false,
"attention_chunk_size": 128,
"attention_dropout": 0.0,
"attention_projection_layout": "split",
"attention_value_scale": 0.707,
"auto_map": {
"AutoConfig": "configuration_naive_n05_flash.NaiveN05FlashConfig",
"AutoModel": "modeling_naive_n05_flash.NaiveN05FlashModel",
"AutoModelForCausalLM": "modeling_naive_n05_flash.NaiveN05FlashForCausalLM"
},
"dtype": "bfloat16",
"eos_token_id": 151645,
"head_dim": 192,
"hidden_act": "silu",
"hidden_size": 4096,
"hybrid_block_size": null,
"hybrid_layer_pattern": [
0,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0
],
"initializer_range": 0.02,
"intermediate_size": 16384,
"layernorm_epsilon": 1e-05,
"max_position_embeddings": 1048576,
"model_type": "naive_n05_flash",
"moe_intermediate_size": 2048,
"moe_layer_freq": [
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"n_group": 1,
"n_routed_experts": 256,
"n_shared_experts": null,
"norm_topk_prob": true,
"num_attention_heads": 64,
"num_experts_per_tok": 8,
"num_hidden_layers": 48,
"num_key_value_heads": 4,
"pad_token_id": 151643,
"partial_rotary_factor": 0.334,
"rope_scaling": {
"rope_type": "default",
"type": "default"
},
"rope_theta": 10000000,
"routed_scaling_factor": null,
"scoring_func": "sigmoid",
"sliding_window": 128,
"sliding_window_size": 128,
"swa_head_dim": 192,
"swa_num_attention_heads": 64,
"swa_num_key_value_heads": 8,
"swa_rope_theta": 10000,
"swa_v_head_dim": 128,
"tie_word_embeddings": false,
"topk_group": 1,
"topk_method": "noaux_tc",
"torch_dtype": "bfloat16",
"transformers_version": "4.57.1",
"use_cache": true,
"v_head_dim": 128,
"vocab_size": 152576,
"enable_dsa": true,
"index_top_k": 2048,
"index_head_dim": 128,
"index_n_heads": 16,
"index_n_kv_heads": 1,
"indexer_activation_dtype": "fp8_e4m3"
}