GaetanMichelet commited on
Commit
46a02d7
1 Parent(s): 1d30eab

Model save

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-2_auto
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-2_auto
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: 0.6300
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: 16
46
+ - total_train_batch_size: 16
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.072 | 0.6957 | 2 | 3.0875 |
57
+ | 3.0765 | 1.7391 | 5 | 2.5635 |
58
+ | 2.0933 | 2.7826 | 8 | 1.4153 |
59
+ | 1.2307 | 3.8261 | 11 | 0.7854 |
60
+ | 0.5656 | 4.8696 | 14 | 0.5590 |
61
+ | 0.5325 | 5.9130 | 17 | 0.4852 |
62
+ | 0.4027 | 6.9565 | 20 | 0.4474 |
63
+ | 0.2861 | 8.0 | 23 | 0.4358 |
64
+ | 0.3766 | 8.6957 | 25 | 0.4268 |
65
+ | 0.291 | 9.7391 | 28 | 0.4162 |
66
+ | 0.2706 | 10.7826 | 31 | 0.4064 |
67
+ | 0.2037 | 11.8261 | 34 | 0.4027 |
68
+ | 0.2057 | 12.8696 | 37 | 0.4006 |
69
+ | 0.1402 | 13.9130 | 40 | 0.4081 |
70
+ | 0.1817 | 14.9565 | 43 | 0.4246 |
71
+ | 0.119 | 16.0 | 46 | 0.4514 |
72
+ | 0.1067 | 16.6957 | 48 | 0.4775 |
73
+ | 0.0954 | 17.7391 | 51 | 0.5345 |
74
+ | 0.0553 | 18.7826 | 54 | 0.5770 |
75
+ | 0.0604 | 19.8261 | 57 | 0.6300 |
76
+
77
+
78
+ ### Framework versions
79
+
80
+ - PEFT 0.12.0
81
+ - Transformers 4.44.0
82
+ - Pytorch 2.1.2+cu121
83
+ - Datasets 2.20.0
84
+ - Tokenizers 0.19.1
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8971ef28eb9e344b29f7abe45bdf97dd952fa70a6455eea2544b06433615e37e
3
  size 83115256
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9000d773209d0340c5688b4c61c1d0c18d8400997b93f8ff7fc11b20a6a2405
3
  size 83115256
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 19.82608695652174,
3
+ "total_flos": 2.531751456092979e+16,
4
+ "train_loss": 0.6520790398905152,
5
+ "train_runtime": 1086.9346,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 2.116,
8
+ "train_steps_per_second": 0.092
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 19.82608695652174,
3
+ "total_flos": 2.531751456092979e+16,
4
+ "train_loss": 0.6520790398905152,
5
+ "train_runtime": 1086.9346,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 2.116,
8
+ "train_steps_per_second": 0.092
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,414 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.40061458945274353,
3
+ "best_model_checkpoint": "data/Gemma-2-2B_task-3_60-samples_config-2_auto/checkpoint-37",
4
+ "epoch": 19.82608695652174,
5
+ "eval_steps": 500,
6
+ "global_step": 57,
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.34782608695652173,
13
+ "grad_norm": 6.809540271759033,
14
+ "learning_rate": 1e-05,
15
+ "loss": 3.3731,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.6956521739130435,
20
+ "grad_norm": 6.12690544128418,
21
+ "learning_rate": 2e-05,
22
+ "loss": 3.072,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.6956521739130435,
27
+ "eval_loss": 3.0875492095947266,
28
+ "eval_runtime": 4.4181,
29
+ "eval_samples_per_second": 2.716,
30
+ "eval_steps_per_second": 2.716,
31
+ "step": 2
32
+ },
33
+ {
34
+ "epoch": 1.391304347826087,
35
+ "grad_norm": 6.0957536697387695,
36
+ "learning_rate": 4e-05,
37
+ "loss": 3.0765,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 1.7391304347826086,
42
+ "eval_loss": 2.5634982585906982,
43
+ "eval_runtime": 4.1825,
44
+ "eval_samples_per_second": 2.869,
45
+ "eval_steps_per_second": 2.869,
46
+ "step": 5
47
+ },
48
+ {
49
+ "epoch": 2.0869565217391304,
50
+ "grad_norm": 5.55053186416626,
51
+ "learning_rate": 6e-05,
52
+ "loss": 2.8666,
53
+ "step": 6
54
+ },
55
+ {
56
+ "epoch": 2.782608695652174,
57
+ "grad_norm": 3.83312726020813,
58
+ "learning_rate": 8e-05,
59
+ "loss": 2.0933,
60
+ "step": 8
61
+ },
62
+ {
63
+ "epoch": 2.782608695652174,
64
+ "eval_loss": 1.4153375625610352,
65
+ "eval_runtime": 4.183,
66
+ "eval_samples_per_second": 2.869,
67
+ "eval_steps_per_second": 2.869,
68
+ "step": 8
69
+ },
70
+ {
71
+ "epoch": 3.4782608695652173,
72
+ "grad_norm": 2.5791916847229004,
73
+ "learning_rate": 0.0001,
74
+ "loss": 1.2307,
75
+ "step": 10
76
+ },
77
+ {
78
+ "epoch": 3.8260869565217392,
79
+ "eval_loss": 0.7854078412055969,
80
+ "eval_runtime": 4.1806,
81
+ "eval_samples_per_second": 2.87,
82
+ "eval_steps_per_second": 2.87,
83
+ "step": 11
84
+ },
85
+ {
86
+ "epoch": 4.173913043478261,
87
+ "grad_norm": 1.9428495168685913,
88
+ "learning_rate": 9.987820251299122e-05,
89
+ "loss": 0.8527,
90
+ "step": 12
91
+ },
92
+ {
93
+ "epoch": 4.869565217391305,
94
+ "grad_norm": 0.8739281892776489,
95
+ "learning_rate": 9.951340343707852e-05,
96
+ "loss": 0.5656,
97
+ "step": 14
98
+ },
99
+ {
100
+ "epoch": 4.869565217391305,
101
+ "eval_loss": 0.5589617490768433,
102
+ "eval_runtime": 4.1802,
103
+ "eval_samples_per_second": 2.871,
104
+ "eval_steps_per_second": 2.871,
105
+ "step": 14
106
+ },
107
+ {
108
+ "epoch": 5.565217391304348,
109
+ "grad_norm": 0.6738723516464233,
110
+ "learning_rate": 9.890738003669029e-05,
111
+ "loss": 0.5325,
112
+ "step": 16
113
+ },
114
+ {
115
+ "epoch": 5.913043478260869,
116
+ "eval_loss": 0.4852149486541748,
117
+ "eval_runtime": 4.1851,
118
+ "eval_samples_per_second": 2.867,
119
+ "eval_steps_per_second": 2.867,
120
+ "step": 17
121
+ },
122
+ {
123
+ "epoch": 6.260869565217392,
124
+ "grad_norm": 0.4890255033969879,
125
+ "learning_rate": 9.806308479691595e-05,
126
+ "loss": 0.3752,
127
+ "step": 18
128
+ },
129
+ {
130
+ "epoch": 6.956521739130435,
131
+ "grad_norm": 0.5037442445755005,
132
+ "learning_rate": 9.698463103929542e-05,
133
+ "loss": 0.4027,
134
+ "step": 20
135
+ },
136
+ {
137
+ "epoch": 6.956521739130435,
138
+ "eval_loss": 0.4474470615386963,
139
+ "eval_runtime": 4.1788,
140
+ "eval_samples_per_second": 2.872,
141
+ "eval_steps_per_second": 2.872,
142
+ "step": 20
143
+ },
144
+ {
145
+ "epoch": 7.6521739130434785,
146
+ "grad_norm": 0.3417052924633026,
147
+ "learning_rate": 9.567727288213005e-05,
148
+ "loss": 0.2861,
149
+ "step": 22
150
+ },
151
+ {
152
+ "epoch": 8.0,
153
+ "eval_loss": 0.43576323986053467,
154
+ "eval_runtime": 4.1816,
155
+ "eval_samples_per_second": 2.87,
156
+ "eval_steps_per_second": 2.87,
157
+ "step": 23
158
+ },
159
+ {
160
+ "epoch": 8.347826086956522,
161
+ "grad_norm": 0.3297211825847626,
162
+ "learning_rate": 9.414737964294636e-05,
163
+ "loss": 0.3766,
164
+ "step": 24
165
+ },
166
+ {
167
+ "epoch": 8.695652173913043,
168
+ "eval_loss": 0.4267699718475342,
169
+ "eval_runtime": 4.1847,
170
+ "eval_samples_per_second": 2.868,
171
+ "eval_steps_per_second": 2.868,
172
+ "step": 25
173
+ },
174
+ {
175
+ "epoch": 9.043478260869565,
176
+ "grad_norm": 0.37240782380104065,
177
+ "learning_rate": 9.24024048078213e-05,
178
+ "loss": 0.3307,
179
+ "step": 26
180
+ },
181
+ {
182
+ "epoch": 9.73913043478261,
183
+ "grad_norm": 0.42333266139030457,
184
+ "learning_rate": 9.045084971874738e-05,
185
+ "loss": 0.291,
186
+ "step": 28
187
+ },
188
+ {
189
+ "epoch": 9.73913043478261,
190
+ "eval_loss": 0.41624876856803894,
191
+ "eval_runtime": 4.1819,
192
+ "eval_samples_per_second": 2.87,
193
+ "eval_steps_per_second": 2.87,
194
+ "step": 28
195
+ },
196
+ {
197
+ "epoch": 10.434782608695652,
198
+ "grad_norm": 0.3704397976398468,
199
+ "learning_rate": 8.83022221559489e-05,
200
+ "loss": 0.2706,
201
+ "step": 30
202
+ },
203
+ {
204
+ "epoch": 10.782608695652174,
205
+ "eval_loss": 0.4064284861087799,
206
+ "eval_runtime": 4.1878,
207
+ "eval_samples_per_second": 2.865,
208
+ "eval_steps_per_second": 2.865,
209
+ "step": 31
210
+ },
211
+ {
212
+ "epoch": 11.130434782608695,
213
+ "grad_norm": 0.3553304672241211,
214
+ "learning_rate": 8.596699001693255e-05,
215
+ "loss": 0.2492,
216
+ "step": 32
217
+ },
218
+ {
219
+ "epoch": 11.826086956521738,
220
+ "grad_norm": 0.3354627192020416,
221
+ "learning_rate": 8.345653031794292e-05,
222
+ "loss": 0.2037,
223
+ "step": 34
224
+ },
225
+ {
226
+ "epoch": 11.826086956521738,
227
+ "eval_loss": 0.40273547172546387,
228
+ "eval_runtime": 4.1832,
229
+ "eval_samples_per_second": 2.869,
230
+ "eval_steps_per_second": 2.869,
231
+ "step": 34
232
+ },
233
+ {
234
+ "epoch": 12.521739130434783,
235
+ "grad_norm": 0.35223323106765747,
236
+ "learning_rate": 8.07830737662829e-05,
237
+ "loss": 0.2057,
238
+ "step": 36
239
+ },
240
+ {
241
+ "epoch": 12.869565217391305,
242
+ "eval_loss": 0.40061458945274353,
243
+ "eval_runtime": 4.1849,
244
+ "eval_samples_per_second": 2.867,
245
+ "eval_steps_per_second": 2.867,
246
+ "step": 37
247
+ },
248
+ {
249
+ "epoch": 13.217391304347826,
250
+ "grad_norm": 0.45181211829185486,
251
+ "learning_rate": 7.795964517353735e-05,
252
+ "loss": 0.1952,
253
+ "step": 38
254
+ },
255
+ {
256
+ "epoch": 13.91304347826087,
257
+ "grad_norm": 0.2943543791770935,
258
+ "learning_rate": 7.500000000000001e-05,
259
+ "loss": 0.1402,
260
+ "step": 40
261
+ },
262
+ {
263
+ "epoch": 13.91304347826087,
264
+ "eval_loss": 0.4081263542175293,
265
+ "eval_runtime": 4.1822,
266
+ "eval_samples_per_second": 2.869,
267
+ "eval_steps_per_second": 2.869,
268
+ "step": 40
269
+ },
270
+ {
271
+ "epoch": 14.608695652173914,
272
+ "grad_norm": 0.4012012779712677,
273
+ "learning_rate": 7.191855733945387e-05,
274
+ "loss": 0.1817,
275
+ "step": 42
276
+ },
277
+ {
278
+ "epoch": 14.956521739130435,
279
+ "eval_loss": 0.4245516359806061,
280
+ "eval_runtime": 4.1805,
281
+ "eval_samples_per_second": 2.87,
282
+ "eval_steps_per_second": 2.87,
283
+ "step": 43
284
+ },
285
+ {
286
+ "epoch": 15.304347826086957,
287
+ "grad_norm": 0.38791102170944214,
288
+ "learning_rate": 6.873032967079561e-05,
289
+ "loss": 0.1171,
290
+ "step": 44
291
+ },
292
+ {
293
+ "epoch": 16.0,
294
+ "grad_norm": 0.3992724120616913,
295
+ "learning_rate": 6.545084971874738e-05,
296
+ "loss": 0.119,
297
+ "step": 46
298
+ },
299
+ {
300
+ "epoch": 16.0,
301
+ "eval_loss": 0.4513971507549286,
302
+ "eval_runtime": 4.1834,
303
+ "eval_samples_per_second": 2.869,
304
+ "eval_steps_per_second": 2.869,
305
+ "step": 46
306
+ },
307
+ {
308
+ "epoch": 16.695652173913043,
309
+ "grad_norm": 0.45827752351760864,
310
+ "learning_rate": 6.209609477998338e-05,
311
+ "loss": 0.1067,
312
+ "step": 48
313
+ },
314
+ {
315
+ "epoch": 16.695652173913043,
316
+ "eval_loss": 0.4774992763996124,
317
+ "eval_runtime": 4.1831,
318
+ "eval_samples_per_second": 2.869,
319
+ "eval_steps_per_second": 2.869,
320
+ "step": 48
321
+ },
322
+ {
323
+ "epoch": 17.391304347826086,
324
+ "grad_norm": 0.4417066276073456,
325
+ "learning_rate": 5.868240888334653e-05,
326
+ "loss": 0.0954,
327
+ "step": 50
328
+ },
329
+ {
330
+ "epoch": 17.73913043478261,
331
+ "eval_loss": 0.5344513058662415,
332
+ "eval_runtime": 4.1854,
333
+ "eval_samples_per_second": 2.867,
334
+ "eval_steps_per_second": 2.867,
335
+ "step": 51
336
+ },
337
+ {
338
+ "epoch": 18.08695652173913,
339
+ "grad_norm": 0.46811383962631226,
340
+ "learning_rate": 5.522642316338268e-05,
341
+ "loss": 0.0478,
342
+ "step": 52
343
+ },
344
+ {
345
+ "epoch": 18.782608695652176,
346
+ "grad_norm": 0.35958993434906006,
347
+ "learning_rate": 5.174497483512506e-05,
348
+ "loss": 0.0553,
349
+ "step": 54
350
+ },
351
+ {
352
+ "epoch": 18.782608695652176,
353
+ "eval_loss": 0.5769810080528259,
354
+ "eval_runtime": 4.1832,
355
+ "eval_samples_per_second": 2.869,
356
+ "eval_steps_per_second": 2.869,
357
+ "step": 54
358
+ },
359
+ {
360
+ "epoch": 19.47826086956522,
361
+ "grad_norm": 0.28935864567756653,
362
+ "learning_rate": 4.825502516487497e-05,
363
+ "loss": 0.0604,
364
+ "step": 56
365
+ },
366
+ {
367
+ "epoch": 19.82608695652174,
368
+ "eval_loss": 0.6299728155136108,
369
+ "eval_runtime": 4.1838,
370
+ "eval_samples_per_second": 2.868,
371
+ "eval_steps_per_second": 2.868,
372
+ "step": 57
373
+ },
374
+ {
375
+ "epoch": 19.82608695652174,
376
+ "step": 57,
377
+ "total_flos": 2.531751456092979e+16,
378
+ "train_loss": 0.6520790398905152,
379
+ "train_runtime": 1086.9346,
380
+ "train_samples_per_second": 2.116,
381
+ "train_steps_per_second": 0.092
382
+ }
383
+ ],
384
+ "logging_steps": 2,
385
+ "max_steps": 100,
386
+ "num_input_tokens_seen": 0,
387
+ "num_train_epochs": 50,
388
+ "save_steps": 25,
389
+ "stateful_callbacks": {
390
+ "EarlyStoppingCallback": {
391
+ "args": {
392
+ "early_stopping_patience": 7,
393
+ "early_stopping_threshold": 0.0
394
+ },
395
+ "attributes": {
396
+ "early_stopping_patience_counter": 0
397
+ }
398
+ },
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": true
406
+ },
407
+ "attributes": {}
408
+ }
409
+ },
410
+ "total_flos": 2.531751456092979e+16,
411
+ "train_batch_size": 1,
412
+ "trial_name": null,
413
+ "trial_params": null
414
+ }