GaetanMichelet commited on
Commit
ebb615a
1 Parent(s): 7aef951

Model save

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-Instruct-v0.3
3
+ library_name: peft
4
+ license: apache-2.0
5
+ tags:
6
+ - trl
7
+ - sft
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: Mistral-7B_task-3_60-samples_config-1_full
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
+ # Mistral-7B_task-3_60-samples_config-1_full
18
+
19
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.1056
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
+ | 1.2252 | 0.8696 | 5 | 1.1981 |
57
+ | 1.1411 | 1.9130 | 11 | 1.0844 |
58
+ | 1.0554 | 2.9565 | 17 | 0.9996 |
59
+ | 0.8972 | 4.0 | 23 | 0.9074 |
60
+ | 0.8159 | 4.8696 | 28 | 0.8847 |
61
+ | 0.7851 | 5.9130 | 34 | 0.8734 |
62
+ | 0.7179 | 6.9565 | 40 | 0.8734 |
63
+ | 0.6768 | 8.0 | 46 | 0.8809 |
64
+ | 0.6127 | 8.8696 | 51 | 0.8960 |
65
+ | 0.5592 | 9.9130 | 57 | 0.9449 |
66
+ | 0.4519 | 10.9565 | 63 | 0.9643 |
67
+ | 0.367 | 12.0 | 69 | 0.9817 |
68
+ | 0.3385 | 12.8696 | 74 | 1.1056 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - PEFT 0.12.0
74
+ - Transformers 4.44.0
75
+ - Pytorch 2.1.2+cu121
76
+ - Datasets 2.20.0
77
+ - Tokenizers 0.19.1
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bd17401644f31e0aa7db72c11f32c85f842f3a41c6d31f3eb0b37164b85b574f
3
  size 167832240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47d6f8d4adb816173adfd564efa4dfa97c2eb403e2230b5f3b0837f9cfd4d82c
