terry69 commited on
Commit
ab8729e
·
verified ·
1 Parent(s): 92143f4

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
+ model-index:
10
+ - name: zephyr-7b-sft-qlora-10p
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # zephyr-7b-sft-qlora-10p
18
+
19
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.0007
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.0002
41
+ - train_batch_size: 8
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - num_devices: 4
46
+ - gradient_accumulation_steps: 2
47
+ - total_train_batch_size: 64
48
+ - total_eval_batch_size: 32
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.7624 | 1.0 | 328 | 0.0007 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - PEFT 0.7.1
64
+ - Transformers 4.39.0.dev0
65
+ - Pytorch 2.2.2+cu121
66
+ - Datasets 2.14.6
67
+ - Tokenizers 0.15.2
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:79d3c267fb6cc7da8c821180b90d2deb0d5f32dd9b436a00c458f37208d6d53c
3
  size 83946192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9aac24f90c0cfe66aaead2ce811a346a0697b00721d417eb552ef0a9000295f8
3
  size 83946192
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 0.7574595819886137,
4
+ "train_runtime": 12221.6931,
5
+ "train_samples": 20971,
6
+ "train_samples_per_second": 1.716,
7
+ "train_steps_per_second": 0.027
8
+ }
runs/Apr15_15-13-14_ip-172-31-69-60.ec2.internal/events.out.tfevents.1713194185.ip-172-31-69-60.ec2.internal.9296.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:180ad4e03cb6e337877e96136f5e64cf5746bafbad14ed37749cb57f223a16d2
3
- size 17473
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a409c0eecbdaef144e9c4a61db7983f44f3570ee9e8c9a97dae7844d2b828490
3
+ size 19153
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 0.7574595819886137,
4
+ "train_runtime": 12221.6931,
5
+ "train_samples": 20971,
6
+ "train_samples_per_second": 1.716,
7
+ "train_steps_per_second": 0.027
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,500 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.0,
13
+ "grad_norm": 0.2236690697972986,
14
+ "learning_rate": 6.060606060606061e-06,
15
+ "loss": 0.78,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.02,
20
+ "grad_norm": 0.26029867284064856,
21
+ "learning_rate": 3.0303030303030306e-05,
22
+ "loss": 0.8514,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.03,
27
+ "grad_norm": 0.22205145275683155,
28
+ "learning_rate": 6.060606060606061e-05,
29
+ "loss": 0.8077,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.05,
34
+ "grad_norm": 0.2334047293970092,
35
+ "learning_rate": 9.090909090909092e-05,
36
+ "loss": 0.7679,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.06,
41
+ "grad_norm": 0.23746249574604303,
42
+ "learning_rate": 0.00012121212121212122,
43
+ "loss": 0.8132,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.08,
48
+ "grad_norm": 0.22885117524875023,
49
+ "learning_rate": 0.00015151515151515152,
50
+ "loss": 0.7899,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.09,
55
+ "grad_norm": 0.20831668712717807,
56
+ "learning_rate": 0.00018181818181818183,
57
+ "loss": 0.7428,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.11,
62
+ "grad_norm": 0.19199496311665767,
63
+ "learning_rate": 0.0001999773186295914,
64
+ "loss": 0.78,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.12,
69
+ "grad_norm": 0.19147071782735675,
70
+ "learning_rate": 0.00019972227135924052,
71
+ "loss": 0.7477,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.14,
76
+ "grad_norm": 0.19040416768107277,
77
+ "learning_rate": 0.00019918455047624847,
78
+ "loss": 0.7854,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.15,
83
+ "grad_norm": 0.20275414484039378,
84
+ "learning_rate": 0.00019836568020887964,
85
+ "loss": 0.7718,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.17,
90
+ "grad_norm": 0.19925208746858342,
91
+ "learning_rate": 0.00019726798173387415,
92
+ "loss": 0.7383,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.18,
97
+ "grad_norm": 0.19063493155519695,
98
+ "learning_rate": 0.00019589456659682057,
99
+ "loss": 0.7515,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.2,
104
+ "grad_norm": 0.20269031289899087,
105
+ "learning_rate": 0.00019424932789214157,
106
+ "loss": 0.7755,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.21,
111
+ "grad_norm": 0.16992617288339684,
112
+ "learning_rate": 0.00019233692922769496,
113
+ "loss": 0.7611,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.23,
118
+ "grad_norm": 0.2069947425021312,
119
+ "learning_rate": 0.00019016279150527044,
120
+ "loss": 0.7716,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.24,
125
+ "grad_norm": 0.18111154523610767,
126
+ "learning_rate": 0.00018773307755445465,
127
+ "loss": 0.7401,
128
+ "step": 80
129
+ },
130
+ {
131
+ "epoch": 0.26,
132
+ "grad_norm": 0.18525896252325397,
133
+ "learning_rate": 0.0001850546746634211,
134
+ "loss": 0.7151,
135
+ "step": 85
136
+ },
137
+ {
138
+ "epoch": 0.27,
139
+ "grad_norm": 0.18515855762618214,
140
+ "learning_rate": 0.00018213517505616338,
141
+ "loss": 0.7627,
142
+ "step": 90
143
+ },
144
+ {
145
+ "epoch": 0.29,
146
+ "grad_norm": 0.18273791603663525,
147
+ "learning_rate": 0.0001789828543715116,
148
+ "loss": 0.7589,
149
+ "step": 95
150
+ },
151
+ {
152
+ "epoch": 0.3,
153
+ "grad_norm": 0.1977195453268108,
154
+ "learning_rate": 0.00017560664820493498,
155
+ "loss": 0.7599,
156
+ "step": 100
157
+ },
158
+ {
159
+ "epoch": 0.32,
160
+ "grad_norm": 0.18478703474844185,
161
+ "learning_rate": 0.0001720161267796256,
162
+ "loss": 0.7581,
163
+ "step": 105
164
+ },
165
+ {
166
+ "epoch": 0.34,
167
+ "grad_norm": 0.2017673312231845,
168
+ "learning_rate": 0.00016822146781866098,
169
+ "loss": 0.7774,
170
+ "step": 110
171
+ },
172
+ {
173
+ "epoch": 0.35,
174
+ "grad_norm": 0.20181429393644923,
175
+ "learning_rate": 0.00016423342769514228,
176
+ "loss": 0.7856,
177
+ "step": 115
178
+ },
179
+ {
180
+ "epoch": 0.37,
181
+ "grad_norm": 0.19528858843891428,
182
+ "learning_rate": 0.0001600633109420861,
183
+ "loss": 0.7547,
184
+ "step": 120
185
+ },
186
+ {
187
+ "epoch": 0.38,
188
+ "grad_norm": 0.18467692515789833,
189
+ "learning_rate": 0.00015572293820849753,
190
+ "loss": 0.7695,
191
+ "step": 125
192
+ },
193
+ {
194
+ "epoch": 0.4,
195
+ "grad_norm": 0.19353938556348074,
196
+ "learning_rate": 0.0001512246127524561,
197
+ "loss": 0.7645,
198
+ "step": 130
199
+ },
200
+ {
201
+ "epoch": 0.41,
202
+ "grad_norm": 0.19954634875363095,
203
+ "learning_rate": 0.00014658108556619417,
204
+ "loss": 0.7504,
205
+ "step": 135
206
+ },
207
+ {
208
+ "epoch": 0.43,
209
+ "grad_norm": 0.18395859693270894,
210
+ "learning_rate": 0.00014180551923202405,
211
+ "loss": 0.7474,
212
+ "step": 140
213
+ },
214
+ {
215
+ "epoch": 0.44,
216
+ "grad_norm": 0.18326607098361092,
217
+ "learning_rate": 0.00013691145061156844,
218
+ "loss": 0.738,
219
+ "step": 145
220
+ },
221
+ {
222
+ "epoch": 0.46,
223
+ "grad_norm": 0.2025218695987175,
224
+ "learning_rate": 0.00013191275247405527,
225
+ "loss": 0.7428,
226
+ "step": 150
227
+ },
228
+ {
229
+ "epoch": 0.47,
230
+ "grad_norm": 0.18224134869908928,
231
+ "learning_rate": 0.0001268235941724463,
232
+ "loss": 0.7851,
233
+ "step": 155
234
+ },
235
+ {
236
+ "epoch": 0.49,
237
+ "grad_norm": 0.2018056393971711,
238
+ "learning_rate": 0.00012165840147886656,
239
+ "loss": 0.7419,
240
+ "step": 160
241
+ },
242
+ {
243
+ "epoch": 0.5,
244
+ "grad_norm": 0.19390988446895077,
245
+ "learning_rate": 0.00011643181569318595,
246
+ "loss": 0.7339,
247
+ "step": 165
248
+ },
249
+ {
250
+ "epoch": 0.52,
251
+ "grad_norm": 0.1797710710215175,
252
+ "learning_rate": 0.00011115865214066414,
253
+ "loss": 0.7765,
254
+ "step": 170
255
+ },
256
+ {
257
+ "epoch": 0.53,
258
+ "grad_norm": 0.18494878031385864,
259
+ "learning_rate": 0.00010585385817630137,
260
+ "loss": 0.7549,
261
+ "step": 175
262
+ },
263
+ {
264
+ "epoch": 0.55,
265
+ "grad_norm": 0.1873623745156525,
266
+ "learning_rate": 0.00010053247081493685,
267
+ "loss": 0.7455,
268
+ "step": 180
269
+ },
270
+ {
271
+ "epoch": 0.56,
272
+ "grad_norm": 0.2007536977692608,
273
+ "learning_rate": 9.520957410719632e-05,
274
+ "loss": 0.7284,
275
+ "step": 185
276
+ },
277
+ {
278
+ "epoch": 0.58,
279
+ "grad_norm": 0.20084660373567162,
280
+ "learning_rate": 8.990025638211179e-05,
281
+ "loss": 0.7365,
282
+ "step": 190
283
+ },
284
+ {
285
+ "epoch": 0.59,
286
+ "grad_norm": 0.1777087435150232,
287
+ "learning_rate": 8.461956747761374e-05,
288
+ "loss": 0.7634,
289
+ "step": 195
290
+ },
291
+ {
292
+ "epoch": 0.61,
293
+ "grad_norm": 0.19971231562468167,
294
+ "learning_rate": 7.938247608013021e-05,
295
+ "loss": 0.7718,
296
+ "step": 200
297
+ },
298
+ {
299
+ "epoch": 0.62,
300
+ "grad_norm": 0.17345330498808387,
301
+ "learning_rate": 7.420382729421883e-05,
302
+ "loss": 0.7465,
303
+ "step": 205
304
+ },
305
+ {
306
+ "epoch": 0.64,
307
+ "grad_norm": 0.18761704025234713,
308
+ "learning_rate": 6.909830056250527e-05,
309
+ "loss": 0.7706,
310
+ "step": 210
311
+ },
312
+ {
313
+ "epoch": 0.66,
314
+ "grad_norm": 0.17809676849682574,
315
+ "learning_rate": 6.408036805520801e-05,
316
+ "loss": 0.7499,
317
+ "step": 215
318
+ },
319
+ {
320
+ "epoch": 0.67,
321
+ "grad_norm": 0.17592017622518652,
322
+ "learning_rate": 5.916425364719975e-05,
323
+ "loss": 0.7363,
324
+ "step": 220
325
+ },
326
+ {
327
+ "epoch": 0.69,
328
+ "grad_norm": 0.18353797313035095,
329
+ "learning_rate": 5.436389259888841e-05,
330
+ "loss": 0.7865,
331
+ "step": 225
332
+ },
333
+ {
334
+ "epoch": 0.7,
335
+ "grad_norm": 0.16920575104989433,
336
+ "learning_rate": 4.969289205520778e-05,
337
+ "loss": 0.7762,
338
+ "step": 230
339
+ },
340
+ {
341
+ "epoch": 0.72,
342
+ "grad_norm": 0.17525164877781466,
343
+ "learning_rate": 4.516449247468666e-05,
344
+ "loss": 0.7705,
345
+ "step": 235
346
+ },
347
+ {
348
+ "epoch": 0.73,
349
+ "grad_norm": 0.16997303291506524,
350
+ "learning_rate": 4.0791530097930676e-05,
351
+ "loss": 0.7378,
352
+ "step": 240
353
+ },
354
+ {
355
+ "epoch": 0.75,
356
+ "grad_norm": 0.19350175031226066,
357
+ "learning_rate": 3.658640056190378e-05,
358
+ "loss": 0.75,
359
+ "step": 245
360
+ },
361
+ {
362
+ "epoch": 0.76,
363
+ "grad_norm": 0.1851373813890163,
364
+ "learning_rate": 3.256102376314824e-05,
365
+ "loss": 0.7335,
366
+ "step": 250
367
+ },
368
+ {
369
+ "epoch": 0.78,
370
+ "grad_norm": 0.19025856968545068,
371
+ "learning_rate": 2.872681006954315e-05,
372
+ "loss": 0.7608,
373
+ "step": 255
374
+ },
375
+ {
376
+ "epoch": 0.79,
377
+ "grad_norm": 0.17435238315151894,
378
+ "learning_rate": 2.5094627976376927e-05,
379
+ "loss": 0.763,
380
+ "step": 260
381
+ },
382
+ {
383
+ "epoch": 0.81,
384
+ "grad_norm": 0.1757987053535454,
385
+ "learning_rate": 2.167477329841633e-05,
386
+ "loss": 0.7407,
387
+ "step": 265
388
+ },
389
+ {
390
+ "epoch": 0.82,
391
+ "grad_norm": 0.15648732497329954,
392
+ "learning_rate": 1.8476939985301256e-05,
393
+ "loss": 0.7291,
394
+ "step": 270
395
+ },
396
+ {
397
+ "epoch": 0.84,
398
+ "grad_norm": 0.18235352401371746,
399
+ "learning_rate": 1.5510192642991073e-05,
400
+ "loss": 0.7439,
401
+ "step": 275
402
+ },
403
+ {
404
+ "epoch": 0.85,
405
+ "grad_norm": 0.18542681268158623,
406
+ "learning_rate": 1.2782940839154111e-05,
407
+ "loss": 0.715,
408
+ "step": 280
409
+ },
410
+ {
411
+ "epoch": 0.87,
412
+ "grad_norm": 0.1632787983342785,
413
+ "learning_rate": 1.0302915265334723e-05,
414
+ "loss": 0.7412,
415
+ "step": 285
416
+ },
417
+ {
418
+ "epoch": 0.88,
419
+ "grad_norm": 0.17258647099832436,
420
+ "learning_rate": 8.077145823467924e-06,
421
+ "loss": 0.7405,
422
+ "step": 290
423
+ },
424
+ {
425
+ "epoch": 0.9,
426
+ "grad_norm": 0.17685931853385112,
427
+ "learning_rate": 6.111941698858681e-06,
428
+ "loss": 0.7794,
429
+ "step": 295
430
+ },
431
+ {
432
+ "epoch": 0.91,
433
+ "grad_norm": 0.19289880153714936,
434
+ "learning_rate": 4.412873476110702e-06,
435
+ "loss": 0.7261,
436
+ "step": 300
437
+ },
438
+ {
439
+ "epoch": 0.93,
440
+ "grad_norm": 0.17361682876889314,
441
+ "learning_rate": 2.984757348699152e-06,
442
+ "loss": 0.743,
443
+ "step": 305
444
+ },
445
+ {
446
+ "epoch": 0.95,
447
+ "grad_norm": 0.1755708133957199,
448
+ "learning_rate": 1.8316414669469539e-06,
449
+ "loss": 0.7319,
450
+ "step": 310
451
+ },
452
+ {
453
+ "epoch": 0.96,
454
+ "grad_norm": 0.18295714393341683,
455
+ "learning_rate": 9.567944631029169e-07,
456
+ "loss": 0.7786,
457
+ "step": 315
458
+ },
459
+ {
460
+ "epoch": 0.98,
461
+ "grad_norm": 0.17826598365273802,
462
+ "learning_rate": 3.6269618604847233e-07,
463
+ "loss": 0.7349,
464
+ "step": 320
465
+ },
466
+ {
467
+ "epoch": 0.99,
468
+ "grad_norm": 0.18920206470427947,
469
+ "learning_rate": 5.103067189662358e-08,
470
+ "loss": 0.7624,
471
+ "step": 325
472
+ },
473
+ {
474
+ "epoch": 1.0,
475
+ "eval_loss": 0.0007455331506207585,
476
+ "eval_runtime": 326.3066,
477
+ "eval_samples_per_second": 7.079,
478
+ "eval_steps_per_second": 0.224,
479
+ "step": 328
480
+ },
481
+ {
482
+ "epoch": 1.0,
483
+ "step": 328,
484
+ "total_flos": 4951706310279168.0,
485
+ "train_loss": 0.7574595819886137,
486
+ "train_runtime": 12221.6931,
487
+ "train_samples_per_second": 1.716,
488
+ "train_steps_per_second": 0.027
489
+ }
490
+ ],
491
+ "logging_steps": 5,
492
+ "max_steps": 328,
493
+ "num_input_tokens_seen": 0,
494
+ "num_train_epochs": 1,
495
+ "save_steps": 100,
496
+ "total_flos": 4951706310279168.0,
497
+ "train_batch_size": 8,
498
+ "trial_name": null,
499
+ "trial_params": null
500
+ }