GaetanMichelet commited on
Commit
3ed37b7
1 Parent(s): f5b3858

Model save

Browse files
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_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-1_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: 1.4381
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
+ | 2.1677 | 0.6957 | 2 | 1.9772 |
57
+ | 2.0588 | 1.7391 | 5 | 1.7098 |
58
+ | 1.6144 | 2.7826 | 8 | 1.4226 |
59
+ | 1.3861 | 3.8261 | 11 | 1.1334 |
60
+ | 1.0181 | 4.8696 | 14 | 0.9961 |
61
+ | 0.9301 | 5.9130 | 17 | 0.9633 |
62
+ | 0.8066 | 6.9565 | 20 | 0.9348 |
63
+ | 0.7473 | 8.0 | 23 | 0.9316 |
64
+ | 0.6909 | 8.6957 | 25 | 0.9585 |
65
+ | 0.5525 | 9.7391 | 28 | 0.9743 |
66
+ | 0.49 | 10.7826 | 31 | 1.0671 |
67
+ | 0.3604 | 11.8261 | 34 | 1.1000 |
68
+ | 0.3096 | 12.8696 | 37 | 1.2756 |
69
+ | 0.2231 | 13.9130 | 40 | 1.3029 |
70
+ | 0.1846 | 14.9565 | 43 | 1.4381 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - PEFT 0.12.0
76
+ - Transformers 4.44.0
77
+ - Pytorch 2.1.2+cu121
78
+ - Datasets 2.20.0
79
+ - Tokenizers 0.19.1
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:35f487f51fc7872675a51d4f747da1651a15123f8688cfb5f852418e7d48b566
3
  size 167832240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:164a19fdc70a19fd025fc046181cfe31dd57fb65e8651ecf3f8184fa3fdf8d20
