GaetanMichelet commited on
Commit
c0702f7
1 Parent(s): 7cd54ce

Model save

Browse files
README.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Meta-Llama-3.1-8B-Instruct
3
+ library_name: peft
4
+ license: llama3.1
5
+ tags:
6
+ - trl
7
+ - sft
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: Llama-31-8B_task-2_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
+ # Llama-31-8B_task-2_60-samples_config-2_auto
18
+
19
+ This model is a fine-tuned version of [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.9001
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
+ | 0.8574 | 0.6957 | 2 | 0.8904 |
57
+ | 0.8746 | 1.7391 | 5 | 0.8490 |
58
+ | 0.7842 | 2.7826 | 8 | 0.7717 |
59
+ | 0.728 | 3.8261 | 11 | 0.7140 |
60
+ | 0.6405 | 4.8696 | 14 | 0.6587 |
61
+ | 0.5991 | 5.9130 | 17 | 0.6365 |
62
+ | 0.5371 | 6.9565 | 20 | 0.6147 |
63
+ | 0.5007 | 8.0 | 23 | 0.6018 |
64
+ | 0.4783 | 8.6957 | 25 | 0.5986 |
65
+ | 0.4118 | 9.7391 | 28 | 0.6050 |
66
+ | 0.4002 | 10.7826 | 31 | 0.6278 |
67
+ | 0.3234 | 11.8261 | 34 | 0.6697 |
68
+ | 0.2816 | 12.8696 | 37 | 0.7073 |
69
+ | 0.2159 | 13.9130 | 40 | 0.7197 |
70
+ | 0.1785 | 14.9565 | 43 | 0.7951 |
71
+ | 0.1209 | 16.0 | 46 | 0.9001 |
72
+
73
+
74
+ ### Framework versions
75
+
76
+ - PEFT 0.12.0
77
+ - Transformers 4.44.0
78
+ - Pytorch 2.1.2+cu121
79
+ - Datasets 2.20.0
80
+ - Tokenizers 0.19.1
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cee79e2ae524d268cb6d53707c2b80889bdc8c2406ee96338f2711946f144610
3
  size 167832240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:044118414babeb2b824865b57c7c4289665401c2709b69fa6a77a774496b874f
3
  size 167832240
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 16.0,
3
+ "total_flos": 7.404745154730394e+16,
4
+ "train_loss": 0.49191281426212063,
5
+ "train_runtime": 2654.7246,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 0.866,
8
+ "train_steps_per_second": 0.038
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 16.0,
3
+ "total_flos": 7.404745154730394e+16,
4
+ "train_loss": 0.49191281426212063,
5
+ "train_runtime": 2654.7246,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 0.866,
8
+ "train_steps_per_second": 0.038
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,347 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.5985733866691589,
3
+ "best_model_checkpoint": "data/Llama-31-8B_task-2_60-samples_config-2_auto/checkpoint-25",
4
+ "epoch": 16.0,
5
+ "eval_steps": 500,
6
+ "global_step": 46,
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": 0.3837566673755646,
14
+ "learning_rate": 1e-05,
15
+ "loss": 0.8962,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.6956521739130435,
20
+ "grad_norm": 0.3758746385574341,
21
+ "learning_rate": 2e-05,
22
+ "loss": 0.8574,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.6956521739130435,
27
+ "eval_loss": 0.8903820514678955,
28
+ "eval_runtime": 13.347,
29
+ "eval_samples_per_second": 0.899,
30
+ "eval_steps_per_second": 0.899,
31
+ "step": 2
32
+ },
33
+ {
34
+ "epoch": 1.391304347826087,
35
+ "grad_norm": 0.38522425293922424,
36
+ "learning_rate": 4e-05,
37
+ "loss": 0.8746,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 1.7391304347826086,
42
+ "eval_loss": 0.8490483164787292,
43
+ "eval_runtime": 13.3435,
44
+ "eval_samples_per_second": 0.899,
45
+ "eval_steps_per_second": 0.899,
46
+ "step": 5
47
+ },
48
+ {
49
+ "epoch": 2.0869565217391304,
50
+ "grad_norm": 0.34568658471107483,
51
+ "learning_rate": 6e-05,
52
+ "loss": 0.8584,
53
+ "step": 6
54
+ },
55
+ {
56
+ "epoch": 2.782608695652174,
57
+ "grad_norm": 0.31414464116096497,
58
+ "learning_rate": 8e-05,
59
+ "loss": 0.7842,
60
+ "step": 8
61
+ },
62
+ {
63
+ "epoch": 2.782608695652174,
64
+ "eval_loss": 0.771674394607544,
65
+ "eval_runtime": 13.3469,
66
+ "eval_samples_per_second": 0.899,
67
+ "eval_steps_per_second": 0.899,
68
+ "step": 8
69
+ },
70
+ {
71
+ "epoch": 3.4782608695652173,
72
+ "grad_norm": 0.32403564453125,
73
+ "learning_rate": 0.0001,
74
+ "loss": 0.728,
75
+ "step": 10
76
+ },
77
+ {
78
+ "epoch": 3.8260869565217392,
79
+ "eval_loss": 0.7139511108398438,
80
+ "eval_runtime": 13.3421,
81
+ "eval_samples_per_second": 0.899,
82
+ "eval_steps_per_second": 0.899,
83
+ "step": 11
84
+ },
85
+ {
86
+ "epoch": 4.173913043478261,
87
+ "grad_norm": 0.3469023108482361,
88
+ "learning_rate": 9.987820251299122e-05,
89
+ "loss": 0.6997,
90
+ "step": 12
91
+ },
92
+ {
93
+ "epoch": 4.869565217391305,
94
+ "grad_norm": 0.31055331230163574,
95
+ "learning_rate": 9.951340343707852e-05,
96
+ "loss": 0.6405,
97
+ "step": 14
98
+ },
99
+ {
100
+ "epoch": 4.869565217391305,
101
+ "eval_loss": 0.6586517691612244,
102
+ "eval_runtime": 13.3436,
103
+ "eval_samples_per_second": 0.899,
104
+ "eval_steps_per_second": 0.899,
105
+ "step": 14
106
+ },
107
+ {
108
+ "epoch": 5.565217391304348,
109
+ "grad_norm": 0.2623463273048401,
110
+ "learning_rate": 9.890738003669029e-05,
111
+ "loss": 0.5991,
112
+ "step": 16
113
+ },
114
+ {
115
+ "epoch": 5.913043478260869,
116
+ "eval_loss": 0.6365043520927429,
117
+ "eval_runtime": 13.3397,
118
+ "eval_samples_per_second": 0.9,
119
+ "eval_steps_per_second": 0.9,
120
+ "step": 17
121
+ },
122
+ {
123
+ "epoch": 6.260869565217392,
124
+ "grad_norm": 0.26579177379608154,
125
+ "learning_rate": 9.806308479691595e-05,
126
+ "loss": 0.5578,
127
+ "step": 18
128
+ },
129
+ {
130
+ "epoch": 6.956521739130435,
131
+ "grad_norm": 0.26274964213371277,
132
+ "learning_rate": 9.698463103929542e-05,
133
+ "loss": 0.5371,
134
+ "step": 20
135
+ },
136
+ {
137
+ "epoch": 6.956521739130435,
138
+ "eval_loss": 0.6146900057792664,
139
+ "eval_runtime": 13.3427,
140
+ "eval_samples_per_second": 0.899,
141
+ "eval_steps_per_second": 0.899,
142
+ "step": 20
143
+ },
144
+ {
145
+ "epoch": 7.6521739130434785,
146
+ "grad_norm": 0.2567163407802582,
147
+ "learning_rate": 9.567727288213005e-05,
148
+ "loss": 0.5007,
149
+ "step": 22
150
+ },
151
+ {
152
+ "epoch": 8.0,
153
+ "eval_loss": 0.6017631888389587,
154
+ "eval_runtime": 13.3431,
155
+ "eval_samples_per_second": 0.899,
156
+ "eval_steps_per_second": 0.899,
157
+ "step": 23
158
+ },
159
+ {
160
+ "epoch": 8.347826086956522,
161
+ "grad_norm": 0.2583542466163635,
162
+ "learning_rate": 9.414737964294636e-05,
163
+ "loss": 0.4783,
164
+ "step": 24
165
+ },
166
+ {
167
+ "epoch": 8.695652173913043,
168
+ "eval_loss": 0.5985733866691589,
169
+ "eval_runtime": 13.346,
170
+ "eval_samples_per_second": 0.899,
171
+ "eval_steps_per_second": 0.899,
172
+ "step": 25
173
+ },
174
+ {
175
+ "epoch": 9.043478260869565,
176
+ "grad_norm": 0.26865774393081665,
177
+ "learning_rate": 9.24024048078213e-05,
178
+ "loss": 0.459,
179
+ "step": 26
180
+ },
181
+ {
182
+ "epoch": 9.73913043478261,
183
+ "grad_norm": 0.2833639979362488,
184
+ "learning_rate": 9.045084971874738e-05,
185
+ "loss": 0.4118,
186
+ "step": 28
187
+ },
188
+ {
189
+ "epoch": 9.73913043478261,
190
+ "eval_loss": 0.6050412058830261,
191
+ "eval_runtime": 13.3451,
192
+ "eval_samples_per_second": 0.899,
193
+ "eval_steps_per_second": 0.899,
194
+ "step": 28
195
+ },
196
+ {
197
+ "epoch": 10.434782608695652,
198
+ "grad_norm": 0.290280818939209,
199
+ "learning_rate": 8.83022221559489e-05,
200
+ "loss": 0.4002,
201
+ "step": 30
202
+ },
203
+ {
204
+ "epoch": 10.782608695652174,
205
+ "eval_loss": 0.6277570128440857,
206
+ "eval_runtime": 13.3488,
207
+ "eval_samples_per_second": 0.899,
208
+ "eval_steps_per_second": 0.899,
209
+ "step": 31
210
+ },
211
+ {
212
+ "epoch": 11.130434782608695,
213
+ "grad_norm": 0.3147587776184082,
214
+ "learning_rate": 8.596699001693255e-05,
215
+ "loss": 0.3665,
216
+ "step": 32
217
+ },
218
+ {
219
+ "epoch": 11.826086956521738,
220
+ "grad_norm": 0.31184399127960205,
221
+ "learning_rate": 8.345653031794292e-05,
222
+ "loss": 0.3234,
223
+ "step": 34
224
+ },
225
+ {
226
+ "epoch": 11.826086956521738,
227
+ "eval_loss": 0.6697214245796204,
228
+ "eval_runtime": 13.3457,
229
+ "eval_samples_per_second": 0.899,
230
+ "eval_steps_per_second": 0.899,
231
+ "step": 34
232
+ },
233
+ {
234
+ "epoch": 12.521739130434783,
235
+ "grad_norm": 0.347219854593277,
236
+ "learning_rate": 8.07830737662829e-05,
237
+ "loss": 0.2816,
238
+ "step": 36
239
+ },
240
+ {
241
+ "epoch": 12.869565217391305,
242
+ "eval_loss": 0.7073009610176086,
243
+ "eval_runtime": 13.3437,
244
+ "eval_samples_per_second": 0.899,
245
+ "eval_steps_per_second": 0.899,
246
+ "step": 37
247
+ },
248
+ {
249
+ "epoch": 13.217391304347826,
250
+ "grad_norm": 0.47505876421928406,
251
+ "learning_rate": 7.795964517353735e-05,
252
+ "loss": 0.2706,
253
+ "step": 38
254
+ },
255
+ {
256
+ "epoch": 13.91304347826087,
257
+ "grad_norm": 0.3857143223285675,
258
+ "learning_rate": 7.500000000000001e-05,
259
+ "loss": 0.2159,
260
+ "step": 40
261
+ },
262
+ {
263
+ "epoch": 13.91304347826087,
264
+ "eval_loss": 0.719702959060669,
265
+ "eval_runtime": 13.3447,
266
+ "eval_samples_per_second": 0.899,
267
+ "eval_steps_per_second": 0.899,
268
+ "step": 40
269
+ },
270
+ {
271
+ "epoch": 14.608695652173914,
272
+ "grad_norm": 0.3344462513923645,
273
+ "learning_rate": 7.191855733945387e-05,
274
+ "loss": 0.1785,
275
+ "step": 42
276
+ },
277
+ {
278
+ "epoch": 14.956521739130435,
279
+ "eval_loss": 0.7951470017433167,
280
+ "eval_runtime": 13.3459,
281
+ "eval_samples_per_second": 0.899,
282
+ "eval_steps_per_second": 0.899,
283
+ "step": 43
284
+ },
285
+ {
286
+ "epoch": 15.304347826086957,
287
+ "grad_norm": 0.3927725553512573,
288
+ "learning_rate": 6.873032967079561e-05,
289
+ "loss": 0.1504,
290
+ "step": 44
291
+ },
292
+ {
293
+ "epoch": 16.0,
294
+ "grad_norm": 0.42083150148391724,
295
+ "learning_rate": 6.545084971874738e-05,
296
+ "loss": 0.1209,
297
+ "step": 46
298
+ },
299
+ {
300
+ "epoch": 16.0,
301
+ "eval_loss": 0.9000644683837891,
302
+ "eval_runtime": 13.3444,
303
+ "eval_samples_per_second": 0.899,
304
+ "eval_steps_per_second": 0.899,
305
+ "step": 46
306
+ },
307
+ {
308
+ "epoch": 16.0,
309
+ "step": 46,
310
+ "total_flos": 7.404745154730394e+16,
311
+ "train_loss": 0.49191281426212063,
312
+ "train_runtime": 2654.7246,
313
+ "train_samples_per_second": 0.866,
314
+ "train_steps_per_second": 0.038
315
+ }
316
+ ],
317
+ "logging_steps": 2,
318
+ "max_steps": 100,
319
+ "num_input_tokens_seen": 0,
320
+ "num_train_epochs": 50,
321
+ "save_steps": 25,
322
+ "stateful_callbacks": {
323
+ "EarlyStoppingCallback": {
324
+ "args": {
325
+ "early_stopping_patience": 7,
326
+ "early_stopping_threshold": 0.0
327
+ },
328
+ "attributes": {
329
+ "early_stopping_patience_counter": 0
330
+ }
331
+ },
332
+ "TrainerControl": {
333
+ "args": {
334
+ "should_epoch_stop": false,
335
+ "should_evaluate": false,
336
+ "should_log": false,
337
+ "should_save": true,
338
+ "should_training_stop": true
339
+ },
340
+ "attributes": {}
341
+ }
342
+ },
343
+ "total_flos": 7.404745154730394e+16,
344
+ "train_batch_size": 1,
345
+ "trial_name": null,
346
+ "trial_params": null
347
+ }