GaetanMichelet commited on
Commit
d04bb3b
1 Parent(s): 3dc1b07

Model save

Browse files
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-2_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-2_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: 0.9439
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.2329 | 0.6957 | 2 | 1.2277 |
57
+ | 1.2254 | 1.7391 | 5 | 1.1423 |
58
+ | 1.0984 | 2.7826 | 8 | 1.0654 |
59
+ | 1.0266 | 3.8261 | 11 | 1.0052 |
60
+ | 0.948 | 4.8696 | 14 | 0.9384 |
61
+ | 0.884 | 5.9130 | 17 | 0.9020 |
62
+ | 0.8253 | 6.9565 | 20 | 0.8885 |
63
+ | 0.822 | 8.0 | 23 | 0.8788 |
64
+ | 0.7994 | 8.6957 | 25 | 0.8754 |
65
+ | 0.7669 | 9.7391 | 28 | 0.8737 |
66
+ | 0.7596 | 10.7826 | 31 | 0.8738 |
67
+ | 0.7256 | 11.8261 | 34 | 0.8750 |
68
+ | 0.6803 | 12.8696 | 37 | 0.8834 |
69
+ | 0.6584 | 13.9130 | 40 | 0.8951 |
70
+ | 0.6131 | 14.9565 | 43 | 0.9023 |
71
+ | 0.5777 | 16.0 | 46 | 0.9154 |
72
+ | 0.5158 | 16.6957 | 48 | 0.9439 |
73
+
74
+
75
+ ### Framework versions
76
+
77
+ - PEFT 0.12.0
78
+ - Transformers 4.44.0
79
+ - Pytorch 2.1.2+cu121
80
+ - Datasets 2.20.0
81
+ - Tokenizers 0.19.1
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a6fc06cd2ed28c9a35f871bbdb034d779b60abe38fd09bcc407b028f7e0f8982
3
  size 167832240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b8b82358717790cdd80b30afc1ddb5277aad2e0b1e0d8cdf6bde2a46cf87ba7
