GaetanMichelet commited on
Commit
93335d3
·
verified ·
1 Parent(s): 3b937ea

Model save

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-1_60-samples_config-2
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-1_60-samples_config-2
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: 1.9850
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.1668 | 0.6957 | 2 | 2.0610 |
57
+ | 2.1104 | 1.7391 | 5 | 1.8653 |
58
+ | 1.6856 | 2.7826 | 8 | 1.5622 |
59
+ | 1.4548 | 3.8261 | 11 | 1.4691 |
60
+ | 1.3644 | 4.8696 | 14 | 1.3791 |
61
+ | 1.2755 | 5.9130 | 17 | 1.3224 |
62
+ | 1.1243 | 6.9565 | 20 | 1.2880 |
63
+ | 1.0234 | 8.0 | 23 | 1.3072 |
64
+ | 0.933 | 8.6957 | 25 | 1.3176 |
65
+ | 0.7437 | 9.7391 | 28 | 1.4185 |
66
+ | 0.6589 | 10.7826 | 31 | 1.4576 |
67
+ | 0.4603 | 11.8261 | 34 | 1.5915 |
68
+ | 0.3502 | 12.8696 | 37 | 1.7686 |
69
+ | 0.1758 | 13.9130 | 40 | 1.9850 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - PEFT 0.12.0
75
+ - Transformers 4.44.0
76
+ - Pytorch 2.1.2+cu121
77
+ - Datasets 2.20.0
78
+ - Tokenizers 0.19.1
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a97513eef5db8da8c5c18cd8b88e96771570a664efc8f4c69ac123761212753b
3
  size 167832240
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ad0c39549d279b19bd6e8ad441ae83af99f06e426171707a3695a2fff9fd6ba
3
  size 167832240
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 13.91304347826087,
3
+ "total_flos": 9639644377382912.0,
4
+ "train_loss": 1.0869066467974335,
5
+ "train_runtime": 755.7673,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 3.043,
8
+ "train_steps_per_second": 0.132
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 13.91304347826087,
3
+ "total_flos": 9639644377382912.0,
4
+ "train_loss": 1.0869066467974335,
5
+ "train_runtime": 755.7673,
6
+ "train_samples": 46,
7
+ "train_samples_per_second": 3.043,
8
+ "train_steps_per_second": 0.132
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,310 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.2879904508590698,
3
+ "best_model_checkpoint": "data/Llama-31-8B_task-1_60-samples_config-2/checkpoint-20",
4
+ "epoch": 13.91304347826087,
5
+ "eval_steps": 500,
6
+ "global_step": 40,
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.842164158821106,
14
+ "learning_rate": 1e-05,
15
+ "loss": 2.0791,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.6956521739130435,
20
+ "grad_norm": 1.7369345426559448,
21
+ "learning_rate": 2e-05,
22
+ "loss": 2.1668,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.6956521739130435,
27
+ "eval_loss": 2.061022996902466,
28
+ "eval_runtime": 4.8455,
29
+ "eval_samples_per_second": 2.477,
30
+ "eval_steps_per_second": 2.477,
31
+ "step": 2
32
+ },
33
+ {
34
+ "epoch": 1.391304347826087,
35
+ "grad_norm": 1.8460229635238647,
36
+ "learning_rate": 4e-05,
37
+ "loss": 2.1104,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 1.7391304347826086,
42
+ "eval_loss": 1.8653119802474976,
43
+ "eval_runtime": 4.844,
44
+ "eval_samples_per_second": 2.477,
45
+ "eval_steps_per_second": 2.477,
46
+ "step": 5
47
+ },
48
+ {
49
+ "epoch": 2.0869565217391304,
50
+ "grad_norm": 1.571470856666565,
51
+ "learning_rate": 6e-05,
52
+ "loss": 1.8563,
53
+ "step": 6
54
+ },
55
+ {
56
+ "epoch": 2.782608695652174,
57
+ "grad_norm": 1.0414882898330688,
58
+ "learning_rate": 8e-05,
59
+ "loss": 1.6856,
60
+ "step": 8
61
+ },
62
+ {
63
+ "epoch": 2.782608695652174,
64
+ "eval_loss": 1.5622197389602661,
65
+ "eval_runtime": 4.8463,
66
+ "eval_samples_per_second": 2.476,
67
+ "eval_steps_per_second": 2.476,
68
+ "step": 8
69
+ },
70
+ {
71
+ "epoch": 3.4782608695652173,
72
+ "grad_norm": 0.7915772199630737,
73
+ "learning_rate": 0.0001,
74
+ "loss": 1.4548,
75
+ "step": 10
76
+ },
77
+ {
78
+ "epoch": 3.8260869565217392,
79
+ "eval_loss": 1.4690589904785156,
80
+ "eval_runtime": 4.8526,
81
+ "eval_samples_per_second": 2.473,
82
+ "eval_steps_per_second": 2.473,
83
+ "step": 11
84
+ },
85
+ {
86
+ "epoch": 4.173913043478261,
87
+ "grad_norm": 0.7557133436203003,
88
+ "learning_rate": 9.987820251299122e-05,
89
+ "loss": 1.4815,
90
+ "step": 12
91
+ },
92
+ {
93
+ "epoch": 4.869565217391305,
94
+ "grad_norm": 0.7220547795295715,
95
+ "learning_rate": 9.951340343707852e-05,
96
+ "loss": 1.3644,
97
+ "step": 14
98
+ },
99
+ {
100
+ "epoch": 4.869565217391305,
101
+ "eval_loss": 1.3790850639343262,
102
+ "eval_runtime": 4.8503,
103
+ "eval_samples_per_second": 2.474,
104
+ "eval_steps_per_second": 2.474,
105
+ "step": 14
106
+ },
107
+ {
108
+ "epoch": 5.565217391304348,
109
+ "grad_norm": 0.578528642654419,
110
+ "learning_rate": 9.890738003669029e-05,
111
+ "loss": 1.2755,
112
+ "step": 16
113
+ },
114
+ {
115
+ "epoch": 5.913043478260869,
116
+ "eval_loss": 1.3223717212677002,
117
+ "eval_runtime": 4.8439,
118
+ "eval_samples_per_second": 2.477,
119
+ "eval_steps_per_second": 2.477,
120
+ "step": 17
121
+ },
122
+ {
123
+ "epoch": 6.260869565217392,
124
+ "grad_norm": 0.5845955014228821,
125
+ "learning_rate": 9.806308479691595e-05,
126
+ "loss": 1.1074,
127
+ "step": 18
128
+ },
129
+ {
130
+ "epoch": 6.956521739130435,
131
+ "grad_norm": 0.5618941187858582,
132
+ "learning_rate": 9.698463103929542e-05,
133
+ "loss": 1.1243,
134
+ "step": 20
135
+ },
136
+ {
137
+ "epoch": 6.956521739130435,
138
+ "eval_loss": 1.2879904508590698,
139
+ "eval_runtime": 4.8446,
140
+ "eval_samples_per_second": 2.477,
141
+ "eval_steps_per_second": 2.477,
142
+ "step": 20
143
+ },
144
+ {
145
+ "epoch": 7.6521739130434785,
146
+ "grad_norm": 0.6283526420593262,
147
+ "learning_rate": 9.567727288213005e-05,
148
+ "loss": 1.0234,
149
+ "step": 22
150
+ },
151
+ {
152
+ "epoch": 8.0,
153
+ "eval_loss": 1.3072248697280884,
154
+ "eval_runtime": 4.842,
155
+ "eval_samples_per_second": 2.478,
156
+ "eval_steps_per_second": 2.478,
157
+ "step": 23
158
+ },
159
+ {
160
+ "epoch": 8.347826086956522,
161
+ "grad_norm": 0.7448239326477051,
162
+ "learning_rate": 9.414737964294636e-05,
163
+ "loss": 0.933,
164
+ "step": 24
165
+ },
166
+ {
167
+ "epoch": 8.695652173913043,
168
+ "eval_loss": 1.3175863027572632,
169
+ "eval_runtime": 4.8516,
170
+ "eval_samples_per_second": 2.473,
171
+ "eval_steps_per_second": 2.473,
172
+ "step": 25
173
+ },
174
+ {
175
+ "epoch": 9.043478260869565,
176
+ "grad_norm": 0.8109312057495117,
177
+ "learning_rate": 9.24024048078213e-05,
178
+ "loss": 0.8709,
179
+ "step": 26
180
+ },
181
+ {
182
+ "epoch": 9.73913043478261,
183
+ "grad_norm": 0.8030046820640564,
184
+ "learning_rate": 9.045084971874738e-05,
185
+ "loss": 0.7437,
186
+ "step": 28
187
+ },
188
+ {
189
+ "epoch": 9.73913043478261,
190
+ "eval_loss": 1.4185105562210083,
191
+ "eval_runtime": 4.8338,
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": 1.1518187522888184,
199
+ "learning_rate": 8.83022221559489e-05,
200
+ "loss": 0.6589,
201
+ "step": 30
202
+ },
203
+ {
204
+ "epoch": 10.782608695652174,
205
+ "eval_loss": 1.4575523138046265,
206
+ "eval_runtime": 4.8224,
207
+ "eval_samples_per_second": 2.488,
208
+ "eval_steps_per_second": 2.488,
209
+ "step": 31
210
+ },
211
+ {
212
+ "epoch": 11.130434782608695,
213
+ "grad_norm": 1.1305478811264038,
214
+ "learning_rate": 8.596699001693255e-05,
215
+ "loss": 0.6139,
216
+ "step": 32
217
+ },
218
+ {
219
+ "epoch": 11.826086956521738,
220
+ "grad_norm": 0.9890539050102234,
221
+ "learning_rate": 8.345653031794292e-05,
222
+ "loss": 0.4603,
223
+ "step": 34
224
+ },
225
+ {
226
+ "epoch": 11.826086956521738,
227
+ "eval_loss": 1.5914921760559082,
228
+ "eval_runtime": 4.8278,
229
+ "eval_samples_per_second": 2.486,
230
+ "eval_steps_per_second": 2.486,
231
+ "step": 34
232
+ },
233
+ {
234
+ "epoch": 12.521739130434783,
235
+ "grad_norm": 1.2683886289596558,
236
+ "learning_rate": 8.07830737662829e-05,
237
+ "loss": 0.3502,
238
+ "step": 36
239
+ },
240
+ {
241
+ "epoch": 12.869565217391305,
242
+ "eval_loss": 1.7685762643814087,
243
+ "eval_runtime": 4.8299,
244
+ "eval_samples_per_second": 2.485,
245
+ "eval_steps_per_second": 2.485,
246
+ "step": 37
247
+ },
248
+ {
249
+ "epoch": 13.217391304347826,
250
+ "grad_norm": 1.8165357112884521,
251
+ "learning_rate": 7.795964517353735e-05,
252
+ "loss": 0.3095,
253
+ "step": 38
254
+ },
255
+ {
256
+ "epoch": 13.91304347826087,
257
+ "grad_norm": 1.0062901973724365,
258
+ "learning_rate": 7.500000000000001e-05,
259
+ "loss": 0.1758,
260
+ "step": 40
261
+ },
262
+ {
263
+ "epoch": 13.91304347826087,
264
+ "eval_loss": 1.9850009679794312,
265
+ "eval_runtime": 4.8261,
266
+ "eval_samples_per_second": 2.486,
267
+ "eval_steps_per_second": 2.486,
268
+ "step": 40
269
+ },
270
+ {
271
+ "epoch": 13.91304347826087,
272
+ "step": 40,
273
+ "total_flos": 9639644377382912.0,
274
+ "train_loss": 1.0869066467974335,
275
+ "train_runtime": 755.7673,
276
+ "train_samples_per_second": 3.043,
277
+ "train_steps_per_second": 0.132
278
+ }
279
+ ],
280
+ "logging_steps": 2,
281
+ "max_steps": 100,
282
+ "num_input_tokens_seen": 0,
283
+ "num_train_epochs": 50,
284
+ "save_steps": 25,
285
+ "stateful_callbacks": {
286
+ "EarlyStoppingCallback": {
287
+ "args": {
288
+ "early_stopping_patience": 7,
289
+ "early_stopping_threshold": 0.0
290
+ },
291
+ "attributes": {
292
+ "early_stopping_patience_counter": 0
293
+ }
294
+ },
295
+ "TrainerControl": {
296
+ "args": {
297
+ "should_epoch_stop": false,
298
+ "should_evaluate": false,
299
+ "should_log": false,
300
+ "should_save": true,
301
+ "should_training_stop": true
302
+ },
303
+ "attributes": {}
304
+ }
305
+ },
306
+ "total_flos": 9639644377382912.0,
307
+ "train_batch_size": 1,
308
+ "trial_name": null,
309
+ "trial_params": null
310
+ }