Upload SigmaMoEForCausalLM
Browse files- config.json +40 -0
- generation_config.json +5 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/dccstor/broccoli/huggingface/transformers/sigma_moe/wikitext/moe/fp",
|
3 |
+
"activation": "gelu_new",
|
4 |
+
"activation_after_topk": false,
|
5 |
+
"architectures": [
|
6 |
+
"SigmaMoEForCausalLM"
|
7 |
+
],
|
8 |
+
"attention_dropout": 0.1,
|
9 |
+
"d_ff": 2053,
|
10 |
+
"d_model": 410,
|
11 |
+
"embd_pdrop": 0.1,
|
12 |
+
"expert_dropout": 0.0,
|
13 |
+
"expert_size": 128,
|
14 |
+
"initializer_range": 0.025,
|
15 |
+
"layer_norm_eps": 1e-05,
|
16 |
+
"max_position_embeddings": 512,
|
17 |
+
"moe_bias": false,
|
18 |
+
"moe_dropout": 0.0,
|
19 |
+
"n_experts": 16,
|
20 |
+
"num_attention_heads": 10,
|
21 |
+
"num_hidden_layers": 16,
|
22 |
+
"num_sparse_hidden_layers": 16,
|
23 |
+
"partial_rotary_factor": 0.5,
|
24 |
+
"qk_layernorm": false,
|
25 |
+
"resid_pdrop": 0.1,
|
26 |
+
"rope_scaling": null,
|
27 |
+
"rope_theta": 10000.0,
|
28 |
+
"routing_regularization": 0.001,
|
29 |
+
"selection_mode": "sigmoid",
|
30 |
+
"sinkhorn_n_iters": 3,
|
31 |
+
"sparse_step": 1,
|
32 |
+
"tie_word_embeddings": false,
|
33 |
+
"top_k_experts": 4,
|
34 |
+
"torch_dtype": "float32",
|
35 |
+
"transformers_version": "4.37.0.dev0",
|
36 |
+
"use_cache": false,
|
37 |
+
"v_dim": null,
|
38 |
+
"vocab_size": 8000,
|
39 |
+
"weight_std_scale": 1.0
|
40 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"transformers_version": "4.37.0.dev0",
|
4 |
+
"use_cache": false
|
5 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8c832604ed2c3d9ae84eb689f751f21a851486372a9b80a21507bf8c2622424e
|
3 |
+
size 177436584
|