wenhuach commited on
Commit
f9ab186
1 Parent(s): 008ac56

replace auto-round format

Browse files

Signed-off-by: wenhuach <[email protected]>

added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
config.json ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/data5/models/Qwen2-57B-A14B-Instruct",
3
+ "architectures": [
4
+ "Qwen2MoeForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "decoder_sparse_step": 1,
9
+ "eos_token_id": 151643,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 3584,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 18944,
14
+ "max_position_embeddings": 32768,
15
+ "max_window_layers": 28,
16
+ "mlp_only_layers": [],
17
+ "model_type": "qwen2_moe",
18
+ "moe_intermediate_size": 2560,
19
+ "norm_topk_prob": false,
20
+ "num_attention_heads": 28,
21
+ "num_experts": 64,
22
+ "num_experts_per_tok": 8,
23
+ "num_hidden_layers": 28,
24
+ "num_key_value_heads": 4,
25
+ "output_router_logits": false,
26
+ "quantization_config": {
27
+ "amp": true,
28
+ "autoround_version": "0.3.1.dev",
29
+ "backend": "auto_round:gptq:exllamav2",
30
+ "bits": 4,
31
+ "data_type": "int",
32
+ "dataset": "NeelNanda/pile-10k",
33
+ "enable_minmax_tuning": true,
34
+ "enable_norm_bias_tuning": false,
35
+ "enable_quanted_input": true,
36
+ "extra_config": {
37
+ "model.layers.0.mlp.shared_expert_gate": {
38
+ "bits": 32,
39
+ "data_type": "float",
40
+ "group_size": null,
41
+ "sym": null
42
+ },
43
+ "model.layers.1.mlp.shared_expert_gate": {
44
+ "bits": 32,
45
+ "data_type": "float",
46
+ "group_size": null,
47
+ "sym": null
48
+ },
49
+ "model.layers.10.mlp.shared_expert_gate": {
50
+ "bits": 32,
51
+ "data_type": "float",
52
+ "group_size": null,
53
+ "sym": null
54
+ },
55
+ "model.layers.11.mlp.shared_expert_gate": {
56
+ "bits": 32,
57
+ "data_type": "float",
58
+ "group_size": null,
59
+ "sym": null
60
+ },
61
+ "model.layers.12.mlp.shared_expert_gate": {
62
+ "bits": 32,
63
+ "data_type": "float",
64
+ "group_size": null,
65
+ "sym": null
66
+ },
67
+ "model.layers.13.mlp.shared_expert_gate": {
68
+ "bits": 32,
69
+ "data_type": "float",
70
+ "group_size": null,
71
+ "sym": null
72
+ },
73
+ "model.layers.14.mlp.shared_expert_gate": {
74
+ "bits": 32,
75
+ "data_type": "float",
76
+ "group_size": null,
77
+ "sym": null
78
+ },
79
+ "model.layers.15.mlp.shared_expert_gate": {
80
+ "bits": 32,
81
+ "data_type": "float",
82
+ "group_size": null,
83
+ "sym": null
84
+ },
85
+ "model.layers.16.mlp.shared_expert_gate": {
86
+ "bits": 32,
87
+ "data_type": "float",
88
+ "group_size": null,
89
+ "sym": null
90
+ },
91
+ "model.layers.17.mlp.shared_expert_gate": {
92
+ "bits": 32,
93
+ "data_type": "float",
94
+ "group_size": null,
95
+ "sym": null
96
+ },
97
+ "model.layers.18.mlp.shared_expert_gate": {
98
+ "bits": 32,
99
+ "data_type": "float",
100
+ "group_size": null,
101
+ "sym": null
102
+ },
103
+ "model.layers.19.mlp.shared_expert_gate": {
104
+ "bits": 32,
105
+ "data_type": "float",
106
+ "group_size": null,
107
+ "sym": null
108
+ },
109
+ "model.layers.2.mlp.shared_expert_gate": {
110
+ "bits": 32,
111
+ "data_type": "float",
112
+ "group_size": null,
113
+ "sym": null
114
+ },
115
+ "model.layers.20.mlp.shared_expert_gate": {
116
+ "bits": 32,
117
+ "data_type": "float",
118
+ "group_size": null,
119
+ "sym": null
120
+ },
121
+ "model.layers.21.mlp.shared_expert_gate": {
122
+ "bits": 32,
123
+ "data_type": "float",
124
+ "group_size": null,
125
+ "sym": null
126
+ },
127
+ "model.layers.22.mlp.shared_expert_gate": {
128
+ "bits": 32,
129
+ "data_type": "float",
130
+ "group_size": null,
131
+ "sym": null
132
+ },
133
+ "model.layers.23.mlp.shared_expert_gate": {
134
+ "bits": 32,
135
+ "data_type": "float",
136
+ "group_size": null,
137
+ "sym": null
138
+ },
139
+ "model.layers.24.mlp.shared_expert_gate": {
140
+ "bits": 32,
141
+ "data_type": "float",
142
+ "group_size": null,
143
+ "sym": null
144
+ },
145
+ "model.layers.25.mlp.shared_expert_gate": {
146
+ "bits": 32,
147
+ "data_type": "float",
148
+ "group_size": null,
149
+ "sym": null
150
+ },
151
+ "model.layers.26.mlp.shared_expert_gate": {
152
+ "bits": 32,
153
+ "data_type": "float",
154
+ "group_size": null,
155
+ "sym": null
156
+ },
157
+ "model.layers.27.mlp.shared_expert_gate": {
158
+ "bits": 32,
159
+ "data_type": "float",
160
+ "group_size": null,
161
+ "sym": null
162
+ },
163
+ "model.layers.3.mlp.shared_expert_gate": {
164
+ "bits": 32,
165
+ "data_type": "float",
166
+ "group_size": null,
167
+ "sym": null
168
+ },
169
+ "model.layers.4.mlp.shared_expert_gate": {
170
+ "bits": 32,
171
+ "data_type": "float",
172
+ "group_size": null,
173
+ "sym": null
174
+ },
175
+ "model.layers.5.mlp.shared_expert_gate": {
176
+ "bits": 32,
177
+ "data_type": "float",
178
+ "group_size": null,
179
+ "sym": null
180
+ },
181
+ "model.layers.6.mlp.shared_expert_gate": {
182
+ "bits": 32,
183
+ "data_type": "float",
184
+ "group_size": null,
185
+ "sym": null
186
+ },
187
+ "model.layers.7.mlp.shared_expert_gate": {
188
+ "bits": 32,
189
+ "data_type": "float",
190
+ "group_size": null,
191
+ "sym": null
192
+ },
193
+ "model.layers.8.mlp.shared_expert_gate": {
194
+ "bits": 32,
195
+ "data_type": "float",
196
+ "group_size": null,
197
+ "sym": null
198
+ },
199
+ "model.layers.9.mlp.shared_expert_gate": {
200
+ "bits": 32,
201
+ "data_type": "float",
202
+ "group_size": null,
203
+ "sym": null
204
+ }
205
+ },
206
+ "gradient_accumulate_steps": 1,
207
+ "group_size": 128,
208
+ "iters": 1000,
209
+ "low_gpu_mem_usage": false,
210
+ "lr": 0.001,
211
+ "minmax_lr": 0.001,
212
+ "nsamples": 512,
213
+ "quant_block_list": null,
214
+ "quant_method": "intel/auto-round",
215
+ "scale_dtype": "torch.float16",
216
+ "seqlen": 2048,
217
+ "sym": true,
218
+ "train_bs": 8
219
+ },
220
+ "rms_norm_eps": 1e-06,
221
+ "rope_theta": 1000000.0,
222
+ "router_aux_loss_coef": 0.001,
223
+ "shared_expert_intermediate_size": 20480,
224
+ "sliding_window": null,
225
+ "tie_word_embeddings": false,
226
+ "torch_dtype": "float16",
227
+ "transformers_version": "4.44.2",
228
+ "use_cache": true,
229
+ "use_sliding_window": false,
230
+ "vocab_size": 151936
231
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.05,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.44.2"
14
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e113ea93ed860c0e9c07f27fa684b647188b336cc5e3d680d83e4a8281bf2d5
3
+ size 4997691976
model-00002-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4e45b31b31165c6e4687c770d478cfe9a029de31673fa2ca0413e91c1a872bc
3
+ size 4996621008
model-00003-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f84c17dba989ee536cd53fc0f685c924e618ae76935786e50bce54373999148
3
+ size 4996623024
model-00004-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13108599956b113ef62793f0aa17c76783d73c4b1281b26c374b5499848d06df
3
+ size 4996623936
model-00005-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd22f2bc3f2868746e5ecb45fd8d765646167e0facf62ff332a00629e57cd74a
3
+ size 5000294216
model-00006-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8947429a5f121c56024ec3c471bf29c8e762cf68363953701ff1c7a177f178b
3
+ size 4996623952
model-00007-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9186f14b77e28e65f2640a3c2346fdab0a2158caa55c22af0a33963b842032cb
3
+ size 1456164256
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
quantization_config.json ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bits": 4,
3
+ "group_size": 128,
4
+ "sym": true,
5
+ "data_type": "int",
6
+ "enable_quanted_input": true,
7
+ "enable_minmax_tuning": true,
8
+ "seqlen": 2048,
9
+ "train_bs": 8,
10
+ "scale_dtype": "torch.float16",
11
+ "lr": 0.001,
12
+ "minmax_lr": 0.001,
13
+ "gradient_accumulate_steps": 1,
14
+ "iters": 1000,
15
+ "amp": true,
16
+ "nsamples": 512,
17
+ "low_gpu_mem_usage": false,
18
+ "quant_block_list": null,
19
+ "enable_norm_bias_tuning": false,
20
+ "dataset": "NeelNanda/pile-10k",
21
+ "autoround_version": "0.3.1.dev",
22
+ "quant_method": "intel/auto-round",
23
+ "backend": "auto_round:gptq:exllamav2",
24
+ "extra_config": {
25
+ "model.layers.0.mlp.shared_expert_gate": {
26
+ "data_type": "float",
27
+ "bits": 32,
28
+ "group_size": null,
29
+ "sym": null
30
+ },
31
+ "model.layers.1.mlp.shared_expert_gate": {
32
+ "data_type": "float",
33
+ "bits": 32,
34
+ "group_size": null,
35
+ "sym": null
36
+ },
37
+ "model.layers.2.mlp.shared_expert_gate": {
38
+ "data_type": "float",
39
+ "bits": 32,
40
+ "group_size": null,
41
+ "sym": null
42
+ },
43
+ "model.layers.3.mlp.shared_expert_gate": {
44
+ "data_type": "float",
45
+ "bits": 32,
46
+ "group_size": null,
47
+ "sym": null
48
+ },
49
+ "model.layers.4.mlp.shared_expert_gate": {
50
+ "data_type": "float",
51
+ "bits": 32,
52
+ "group_size": null,
53
+ "sym": null
54
+ },
55
+ "model.layers.5.mlp.shared_expert_gate": {
56
+ "data_type": "float",
57
+ "bits": 32,
58
+ "group_size": null,
59
+ "sym": null
60
+ },
61
+ "model.layers.6.mlp.shared_expert_gate": {
62
+ "data_type": "float",
63
+ "bits": 32,
64
+ "group_size": null,
65
+ "sym": null
66
+ },
67
+ "model.layers.7.mlp.shared_expert_gate": {
68
+ "data_type": "float",
69
+ "bits": 32,
70
+ "group_size": null,
71
+ "sym": null
72
+ },
73
+ "model.layers.8.mlp.shared_expert_gate": {
74
+ "data_type": "float",
75
+ "bits": 32,
76
+ "group_size": null,
77
+ "sym": null
78
+ },
79
+ "model.layers.9.mlp.shared_expert_gate": {
80
+ "data_type": "float",
81
+ "bits": 32,
82
+ "group_size": null,
83
+ "sym": null
84
+ },
85
+ "model.layers.10.mlp.shared_expert_gate": {
86
+ "data_type": "float",
87
+ "bits": 32,
88
+ "group_size": null,
89
+ "sym": null
90
+ },
91
+ "model.layers.11.mlp.shared_expert_gate": {
92
+ "data_type": "float",
93
+ "bits": 32,
94
+ "group_size": null,
95
+ "sym": null
96
+ },
97
+ "model.layers.12.mlp.shared_expert_gate": {
98
+ "data_type": "float",
99
+ "bits": 32,
100
+ "group_size": null,
101
+ "sym": null
102
+ },
103
+ "model.layers.13.mlp.shared_expert_gate": {
104
+ "data_type": "float",
105
+ "bits": 32,
106
+ "group_size": null,
107
+ "sym": null
108
+ },
109
+ "model.layers.14.mlp.shared_expert_gate": {
110
+ "data_type": "float",
111
+ "bits": 32,
112
+ "group_size": null,
113
+ "sym": null
114
+ },
115
+ "model.layers.15.mlp.shared_expert_gate": {
116
+ "data_type": "float",
117
+ "bits": 32,
118
+ "group_size": null,
119
+ "sym": null
120
+ },
121
+ "model.layers.16.mlp.shared_expert_gate": {
122
+ "data_type": "float",
123
+ "bits": 32,
124
+ "group_size": null,
125
+ "sym": null
126
+ },
127
+ "model.layers.17.mlp.shared_expert_gate": {
128
+ "data_type": "float",
129
+ "bits": 32,
130
+ "group_size": null,
131
+ "sym": null
132
+ },
133
+ "model.layers.18.mlp.shared_expert_gate": {
134
+ "data_type": "float",
135
+ "bits": 32,
136
+ "group_size": null,
137
+ "sym": null
138
+ },
139
+ "model.layers.19.mlp.shared_expert_gate": {
140
+ "data_type": "float",
141
+ "bits": 32,
142
+ "group_size": null,
143
+ "sym": null
144
+ },
145
+ "model.layers.20.mlp.shared_expert_gate": {
146
+ "data_type": "float",
147
+ "bits": 32,
148
+ "group_size": null,
149
+ "sym": null
150
+ },
151
+ "model.layers.21.mlp.shared_expert_gate": {
152
+ "data_type": "float",
153
+ "bits": 32,
154
+ "group_size": null,
155
+ "sym": null
156
+ },
157
+ "model.layers.22.mlp.shared_expert_gate": {
158
+ "data_type": "float",
159
+ "bits": 32,
160
+ "group_size": null,
161
+ "sym": null
162
+ },
163
+ "model.layers.23.mlp.shared_expert_gate": {
164
+ "data_type": "float",
165
+ "bits": 32,
166
+ "group_size": null,
167
+ "sym": null
168
+ },
169
+ "model.layers.24.mlp.shared_expert_gate": {
170
+ "data_type": "float",
171
+ "bits": 32,
172
+ "group_size": null,
173
+ "sym": null
174
+ },
175
+ "model.layers.25.mlp.shared_expert_gate": {
176
+ "data_type": "float",
177
+ "bits": 32,
178
+ "group_size": null,
179
+ "sym": null
180
+ },
181
+ "model.layers.26.mlp.shared_expert_gate": {
182
+ "data_type": "float",
183
+ "bits": 32,
184
+ "group_size": null,
185
+ "sym": null
186
+ },
187
+ "model.layers.27.mlp.shared_expert_gate": {
188
+ "data_type": "float",
189
+ "bits": 32,
190
+ "group_size": null,
191
+ "sym": null
192
+ }
193
+ }
194
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "eos_token": {
7
+ "content": "<|im_end|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "pad_token": {
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ }
20
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ }
28
+ },
29
+ "additional_special_tokens": [
30
+ "<|im_start|>",
31
+ "<|im_end|>"
32
+ ],
33
+ "bos_token": null,
34
+ "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
35
+ "clean_up_tokenization_spaces": false,
36
+ "eos_token": "<|im_end|>",
37
+ "errors": "replace",
38
+ "model_max_length": 65536,
39
+ "pad_token": "<|endoftext|>",
40
+ "split_special_tokens": false,
41
+ "tokenizer_class": "Qwen2Tokenizer",
42
+ "unk_token": null
43
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff