FemtoScience / config.json
mokshjain's picture
Remote code: transformers Cache API, GenerationMixin; config num_experts_per_tok/mtp_head
5cc9435 verified
Raw History Blame Contribute Delete
948 Bytes
{
"architectures": [
"FemtoScienceMoEForCausalLM"
],
"model_type": "femtoscience_moe",
"auto_map": {
"AutoConfig": "configuration_femtoscience.FemtoScienceConfig",
"AutoModelForCausalLM": "modeling_femtoscience.FemtoScienceMoEForCausalLM",
"AutoTokenizer": [
"tokenization_femtoscience.FemtoScienceHFTokenizer",
null
]
},
"torch_dtype": "bfloat16",
"bos_token_id": 65280,
"eos_token_id": 65281,
"pad_token_id": 65282,
"vocab_size": 65536,
"d_model": 1024,
"n_layers": 16,
"n_heads": 16,
"n_kv_heads": 4,
"n_experts": 64,
"num_experts_per_tok": 6,
"d_ff_dense": 2560,
"d_ff_shared": 512,
"d_ff_expert": 256,
"seq_len": 16384,
"rope_theta": 1000000.0,
"mtp_head": true,
"mtp_loss_weight": 0.3,
"attn_gate": "elementwise",
"qk_norm": true,
"seq_aux_alpha": 0.0001,
"moe_bias_lr": 0.0,
"tie_word_embeddings": false,
"use_grouped_mm": false,
"norm_eps": 1e-06
}