3
  size 167832240
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 16.695652173913043,
3
+ "total_flos": 7.706943345288806e+16,
4
+ "train_loss": 0.8436332593361536,
5
+ "train_runtime": 2874.4335,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 0.8,
8
+ "train_steps_per_second": 0.035
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 16.695652173913043,
3
+ "total_flos": 7.706943345288806e+16,
4
+ "train_loss": 0.8436332593361536,
5
+ "train_runtime": 2874.4335,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 0.8,
8
+ "train_steps_per_second": 0.035
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8736686110496521,
3
+ "best_model_checkpoint": "data/Mistral-7B_task-3_60-samples_config-2_full/checkpoint-28",
4
+ "epoch": 16.695652173913043,
5
+ "eval_steps": 500,
6
+ "global_step": 48,
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": 1.0153508186340332,
14
+ "learning_rate": 1e-05,
15
+ "loss": 1.2657,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.6956521739130435,
20
+ "grad_norm": 0.9736206531524658,
21
+ "learning_rate": 2e-05,
22
+ "loss": 1.2329,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.6956521739130435,
27
+ "eval_loss": 1.227666974067688,
28
+ "eval_runtime": 13.8044,
29
+ "eval_samples_per_second": 0.869,
30
+ "eval_steps_per_second": 0.869,
31
+ "step": 2
32
+ },
33
+ {
34
+ "epoch": 1.391304347826087,
35
+ "grad_norm": 0.853352427482605,
36
+ "learning_rate": 4e-05,
37
+ "loss": 1.2254,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 1.7391304347826086,
42
+ "eval_loss": 1.1423181295394897,
43
+ "eval_runtime": 13.8079,
44
+ "eval_samples_per_second": 0.869,
45
+ "eval_steps_per_second": 0.869,
46
+ "step": 5
47
+ },
48
+ {
49
+ "epoch": 2.0869565217391304,
50
+ "grad_norm": 0.5523448586463928,
51
+ "learning_rate": 6e-05,
52
+ "loss": 1.1766,
53
+ "step": 6
54
+ },
55
+ {
56
+ "epoch": 2.782608695652174,
57
+ "grad_norm": 0.41505715250968933,
58
+ "learning_rate": 8e-05,
59
+ "loss": 1.0984,
60
+ "step": 8
61
+ },
62
+ {
63
+ "epoch": 2.782608695652174,
64
+ "eval_loss": 1.0653983354568481,
65
+ "eval_runtime": 13.8066,
66
+ "eval_samples_per_second": 0.869,
67
+ "eval_steps_per_second": 0.869,
68
+ "step": 8
69
+ },
70
+ {
71
+ "epoch": 3.4782608695652173,
72
+ "grad_norm": 0.377344012260437,
73
+ "learning_rate": 0.0001,
74
+ "loss": 1.0266,
75
+ "step": 10
76
+ },
77
+ {
78
+ "epoch": 3.8260869565217392,
79
+ "eval_loss": 1.0051709413528442,
80
+ "eval_runtime": 13.8011,
81
+ "eval_samples_per_second": 0.869,
82
+ "eval_steps_per_second": 0.869,
83
+ "step": 11
84
+ },
85
+ {
86
+ "epoch": 4.173913043478261,
87
+ "grad_norm": 0.37405651807785034,
88
+ "learning_rate": 9.987820251299122e-05,
89
+ "loss": 1.0095,
90
+ "step": 12
91
+ },
92
+ {
93
+ "epoch": 4.869565217391305,
94
+ "grad_norm": 0.5535106062889099,
95
+ "learning_rate": 9.951340343707852e-05,
96
+ "loss": 0.948,
97
+ "step": 14
98
+ },
99
+ {
100
+ "epoch": 4.869565217391305,
101
+ "eval_loss": 0.9384298920631409,
102
+ "eval_runtime": 13.8031,
103
+ "eval_samples_per_second": 0.869,
104
+ "eval_steps_per_second": 0.869,
105
+ "step": 14
106
+ },
107
+ {
108
+ "epoch": 5.565217391304348,
109
+ "grad_norm": 0.33964699506759644,
110
+ "learning_rate": 9.890738003669029e-05,
111
+ "loss": 0.884,
112
+ "step": 16
113
+ },
114
+ {
115
+ "epoch": 5.913043478260869,
116
+ "eval_loss": 0.9019761681556702,
117
+ "eval_runtime": 13.8018,
118
+ "eval_samples_per_second": 0.869,
119
+ "eval_steps_per_second": 0.869,
120
+ "step": 17
121
+ },
122
+ {
123
+ "epoch": 6.260869565217392,
124
+ "grad_norm": 0.2418847680091858,
125
+ "learning_rate": 9.806308479691595e-05,
126
+ "loss": 0.8502,
127
+ "step": 18
128
+ },
129
+ {
130
+ "epoch": 6.956521739130435,
131
+ "grad_norm": 0.21523350477218628,
132
+ "learning_rate": 9.698463103929542e-05,
133
+ "loss": 0.8253,
134
+ "step": 20
135
+ },
136
+ {
137
+ "epoch": 6.956521739130435,
138
+ "eval_loss": 0.8885052800178528,
139
+ "eval_runtime": 13.8026,
140
+ "eval_samples_per_second": 0.869,
141
+ "eval_steps_per_second": 0.869,
142
+ "step": 20
143
+ },
144
+ {
145
+ "epoch": 7.6521739130434785,
146
+ "grad_norm": 0.19641552865505219,
147
+ "learning_rate": 9.567727288213005e-05,
148
+ "loss": 0.822,
149
+ "step": 22
150
+ },
151
+ {
152
+ "epoch": 8.0,
153
+ "eval_loss": 0.8788420557975769,
154
+ "eval_runtime": 13.8056,
155
+ "eval_samples_per_second": 0.869,
156
+ "eval_steps_per_second": 0.869,
157
+ "step": 23
158
+ },
159
+ {
160
+ "epoch": 8.347826086956522,
161
+ "grad_norm": 0.18110164999961853,
162
+ "learning_rate": 9.414737964294636e-05,
163
+ "loss": 0.7994,
164
+ "step": 24
165
+ },
166
+ {
167
+ "epoch": 8.695652173913043,
168
+ "eval_loss": 0.8753540515899658,
169
+ "eval_runtime": 13.8028,
170
+ "eval_samples_per_second": 0.869,
171
+ "eval_steps_per_second": 0.869,
172
+ "step": 25
173
+ },
174
+ {
175
+ "epoch": 9.043478260869565,
176
+ "grad_norm": 0.18521583080291748,
177
+ "learning_rate": 9.24024048078213e-05,
178
+ "loss": 0.779,
179
+ "step": 26
180
+ },
181
+ {
182
+ "epoch": 9.73913043478261,
183
+ "grad_norm": 0.20691977441310883,
184
+ "learning_rate": 9.045084971874738e-05,
185
+ "loss": 0.7669,
186
+ "step": 28
187
+ },
188
+ {
189
+ "epoch": 9.73913043478261,
190
+ "eval_loss": 0.8736686110496521,
191
+ "eval_runtime": 13.804,
192
+ "eval_samples_per_second": 0.869,
193
+ "eval_steps_per_second": 0.869,
194
+ "step": 28
195
+ },
196
+ {
197
+ "epoch": 10.434782608695652,
198
+ "grad_norm": 0.20081867277622223,
199
+ "learning_rate": 8.83022221559489e-05,
200
+ "loss": 0.7596,
201
+ "step": 30
202
+ },
203
+ {
204
+ "epoch": 10.782608695652174,
205
+ "eval_loss": 0.873776376247406,
206
+ "eval_runtime": 13.8051,
207
+ "eval_samples_per_second": 0.869,
208
+ "eval_steps_per_second": 0.869,
209
+ "step": 31
210
+ },
211
+ {
212
+ "epoch": 11.130434782608695,
213
+ "grad_norm": 0.2356591522693634,
214
+ "learning_rate": 8.596699001693255e-05,
215
+ "loss": 0.7106,
216
+ "step": 32
217
+ },
218
+ {
219
+ "epoch": 11.826086956521738,
220
+ "grad_norm": 0.2318907231092453,
221
+ "learning_rate": 8.345653031794292e-05,
222
+ "loss": 0.7256,
223
+ "step": 34
224
+ },
225
+ {
226
+ "epoch": 11.826086956521738,
227
+ "eval_loss": 0.8750200867652893,
228
+ "eval_runtime": 13.8049,
229
+ "eval_samples_per_second": 0.869,
230
+ "eval_steps_per_second": 0.869,
231
+ "step": 34
232
+ },
233
+ {
234
+ "epoch": 12.521739130434783,
235
+ "grad_norm": 0.24235422909259796,
236
+ "learning_rate": 8.07830737662829e-05,
237
+ "loss": 0.6803,
238
+ "step": 36
239
+ },
240
+ {
241
+ "epoch": 12.869565217391305,
242
+ "eval_loss": 0.8834443688392639,
243
+ "eval_runtime": 13.8008,
244
+ "eval_samples_per_second": 0.87,
245
+ "eval_steps_per_second": 0.87,
246
+ "step": 37
247
+ },
248
+ {
249
+ "epoch": 13.217391304347826,
250
+ "grad_norm": 0.2748987674713135,
251
+ "learning_rate": 7.795964517353735e-05,
252
+ "loss": 0.682,
253
+ "step": 38
254
+ },
255
+ {
256
+ "epoch": 13.91304347826087,
257
+ "grad_norm": 0.2720317542552948,
258
+ "learning_rate": 7.500000000000001e-05,
259
+ "loss": 0.6584,
260
+ "step": 40
261
+ },
262
+ {
263
+ "epoch": 13.91304347826087,
264
+ "eval_loss": 0.8950894474983215,
265
+ "eval_runtime": 13.8031,
266
+ "eval_samples_per_second": 0.869,
267
+ "eval_steps_per_second": 0.869,
268
+ "step": 40
269
+ },
270
+ {
271
+ "epoch": 14.608695652173914,
272
+ "grad_norm": 0.3152175545692444,
273
+ "learning_rate": 7.191855733945387e-05,
274
+ "loss": 0.6131,
275
+ "step": 42
276
+ },
277
+ {
278
+ "epoch": 14.956521739130435,
279
+ "eval_loss": 0.902263343334198,
280
+ "eval_runtime": 13.8028,
281
+ "eval_samples_per_second": 0.869,
282
+ "eval_steps_per_second": 0.869,
283
+ "step": 43
284
+ },
285
+ {
286
+ "epoch": 15.304347826086957,
287
+ "grad_norm": 0.38017743825912476,
288
+ "learning_rate": 6.873032967079561e-05,
289
+ "loss": 0.6056,
290
+ "step": 44
291
+ },
292
+ {
293
+ "epoch": 16.0,
294
+ "grad_norm": 0.8462388515472412,
295
+ "learning_rate": 6.545084971874738e-05,
296
+ "loss": 0.5777,
297
+ "step": 46
298
+ },
299
+ {
300
+ "epoch": 16.0,
301
+ "eval_loss": 0.9154355525970459,
302
+ "eval_runtime": 13.8024,
303
+ "eval_samples_per_second": 0.869,
304
+ "eval_steps_per_second": 0.869,
305
+ "step": 46
306
+ },
307
+ {
308
+ "epoch": 16.695652173913043,
309
+ "grad_norm": 0.7009825110435486,
310
+ "learning_rate": 6.209609477998338e-05,
311
+ "loss": 0.5158,
312
+ "step": 48
313
+ },
314
+ {
315
+ "epoch": 16.695652173913043,
316
+ "eval_loss": 0.9439125061035156,
317
+ "eval_runtime": 13.8015,
318
+ "eval_samples_per_second": 0.869,
319
+ "eval_steps_per_second": 0.869,
320
+ "step": 48
321
+ },
322
+ {
323
+ "epoch": 16.695652173913043,
324
+ "step": 48,
325
+ "total_flos": 7.706943345288806e+16,
326
+ "train_loss": 0.8436332593361536,
327
+ "train_runtime": 2874.4335,
328
+ "train_samples_per_second": 0.8,
329
+ "train_steps_per_second": 0.035
330
+ }
331
+ ],
332
+ "logging_steps": 2,
333
+ "max_steps": 100,
334
+ "num_input_tokens_seen": 0,
335
+ "num_train_epochs": 50,
336
+ "save_steps": 25,
337
+ "stateful_callbacks": {
338
+ "EarlyStoppingCallback": {
339
+ "args": {
340
+ "early_stopping_patience": 7,
341
+ "early_stopping_threshold": 0.0
342
+ },
343
+ "attributes": {
344
+ "early_stopping_patience_counter": 0
345
+ }
346
+ },
347
+ "TrainerControl": {
348
+ "args": {
349
+ "should_epoch_stop": false,
350
+ "should_evaluate": false,
351
+ "should_log": false,
352
+ "should_save": true,
353
+ "should_training_stop": true
354
+ },
355
+ "attributes": {}
356
+ }
357
+ },
358
+ "total_flos": 7.706943345288806e+16,
359
+ "train_batch_size": 1,
360
+ "trial_name": null,
361
+ "trial_params": null
362
+ }