yanikita commited on
Commit
4ca1fcb
·
verified ·
1 Parent(s): 23bbdb4

Upload config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. config.json +78 -0
config.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Glm4MoeForCausalLM"
4
+ ],
5
+ "attention_bias": true,
6
+ "attention_dropout": 0.0,
7
+ "eos_token_id": [
8
+ 151329,
9
+ 151336,
10
+ 151338
11
+ ],
12
+ "first_k_dense_replace": 1,
13
+ "head_dim": 128,
14
+ "hidden_act": "silu",
15
+ "hidden_size": 4096,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 10944,
18
+ "max_position_embeddings": 131072,
19
+ "model_type": "glm4_moe",
20
+ "moe_intermediate_size": 1408,
21
+ "n_group": 1,
22
+ "n_routed_experts": 128,
23
+ "n_shared_experts": 1,
24
+ "norm_topk_prob": true,
25
+ "num_attention_heads": 96,
26
+ "num_experts_per_tok": 8,
27
+ "num_hidden_layers": 46,
28
+ "num_key_value_heads": 8,
29
+ "num_nextn_predict_layers": 1,
30
+ "pad_token_id": 151329,
31
+ "partial_rotary_factor": 0.5,
32
+ "rms_norm_eps": 1e-05,
33
+ "rope_scaling": null,
34
+ "rope_theta": 1000000,
35
+ "routed_scaling_factor": 1.0,
36
+ "tie_word_embeddings": false,
37
+ "topk_group": 1,
38
+ "torch_dtype": "bfloat16",
39
+ "transformers_version": "4.55.2",
40
+ "use_cache": true,
41
+ "use_qk_norm": false,
42
+ "vocab_size": 151552,
43
+ "quantization_config": {
44
+ "config_groups": {
45
+ "group_0": {
46
+ "input_activations": {
47
+ "dynamic": false,
48
+ "num_bits": 4,
49
+ "type": "float",
50
+ "group_size": 16
51
+ },
52
+ "weights": {
53
+ "dynamic": false,
54
+ "num_bits": 4,
55
+ "type": "float",
56
+ "group_size": 16
57
+ },
58
+ "targets": [
59
+ "Linear"
60
+ ]
61
+ }
62
+ },
63
+ "ignore": [
64
+ "lm_head"
65
+ ],
66
+ "quant_algo": "NVFP4",
67
+ "kv_cache_scheme": {
68
+ "dynamic": false,
69
+ "num_bits": 8,
70
+ "type": "float"
71
+ },
72
+ "producer": {
73
+ "name": "modelopt",
74
+ "version": "0.33.1.dev3+ga65bc2f"
75
+ },
76
+ "quant_method": "modelopt"
77
+ }
78
+ }