Upload config.json with huggingface_hub
Browse files- config.json +66 -0
config.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"UpcyclingQwen2MoeForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"attn_init_change": false,
|
| 7 |
+
"auto_map": {
|
| 8 |
+
"AutoConfig": "configuration_upcycling_qwen2_moe.UpcyclingQwen2MoeConfig",
|
| 9 |
+
"AutoModelForCausalLM": "modeling_upcycling_qwen2_moe.UpcyclingQwen2MoeForCausalLM"
|
| 10 |
+
},
|
| 11 |
+
"bos_token_id": 151643,
|
| 12 |
+
"decoder_sparse_step": 1,
|
| 13 |
+
"eos_token_id": 151643,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 896,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 4864,
|
| 18 |
+
"language_gate": true,
|
| 19 |
+
"max_position_embeddings": 131072,
|
| 20 |
+
"max_window_layers": 24,
|
| 21 |
+
"mlp_only_layers": [
|
| 22 |
+
0,
|
| 23 |
+
1,
|
| 24 |
+
2,
|
| 25 |
+
3,
|
| 26 |
+
4,
|
| 27 |
+
5,
|
| 28 |
+
6,
|
| 29 |
+
7,
|
| 30 |
+
8,
|
| 31 |
+
9,
|
| 32 |
+
10,
|
| 33 |
+
11,
|
| 34 |
+
12,
|
| 35 |
+
13,
|
| 36 |
+
14,
|
| 37 |
+
15,
|
| 38 |
+
16,
|
| 39 |
+
17,
|
| 40 |
+
18,
|
| 41 |
+
19,
|
| 42 |
+
20,
|
| 43 |
+
21
|
| 44 |
+
],
|
| 45 |
+
"model_type": "upcycling-qwen2-moe",
|
| 46 |
+
"moe_intermediate_size": 4864,
|
| 47 |
+
"norm_topk_prob": false,
|
| 48 |
+
"num_attention_heads": 14,
|
| 49 |
+
"num_experts": 7,
|
| 50 |
+
"num_experts_per_tok": 2,
|
| 51 |
+
"num_hidden_layers": 24,
|
| 52 |
+
"num_key_value_heads": 2,
|
| 53 |
+
"output_router_logits": false,
|
| 54 |
+
"rms_norm_eps": 1e-06,
|
| 55 |
+
"rope_theta": 1000000.0,
|
| 56 |
+
"router_aux_loss_coef": 0.0,
|
| 57 |
+
"share_flag": false,
|
| 58 |
+
"shared_expert_intermediate_size": 4864,
|
| 59 |
+
"sliding_window": 131072,
|
| 60 |
+
"tie_word_embeddings": true,
|
| 61 |
+
"torch_dtype": "bfloat16",
|
| 62 |
+
"transformers_version": "4.44.2",
|
| 63 |
+
"use_cache": true,
|
| 64 |
+
"use_sliding_window": false,
|
| 65 |
+
"vocab_size": 151936
|
| 66 |
+
}
|