GaetanMichelet commited on
Commit
a4a0675
1 Parent(s): dfd9b0c

Model save

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/gemma-2-2b-it
3
+ library_name: peft
4
+ license: gemma
5
+ tags:
6
+ - trl
7
+ - sft
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: Gemma-2-2B_task-3_60-samples_config-1
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
+ # Gemma-2-2B_task-3_60-samples_config-1
18
+
19
+ This model is a fine-tuned version of [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.0329
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.0001
41
+ - train_batch_size: 1
42
+ - eval_batch_size: 1
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - gradient_accumulation_steps: 8
46
+ - total_train_batch_size: 8
47
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
+ - lr_scheduler_type: cosine
49
+ - lr_scheduler_warmup_ratio: 0.1
50
+ - num_epochs: 50
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss |
55
+ |:-------------:|:-------:|:----:|:---------------:|
56
+ | 3.2369 | 0.8696 | 5 | 3.1359 |
57
+ | 2.5226 | 1.9130 | 11 | 1.7106 |
58
+ | 1.1016 | 2.9565 | 17 | 0.7912 |
59
+ | 0.45 | 4.0 | 23 | 0.5232 |
60
+ | 0.3492 | 4.8696 | 28 | 0.4661 |
61
+ | 0.2407 | 5.9130 | 34 | 0.4271 |
62
+ | 0.2032 | 6.9565 | 40 | 0.4227 |
63
+ | 0.2575 | 8.0 | 46 | 0.4339 |
64
+ | 0.1486 | 8.8696 | 51 | 0.4843 |
65
+ | 0.0961 | 9.9130 | 57 | 0.5847 |
66
+ | 0.0285 | 10.9565 | 63 | 0.7613 |
67
+ | 0.0231 | 12.0 | 69 | 0.8747 |
68
+ | 0.0118 | 12.8696 | 74 | 0.9379 |
69
+ | 0.0095 | 13.9130 | 80 | 1.0329 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - PEFT 0.12.0
75
+ - Transformers 4.44.0
76
+ - Pytorch 2.1.2+cu121
77
+ - Datasets 2.20.0
78
+ - Tokenizers 0.19.1
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b33876753e445dc7e53bbd32f6d069bab038f541806ee3624c186a7146fe0cc2
3
  size 83115256
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e118a3a05d3301076254c7b7b91dbd6dae31674056d545b66167da12caae08e4
3
  size 83115256
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 13.91304347826087,
3
+ "total_flos": 1.7573306278346752e+16,
4
+ "train_loss": 0.6591164629440754,
5
+ "train_runtime": 754.5401,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 3.048,
8
+ "train_steps_per_second": 0.331
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 13.91304347826087,
3
+ "total_flos": 1.7573306278346752e+16,
4
+ "train_loss": 0.6591164629440754,
5
+ "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684051514,
3
+ "best_model_checkpoint": "data/Gemma-2-2B_task-3_60-samples_config-1/checkpoint-40",
4
+ "epoch": 13.91304347826087,
5
+ "eval_steps": 500,
6
+ "global_step": 80,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.17391304347826086,
13
+ "grad_norm": 10.146446228027344,
14
+ "learning_rate": 4.000000000000001e-06,
15
+ "loss": 4.3607,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.34782608695652173,
20
+ "grad_norm": 3.9102349281311035,
21
+ "learning_rate": 8.000000000000001e-06,
22
+ "loss": 2.5129,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.6956521739130435,
27
+ "grad_norm": 4.964460849761963,
28
+ "learning_rate": 1.6000000000000003e-05,
29
+ "loss": 3.2369,
30
+ "step": 4
31
+ },
32
+ {
33
+ "epoch": 0.8695652173913043,
34
+ "eval_loss": 3.1359078884124756,
35
+ "eval_runtime": 4.3268,
36
+ "eval_samples_per_second": 2.773,
37
+ "eval_steps_per_second": 2.773,
38
+ "step": 5
39
+ },
40
+ {
41
+ "epoch": 1.0434782608695652,
42
+ "grad_norm": 6.353696823120117,
43
+ "learning_rate": 2.4e-05,
44
+ "loss": 3.1786,
45
+ "step": 6
46
+ },
47
+ {
48
+ "epoch": 1.391304347826087,
49
+ "grad_norm": 7.290201663970947,
50
+ "learning_rate": 3.2000000000000005e-05,
51
+ "loss": 2.9415,
52
+ "step": 8
53
+ },
54
+ {
55
+ "epoch": 1.7391304347826086,
56
+ "grad_norm": 6.413881778717041,
57
+ "learning_rate": 4e-05,
58
+ "loss": 2.5226,
59
+ "step": 10
60
+ },
61
+ {
62
+ "epoch": 1.9130434782608696,
63
+ "eval_loss": 1.7106043100357056,
64
+ "eval_runtime": 4.1466,
65
+ "eval_samples_per_second": 2.894,
66
+ "eval_steps_per_second": 2.894,
67
+ "step": 11
68
+ },
69
+ {
70
+ "epoch": 2.0869565217391304,
71
+ "grad_norm": 2.802180051803589,
72
+ "learning_rate": 4.8e-05,
73
+ "loss": 1.8672,
74
+ "step": 12
75
+ },
76
+ {
77
+ "epoch": 2.4347826086956523,
78
+ "grad_norm": 4.53109073638916,
79
+ "learning_rate": 5.6000000000000006e-05,
80
+ "loss": 1.4697,
81
+ "step": 14
82
+ },
83
+ {
84
+ "epoch": 2.782608695652174,
85
+ "grad_norm": 2.7835044860839844,
86
+ "learning_rate": 6.400000000000001e-05,
87
+ "loss": 1.1016,
88
+ "step": 16
89
+ },
90
+ {
91
+ "epoch": 2.9565217391304346,
92
+ "eval_loss": 0.7912492156028748,
93
+ "eval_runtime": 4.1534,
94
+ "eval_samples_per_second": 2.889,
95
+ "eval_steps_per_second": 2.889,
96
+ "step": 17
97
+ },
98
+ {
99
+ "epoch": 3.130434782608696,
100
+ "grad_norm": 1.4576541185379028,
101
+ "learning_rate": 7.2e-05,
102
+ "loss": 1.0054,
103
+ "step": 18
104
+ },
105
+ {
106
+ "epoch": 3.4782608695652173,
107
+ "grad_norm": 1.0580472946166992,
108
+ "learning_rate": 8e-05,
109
+ "loss": 0.7351,
110
+ "step": 20
111
+ },
112
+ {
113
+ "epoch": 3.8260869565217392,
114
+ "grad_norm": 1.0042097568511963,
115
+ "learning_rate": 8.800000000000001e-05,
116
+ "loss": 0.45,
117
+ "step": 22
118
+ },
119
+ {
120
+ "epoch": 4.0,
121
+ "eval_loss": 0.5231990218162537,
122
+ "eval_runtime": 4.1455,
123
+ "eval_samples_per_second": 2.895,
124
+ "eval_steps_per_second": 2.895,
125
+ "step": 23
126
+ },
127
+ {
128
+ "epoch": 4.173913043478261,
129
+ "grad_norm": 0.7644234299659729,
130
+ "learning_rate": 9.6e-05,
131
+ "loss": 0.4357,
132
+ "step": 24
133
+ },
134
+ {
135
+ "epoch": 4.521739130434782,
136
+ "grad_norm": 0.7768363952636719,
137
+ "learning_rate": 9.999512620046522e-05,
138
+ "loss": 0.5259,
139
+ "step": 26
140
+ },
141
+ {
142
+ "epoch": 4.869565217391305,
143
+ "grad_norm": 0.6981846690177917,
144
+ "learning_rate": 9.995614150494293e-05,
145
+ "loss": 0.3492,
146
+ "step": 28
147
+ },
148
+ {
149
+ "epoch": 4.869565217391305,
150
+ "eval_loss": 0.4661372900009155,
151
+ "eval_runtime": 4.1458,
152
+ "eval_samples_per_second": 2.894,
153
+ "eval_steps_per_second": 2.894,
154
+ "step": 28
155
+ },
156
+ {
157
+ "epoch": 5.217391304347826,
158
+ "grad_norm": 0.6776373982429504,
159
+ "learning_rate": 9.987820251299122e-05,
160
+ "loss": 0.4199,
161
+ "step": 30
162
+ },
163
+ {
164
+ "epoch": 5.565217391304348,
165
+ "grad_norm": 0.5079626441001892,
166
+ "learning_rate": 9.976136999909156e-05,
167
+ "loss": 0.3505,
168
+ "step": 32
169
+ },
170
+ {
171
+ "epoch": 5.913043478260869,
172
+ "grad_norm": 0.4722975194454193,
173
+ "learning_rate": 9.96057350657239e-05,
174
+ "loss": 0.2407,
175
+ "step": 34
176
+ },
177
+ {
178
+ "epoch": 5.913043478260869,
179
+ "eval_loss": 0.42708635330200195,
180
+ "eval_runtime": 4.1456,
181
+ "eval_samples_per_second": 2.895,
182
+ "eval_steps_per_second": 2.895,
183
+ "step": 34
184
+ },
185
+ {
186
+ "epoch": 6.260869565217392,
187
+ "grad_norm": 0.4819077253341675,
188
+ "learning_rate": 9.941141907232765e-05,
189
+ "loss": 0.2277,
190
+ "step": 36
191
+ },
192
+ {
193
+ "epoch": 6.608695652173913,
194
+ "grad_norm": 0.6771033406257629,
195
+ "learning_rate": 9.917857354066931e-05,
196
+ "loss": 0.3285,
197
+ "step": 38
198
+ },
199
+ {
200
+ "epoch": 6.956521739130435,
201
+ "grad_norm": 0.5343215465545654,
202
+ "learning_rate": 9.890738003669029e-05,
203
+ "loss": 0.2032,
204
+ "step": 40
205
+ },
206
+ {
207
+ "epoch": 6.956521739130435,
208
+ "eval_loss": 0.42271220684051514,
209
+ "eval_runtime": 4.1435,
210
+ "eval_samples_per_second": 2.896,
211
+ "eval_steps_per_second": 2.896,
212
+ "step": 40
213
+ },
214
+ {
215
+ "epoch": 7.304347826086957,
216
+ "grad_norm": 1.0948623418807983,
217
+ "learning_rate": 9.859805002892732e-05,
218
+ "loss": 0.17,
219
+ "step": 42
220
+ },
221
+ {
222
+ "epoch": 7.6521739130434785,
223
+ "grad_norm": 0.5120678544044495,
224
+ "learning_rate": 9.825082472361557e-05,
225
+ "loss": 0.1442,
226
+ "step": 44
227
+ },
228
+ {
229
+ "epoch": 8.0,
230
+ "grad_norm": 0.6902849078178406,
231
+ "learning_rate": 9.786597487660337e-05,
232
+ "loss": 0.2575,
233
+ "step": 46
234
+ },
235
+ {
236
+ "epoch": 8.0,
237
+ "eval_loss": 0.4339255392551422,
238
+ "eval_runtime": 4.1392,
239
+ "eval_samples_per_second": 2.899,
240
+ "eval_steps_per_second": 2.899,
241
+ "step": 46
242
+ },
243
+ {
244
+ "epoch": 8.347826086956522,
245
+ "grad_norm": 0.5653378367424011,
246
+ "learning_rate": 9.744380058222483e-05,
247
+ "loss": 0.1162,
248
+ "step": 48
249
+ },
250
+ {
251
+ "epoch": 8.695652173913043,
252
+ "grad_norm": 0.5017738342285156,
253
+ "learning_rate": 9.698463103929542e-05,
254
+ "loss": 0.1486,
255
+ "step": 50
256
+ },
257
+ {
258
+ "epoch": 8.869565217391305,
259
+ "eval_loss": 0.48427414894104004,
260
+ "eval_runtime": 4.1461,
261
+ "eval_samples_per_second": 2.894,
262
+ "eval_steps_per_second": 2.894,
263
+ "step": 51
264
+ },
265
+ {
266
+ "epoch": 9.043478260869565,
267
+ "grad_norm": 1.150048851966858,
268
+ "learning_rate": 9.648882429441257e-05,
269
+ "loss": 0.1247,
270
+ "step": 52
271
+ },
272
+ {
273
+ "epoch": 9.391304347826088,
274
+ "grad_norm": 0.5316926836967468,
275
+ "learning_rate": 9.595676696276172e-05,
276
+ "loss": 0.0568,
277
+ "step": 54
278
+ },
279
+ {
280
+ "epoch": 9.73913043478261,
281
+ "grad_norm": 0.6746953725814819,
282
+ "learning_rate": 9.538887392664544e-05,
283
+ "loss": 0.0961,
284
+ "step": 56
285
+ },
286
+ {
287
+ "epoch": 9.91304347826087,
288
+ "eval_loss": 0.5847387313842773,
289
+ "eval_runtime": 4.1449,
290
+ "eval_samples_per_second": 2.895,
291
+ "eval_steps_per_second": 2.895,
292
+ "step": 57
293
+ },
294
+ {
295
+ "epoch": 10.08695652173913,
296
+ "grad_norm": 0.5914088487625122,
297
+ "learning_rate": 9.478558801197065e-05,
298
+ "loss": 0.074,
299
+ "step": 58
300
+ },
301
+ {
302
+ "epoch": 10.434782608695652,
303
+ "grad_norm": 0.5299249887466431,
304
+ "learning_rate": 9.414737964294636e-05,
305
+ "loss": 0.0294,
306
+ "step": 60
307
+ },
308
+ {
309
+ "epoch": 10.782608695652174,
310
+ "grad_norm": 0.919384777545929,
311
+ "learning_rate": 9.347474647526095e-05,
312
+ "loss": 0.0285,
313
+ "step": 62
314
+ },
315
+ {
316
+ "epoch": 10.956521739130435,
317
+ "eval_loss": 0.7613394856452942,
318
+ "eval_runtime": 4.144,
319
+ "eval_samples_per_second": 2.896,
320
+ "eval_steps_per_second": 2.896,
321
+ "step": 63
322
+ },
323
+ {
324
+ "epoch": 11.130434782608695,
325
+ "grad_norm": 0.4312540888786316,
326
+ "learning_rate": 9.276821300802534e-05,
327
+ "loss": 0.0218,
328
+ "step": 64
329
+ },
330
+ {
331
+ "epoch": 11.478260869565217,
332
+ "grad_norm": 0.10152506828308105,
333
+ "learning_rate": 9.202833017478422e-05,
334
+ "loss": 0.0079,
335
+ "step": 66
336
+ },
337
+ {
338
+ "epoch": 11.826086956521738,
339
+ "grad_norm": 1.1622179746627808,
340
+ "learning_rate": 9.125567491391476e-05,
341
+ "loss": 0.0231,
342
+ "step": 68
343
+ },
344
+ {
345
+ "epoch": 12.0,
346
+ "eval_loss": 0.8746951222419739,
347
+ "eval_runtime": 4.1414,
348
+ "eval_samples_per_second": 2.898,
349
+ "eval_steps_per_second": 2.898,
350
+ "step": 69
351
+ },
352
+ {
353
+ "epoch": 12.173913043478262,
354
+ "grad_norm": 0.28440412878990173,
355
+ "learning_rate": 9.045084971874738e-05,
356
+ "loss": 0.0052,
357
+ "step": 70
358
+ },
359
+ {
360
+ "epoch": 12.521739130434783,
361
+ "grad_norm": 0.2543913424015045,
362
+ "learning_rate": 8.961448216775954e-05,
363
+ "loss": 0.0042,
364
+ "step": 72
365
+ },
366
+ {
367
+ "epoch": 12.869565217391305,
368
+ "grad_norm": 1.0935192108154297,
369
+ "learning_rate": 8.874722443520899e-05,
370
+ "loss": 0.0118,
371
+ "step": 74
372
+ },
373
+ {
374
+ "epoch": 12.869565217391305,
375
+ "eval_loss": 0.9378873705863953,
376
+ "eval_runtime": 4.145,
377
+ "eval_samples_per_second": 2.895,
378
+ "eval_steps_per_second": 2.895,
379
+ "step": 74
380
+ },
381
+ {
382
+ "epoch": 13.217391304347826,
383
+ "grad_norm": 0.28088173270225525,
384
+ "learning_rate": 8.784975278258783e-05,
385
+ "loss": 0.0044,
386
+ "step": 76
387
+ },
388
+ {
389
+ "epoch": 13.565217391304348,
390
+ "grad_norm": 0.14173804223537445,
391
+ "learning_rate": 8.692276703129421e-05,
392
+ "loss": 0.0027,
393
+ "step": 78
394
+ },
395
+ {
396
+ "epoch": 13.91304347826087,
397
+ "grad_norm": 1.3909518718719482,
398
+ "learning_rate": 8.596699001693255e-05,
399
+ "loss": 0.0095,
400
+ "step": 80
401
+ },
402
+ {
403
+ "epoch": 13.91304347826087,
404
+ "eval_loss": 1.0328662395477295,
405
+ "eval_runtime": 4.1433,
406
+ "eval_samples_per_second": 2.896,
407
+ "eval_steps_per_second": 2.896,
408
+ "step": 80
409
+ },
410
+ {
411
+ "epoch": 13.91304347826087,
412
+ "step": 80,
413
+ "total_flos": 1.7573306278346752e+16,
414
+ "train_loss": 0.6591164629440754,
415
+ "train_runtime": 754.5401,
416
+ "train_samples_per_second": 3.048,
417
+ "train_steps_per_second": 0.331
418
+ }
419
+ ],
420
+ "logging_steps": 2,
421
+ "max_steps": 250,
422
+ "num_input_tokens_seen": 0,
423
+ "num_train_epochs": 50,
424
+ "save_steps": 25,
425
+ "stateful_callbacks": {
426
+ "EarlyStoppingCallback": {
427
+ "args": {
428
+ "early_stopping_patience": 7,
429
+ "early_stopping_threshold": 0.0
430
+ },
431
+ "attributes": {
432
+ "early_stopping_patience_counter": 0
433
+ }
434
+ },
435
+ "TrainerControl": {
436
+ "args": {
437
+ "should_epoch_stop": false,
438
+ "should_evaluate": false,
439
+ "should_log": false,
440
+ "should_save": true,
441
+ "should_training_stop": true
442
+ },
443
+ "attributes": {}
444
+ }
445
+ },
446
+ "total_flos": 1.7573306278346752e+16,
447
+ "train_batch_size": 1,
448
+ "trial_name": null,
449
+ "trial_params": null
450
+ }