Mark-Arcee commited on
Commit
d5be272
·
verified ·
1 Parent(s): ef5da9c

Model save

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ base_model: mistralai/Mistral-7B-v0.1
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: zephyr-7b-sft-qlora
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # zephyr-7b-sft-qlora
20
+
21
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.7271
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 0.0002
43
+ - train_batch_size: 4
44
+ - eval_batch_size: 8
45
+ - seed: 42
46
+ - distributed_type: multi-GPU
47
+ - gradient_accumulation_steps: 2
48
+ - total_train_batch_size: 8
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: cosine
51
+ - lr_scheduler_warmup_ratio: 0.1
52
+ - num_epochs: 1
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss |
57
+ |:-------------:|:------:|:----:|:---------------:|
58
+ | 0.7229 | 0.9981 | 257 | 0.7271 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - PEFT 0.11.1
64
+ - Transformers 4.41.0
65
+ - Pytorch 2.3.0+cu121
66
+ - Datasets 2.19.1
67
+ - Tokenizers 0.19.1
adapter_config.json CHANGED
@@ -20,12 +20,12 @@
20
  "rank_pattern": {},
21
  "revision": null,
22
  "target_modules": [
 
23
  "o_proj",
24
- "up_proj",
25
  "gate_proj",
26
  "q_proj",
27
- "k_proj",
28
- "down_proj",
29
  "v_proj"
30
  ],
31
  "task_type": "CAUSAL_LM",
 
20
  "rank_pattern": {},
21
  "revision": null,
22
  "target_modules": [
23
+ "k_proj",
24
  "o_proj",
25
+ "down_proj",
26
  "gate_proj",
27
  "q_proj",
28
+ "up_proj",
 
29
  "v_proj"
30
  ],
31
  "task_type": "CAUSAL_LM",
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9b0bebea4327e3bfb1a8a1536b319dc9b4a8b8b5c096841d1da10d68db98c4e7
3
  size 83946192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e28632fe9c78ea0bf63257aa97a6a10b89a180cc025fd86640d7b21d7900943
