yujiepan commited on
Commit
35f2a8a
·
verified ·
1 Parent(s): cfdcfbb

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +6 -6
  2. config.json +1 -1
  3. model.safetensors +2 -2
README.md CHANGED
@@ -8,7 +8,7 @@ This tiny model is intended for debugging. It is randomly initialized using the
8
 
9
  | File path | Size |
10
  |------|------|
11
- | model.safetensors | 26.2MB |
12
 
13
 
14
  ### Example usage:
@@ -98,7 +98,7 @@ config_json.update({
98
  "first_k_dense_replace": 1,
99
  "mlp_layer_types": ['dense'] + ['sparse'] * 3,
100
  "hidden_size": 8,
101
- "index_n_heads": 4,
102
  "indexer_types": ['full'] + ['shared'] * 3,
103
  "index_topk_pattern": ['F'] + ['S'] * 3,
104
  "intermediate_size": 32,
@@ -181,10 +181,10 @@ GlmMoeDsaForCausalLM(
181
  (kv_b_proj): Linear(in_features=512, out_features=3584, bias=False)
182
  (o_proj): Linear(in_features=2048, out_features=8, bias=False)
183
  (indexer): GlmMoeDsaIndexer(
184
- (wq_b): Linear(in_features=32, out_features=512, bias=False)
185
  (wk): Linear(in_features=8, out_features=128, bias=False)
186
  (k_norm): LayerNorm((128,), eps=1e-06, elementwise_affine=True)
187
- (weights_proj): Linear(in_features=8, out_features=4, bias=False)
188
  )
189
  )
190
  (mlp): GlmMoeDsaMLP(
@@ -239,10 +239,10 @@ GlmMoeDsaForCausalLM(
239
  (kv_b_proj): Linear(in_features=512, out_features=3584, bias=False)
240
  (o_proj): Linear(in_features=2048, out_features=8, bias=False)
241
  (indexer): GlmMoeDsaIndexer(
242
- (wq_b): Linear(in_features=32, out_features=512, bias=False)
243
  (wk): Linear(in_features=8, out_features=128, bias=False)
244
  (k_norm): LayerNorm((128,), eps=1e-06, elementwise_affine=True)
245
- (weights_proj): Linear(in_features=8, out_features=4, bias=False)
246
  )
247
  )
248
  (mlp): GlmMoeDsaMoE(
 
8
 
9
  | File path | Size |
10
  |------|------|
11
+ | model.safetensors | 26.7MB |
12
 
13
 
14
  ### Example usage:
 
98
  "first_k_dense_replace": 1,
99
  "mlp_layer_types": ['dense'] + ['sparse'] * 3,
100
  "hidden_size": 8,
101
+ "index_n_heads": 32,
102
  "indexer_types": ['full'] + ['shared'] * 3,
103
  "index_topk_pattern": ['F'] + ['S'] * 3,
104
  "intermediate_size": 32,
 
181
  (kv_b_proj): Linear(in_features=512, out_features=3584, bias=False)
182
  (o_proj): Linear(in_features=2048, out_features=8, bias=False)
183
  (indexer): GlmMoeDsaIndexer(
184
+ (wq_b): Linear(in_features=32, out_features=4096, bias=False)
185
  (wk): Linear(in_features=8, out_features=128, bias=False)
186
  (k_norm): LayerNorm((128,), eps=1e-06, elementwise_affine=True)
187
+ (weights_proj): Linear(in_features=8, out_features=32, bias=False)
188
  )
189
  )
190
  (mlp): GlmMoeDsaMLP(
 
239
  (kv_b_proj): Linear(in_features=512, out_features=3584, bias=False)
240
  (o_proj): Linear(in_features=2048, out_features=8, bias=False)
241
  (indexer): GlmMoeDsaIndexer(
242
+ (wq_b): Linear(in_features=32, out_features=4096, bias=False)
243
  (wk): Linear(in_features=8, out_features=128, bias=False)
244
  (k_norm): LayerNorm((128,), eps=1e-06, elementwise_affine=True)
245
+ (weights_proj): Linear(in_features=8, out_features=32, bias=False)
246
  )
247
  )
248
  (mlp): GlmMoeDsaMoE(
config.json CHANGED
@@ -17,7 +17,7 @@
17
  "hidden_act": "silu",
18
  "hidden_size": 8,
19
  "index_head_dim": 128,
20
- "index_n_heads": 4,
21
  "index_share_for_mtp_iteration": true,
22
  "index_skip_topk_offset": 3,
23
  "index_topk": 2048,
 
17
  "hidden_act": "silu",
18
  "hidden_size": 8,
19
  "index_head_dim": 128,
20
+ "index_n_heads": 32,
21
  "index_share_for_mtp_iteration": true,
22
  "index_skip_topk_offset": 3,
23
  "index_topk": 2048,
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:151d405ef695562d64c615d24d4f0cbf0aec60d7b563c545ceb41484959a0744
3
- size 26216056
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c380b6f0d6d1560368508cc5b64580e316754aa935aadf1b210de43b8650c86a
3
+ size 26675712