chansung commited on
Commit
c8e5a82
·
verified ·
1 Parent(s): 561d3ee

Model save

Browse files
Files changed (4) hide show
  1. README.md +69 -0
  2. all_results.json +9 -0
  3. train_results.json +9 -0
  4. trainer_state.json +330 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Meta-Llama-3-8B
3
+ datasets:
4
+ - generator
5
+ library_name: peft
6
+ license: llama3
7
+ tags:
8
+ - trl
9
+ - sft
10
+ - generated_from_trainer
11
+ model-index:
12
+ - name: llama3.1-8b-gpt4o_100k_summarize-lora
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # llama3.1-8b-gpt4o_100k_summarize-lora
20
+
21
+ This model is a fine-tuned version of [meta-llama/Meta-Llama-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 2.0161
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 0.0003
43
+ - train_batch_size: 4
44
+ - eval_batch_size: 4
45
+ - seed: 42
46
+ - distributed_type: multi-GPU
47
+ - num_devices: 8
48
+ - gradient_accumulation_steps: 2
49
+ - total_train_batch_size: 64
50
+ - total_eval_batch_size: 32
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
+ - lr_scheduler_type: cosine
53
+ - lr_scheduler_warmup_ratio: 0.1
54
+ - num_epochs: 1
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss |
59
+ |:-------------:|:-----:|:----:|:---------------:|
60
+ | 0.8469 | 1.0 | 195 | 2.0161 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - PEFT 0.13.0
66
+ - Transformers 4.45.1
67
+ - Pytorch 2.4.1+cu121
68
+ - Datasets 3.0.1
69
+ - Tokenizers 0.20.0
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 5.7571792321406566e+17,
4
+ "train_loss": 0.9914888846568573,
5
+ "train_runtime": 2084.3097,
6
+ "train_samples": 115376,
7
+ "train_samples_per_second": 5.986,
8
+ "train_steps_per_second": 0.094
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 5.7571792321406566e+17,
4
+ "train_loss": 0.9914888846568573,
5
+ "train_runtime": 2084.3097,
6
+ "train_samples": 115376,
7
+ "train_samples_per_second": 5.986,
8
+ "train_steps_per_second": 0.094
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 195,
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.005128205128205128,
13
+ "grad_norm": 0.7734681367874146,
14
+ "learning_rate": 1.4999999999999999e-05,
15
+ "loss": 2.2537,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.02564102564102564,
20
+ "grad_norm": 0.9921783804893494,
21
+ "learning_rate": 7.5e-05,
22
+ "loss": 2.2441,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.05128205128205128,
27
+ "grad_norm": 1.209192156791687,
28
+ "learning_rate": 0.00015,
29
+ "loss": 2.1391,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.07692307692307693,
34
+ "grad_norm": 1.4021319150924683,
35
+ "learning_rate": 0.000225,
36
+ "loss": 1.6962,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.10256410256410256,
41
+ "grad_norm": 2.129197359085083,
42
+ "learning_rate": 0.0003,
43
+ "loss": 1.2642,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.1282051282051282,
48
+ "grad_norm": 0.6822463870048523,
49
+ "learning_rate": 0.00029939614409928584,
50
+ "loss": 1.15,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.15384615384615385,
55
+ "grad_norm": 0.5067035555839539,
56
+ "learning_rate": 0.00029758943828979444,
57
+ "loss": 1.078,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.1794871794871795,
62
+ "grad_norm": 0.40783199667930603,
63
+ "learning_rate": 0.00029459442910437797,
64
+ "loss": 1.0186,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.20512820512820512,
69
+ "grad_norm": 0.274424284696579,
70
+ "learning_rate": 0.00029043523059596053,
71
+ "loss": 0.9822,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.23076923076923078,
76
+ "grad_norm": 0.241612508893013,
77
+ "learning_rate": 0.0002851453301853628,
78
+ "loss": 0.9603,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.2564102564102564,
83
+ "grad_norm": 0.18045982718467712,
84
+ "learning_rate": 0.0002787673190402799,
85
+ "loss": 0.9451,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.28205128205128205,
90
+ "grad_norm": 0.24599388241767883,
91
+ "learning_rate": 0.0002713525491562421,
92
+ "loss": 0.9247,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.3076923076923077,
97
+ "grad_norm": 0.23441565036773682,
98
+ "learning_rate": 0.00026296071990054165,
99
+ "loss": 0.9203,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.3333333333333333,
104
+ "grad_norm": 0.20591339468955994,
105
+ "learning_rate": 0.0002536593973480297,
106
+ "loss": 0.9067,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.358974358974359,
111
+ "grad_norm": 0.46566951274871826,
112
+ "learning_rate": 0.00024352347027881003,
113
+ "loss": 0.9017,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.38461538461538464,
118
+ "grad_norm": 0.21229182183742523,
119
+ "learning_rate": 0.00023263454721781537,
120
+ "loss": 0.9016,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.41025641025641024,
125
+ "grad_norm": 0.22548721730709076,
126
+ "learning_rate": 0.0002210802993709498,
127
+ "loss": 0.8903,
128
+ "step": 80
129
+ },
130
+ {
131
+ "epoch": 0.4358974358974359,
132
+ "grad_norm": 0.18637174367904663,
133
+ "learning_rate": 0.00020895375474808852,
134
+ "loss": 0.8883,
135
+ "step": 85
136
+ },
137
+ {
138
+ "epoch": 0.46153846153846156,
139
+ "grad_norm": 0.1939140409231186,
140
+ "learning_rate": 0.0001963525491562421,
141
+ "loss": 0.8799,
142
+ "step": 90
143
+ },
144
+ {
145
+ "epoch": 0.48717948717948717,
146
+ "grad_norm": 0.2150397151708603,
147
+ "learning_rate": 0.00018337814009344714,
148
+ "loss": 0.8776,
149
+ "step": 95
150
+ },
151
+ {
152
+ "epoch": 0.5128205128205128,
153
+ "grad_norm": 0.21106576919555664,
154
+ "learning_rate": 0.00017013498987264832,
155
+ "loss": 0.8775,
156
+ "step": 100
157
+ },
158
+ {
159
+ "epoch": 0.5384615384615384,
160
+ "grad_norm": 0.21716269850730896,
161
+ "learning_rate": 0.00015672972455257723,
162
+ "loss": 0.8734,
163
+ "step": 105
164
+ },
165
+ {
166
+ "epoch": 0.5641025641025641,
167
+ "grad_norm": 0.22086042165756226,
168
+ "learning_rate": 0.0001432702754474228,
169
+ "loss": 0.8512,
170
+ "step": 110
171
+ },
172
+ {
173
+ "epoch": 0.5897435897435898,
174
+ "grad_norm": 0.232639878988266,
175
+ "learning_rate": 0.0001298650101273517,
176
+ "loss": 0.8718,
177
+ "step": 115
178
+ },
179
+ {
180
+ "epoch": 0.6153846153846154,
181
+ "grad_norm": 0.21026825904846191,
182
+ "learning_rate": 0.00011662185990655284,
183
+ "loss": 0.8579,
184
+ "step": 120
185
+ },
186
+ {
187
+ "epoch": 0.6410256410256411,
188
+ "grad_norm": 0.19612908363342285,
189
+ "learning_rate": 0.0001036474508437579,
190
+ "loss": 0.859,
191
+ "step": 125
192
+ },
193
+ {
194
+ "epoch": 0.6666666666666666,
195
+ "grad_norm": 0.21048156917095184,
196
+ "learning_rate": 9.104624525191145e-05,
197
+ "loss": 0.8543,
198
+ "step": 130
199
+ },
200
+ {
201
+ "epoch": 0.6923076923076923,
202
+ "grad_norm": 0.18239416182041168,
203
+ "learning_rate": 7.89197006290502e-05,
204
+ "loss": 0.8531,
205
+ "step": 135
206
+ },
207
+ {
208
+ "epoch": 0.717948717948718,
209
+ "grad_norm": 0.18775755167007446,
210
+ "learning_rate": 6.736545278218463e-05,
211
+ "loss": 0.858,
212
+ "step": 140
213
+ },
214
+ {
215
+ "epoch": 0.7435897435897436,
216
+ "grad_norm": 0.20988330245018005,
217
+ "learning_rate": 5.6476529721189974e-05,
218
+ "loss": 0.8532,
219
+ "step": 145
220
+ },
221
+ {
222
+ "epoch": 0.7692307692307693,
223
+ "grad_norm": 0.20845285058021545,
224
+ "learning_rate": 4.63406026519703e-05,
225
+ "loss": 0.8562,
226
+ "step": 150
227
+ },
228
+ {
229
+ "epoch": 0.7948717948717948,
230
+ "grad_norm": 0.1928585022687912,
231
+ "learning_rate": 3.7039280099458366e-05,
232
+ "loss": 0.8567,
233
+ "step": 155
234
+ },
235
+ {
236
+ "epoch": 0.8205128205128205,
237
+ "grad_norm": 0.19923464953899384,
238
+ "learning_rate": 2.8647450843757897e-05,
239
+ "loss": 0.8492,
240
+ "step": 160
241
+ },
242
+ {
243
+ "epoch": 0.8461538461538461,
244
+ "grad_norm": 0.17737220227718353,
245
+ "learning_rate": 2.1232680959720082e-05,
246
+ "loss": 0.8404,
247
+ "step": 165
248
+ },
249
+ {
250
+ "epoch": 0.8717948717948718,
251
+ "grad_norm": 0.18061356246471405,
252
+ "learning_rate": 1.4854669814637143e-05,
253
+ "loss": 0.8493,
254
+ "step": 170
255
+ },
256
+ {
257
+ "epoch": 0.8974358974358975,
258
+ "grad_norm": 0.17233729362487793,
259
+ "learning_rate": 9.564769404039419e-06,
260
+ "loss": 0.849,
261
+ "step": 175
262
+ },
263
+ {
264
+ "epoch": 0.9230769230769231,
265
+ "grad_norm": 0.20439976453781128,
266
+ "learning_rate": 5.405570895622013e-06,
267
+ "loss": 0.8434,
268
+ "step": 180
269
+ },
270
+ {
271
+ "epoch": 0.9487179487179487,
272
+ "grad_norm": 0.1979411542415619,
273
+ "learning_rate": 2.4105617102055496e-06,
274
+ "loss": 0.8441,
275
+ "step": 185
276
+ },
277
+ {
278
+ "epoch": 0.9743589743589743,
279
+ "grad_norm": 0.18543799221515656,
280
+ "learning_rate": 6.038559007141397e-07,
281
+ "loss": 0.8526,
282
+ "step": 190
283
+ },
284
+ {
285
+ "epoch": 1.0,
286
+ "grad_norm": 0.225219264626503,
287
+ "learning_rate": 0.0,
288
+ "loss": 0.8469,
289
+ "step": 195
290
+ },
291
+ {
292
+ "epoch": 1.0,
293
+ "eval_loss": 2.0160739421844482,
294
+ "eval_runtime": 1.1142,
295
+ "eval_samples_per_second": 8.975,
296
+ "eval_steps_per_second": 0.897,
297
+ "step": 195
298
+ },
299
+ {
300
+ "epoch": 1.0,
301
+ "step": 195,
302
+ "total_flos": 5.7571792321406566e+17,
303
+ "train_loss": 0.9914888846568573,
304
+ "train_runtime": 2084.3097,
305
+ "train_samples_per_second": 5.986,
306
+ "train_steps_per_second": 0.094
307
+ }
308
+ ],
309
+ "logging_steps": 5,
310
+ "max_steps": 195,
311
+ "num_input_tokens_seen": 0,
312
+ "num_train_epochs": 1,
313
+ "save_steps": 100,
314
+ "stateful_callbacks": {
315
+ "TrainerControl": {
316
+ "args": {
317
+ "should_epoch_stop": false,
318
+ "should_evaluate": false,
319
+ "should_log": false,
320
+ "should_save": true,
321
+ "should_training_stop": true
322
+ },
323
+ "attributes": {}
324
+ }
325
+ },
326
+ "total_flos": 5.7571792321406566e+17,
327
+ "train_batch_size": 4,
328
+ "trial_name": null,
329
+ "trial_params": null
330
+ }