GaetanMichelet commited on
Commit
d59214e
1 Parent(s): 231538f

Model save

Browse files
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-1_120-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
+ # Mistral-7B_task-1_120-samples_config-2_auto
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 the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.4895
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
+ | 1.0732 | 0.9091 | 5 | 1.0410 |
57
+ | 0.9533 | 2.0 | 11 | 0.8652 |
58
+ | 0.77 | 2.9091 | 16 | 0.8181 |
59
+ | 0.6091 | 4.0 | 22 | 0.8006 |
60
+ | 0.4937 | 4.9091 | 27 | 0.8277 |
61
+ | 0.3093 | 6.0 | 33 | 0.9964 |
62
+ | 0.1731 | 6.9091 | 38 | 1.0815 |
63
+ | 0.1045 | 8.0 | 44 | 1.3044 |
64
+ | 0.0642 | 8.9091 | 49 | 1.3456 |
65
+ | 0.0552 | 10.0 | 55 | 1.4001 |
66
+ | 0.0359 | 10.9091 | 60 | 1.4895 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - PEFT 0.12.0
72
+ - Transformers 4.44.0
73
+ - Pytorch 2.1.2+cu121
74
+ - Datasets 2.20.0
75
+ - Tokenizers 0.19.1
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c5dbbc41448c2ababe5b2a62f8c4dd1d6e2bee0b644d11a911c4e2aae3d134b0
3
  size 167832240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:805186a923460e6a7ad84aba09a525315a10800a0ca2bf7dbcb95938b96252b3