3
  size 83946192
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9980582524271845,
3
+ "total_flos": 1.807042878719918e+17,
4
+ "train_loss": 0.17443326521476418,
5
+ "train_runtime": 473.1182,
6
+ "train_samples": 29084,
7
+ "train_samples_per_second": 4.354,
8
+ "train_steps_per_second": 0.543
9
+ }
runs/May21_13-17-04_4dbf0a81ecfc/events.out.tfevents.1716298544.4dbf0a81ecfc.2137.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a383e88da9237e8f576d9677eed84cd8126f32bcff88b053104ddbaea87c646
3
- size 13945
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6958851aa176d73a3da98c5e714cbf8bd53267f644d2579aaddd670c844249df
3
+ size 17532
runs/May21_16-19-14_4dbf0a81ecfc/events.out.tfevents.1716308428.4dbf0a81ecfc.2643.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:388934654ca2fb90476f2cfa884590369c1bab2d9ecdd5a9aae7c1128ff7650a
3
+ size 6875
runs/May21_17-48-20_4dbf0a81ecfc/events.out.tfevents.1716313720.4dbf0a81ecfc.3379.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b7e13eb97f8d5d357700ca74cf439b76c3a4cc77c72a1effe3d747ce50b4339
3
+ size 8344
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9980582524271845,
3
+ "total_flos": 1.807042878719918e+17,
4
+ "train_loss": 0.17443326521476418,
5
+ "train_runtime": 473.1182,
6
+ "train_samples": 29084,
7
+ "train_samples_per_second": 4.354,
8
+ "train_steps_per_second": 0.543
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,414 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9980582524271845,
5
+ "eval_steps": 500,
6
+ "global_step": 257,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 5.7377284333132515e-05,
13
+ "grad_norm": 0.427734375,
14
+ "learning_rate": 1.1474469305794606e-07,
15
+ "loss": 1.3587,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.00028688642166566254,
20
+ "grad_norm": 0.58203125,
21
+ "learning_rate": 5.737234652897304e-07,
22
+ "loss": 1.099,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.0005737728433313251,
27
+ "grad_norm": 0.349609375,
28
+ "learning_rate": 1.1474469305794607e-06,
29
+ "loss": 1.1269,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.0008606592649969877,
34
+ "grad_norm": 0.416015625,
35
+ "learning_rate": 1.721170395869191e-06,
36
+ "loss": 1.1759,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.0011475456866626502,
41
+ "grad_norm": 0.337890625,
42
+ "learning_rate": 2.2948938611589215e-06,
43
+ "loss": 1.1985,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.001434432108328313,
48
+ "grad_norm": 0.359375,
49
+ "learning_rate": 2.868617326448652e-06,
50
+ "loss": 1.1267,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.0017213185299939755,
55
+ "grad_norm": 0.30859375,
56
+ "learning_rate": 3.442340791738382e-06,
57
+ "loss": 1.062,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.002008204951659638,
62
+ "grad_norm": 0.3515625,
63
+ "learning_rate": 4.016064257028113e-06,
64
+ "loss": 1.1175,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.0022950913733253003,
69
+ "grad_norm": 0.330078125,
70
+ "learning_rate": 4.589787722317843e-06,
71
+ "loss": 1.1421,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.002581977794990963,
76
+ "grad_norm": 0.32421875,
77
+ "learning_rate": 5.163511187607573e-06,
78
+ "loss": 1.1013,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.002868864216656626,
83
+ "grad_norm": 0.33984375,
84
+ "learning_rate": 5.737234652897304e-06,
85
+ "loss": 1.138,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.0031557506383222884,
90
+ "grad_norm": 0.330078125,
91
+ "learning_rate": 6.310958118187034e-06,
92
+ "loss": 1.128,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.003442637059987951,
97
+ "grad_norm": 0.318359375,
98
+ "learning_rate": 6.884681583476764e-06,
99
+ "loss": 1.1071,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.0037295234816536135,
104
+ "grad_norm": 0.322265625,
105
+ "learning_rate": 7.4584050487664955e-06,
106
+ "loss": 1.1442,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.004016409903319276,
111
+ "grad_norm": 0.326171875,
112
+ "learning_rate": 8.032128514056226e-06,
113
+ "loss": 1.1746,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.004303296324984938,
118
+ "grad_norm": 0.2890625,
119
+ "learning_rate": 8.605851979345956e-06,
120
+ "loss": 1.0971,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.004590182746650601,
125
+ "grad_norm": 0.306640625,
126
+ "learning_rate": 9.179575444635686e-06,
127
+ "loss": 1.1355,
128
+ "step": 80
129
+ },
130
+ {
131
+ "epoch": 0.004877069168316263,
132
+ "grad_norm": 0.28125,
133
+ "learning_rate": 9.753298909925416e-06,
134
+ "loss": 1.0908,
135
+ "step": 85
136
+ },
137
+ {
138
+ "epoch": 0.005163955589981926,
139
+ "grad_norm": 0.30078125,
140
+ "learning_rate": 1.0327022375215146e-05,
141
+ "loss": 1.0386,
142
+ "step": 90
143
+ },
144
+ {
145
+ "epoch": 0.005450842011647588,
146
+ "grad_norm": 0.294921875,
147
+ "learning_rate": 1.0900745840504876e-05,
148
+ "loss": 1.1107,
149
+ "step": 95
150
+ },
151
+ {
152
+ "epoch": 0.005737728433313252,
153
+ "grad_norm": 0.30078125,
154
+ "learning_rate": 1.1474469305794608e-05,
155
+ "loss": 1.071,
156
+ "step": 100
157
+ },
158
+ {
159
+ "epoch": 0.006024614854978914,
160
+ "grad_norm": 0.380859375,
161
+ "learning_rate": 1.2048192771084338e-05,
162
+ "loss": 1.1582,
163
+ "step": 105
164
+ },
165
+ {
166
+ "epoch": 0.006311501276644577,
167
+ "grad_norm": 0.40625,
168
+ "learning_rate": 1.2621916236374069e-05,
169
+ "loss": 1.0057,
170
+ "step": 110
171
+ },
172
+ {
173
+ "epoch": 0.006598387698310239,
174
+ "grad_norm": 0.25390625,
175
+ "learning_rate": 1.3195639701663797e-05,
176
+ "loss": 0.973,
177
+ "step": 115
178
+ },
179
+ {
180
+ "epoch": 0.006885274119975902,
181
+ "grad_norm": 0.291015625,
182
+ "learning_rate": 1.3769363166953527e-05,
183
+ "loss": 0.9738,
184
+ "step": 120
185
+ },
186
+ {
187
+ "epoch": 0.007172160541641564,
188
+ "grad_norm": 0.2734375,
189
+ "learning_rate": 1.434308663224326e-05,
190
+ "loss": 1.0439,
191
+ "step": 125
192
+ },
193
+ {
194
+ "epoch": 0.007459046963307227,
195
+ "grad_norm": 0.30078125,
196
+ "learning_rate": 1.4916810097532991e-05,
197
+ "loss": 1.0216,
198
+ "step": 130
199
+ },
200
+ {
201
+ "epoch": 0.0077459333849728895,
202
+ "grad_norm": 0.236328125,
203
+ "learning_rate": 1.549053356282272e-05,
204
+ "loss": 0.9903,
205
+ "step": 135
206
+ },
207
+ {
208
+ "epoch": 0.008032819806638551,
209
+ "grad_norm": 0.24609375,
210
+ "learning_rate": 1.606425702811245e-05,
211
+ "loss": 0.9875,
212
+ "step": 140
213
+ },
214
+ {
215
+ "epoch": 0.008319706228304214,
216
+ "grad_norm": 0.25,
217
+ "learning_rate": 1.663798049340218e-05,
218
+ "loss": 0.9877,
219
+ "step": 145
220
+ },
221
+ {
222
+ "epoch": 0.008606592649969876,
223
+ "grad_norm": 0.2890625,
224
+ "learning_rate": 1.721170395869191e-05,
225
+ "loss": 0.9866,
226
+ "step": 150
227
+ },
228
+ {
229
+ "epoch": 0.008893479071635539,
230
+ "grad_norm": 0.2578125,
231
+ "learning_rate": 1.7785427423981642e-05,
232
+ "loss": 0.9855,
233
+ "step": 155
234
+ },
235
+ {
236
+ "epoch": 0.009180365493301201,
237
+ "grad_norm": 0.2890625,
238
+ "learning_rate": 1.8359150889271372e-05,
239
+ "loss": 1.0016,
240
+ "step": 160
241
+ },
242
+ {
243
+ "epoch": 0.009467251914966864,
244
+ "grad_norm": 0.28125,
245
+ "learning_rate": 1.8932874354561102e-05,
246
+ "loss": 1.025,
247
+ "step": 165
248
+ },
249
+ {
250
+ "epoch": 0.009754138336632526,
251
+ "grad_norm": 0.28125,
252
+ "learning_rate": 1.9506597819850832e-05,
253
+ "loss": 1.015,
254
+ "step": 170
255
+ },
256
+ {
257
+ "epoch": 0.010041024758298189,
258
+ "grad_norm": 0.27734375,
259
+ "learning_rate": 2.0080321285140562e-05,
260
+ "loss": 0.967,
261
+ "step": 175
262
+ },
263
+ {
264
+ "epoch": 0.010327911179963851,
265
+ "grad_norm": 0.24609375,
266
+ "learning_rate": 2.0654044750430293e-05,
267
+ "loss": 1.0354,
268
+ "step": 180
269
+ },
270
+ {
271
+ "epoch": 0.010614797601629514,
272
+ "grad_norm": 0.259765625,
273
+ "learning_rate": 2.1227768215720023e-05,
274
+ "loss": 1.04,
275
+ "step": 185
276
+ },
277
+ {
278
+ "epoch": 0.010901684023295177,
279
+ "grad_norm": 0.275390625,
280
+ "learning_rate": 2.1801491681009753e-05,
281
+ "loss": 1.05,
282
+ "step": 190
283
+ },
284
+ {
285
+ "epoch": 0.01118857044496084,
286
+ "grad_norm": 0.263671875,
287
+ "learning_rate": 2.2375215146299486e-05,
288
+ "loss": 0.9229,
289
+ "step": 195
290
+ },
291
+ {
292
+ "epoch": 0.011475456866626503,
293
+ "grad_norm": 0.267578125,
294
+ "learning_rate": 2.2948938611589217e-05,
295
+ "loss": 1.0781,
296
+ "step": 200
297
+ },
298
+ {
299
+ "epoch": 0.7961165048543689,
300
+ "grad_norm": 0.90234375,
301
+ "learning_rate": 2.3981489016705205e-05,
302
+ "loss": 0.9635,
303
+ "step": 205
304
+ },
305
+ {
306
+ "epoch": 0.8155339805825242,
307
+ "grad_norm": 0.5234375,
308
+ "learning_rate": 1.9742585080206755e-05,
309
+ "loss": 0.8979,
310
+ "step": 210
311
+ },
312
+ {
313
+ "epoch": 0.8349514563106796,
314
+ "grad_norm": 0.45703125,
315
+ "learning_rate": 1.587464671688187e-05,
316
+ "loss": 0.828,
317
+ "step": 215
318
+ },
319
+ {
320
+ "epoch": 0.8543689320388349,
321
+ "grad_norm": 0.47265625,
322
+ "learning_rate": 1.2395552299381741e-05,
323
+ "loss": 0.7969,
324
+ "step": 220
325
+ },
326
+ {
327
+ "epoch": 0.8737864077669902,
328
+ "grad_norm": 0.470703125,
329
+ "learning_rate": 9.321382887082563e-06,
330
+ "loss": 0.7724,
331
+ "step": 225
332
+ },
333
+ {
334
+ "epoch": 0.8932038834951457,
335
+ "grad_norm": 0.447265625,
336
+ "learning_rate": 6.666347896263325e-06,
337
+ "loss": 0.7529,
338
+ "step": 230
339
+ },
340
+ {
341
+ "epoch": 0.912621359223301,
342
+ "grad_norm": 0.443359375,
343
+ "learning_rate": 4.442719421385922e-06,
344
+ "loss": 0.751,
345
+ "step": 235
346
+ },
347
+ {
348
+ "epoch": 0.9320388349514563,
349
+ "grad_norm": 0.408203125,
350
+ "learning_rate": 2.6607755110584887e-06,
351
+ "loss": 0.7345,
352
+ "step": 240
353
+ },
354
+ {
355
+ "epoch": 0.9514563106796117,
356
+ "grad_norm": 0.400390625,
357
+ "learning_rate": 1.3287526608711131e-06,
358
+ "loss": 0.7324,
359
+ "step": 245
360
+ },
361
+ {
362
+ "epoch": 0.970873786407767,
363
+ "grad_norm": 0.369140625,
364
+ "learning_rate": 4.5280774269154115e-07,
365
+ "loss": 0.7255,
366
+ "step": 250
367
+ },
368
+ {
369
+ "epoch": 0.9902912621359223,
370
+ "grad_norm": 0.38671875,
371
+ "learning_rate": 3.6989546391297256e-08,
372
+ "loss": 0.7229,
373
+ "step": 255
374
+ },
375
+ {
376
+ "epoch": 0.9980582524271845,
377
+ "eval_loss": 0.7271392941474915,
378
+ "eval_runtime": 30.5484,
379
+ "eval_samples_per_second": 3.601,
380
+ "eval_steps_per_second": 0.458,
381
+ "step": 257
382
+ },
383
+ {
384
+ "epoch": 0.9980582524271845,
385
+ "step": 257,
386
+ "total_flos": 1.807042878719918e+17,
387
+ "train_loss": 0.17443326521476418,
388
+ "train_runtime": 473.1182,
389
+ "train_samples_per_second": 4.354,
390
+ "train_steps_per_second": 0.543
391
+ }
392
+ ],
393
+ "logging_steps": 5,
394
+ "max_steps": 257,
395
+ "num_input_tokens_seen": 0,
396
+ "num_train_epochs": 1,
397
+ "save_steps": 100,
398
+ "stateful_callbacks": {
399
+ "TrainerControl": {
400
+ "args": {
401
+ "should_epoch_stop": false,
402
+ "should_evaluate": false,
403
+ "should_log": false,
404
+ "should_save": true,
405
+ "should_training_stop": false
406
+ },
407
+ "attributes": {}
408
+ }
409
+ },
410
+ "total_flos": 1.807042878719918e+17,
411
+ "train_batch_size": 4,
412
+ "trial_name": null,
413
+ "trial_params": null
414
+ }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e342c822dbfe1618fdfdaf5951d1126431e9a3c537f38100ed2ce10ee5f50d35
3
  size 5176
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4d959dbdfda575fd3d10f2b888a220e27f74ee6ea05dbf885e34a243e7f50f9
3
  size 5176