3
  size 167832240
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 12.869565217391305,
3
+ "total_flos": 5.893544901135565e+16,
4
+ "train_loss": 0.7602536090322443,
5
+ "train_runtime": 2198.2645,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 1.046,
8
+ "train_steps_per_second": 0.114
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 12.869565217391305,
3
+ "total_flos": 5.893544901135565e+16,
4
+ "train_loss": 0.7602536090322443,
5
+ "train_runtime": 2198.2645,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 1.046,
8
+ "train_steps_per_second": 0.114
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,421 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8733854293823242,
3
+ "best_model_checkpoint": "data/Mistral-7B_task-3_60-samples_config-1_full/checkpoint-34",
4
+ "epoch": 12.869565217391305,
5
+ "eval_steps": 500,
6
+ "global_step": 74,
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": 0.977586030960083,
14
+ "learning_rate": 4.000000000000001e-06,
15
+ "loss": 1.2526,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.34782608695652173,
20
+ "grad_norm": 1.1381486654281616,
21
+ "learning_rate": 8.000000000000001e-06,
22
+ "loss": 1.2788,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.6956521739130435,
27
+ "grad_norm": 0.9461638331413269,
28
+ "learning_rate": 1.6000000000000003e-05,
29
+ "loss": 1.2252,
30
+ "step": 4
31
+ },
32
+ {
33
+ "epoch": 0.8695652173913043,
34
+ "eval_loss": 1.1980607509613037,
35
+ "eval_runtime": 13.8108,
36
+ "eval_samples_per_second": 0.869,
37
+ "eval_steps_per_second": 0.869,
38
+ "step": 5
39
+ },
40
+ {
41
+ "epoch": 1.0434782608695652,
42
+ "grad_norm": 0.861394464969635,
43
+ "learning_rate": 2.4e-05,
44
+ "loss": 1.2099,
45
+ "step": 6
46
+ },
47
+ {
48
+ "epoch": 1.391304347826087,
49
+ "grad_norm": 0.608093798160553,
50
+ "learning_rate": 3.2000000000000005e-05,
51
+ "loss": 1.1723,
52
+ "step": 8
53
+ },
54
+ {
55
+ "epoch": 1.7391304347826086,
56
+ "grad_norm": 0.4019879400730133,
57
+ "learning_rate": 4e-05,
58
+ "loss": 1.1411,
59
+ "step": 10
60
+ },
61
+ {
62
+ "epoch": 1.9130434782608696,
63
+ "eval_loss": 1.0843513011932373,
64
+ "eval_runtime": 13.8053,
65
+ "eval_samples_per_second": 0.869,
66
+ "eval_steps_per_second": 0.869,
67
+ "step": 11
68
+ },
69
+ {
70
+ "epoch": 2.0869565217391304,
71
+ "grad_norm": 0.4438973367214203,
72
+ "learning_rate": 4.8e-05,
73
+ "loss": 1.1031,
74
+ "step": 12
75
+ },
76
+ {
77
+ "epoch": 2.4347826086956523,
78
+ "grad_norm": 0.32766103744506836,
79
+ "learning_rate": 5.6000000000000006e-05,
80
+ "loss": 1.0271,
81
+ "step": 14
82
+ },
83
+ {
84
+ "epoch": 2.782608695652174,
85
+ "grad_norm": 0.3773520290851593,
86
+ "learning_rate": 6.400000000000001e-05,
87
+ "loss": 1.0554,
88
+ "step": 16
89
+ },
90
+ {
91
+ "epoch": 2.9565217391304346,
92
+ "eval_loss": 0.9996404647827148,
93
+ "eval_runtime": 13.8037,
94
+ "eval_samples_per_second": 0.869,
95
+ "eval_steps_per_second": 0.869,
96
+ "step": 17
97
+ },
98
+ {
99
+ "epoch": 3.130434782608696,
100
+ "grad_norm": 0.4237472116947174,
101
+ "learning_rate": 7.2e-05,
102
+ "loss": 0.9587,
103
+ "step": 18
104
+ },
105
+ {
106
+ "epoch": 3.4782608695652173,
107
+ "grad_norm": 0.5382972359657288,
108
+ "learning_rate": 8e-05,
109
+ "loss": 0.9361,
110
+ "step": 20
111
+ },
112
+ {
113
+ "epoch": 3.8260869565217392,
114
+ "grad_norm": 0.42597174644470215,
115
+ "learning_rate": 8.800000000000001e-05,
116
+ "loss": 0.8972,
117
+ "step": 22
118
+ },
119
+ {
120
+ "epoch": 4.0,
121
+ "eval_loss": 0.9073739051818848,
122
+ "eval_runtime": 13.8023,
123
+ "eval_samples_per_second": 0.869,
124
+ "eval_steps_per_second": 0.869,
125
+ "step": 23
126
+ },
127
+ {
128
+ "epoch": 4.173913043478261,
129
+ "grad_norm": 0.3177820146083832,
130
+ "learning_rate": 9.6e-05,
131
+ "loss": 0.8962,
132
+ "step": 24
133
+ },
134
+ {
135
+ "epoch": 4.521739130434782,
136
+ "grad_norm": 0.2999187707901001,
137
+ "learning_rate": 9.999512620046522e-05,
138
+ "loss": 0.8616,
139
+ "step": 26
140
+ },
141
+ {
142
+ "epoch": 4.869565217391305,
143
+ "grad_norm": 0.30600398778915405,
144
+ "learning_rate": 9.995614150494293e-05,
145
+ "loss": 0.8159,
146
+ "step": 28
147
+ },
148
+ {
149
+ "epoch": 4.869565217391305,
150
+ "eval_loss": 0.8847095370292664,
151
+ "eval_runtime": 13.801,
152
+ "eval_samples_per_second": 0.869,
153
+ "eval_steps_per_second": 0.869,
154
+ "step": 28
155
+ },
156
+ {
157
+ "epoch": 5.217391304347826,
158
+ "grad_norm": 0.2666756212711334,
159
+ "learning_rate": 9.987820251299122e-05,
160
+ "loss": 0.7828,
161
+ "step": 30
162
+ },
163
+ {
164
+ "epoch": 5.565217391304348,
165
+ "grad_norm": 0.2639431655406952,
166
+ "learning_rate": 9.976136999909156e-05,
167
+ "loss": 0.8166,
168
+ "step": 32
169
+ },
170
+ {
171
+ "epoch": 5.913043478260869,
172
+ "grad_norm": 0.25138649344444275,
173
+ "learning_rate": 9.96057350657239e-05,
174
+ "loss": 0.7851,
175
+ "step": 34
176
+ },
177
+ {
178
+ "epoch": 5.913043478260869,
179
+ "eval_loss": 0.8733854293823242,
180
+ "eval_runtime": 13.808,
181
+ "eval_samples_per_second": 0.869,
182
+ "eval_steps_per_second": 0.869,
183
+ "step": 34
184
+ },
185
+ {
186
+ "epoch": 6.260869565217392,
187
+ "grad_norm": 0.2561894953250885,
188
+ "learning_rate": 9.941141907232765e-05,
189
+ "loss": 0.7616,
190
+ "step": 36
191
+ },
192
+ {
193
+ "epoch": 6.608695652173913,
194
+ "grad_norm": 0.32361170649528503,
195
+ "learning_rate": 9.917857354066931e-05,
196
+ "loss": 0.7549,
197
+ "step": 38
198
+ },
199
+ {
200
+ "epoch": 6.956521739130435,
201
+ "grad_norm": 0.29522183537483215,
202
+ "learning_rate": 9.890738003669029e-05,
203
+ "loss": 0.7179,
204
+ "step": 40
205
+ },
206
+ {
207
+ "epoch": 6.956521739130435,
208
+ "eval_loss": 0.8734186291694641,
209
+ "eval_runtime": 13.8042,
210
+ "eval_samples_per_second": 0.869,
211
+ "eval_steps_per_second": 0.869,
212
+ "step": 40
213
+ },
214
+ {
215
+ "epoch": 7.304347826086957,
216
+ "grad_norm": 0.32336854934692383,
217
+ "learning_rate": 9.859805002892732e-05,
218
+ "loss": 0.74,
219
+ "step": 42
220
+ },
221
+ {
222
+ "epoch": 7.6521739130434785,
223
+ "grad_norm": 0.3424532413482666,
224
+ "learning_rate": 9.825082472361557e-05,
225
+ "loss": 0.6882,
226
+ "step": 44
227
+ },
228
+ {
229
+ "epoch": 8.0,
230
+ "grad_norm": 0.39140939712524414,
231
+ "learning_rate": 9.786597487660337e-05,
232
+ "loss": 0.6768,
233
+ "step": 46
234
+ },
235
+ {
236
+ "epoch": 8.0,
237
+ "eval_loss": 0.88090580701828,
238
+ "eval_runtime": 13.8072,
239
+ "eval_samples_per_second": 0.869,
240
+ "eval_steps_per_second": 0.869,
241
+ "step": 46
242
+ },
243
+ {
244
+ "epoch": 8.347826086956522,
245
+ "grad_norm": 0.4047468304634094,
246
+ "learning_rate": 9.744380058222483e-05,
247
+ "loss": 0.6701,
248
+ "step": 48
249
+ },
250
+ {
251
+ "epoch": 8.695652173913043,
252
+ "grad_norm": 0.5629932284355164,
253
+ "learning_rate": 9.698463103929542e-05,
254
+ "loss": 0.6127,
255
+ "step": 50
256
+ },
257
+ {
258
+ "epoch": 8.869565217391305,
259
+ "eval_loss": 0.8959582448005676,
260
+ "eval_runtime": 13.803,
261
+ "eval_samples_per_second": 0.869,
262
+ "eval_steps_per_second": 0.869,
263
+ "step": 51
264
+ },
265
+ {
266
+ "epoch": 9.043478260869565,
267
+ "grad_norm": 0.44259828329086304,
268
+ "learning_rate": 9.648882429441257e-05,
269
+ "loss": 0.6137,
270
+ "step": 52
271
+ },
272
+ {
273
+ "epoch": 9.391304347826088,
274
+ "grad_norm": 0.8049341440200806,
275
+ "learning_rate": 9.595676696276172e-05,
276
+ "loss": 0.5417,
277
+ "step": 54
278
+ },
279
+ {
280
+ "epoch": 9.73913043478261,
281
+ "grad_norm": 0.6533960700035095,
282
+ "learning_rate": 9.538887392664544e-05,
283
+ "loss": 0.5592,
284
+ "step": 56
285
+ },
286
+ {
287
+ "epoch": 9.91304347826087,
288
+ "eval_loss": 0.9449066519737244,
289
+ "eval_runtime": 13.8014,
290
+ "eval_samples_per_second": 0.869,
291
+ "eval_steps_per_second": 0.869,
292
+ "step": 57
293
+ },
294
+ {
295
+ "epoch": 10.08695652173913,
296
+ "grad_norm": 0.7448545098304749,
297
+ "learning_rate": 9.478558801197065e-05,
298
+ "loss": 0.5538,
299
+ "step": 58
300
+ },
301
+ {
302
+ "epoch": 10.434782608695652,
303
+ "grad_norm": 1.2084859609603882,
304
+ "learning_rate": 9.414737964294636e-05,
305
+ "loss": 0.4633,
306
+ "step": 60
307
+ },
308
+ {
309
+ "epoch": 10.782608695652174,
310
+ "grad_norm": 0.9427428841590881,
311
+ "learning_rate": 9.347474647526095e-05,
312
+ "loss": 0.4519,
313
+ "step": 62
314
+ },
315
+ {
316
+ "epoch": 10.956521739130435,
317
+ "eval_loss": 0.9643160700798035,
318
+ "eval_runtime": 13.8034,
319
+ "eval_samples_per_second": 0.869,
320
+ "eval_steps_per_second": 0.869,
321
+ "step": 63
322
+ },
323
+ {
324
+ "epoch": 11.130434782608695,
325
+ "grad_norm": 0.7851306200027466,
326
+ "learning_rate": 9.276821300802534e-05,
327
+ "loss": 0.4258,
328
+ "step": 64
329
+ },
330
+ {
331
+ "epoch": 11.478260869565217,
332
+ "grad_norm": 1.991536021232605,
333
+ "learning_rate": 9.202833017478422e-05,
334
+ "loss": 0.4546,
335
+ "step": 66
336
+ },
337
+ {
338
+ "epoch": 11.826086956521738,
339
+ "grad_norm": 1.0970418453216553,
340
+ "learning_rate": 9.125567491391476e-05,
341
+ "loss": 0.367,
342
+ "step": 68
343
+ },
344
+ {
345
+ "epoch": 12.0,
346
+ "eval_loss": 0.9817283153533936,
347
+ "eval_runtime": 13.8003,
348
+ "eval_samples_per_second": 0.87,
349
+ "eval_steps_per_second": 0.87,
350
+ "step": 69
351
+ },
352
+ {
353
+ "epoch": 12.173913043478262,
354
+ "grad_norm": 1.0731067657470703,
355
+ "learning_rate": 9.045084971874738e-05,
356
+ "loss": 0.3574,
357
+ "step": 70
358
+ },
359
+ {
360
+ "epoch": 12.521739130434783,
361
+ "grad_norm": 0.8825430870056152,
362
+ "learning_rate": 8.961448216775954e-05,
363
+ "loss": 0.3049,
364
+ "step": 72
365
+ },
366
+ {
367
+ "epoch": 12.869565217391305,
368
+ "grad_norm": 1.6797748804092407,
369
+ "learning_rate": 8.874722443520899e-05,
370
+ "loss": 0.3385,
371
+ "step": 74
372
+ },
373
+ {
374
+ "epoch": 12.869565217391305,
375
+ "eval_loss": 1.1056302785873413,
376
+ "eval_runtime": 13.802,
377
+ "eval_samples_per_second": 0.869,
378
+ "eval_steps_per_second": 0.869,
379
+ "step": 74
380
+ },
381
+ {
382
+ "epoch": 12.869565217391305,
383
+ "step": 74,
384
+ "total_flos": 5.893544901135565e+16,
385
+ "train_loss": 0.7602536090322443,
386
+ "train_runtime": 2198.2645,
387
+ "train_samples_per_second": 1.046,
388
+ "train_steps_per_second": 0.114
389
+ }
390
+ ],
391
+ "logging_steps": 2,
392
+ "max_steps": 250,
393
+ "num_input_tokens_seen": 0,
394
+ "num_train_epochs": 50,
395
+ "save_steps": 25,
396
+ "stateful_callbacks": {
397
+ "EarlyStoppingCallback": {
398
+ "args": {
399
+ "early_stopping_patience": 7,
400
+ "early_stopping_threshold": 0.0
401
+ },
402
+ "attributes": {
403
+ "early_stopping_patience_counter": 0
404
+ }
405
+ },
406
+ "TrainerControl": {
407
+ "args": {
408
+ "should_epoch_stop": false,
409
+ "should_evaluate": false,
410
+ "should_log": false,
411
+ "should_save": true,
412
+ "should_training_stop": true
413
+ },
414
+ "attributes": {}
415
+ }
416
+ },
417
+ "total_flos": 5.893544901135565e+16,
418
+ "train_batch_size": 1,
419
+ "trial_name": null,
420
+ "trial_params": null
421
+ }