3
  size 167832240
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 14.956521739130435,
3
+ "total_flos": 1.009626071957504e+16,
4
+ "train_loss": 0.8760424204343973,
5
+ "train_runtime": 806.7681,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 2.851,
8
+ "train_steps_per_second": 0.124
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 14.956521739130435,
3
+ "total_flos": 1.009626071957504e+16,
4
+ "train_loss": 0.8760424204343973,
5
+ "train_runtime": 806.7681,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 2.851,
8
+ "train_steps_per_second": 0.124
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9315621256828308,
3
+ "best_model_checkpoint": "data/Mistral-7B_task-1_60-samples_config-2_full/checkpoint-23",
4
+ "epoch": 14.956521739130435,
5
+ "eval_steps": 500,
6
+ "global_step": 43,
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": 2.7660365104675293,
14
+ "learning_rate": 1e-05,
15
+ "loss": 2.1412,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.6956521739130435,
20
+ "grad_norm": 2.761305332183838,
21
+ "learning_rate": 2e-05,
22
+ "loss": 2.1677,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.6956521739130435,
27
+ "eval_loss": 1.9772213697433472,
28
+ "eval_runtime": 4.8565,
29
+ "eval_samples_per_second": 2.471,
30
+ "eval_steps_per_second": 2.471,
31
+ "step": 2
32
+ },
33
+ {
34
+ "epoch": 1.391304347826087,
35
+ "grad_norm": 2.450890064239502,
36
+ "learning_rate": 4e-05,
37
+ "loss": 2.0588,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 1.7391304347826086,
42
+ "eval_loss": 1.7097864151000977,
43
+ "eval_runtime": 4.8552,
44
+ "eval_samples_per_second": 2.472,
45
+ "eval_steps_per_second": 2.472,
46
+ "step": 5
47
+ },
48
+ {
49
+ "epoch": 2.0869565217391304,
50
+ "grad_norm": 1.6053310632705688,
51
+ "learning_rate": 6e-05,
52
+ "loss": 1.862,
53
+ "step": 6
54
+ },
55
+ {
56
+ "epoch": 2.782608695652174,
57
+ "grad_norm": 1.1415278911590576,
58
+ "learning_rate": 8e-05,
59
+ "loss": 1.6144,
60
+ "step": 8
61
+ },
62
+ {
63
+ "epoch": 2.782608695652174,
64
+ "eval_loss": 1.4225901365280151,
65
+ "eval_runtime": 4.8447,
66
+ "eval_samples_per_second": 2.477,
67
+ "eval_steps_per_second": 2.477,
68
+ "step": 8
69
+ },
70
+ {
71
+ "epoch": 3.4782608695652173,
72
+ "grad_norm": 1.6181377172470093,
73
+ "learning_rate": 0.0001,
74
+ "loss": 1.3861,
75
+ "step": 10
76
+ },
77
+ {
78
+ "epoch": 3.8260869565217392,
79
+ "eval_loss": 1.1334022283554077,
80
+ "eval_runtime": 4.8621,
81
+ "eval_samples_per_second": 2.468,
82
+ "eval_steps_per_second": 2.468,
83
+ "step": 11
84
+ },
85
+ {
86
+ "epoch": 4.173913043478261,
87
+ "grad_norm": 1.2450289726257324,
88
+ "learning_rate": 9.987820251299122e-05,
89
+ "loss": 1.1643,
90
+ "step": 12
91
+ },
92
+ {
93
+ "epoch": 4.869565217391305,
94
+ "grad_norm": 0.8130146265029907,
95
+ "learning_rate": 9.951340343707852e-05,
96
+ "loss": 1.0181,
97
+ "step": 14
98
+ },
99
+ {
100
+ "epoch": 4.869565217391305,
101
+ "eval_loss": 0.9961085915565491,
102
+ "eval_runtime": 4.854,
103
+ "eval_samples_per_second": 2.472,
104
+ "eval_steps_per_second": 2.472,
105
+ "step": 14
106
+ },
107
+ {
108
+ "epoch": 5.565217391304348,
109
+ "grad_norm": 0.6594259738922119,
110
+ "learning_rate": 9.890738003669029e-05,
111
+ "loss": 0.9301,
112
+ "step": 16
113
+ },
114
+ {
115
+ "epoch": 5.913043478260869,
116
+ "eval_loss": 0.9633287787437439,
117
+ "eval_runtime": 4.8357,
118
+ "eval_samples_per_second": 2.482,
119
+ "eval_steps_per_second": 2.482,
120
+ "step": 17
121
+ },
122
+ {
123
+ "epoch": 6.260869565217392,
124
+ "grad_norm": 0.6981428861618042,
125
+ "learning_rate": 9.806308479691595e-05,
126
+ "loss": 0.8321,
127
+ "step": 18
128
+ },
129
+ {
130
+ "epoch": 6.956521739130435,
131
+ "grad_norm": 0.6706119179725647,
132
+ "learning_rate": 9.698463103929542e-05,
133
+ "loss": 0.8066,
134
+ "step": 20
135
+ },
136
+ {
137
+ "epoch": 6.956521739130435,
138
+ "eval_loss": 0.9347649216651917,
139
+ "eval_runtime": 4.8358,
140
+ "eval_samples_per_second": 2.482,
141
+ "eval_steps_per_second": 2.482,
142
+ "step": 20
143
+ },
144
+ {
145
+ "epoch": 7.6521739130434785,
146
+ "grad_norm": 0.5864876508712769,
147
+ "learning_rate": 9.567727288213005e-05,
148
+ "loss": 0.7473,
149
+ "step": 22
150
+ },
151
+ {
152
+ "epoch": 8.0,
153
+ "eval_loss": 0.9315621256828308,
154
+ "eval_runtime": 4.8328,
155
+ "eval_samples_per_second": 2.483,
156
+ "eval_steps_per_second": 2.483,
157
+ "step": 23
158
+ },
159
+ {
160
+ "epoch": 8.347826086956522,
161
+ "grad_norm": 0.634713888168335,
162
+ "learning_rate": 9.414737964294636e-05,
163
+ "loss": 0.6909,
164
+ "step": 24
165
+ },
166
+ {
167
+ "epoch": 8.695652173913043,
168
+ "eval_loss": 0.9585385322570801,
169
+ "eval_runtime": 4.8356,
170
+ "eval_samples_per_second": 2.482,
171
+ "eval_steps_per_second": 2.482,
172
+ "step": 25
173
+ },
174
+ {
175
+ "epoch": 9.043478260869565,
176
+ "grad_norm": 0.8111370801925659,
177
+ "learning_rate": 9.24024048078213e-05,
178
+ "loss": 0.6233,
179
+ "step": 26
180
+ },
181
+ {
182
+ "epoch": 9.73913043478261,
183
+ "grad_norm": 0.8550280332565308,
184
+ "learning_rate": 9.045084971874738e-05,
185
+ "loss": 0.5525,
186
+ "step": 28
187
+ },
188
+ {
189
+ "epoch": 9.73913043478261,
190
+ "eval_loss": 0.9742663502693176,
191
+ "eval_runtime": 4.8332,
192
+ "eval_samples_per_second": 2.483,
193
+ "eval_steps_per_second": 2.483,
194
+ "step": 28
195
+ },
196
+ {
197
+ "epoch": 10.434782608695652,
198
+ "grad_norm": 0.790436863899231,
199
+ "learning_rate": 8.83022221559489e-05,
200
+ "loss": 0.49,
201
+ "step": 30
202
+ },
203
+ {
204
+ "epoch": 10.782608695652174,
205
+ "eval_loss": 1.0670939683914185,
206
+ "eval_runtime": 4.834,
207
+ "eval_samples_per_second": 2.482,
208
+ "eval_steps_per_second": 2.482,
209
+ "step": 31
210
+ },
211
+ {
212
+ "epoch": 11.130434782608695,
213
+ "grad_norm": 1.2715283632278442,
214
+ "learning_rate": 8.596699001693255e-05,
215
+ "loss": 0.4556,
216
+ "step": 32
217
+ },
218
+ {
219
+ "epoch": 11.826086956521738,
220
+ "grad_norm": 0.8485116362571716,
221
+ "learning_rate": 8.345653031794292e-05,
222
+ "loss": 0.3604,
223
+ "step": 34
224
+ },
225
+ {
226
+ "epoch": 11.826086956521738,
227
+ "eval_loss": 1.0999555587768555,
228
+ "eval_runtime": 4.8347,
229
+ "eval_samples_per_second": 2.482,
230
+ "eval_steps_per_second": 2.482,
231
+ "step": 34
232
+ },
233
+ {
234
+ "epoch": 12.521739130434783,
235
+ "grad_norm": 0.8741176724433899,
236
+ "learning_rate": 8.07830737662829e-05,
237
+ "loss": 0.3096,
238
+ "step": 36
239
+ },
240
+ {
241
+ "epoch": 12.869565217391305,
242
+ "eval_loss": 1.275596022605896,
243
+ "eval_runtime": 4.8346,
244
+ "eval_samples_per_second": 2.482,
245
+ "eval_steps_per_second": 2.482,
246
+ "step": 37
247
+ },
248
+ {
249
+ "epoch": 13.217391304347826,
250
+ "grad_norm": 1.3192121982574463,
251
+ "learning_rate": 7.795964517353735e-05,
252
+ "loss": 0.2648,
253
+ "step": 38
254
+ },
255
+ {
256
+ "epoch": 13.91304347826087,
257
+ "grad_norm": 1.0160993337631226,
258
+ "learning_rate": 7.500000000000001e-05,
259
+ "loss": 0.2231,
260
+ "step": 40
261
+ },
262
+ {
263
+ "epoch": 13.91304347826087,
264
+ "eval_loss": 1.302903175354004,
265
+ "eval_runtime": 4.8323,
266
+ "eval_samples_per_second": 2.483,
267
+ "eval_steps_per_second": 2.483,
268
+ "step": 40
269
+ },
270
+ {
271
+ "epoch": 14.608695652173914,
272
+ "grad_norm": 0.6346321105957031,
273
+ "learning_rate": 7.191855733945387e-05,
274
+ "loss": 0.1846,
275
+ "step": 42
276
+ },
277
+ {
278
+ "epoch": 14.956521739130435,
279
+ "eval_loss": 1.4380816221237183,
280
+ "eval_runtime": 4.8324,
281
+ "eval_samples_per_second": 2.483,
282
+ "eval_steps_per_second": 2.483,
283
+ "step": 43
284
+ },
285
+ {
286
+ "epoch": 14.956521739130435,
287
+ "step": 43,
288
+ "total_flos": 1.009626071957504e+16,
289
+ "train_loss": 0.8760424204343973,
290
+ "train_runtime": 806.7681,
291
+ "train_samples_per_second": 2.851,
292
+ "train_steps_per_second": 0.124
293
+ }
294
+ ],
295
+ "logging_steps": 2,
296
+ "max_steps": 100,
297
+ "num_input_tokens_seen": 0,
298
+ "num_train_epochs": 50,
299
+ "save_steps": 25,
300
+ "stateful_callbacks": {
301
+ "EarlyStoppingCallback": {
302
+ "args": {
303
+ "early_stopping_patience": 7,
304
+ "early_stopping_threshold": 0.0
305
+ },
306
+ "attributes": {
307
+ "early_stopping_patience_counter": 0
308
+ }
309
+ },
310
+ "TrainerControl": {
311
+ "args": {
312
+ "should_epoch_stop": false,
313
+ "should_evaluate": false,
314
+ "should_log": false,
315
+ "should_save": true,
316
+ "should_training_stop": true
317
+ },
318
+ "attributes": {}
319
+ }
320
+ },
321
+ "total_flos": 1.009626071957504e+16,
322
+ "train_batch_size": 1,
323
+ "trial_name": null,
324
+ "trial_params": null
325
+ }