3
  size 167832240
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.909090909090908,
3
+ "total_flos": 1.5952182167732224e+16,
4
+ "train_loss": 0.42697442828988036,
5
+ "train_runtime": 1180.2738,
6
+ "train_samples": 88,
7
+ "train_samples_per_second": 3.728,
8
+ "train_steps_per_second": 0.212
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.909090909090908,
3
+ "total_flos": 1.5952182167732224e+16,
4
+ "train_loss": 0.42697442828988036,
5
+ "train_runtime": 1180.2738,
6
+ "train_samples": 88,
7
+ "train_samples_per_second": 3.728,
8
+ "train_steps_per_second": 0.212
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8006419539451599,
3
+ "best_model_checkpoint": "data/Mistral-7B_task-1_120-samples_config-2_auto/checkpoint-22",
4
+ "epoch": 10.909090909090908,
5
+ "eval_steps": 500,
6
+ "global_step": 60,
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.18181818181818182,
13
+ "grad_norm": 2.5200440883636475,
14
+ "learning_rate": 4.000000000000001e-06,
15
+ "loss": 1.0757,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.36363636363636365,
20
+ "grad_norm": 2.74460768699646,
21
+ "learning_rate": 8.000000000000001e-06,
22
+ "loss": 1.0848,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.7272727272727273,
27
+ "grad_norm": 2.399035930633545,
28
+ "learning_rate": 1.6000000000000003e-05,
29
+ "loss": 1.0732,
30
+ "step": 4
31
+ },
32
+ {
33
+ "epoch": 0.9090909090909091,
34
+ "eval_loss": 1.0410027503967285,
35
+ "eval_runtime": 9.9786,
36
+ "eval_samples_per_second": 2.405,
37
+ "eval_steps_per_second": 2.405,
38
+ "step": 5
39
+ },
40
+ {
41
+ "epoch": 1.0909090909090908,
42
+ "grad_norm": 2.24735689163208,
43
+ "learning_rate": 2.4e-05,
44
+ "loss": 1.0927,
45
+ "step": 6
46
+ },
47
+ {
48
+ "epoch": 1.4545454545454546,
49
+ "grad_norm": 1.4750593900680542,
50
+ "learning_rate": 3.2000000000000005e-05,
51
+ "loss": 0.9017,
52
+ "step": 8
53
+ },
54
+ {
55
+ "epoch": 1.8181818181818183,
56
+ "grad_norm": 1.4488487243652344,
57
+ "learning_rate": 4e-05,
58
+ "loss": 0.9533,
59
+ "step": 10
60
+ },
61
+ {
62
+ "epoch": 2.0,
63
+ "eval_loss": 0.8651717305183411,
64
+ "eval_runtime": 9.9797,
65
+ "eval_samples_per_second": 2.405,
66
+ "eval_steps_per_second": 2.405,
67
+ "step": 11
68
+ },
69
+ {
70
+ "epoch": 2.1818181818181817,
71
+ "grad_norm": 1.1370949745178223,
72
+ "learning_rate": 4.8e-05,
73
+ "loss": 0.7473,
74
+ "step": 12
75
+ },
76
+ {
77
+ "epoch": 2.5454545454545454,
78
+ "grad_norm": 1.217821478843689,
79
+ "learning_rate": 5.6000000000000006e-05,
80
+ "loss": 0.8209,
81
+ "step": 14
82
+ },
83
+ {
84
+ "epoch": 2.909090909090909,
85
+ "grad_norm": 1.2512751817703247,
86
+ "learning_rate": 6.400000000000001e-05,
87
+ "loss": 0.77,
88
+ "step": 16
89
+ },
90
+ {
91
+ "epoch": 2.909090909090909,
92
+ "eval_loss": 0.8181025385856628,
93
+ "eval_runtime": 9.9892,
94
+ "eval_samples_per_second": 2.403,
95
+ "eval_steps_per_second": 2.403,
96
+ "step": 16
97
+ },
98
+ {
99
+ "epoch": 3.2727272727272725,
100
+ "grad_norm": 0.911823034286499,
101
+ "learning_rate": 7.2e-05,
102
+ "loss": 0.6774,
103
+ "step": 18
104
+ },
105
+ {
106
+ "epoch": 3.6363636363636362,
107
+ "grad_norm": 0.9840978384017944,
108
+ "learning_rate": 8e-05,
109
+ "loss": 0.6603,
110
+ "step": 20
111
+ },
112
+ {
113
+ "epoch": 4.0,
114
+ "grad_norm": 1.0185283422470093,
115
+ "learning_rate": 8.800000000000001e-05,
116
+ "loss": 0.6091,
117
+ "step": 22
118
+ },
119
+ {
120
+ "epoch": 4.0,
121
+ "eval_loss": 0.8006419539451599,
122
+ "eval_runtime": 9.9803,
123
+ "eval_samples_per_second": 2.405,
124
+ "eval_steps_per_second": 2.405,
125
+ "step": 22
126
+ },
127
+ {
128
+ "epoch": 4.363636363636363,
129
+ "grad_norm": 1.0211368799209595,
130
+ "learning_rate": 9.6e-05,
131
+ "loss": 0.5531,
132
+ "step": 24
133
+ },
134
+ {
135
+ "epoch": 4.7272727272727275,
136
+ "grad_norm": 1.279502511024475,
137
+ "learning_rate": 9.999512620046522e-05,
138
+ "loss": 0.4937,
139
+ "step": 26
140
+ },
141
+ {
142
+ "epoch": 4.909090909090909,
143
+ "eval_loss": 0.8277094960212708,
144
+ "eval_runtime": 9.98,
145
+ "eval_samples_per_second": 2.405,
146
+ "eval_steps_per_second": 2.405,
147
+ "step": 27
148
+ },
149
+ {
150
+ "epoch": 5.090909090909091,
151
+ "grad_norm": 1.2927266359329224,
152
+ "learning_rate": 9.995614150494293e-05,
153
+ "loss": 0.4136,
154
+ "step": 28
155
+ },
156
+ {
157
+ "epoch": 5.454545454545454,
158
+ "grad_norm": 1.0783287286758423,
159
+ "learning_rate": 9.987820251299122e-05,
160
+ "loss": 0.3471,
161
+ "step": 30
162
+ },
163
+ {
164
+ "epoch": 5.818181818181818,
165
+ "grad_norm": 1.5167845487594604,
166
+ "learning_rate": 9.976136999909156e-05,
167
+ "loss": 0.3093,
168
+ "step": 32
169
+ },
170
+ {
171
+ "epoch": 6.0,
172
+ "eval_loss": 0.9963887333869934,
173
+ "eval_runtime": 9.9808,
174
+ "eval_samples_per_second": 2.405,
175
+ "eval_steps_per_second": 2.405,
176
+ "step": 33
177
+ },
178
+ {
179
+ "epoch": 6.181818181818182,
180
+ "grad_norm": 1.3760337829589844,
181
+ "learning_rate": 9.96057350657239e-05,
182
+ "loss": 0.2358,
183
+ "step": 34
184
+ },
185
+ {
186
+ "epoch": 6.545454545454545,
187
+ "grad_norm": 1.3134976625442505,
188
+ "learning_rate": 9.941141907232765e-05,
189
+ "loss": 0.1933,
190
+ "step": 36
191
+ },
192
+ {
193
+ "epoch": 6.909090909090909,
194
+ "grad_norm": 1.4621546268463135,
195
+ "learning_rate": 9.917857354066931e-05,
196
+ "loss": 0.1731,
197
+ "step": 38
198
+ },
199
+ {
200
+ "epoch": 6.909090909090909,
201
+ "eval_loss": 1.081476092338562,
202
+ "eval_runtime": 9.9877,
203
+ "eval_samples_per_second": 2.403,
204
+ "eval_steps_per_second": 2.403,
205
+ "step": 38
206
+ },
207
+ {
208
+ "epoch": 7.2727272727272725,
209
+ "grad_norm": 1.1559796333312988,
210
+ "learning_rate": 9.890738003669029e-05,
211
+ "loss": 0.1331,
212
+ "step": 40
213
+ },
214
+ {
215
+ "epoch": 7.636363636363637,
216
+ "grad_norm": 1.1186745166778564,
217
+ "learning_rate": 9.859805002892732e-05,
218
+ "loss": 0.0815,
219
+ "step": 42
220
+ },
221
+ {
222
+ "epoch": 8.0,
223
+ "grad_norm": 1.7643119096755981,
224
+ "learning_rate": 9.825082472361557e-05,
225
+ "loss": 0.1045,
226
+ "step": 44
227
+ },
228
+ {
229
+ "epoch": 8.0,
230
+ "eval_loss": 1.3043652772903442,
231
+ "eval_runtime": 9.9847,
232
+ "eval_samples_per_second": 2.404,
233
+ "eval_steps_per_second": 2.404,
234
+ "step": 44
235
+ },
236
+ {
237
+ "epoch": 8.363636363636363,
238
+ "grad_norm": 1.0151166915893555,
239
+ "learning_rate": 9.786597487660337e-05,
240
+ "loss": 0.0489,
241
+ "step": 46
242
+ },
243
+ {
244
+ "epoch": 8.727272727272727,
245
+ "grad_norm": 2.2880821228027344,
246
+ "learning_rate": 9.744380058222483e-05,
247
+ "loss": 0.0642,
248
+ "step": 48
249
+ },
250
+ {
251
+ "epoch": 8.909090909090908,
252
+ "eval_loss": 1.3456028699874878,
253
+ "eval_runtime": 9.9818,
254
+ "eval_samples_per_second": 2.404,
255
+ "eval_steps_per_second": 2.404,
256
+ "step": 49
257
+ },
258
+ {
259
+ "epoch": 9.090909090909092,
260
+ "grad_norm": 1.4389766454696655,
261
+ "learning_rate": 9.698463103929542e-05,
262
+ "loss": 0.0681,
263
+ "step": 50
264
+ },
265
+ {
266
+ "epoch": 9.454545454545455,
267
+ "grad_norm": 0.7696138620376587,
268
+ "learning_rate": 9.648882429441257e-05,
269
+ "loss": 0.0378,
270
+ "step": 52
271
+ },
272
+ {
273
+ "epoch": 9.818181818181818,
274
+ "grad_norm": 1.0077182054519653,
275
+ "learning_rate": 9.595676696276172e-05,
276
+ "loss": 0.0552,
277
+ "step": 54
278
+ },
279
+ {
280
+ "epoch": 10.0,
281
+ "eval_loss": 1.4000715017318726,
282
+ "eval_runtime": 9.9796,
283
+ "eval_samples_per_second": 2.405,
284
+ "eval_steps_per_second": 2.405,
285
+ "step": 55
286
+ },
287
+ {
288
+ "epoch": 10.181818181818182,
289
+ "grad_norm": 1.0939630270004272,
290
+ "learning_rate": 9.538887392664544e-05,
291
+ "loss": 0.0368,
292
+ "step": 56
293
+ },
294
+ {
295
+ "epoch": 10.545454545454545,
296
+ "grad_norm": 1.0606611967086792,
297
+ "learning_rate": 9.478558801197065e-05,
298
+ "loss": 0.0318,
299
+ "step": 58
300
+ },
301
+ {
302
+ "epoch": 10.909090909090908,
303
+ "grad_norm": 0.8217382431030273,
304
+ "learning_rate": 9.414737964294636e-05,
305
+ "loss": 0.0359,
306
+ "step": 60
307
+ },
308
+ {
309
+ "epoch": 10.909090909090908,
310
+ "eval_loss": 1.489484429359436,
311
+ "eval_runtime": 9.984,
312
+ "eval_samples_per_second": 2.404,
313
+ "eval_steps_per_second": 2.404,
314
+ "step": 60
315
+ },
316
+ {
317
+ "epoch": 10.909090909090908,
318
+ "step": 60,
319
+ "total_flos": 1.5952182167732224e+16,
320
+ "train_loss": 0.42697442828988036,
321
+ "train_runtime": 1180.2738,
322
+ "train_samples_per_second": 3.728,
323
+ "train_steps_per_second": 0.212
324
+ }
325
+ ],
326
+ "logging_steps": 2,
327
+ "max_steps": 250,
328
+ "num_input_tokens_seen": 0,
329
+ "num_train_epochs": 50,
330
+ "save_steps": 25,
331
+ "stateful_callbacks": {
332
+ "EarlyStoppingCallback": {
333
+ "args": {
334
+ "early_stopping_patience": 7,
335
+ "early_stopping_threshold": 0.0
336
+ },
337
+ "attributes": {
338
+ "early_stopping_patience_counter": 0
339
+ }
340
+ },
341
+ "TrainerControl": {
342
+ "args": {
343
+ "should_epoch_stop": false,
344
+ "should_evaluate": false,
345
+ "should_log": false,
346
+ "should_save": true,
347
+ "should_training_stop": true
348
+ },
349
+ "attributes": {}
350
+ }
351
+ },
352
+ "total_flos": 1.5952182167732224e+16,
353
+ "train_batch_size": 1,
354
+ "trial_name": null,
355
+ "trial_params": null
356
+ }