models4world commited on
Commit
a09c3a2
·
verified ·
1 Parent(s): 1377772

SFT DeepSeek-R1-14B ck137

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
adapter_config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "deepseek-ai/DeepSeek-R1-Distill-Qwen-14B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 128,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "lora_ga_config": null,
23
+ "megatron_config": null,
24
+ "megatron_core": "megatron.core",
25
+ "modules_to_save": null,
26
+ "peft_type": "LORA",
27
+ "peft_version": "0.19.1",
28
+ "qalora_group_size": 16,
29
+ "r": 64,
30
+ "rank_pattern": {},
31
+ "revision": null,
32
+ "target_modules": [
33
+ "up_proj",
34
+ "o_proj",
35
+ "k_proj",
36
+ "q_proj",
37
+ "gate_proj",
38
+ "down_proj",
39
+ "v_proj"
40
+ ],
41
+ "target_parameters": null,
42
+ "task_type": "CAUSAL_LM",
43
+ "trainable_token_indices": null,
44
+ "use_bdlora": null,
45
+ "use_dora": false,
46
+ "use_qalora": false,
47
+ "use_rslora": false
48
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c784fd133b96b25bea04cb4ade7490771c2591abdf2a1b3393e7d6e04b68760d
3
+ size 1101095848
chat_template.jinja ADDED
@@ -0,0 +1 @@
 
 
1
+ {% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set ns = namespace(is_first=false, is_tool=false, is_output_first=true, system_prompt='') %}{%- for message in messages %}{%- if message['role'] == 'system' %}{% set ns.system_prompt = message['content'] %}{%- endif %}{%- endfor %}{{bos_token}}{{ns.system_prompt}}{%- for message in messages %}{%- if message['role'] == 'user' %}{%- set ns.is_tool = false -%}{{'<|User|>' + message['content']}}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is none %}{%- set ns.is_tool = false -%}{%- for tool in message['tool_calls']%}{%- if not ns.is_first %}{{'<|Assistant|><|tool▁calls▁begin|><|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\n' + '```json' + '\n' + tool['function']['arguments'] + '\n' + '```' + '<|tool▁call▁end|>'}}{%- set ns.is_first = true -%}{%- else %}{{'\n' + '<|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\n' + '```json' + '\n' + tool['function']['arguments'] + '\n' + '```' + '<|tool▁call▁end|>'}}{{'<|tool▁calls▁end|><|end▁of▁sentence|>'}}{%- endif %}{%- endfor %}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is not none %}{%- if ns.is_tool %}{{'<|tool▁outputs▁end|>' + message['content'] + '<|end▁of▁sentence|>'}}{%- set ns.is_tool = false -%}{%- else %}{% set content = message['content'] %}{% if '</think>' in content %}{% set content = content.split('</think>')[-1] %}{% endif %}{{'<|Assistant|>' + content + '<|end▁of▁sentence|>'}}{%- endif %}{%- endif %}{%- if message['role'] == 'tool' %}{%- set ns.is_tool = true -%}{%- if ns.is_output_first %}{{'<|tool▁outputs▁begin|><|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- set ns.is_output_first = false %}{%- else %}{{'\n<|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- endif %}{%- endif %}{%- endfor -%}{% if ns.is_tool %}{{'<|tool▁outputs▁end|>'}}{% endif %}{% if add_generation_prompt and not ns.is_tool %}{{'<|Assistant|><think>\n'}}{% endif %}
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b926cdcc84559848f4b1587aa16e79b05ef44bf58aaf1063fe0d03853bf2738
3
+ size 559915301
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:548a3f7cdc74203805a9efb1d99382277f41a9555d91fd96f49768eb056c2ea9
3
+ size 14645
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a00e258c784e47e6b17fbdfadf1b3fcab20e1474570f38acbccb4565ef8efa7
3
+ size 1465
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f624f8136bc57382156e7595e8ea404a66fbce12e3181b933ec2459bda3a71be
3
+ size 11421907
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|begin▁of▁sentence|>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|end▁of▁sentence|>",
7
+ "is_local": false,
8
+ "legacy": true,
9
+ "local_files_only": true,
10
+ "model_max_length": 16384,
11
+ "pad_token": "<|end▁of▁sentence|>",
12
+ "sp_model_kwargs": {},
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null
15
+ }
trainer_state.json ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.0,
6
+ "eval_steps": 500,
7
+ "global_step": 137,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 1.12497947961092,
14
+ "epoch": 0.03673094582185491,
15
+ "grad_norm": 0.8993809819221497,
16
+ "learning_rate": 3.0769230769230774e-05,
17
+ "loss": 1.8966182708740233,
18
+ "mean_token_accuracy": 0.5981592454016209,
19
+ "num_tokens": 392451.0,
20
+ "step": 5
21
+ },
22
+ {
23
+ "entropy": 1.3978254437446593,
24
+ "epoch": 0.07346189164370982,
25
+ "grad_norm": 0.4200671911239624,
26
+ "learning_rate": 6.923076923076924e-05,
27
+ "loss": 1.6123085021972656,
28
+ "mean_token_accuracy": 0.6334522105753422,
29
+ "num_tokens": 780460.0,
30
+ "step": 10
31
+ },
32
+ {
33
+ "entropy": 1.4284753248095512,
34
+ "epoch": 0.11019283746556474,
35
+ "grad_norm": 0.5383214354515076,
36
+ "learning_rate": 9.999844234470782e-05,
37
+ "loss": 1.1326273918151855,
38
+ "mean_token_accuracy": 0.7270047955214978,
39
+ "num_tokens": 1170277.0,
40
+ "step": 15
41
+ },
42
+ {
43
+ "entropy": 0.5256051793694496,
44
+ "epoch": 0.14692378328741965,
45
+ "grad_norm": 0.32786956429481506,
46
+ "learning_rate": 9.994393459922218e-05,
47
+ "loss": 0.5460782527923584,
48
+ "mean_token_accuracy": 0.8675555787980557,
49
+ "num_tokens": 1562948.0,
50
+ "step": 20
51
+ },
52
+ {
53
+ "entropy": 0.2676012733951211,
54
+ "epoch": 0.18365472910927455,
55
+ "grad_norm": 0.12770651280879974,
56
+ "learning_rate": 9.981164111355035e-05,
57
+ "loss": 0.29712226390838625,
58
+ "mean_token_accuracy": 0.9294811107218266,
59
+ "num_tokens": 1950156.0,
60
+ "step": 25
61
+ },
62
+ {
63
+ "entropy": 0.2584058292210102,
64
+ "epoch": 0.22038567493112948,
65
+ "grad_norm": 0.0914032906293869,
66
+ "learning_rate": 9.960176792966289e-05,
67
+ "loss": 0.25907483100891116,
68
+ "mean_token_accuracy": 0.9349191218614579,
69
+ "num_tokens": 2339119.0,
70
+ "step": 30
71
+ },
72
+ {
73
+ "entropy": 0.25888317823410034,
74
+ "epoch": 0.2571166207529844,
75
+ "grad_norm": 0.08953554928302765,
76
+ "learning_rate": 9.931464191690015e-05,
77
+ "loss": 0.2529557943344116,
78
+ "mean_token_accuracy": 0.9351828552782535,
79
+ "num_tokens": 2734551.0,
80
+ "step": 35
81
+ },
82
+ {
83
+ "entropy": 0.22340067327022553,
84
+ "epoch": 0.2938475665748393,
85
+ "grad_norm": 0.07802692800760269,
86
+ "learning_rate": 9.895071026288574e-05,
87
+ "loss": 0.221995210647583,
88
+ "mean_token_accuracy": 0.9419150903820992,
89
+ "num_tokens": 3120046.0,
90
+ "step": 40
91
+ },
92
+ {
93
+ "entropy": 0.21697051208466292,
94
+ "epoch": 0.3305785123966942,
95
+ "grad_norm": 0.08155567944049835,
96
+ "learning_rate": 9.851053977704931e-05,
97
+ "loss": 0.22191472053527833,
98
+ "mean_token_accuracy": 0.9412054426968097,
99
+ "num_tokens": 3508920.0,
100
+ "step": 45
101
+ },
102
+ {
103
+ "entropy": 0.2017911121249199,
104
+ "epoch": 0.3673094582185491,
105
+ "grad_norm": 0.07083539664745331,
106
+ "learning_rate": 9.799481600784286e-05,
107
+ "loss": 0.20391447544097902,
108
+ "mean_token_accuracy": 0.9452535562217236,
109
+ "num_tokens": 3894334.0,
110
+ "step": 50
111
+ },
112
+ {
113
+ "entropy": 0.20160430558025838,
114
+ "epoch": 0.40404040404040403,
115
+ "grad_norm": 0.06837889552116394,
116
+ "learning_rate": 9.740434217502547e-05,
117
+ "loss": 0.20340940952301026,
118
+ "mean_token_accuracy": 0.9446921683847904,
119
+ "num_tokens": 4281402.0,
120
+ "step": 55
121
+ },
122
+ {
123
+ "entropy": 0.20042244642972945,
124
+ "epoch": 0.44077134986225897,
125
+ "grad_norm": 0.08252335339784622,
126
+ "learning_rate": 9.674003791867991e-05,
127
+ "loss": 0.2018129348754883,
128
+ "mean_token_accuracy": 0.9447339937090874,
129
+ "num_tokens": 4663548.0,
130
+ "step": 60
131
+ },
132
+ {
133
+ "entropy": 0.19784397445619106,
134
+ "epoch": 0.47750229568411384,
135
+ "grad_norm": 0.07859351485967636,
136
+ "learning_rate": 9.600293786690872e-05,
137
+ "loss": 0.19837383031845093,
138
+ "mean_token_accuracy": 0.9450356759130955,
139
+ "num_tokens": 5049145.0,
140
+ "step": 65
141
+ },
142
+ {
143
+ "entropy": 0.1947242783382535,
144
+ "epoch": 0.5142332415059688,
145
+ "grad_norm": 0.07524942606687546,
146
+ "learning_rate": 9.51941900244412e-05,
147
+ "loss": 0.19666141271591187,
148
+ "mean_token_accuracy": 0.9454756386578083,
149
+ "num_tokens": 5436189.0,
150
+ "step": 70
151
+ },
152
+ {
153
+ "entropy": 0.19588824408128858,
154
+ "epoch": 0.5509641873278237,
155
+ "grad_norm": 0.07221005856990814,
156
+ "learning_rate": 9.431505398466045e-05,
157
+ "loss": 0.19920532703399657,
158
+ "mean_token_accuracy": 0.9449514284729957,
159
+ "num_tokens": 5829408.0,
160
+ "step": 75
161
+ },
162
+ {
163
+ "entropy": 0.19220142532140017,
164
+ "epoch": 0.5876951331496786,
165
+ "grad_norm": 0.07809904962778091,
166
+ "learning_rate": 9.336689896783573e-05,
167
+ "loss": 0.19279507398605347,
168
+ "mean_token_accuracy": 0.9458583235740662,
169
+ "num_tokens": 6218941.0,
170
+ "step": 80
171
+ },
172
+ {
173
+ "entropy": 0.18541973838582634,
174
+ "epoch": 0.6244260789715336,
175
+ "grad_norm": 0.07320163398981094,
176
+ "learning_rate": 9.235120168861496e-05,
177
+ "loss": 0.1880725622177124,
178
+ "mean_token_accuracy": 0.9469495385885238,
179
+ "num_tokens": 6606033.0,
180
+ "step": 85
181
+ },
182
+ {
183
+ "entropy": 0.1838523769751191,
184
+ "epoch": 0.6611570247933884,
185
+ "grad_norm": 0.07499408721923828,
186
+ "learning_rate": 9.126954405609882e-05,
187
+ "loss": 0.18436297178268432,
188
+ "mean_token_accuracy": 0.9477912008762359,
189
+ "num_tokens": 6993613.0,
190
+ "step": 90
191
+ },
192
+ {
193
+ "entropy": 0.18930766182020306,
194
+ "epoch": 0.6978879706152433,
195
+ "grad_norm": 0.0816631019115448,
196
+ "learning_rate": 9.012361071007891e-05,
197
+ "loss": 0.19324288368225098,
198
+ "mean_token_accuracy": 0.946058064699173,
199
+ "num_tokens": 7390817.0,
200
+ "step": 95
201
+ },
202
+ {
203
+ "entropy": 0.18645640034228564,
204
+ "epoch": 0.7346189164370982,
205
+ "grad_norm": 0.07840832322835922,
206
+ "learning_rate": 8.891518639727649e-05,
207
+ "loss": 0.18845387697219848,
208
+ "mean_token_accuracy": 0.9464856244623661,
209
+ "num_tokens": 7784854.0,
210
+ "step": 100
211
+ },
212
+ {
213
+ "entropy": 0.17504646591842174,
214
+ "epoch": 0.7713498622589532,
215
+ "grad_norm": 0.07297156751155853,
216
+ "learning_rate": 8.764615319166886e-05,
217
+ "loss": 0.1781143069267273,
218
+ "mean_token_accuracy": 0.9493056297302246,
219
+ "num_tokens": 8166437.0,
220
+ "step": 105
221
+ },
222
+ {
223
+ "entropy": 0.17095539206638932,
224
+ "epoch": 0.8080808080808081,
225
+ "grad_norm": 0.0789044052362442,
226
+ "learning_rate": 8.631848756323197e-05,
227
+ "loss": 0.17464057207107545,
228
+ "mean_token_accuracy": 0.9500580169260502,
229
+ "num_tokens": 8553224.0,
230
+ "step": 110
231
+ },
232
+ {
233
+ "entropy": 0.17393150376155972,
234
+ "epoch": 0.8448117539026629,
235
+ "grad_norm": 0.07846875488758087,
236
+ "learning_rate": 8.493425729966534e-05,
237
+ "loss": 0.1741488456726074,
238
+ "mean_token_accuracy": 0.9500745631754398,
239
+ "num_tokens": 8941103.0,
240
+ "step": 115
241
+ },
242
+ {
243
+ "entropy": 0.17150701954960823,
244
+ "epoch": 0.8815426997245179,
245
+ "grad_norm": 0.0809190571308136,
246
+ "learning_rate": 8.349561828589277e-05,
247
+ "loss": 0.17422133684158325,
248
+ "mean_token_accuracy": 0.9498188808560372,
249
+ "num_tokens": 9327685.0,
250
+ "step": 120
251
+ },
252
+ {
253
+ "entropy": 0.17129514068365098,
254
+ "epoch": 0.9182736455463728,
255
+ "grad_norm": 0.07602571696043015,
256
+ "learning_rate": 8.200481114635536e-05,
257
+ "loss": 0.17384564876556396,
258
+ "mean_token_accuracy": 0.9498213849961757,
259
+ "num_tokens": 9715967.0,
260
+ "step": 125
261
+ },
262
+ {
263
+ "entropy": 0.17661647107452155,
264
+ "epoch": 0.9550045913682277,
265
+ "grad_norm": 0.08382342010736465,
266
+ "learning_rate": 8.046415775532585e-05,
267
+ "loss": 0.17854903936386107,
268
+ "mean_token_accuracy": 0.9487794756889343,
269
+ "num_tokens": 10103714.0,
270
+ "step": 130
271
+ },
272
+ {
273
+ "entropy": 0.17341060359030963,
274
+ "epoch": 0.9917355371900827,
275
+ "grad_norm": 0.07687266916036606,
276
+ "learning_rate": 7.887605762067945e-05,
277
+ "loss": 0.17285407781600953,
278
+ "mean_token_accuracy": 0.9503463752567768,
279
+ "num_tokens": 10488946.0,
280
+ "step": 135
281
+ }
282
+ ],
283
+ "logging_steps": 5,
284
+ "max_steps": 411,
285
+ "num_input_tokens_seen": 0,
286
+ "num_train_epochs": 3,
287
+ "save_steps": 500,
288
+ "stateful_callbacks": {
289
+ "TrainerControl": {
290
+ "args": {
291
+ "should_epoch_stop": false,
292
+ "should_evaluate": false,
293
+ "should_log": false,
294
+ "should_save": true,
295
+ "should_training_stop": false
296
+ },
297
+ "attributes": {}
298
+ }
299
+ },
300
+ "total_flos": 9.054554389471212e+17,
301
+ "train_batch_size": 1,
302
+ "trial_name": null,
303
+ "trial_params": null
304
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b795cebea5f6e80b75b46706ae2518da1e1898b7315ad9d14b82870321b1358f
3
+ size 5649