chansung commited on
Commit
6c0edd0
1 Parent(s): d7fefb9

Model save

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ base_model: google/gemma-2b
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: gemma2b-summarize-gpt4o-8k
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
+ # gemma2b-summarize-gpt4o-8k
20
+
21
+ This model is a fine-tuned version of [google/gemma-2b](https://huggingface.co/google/gemma-2b) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 2.5343
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.0002
43
+ - train_batch_size: 8
44
+ - eval_batch_size: 8
45
+ - seed: 42
46
+ - distributed_type: multi-GPU
47
+ - num_devices: 3
48
+ - gradient_accumulation_steps: 2
49
+ - total_train_batch_size: 48
50
+ - total_eval_batch_size: 24
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: 10
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss |
59
+ |:-------------:|:------:|:----:|:---------------:|
60
+ | 2.5077 | 0.9730 | 18 | 2.7787 |
61
+ | 1.6701 | 2.0 | 37 | 2.6000 |
62
+ | 1.3757 | 2.9730 | 55 | 2.5216 |
63
+ | 1.2905 | 4.0 | 74 | 2.5137 |
64
+ | 1.2291 | 4.9730 | 92 | 2.5113 |
65
+ | 1.1946 | 6.0 | 111 | 2.5235 |
66
+ | 1.1618 | 6.9730 | 129 | 2.5300 |
67
+ | 1.1521 | 8.0 | 148 | 2.5335 |
68
+ | 1.147 | 8.9730 | 166 | 2.5343 |
69
+ | 1.14 | 9.7297 | 180 | 2.5343 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - PEFT 0.11.1
75
+ - Transformers 4.41.2
76
+ - Pytorch 2.3.0+cu121
77
+ - Datasets 2.19.2
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:d4234580c34d453e1f8fe02895b5484387d715efd326eafb16b54eb80fc05a81
3
  size 19644912
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c414bfcb9dd16936c1c7e9a1c73d6cc3f19653be97a69f288cf9d83894a399a
3
  size 19644912
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.72972972972973,
3
+ "total_flos": 1.0572720102178816e+17,
4
+ "train_loss": 1.4424436648686727,
5
+ "train_runtime": 971.2544,
6
+ "train_samples": 8076,
7
+ "train_samples_per_second": 9.019,
8
+ "train_steps_per_second": 0.185
9
+ }
runs/Jun05_13-55-05_user-HP-Z8-Fury-G5-Workstation-Desktop-PC/events.out.tfevents.1717563321.user-HP-Z8-Fury-G5-Workstation-Desktop-PC.25482.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:903f92038da3eb2160fee24289212eefcc729b0ba13db79c8af5f889da6ecab1
3
- size 11270
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f6865a4510daa4ec2a3db5e020272a39576bb4277e879be750e87878e6a1362
3
+ size 16330
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.72972972972973,
3
+ "total_flos": 1.0572720102178816e+17,
4
+ "train_loss": 1.4424436648686727,
5
+ "train_runtime": 971.2544,
6
+ "train_samples": 8076,
7
+ "train_samples_per_second": 9.019,
8
+ "train_steps_per_second": 0.185
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,381 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 9.72972972972973,
5
+ "eval_steps": 500,
6
+ "global_step": 180,
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.05405405405405406,
13
+ "grad_norm": 2.03125,
14
+ "learning_rate": 1.1111111111111112e-05,
15
+ "loss": 3.0425,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.2702702702702703,
20
+ "grad_norm": 1.7890625,
21
+ "learning_rate": 5.555555555555556e-05,
22
+ "loss": 3.0524,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.5405405405405406,
27
+ "grad_norm": 2.0625,
28
+ "learning_rate": 0.00011111111111111112,
29
+ "loss": 2.893,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.8108108108108109,
34
+ "grad_norm": 1.359375,
35
+ "learning_rate": 0.0001666666666666667,
36
+ "loss": 2.5077,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.972972972972973,
41
+ "eval_loss": 2.778700351715088,
42
+ "eval_runtime": 0.5506,
43
+ "eval_samples_per_second": 18.162,
44
+ "eval_steps_per_second": 1.816,
45
+ "step": 18
46
+ },
47
+ {
48
+ "epoch": 1.0810810810810811,
49
+ "grad_norm": 2.546875,
50
+ "learning_rate": 0.00019992479525042303,
51
+ "loss": 2.2381,
52
+ "step": 20
53
+ },
54
+ {
55
+ "epoch": 1.3513513513513513,
56
+ "grad_norm": 1.3671875,
57
+ "learning_rate": 0.00019908004033648453,
58
+ "loss": 1.9825,
59
+ "step": 25
60
+ },
61
+ {
62
+ "epoch": 1.6216216216216215,
63
+ "grad_norm": 82.0,
64
+ "learning_rate": 0.00019730448705798239,
65
+ "loss": 1.8071,
66
+ "step": 30
67
+ },
68
+ {
69
+ "epoch": 1.8918918918918919,
70
+ "grad_norm": 0.72265625,
71
+ "learning_rate": 0.00019461481568757506,
72
+ "loss": 1.6701,
73
+ "step": 35
74
+ },
75
+ {
76
+ "epoch": 2.0,
77
+ "eval_loss": 2.600048065185547,
78
+ "eval_runtime": 0.5541,
79
+ "eval_samples_per_second": 18.046,
80
+ "eval_steps_per_second": 1.805,
81
+ "step": 37
82
+ },
83
+ {
84
+ "epoch": 2.1621621621621623,
85
+ "grad_norm": 0.5078125,
86
+ "learning_rate": 0.0001910362940966147,
87
+ "loss": 1.5495,
88
+ "step": 40
89
+ },
90
+ {
91
+ "epoch": 2.4324324324324325,
92
+ "grad_norm": 0.439453125,
93
+ "learning_rate": 0.00018660254037844388,
94
+ "loss": 1.4905,
95
+ "step": 45
96
+ },
97
+ {
98
+ "epoch": 2.7027027027027026,
99
+ "grad_norm": 0.376953125,
100
+ "learning_rate": 0.00018135520702629675,
101
+ "loss": 1.4373,
102
+ "step": 50
103
+ },
104
+ {
105
+ "epoch": 2.972972972972973,
106
+ "grad_norm": 0.25,
107
+ "learning_rate": 0.00017534358963276607,
108
+ "loss": 1.3757,
109
+ "step": 55
110
+ },
111
+ {
112
+ "epoch": 2.972972972972973,
113
+ "eval_loss": 2.521566152572632,
114
+ "eval_runtime": 0.5468,
115
+ "eval_samples_per_second": 18.289,
116
+ "eval_steps_per_second": 1.829,
117
+ "step": 55
118
+ },
119
+ {
120
+ "epoch": 3.2432432432432434,
121
+ "grad_norm": 0.474609375,
122
+ "learning_rate": 0.0001686241637868734,
123
+ "loss": 1.3452,
124
+ "step": 60
125
+ },
126
+ {
127
+ "epoch": 3.5135135135135136,
128
+ "grad_norm": 0.6171875,
129
+ "learning_rate": 0.0001612600545193203,
130
+ "loss": 1.315,
131
+ "step": 65
132
+ },
133
+ {
134
+ "epoch": 3.7837837837837838,
135
+ "grad_norm": 0.2734375,
136
+ "learning_rate": 0.00015332044328016914,
137
+ "loss": 1.2905,
138
+ "step": 70
139
+ },
140
+ {
141
+ "epoch": 4.0,
142
+ "eval_loss": 2.51369309425354,
143
+ "eval_runtime": 0.5468,
144
+ "eval_samples_per_second": 18.287,
145
+ "eval_steps_per_second": 1.829,
146
+ "step": 74
147
+ },
148
+ {
149
+ "epoch": 4.054054054054054,
150
+ "grad_norm": 0.345703125,
151
+ "learning_rate": 0.00014487991802004623,
152
+ "loss": 1.2801,
153
+ "step": 75
154
+ },
155
+ {
156
+ "epoch": 4.324324324324325,
157
+ "grad_norm": 0.482421875,
158
+ "learning_rate": 0.00013601777248047105,
159
+ "loss": 1.2552,
160
+ "step": 80
161
+ },
162
+ {
163
+ "epoch": 4.594594594594595,
164
+ "grad_norm": 0.29296875,
165
+ "learning_rate": 0.00012681726127606376,
166
+ "loss": 1.2395,
167
+ "step": 85
168
+ },
169
+ {
170
+ "epoch": 4.864864864864865,
171
+ "grad_norm": 0.45703125,
172
+ "learning_rate": 0.00011736481776669306,
173
+ "loss": 1.2291,
174
+ "step": 90
175
+ },
176
+ {
177
+ "epoch": 4.972972972972973,
178
+ "eval_loss": 2.5113296508789062,
179
+ "eval_runtime": 0.5537,
180
+ "eval_samples_per_second": 18.061,
181
+ "eval_steps_per_second": 1.806,
182
+ "step": 92
183
+ },
184
+ {
185
+ "epoch": 5.135135135135135,
186
+ "grad_norm": 0.28515625,
187
+ "learning_rate": 0.0001077492420671931,
188
+ "loss": 1.2166,
189
+ "step": 95
190
+ },
191
+ {
192
+ "epoch": 5.405405405405405,
193
+ "grad_norm": 0.431640625,
194
+ "learning_rate": 9.806086682281758e-05,
195
+ "loss": 1.1963,
196
+ "step": 100
197
+ },
198
+ {
199
+ "epoch": 5.675675675675675,
200
+ "grad_norm": 0.408203125,
201
+ "learning_rate": 8.839070858747697e-05,
202
+ "loss": 1.2011,
203
+ "step": 105
204
+ },
205
+ {
206
+ "epoch": 5.945945945945946,
207
+ "grad_norm": 0.390625,
208
+ "learning_rate": 7.882961277705895e-05,
209
+ "loss": 1.1946,
210
+ "step": 110
211
+ },
212
+ {
213
+ "epoch": 6.0,
214
+ "eval_loss": 2.5234570503234863,
215
+ "eval_runtime": 0.5594,
216
+ "eval_samples_per_second": 17.877,
217
+ "eval_steps_per_second": 1.788,
218
+ "step": 111
219
+ },
220
+ {
221
+ "epoch": 6.216216216216216,
222
+ "grad_norm": 0.4765625,
223
+ "learning_rate": 6.94674002304887e-05,
224
+ "loss": 1.1733,
225
+ "step": 115
226
+ },
227
+ {
228
+ "epoch": 6.486486486486487,
229
+ "grad_norm": 0.3125,
230
+ "learning_rate": 6.039202339608432e-05,
231
+ "loss": 1.1803,
232
+ "step": 120
233
+ },
234
+ {
235
+ "epoch": 6.756756756756757,
236
+ "grad_norm": 0.326171875,
237
+ "learning_rate": 5.168874007033615e-05,
238
+ "loss": 1.1618,
239
+ "step": 125
240
+ },
241
+ {
242
+ "epoch": 6.972972972972973,
243
+ "eval_loss": 2.5299763679504395,
244
+ "eval_runtime": 0.5604,
245
+ "eval_samples_per_second": 17.843,
246
+ "eval_steps_per_second": 1.784,
247
+ "step": 129
248
+ },
249
+ {
250
+ "epoch": 7.027027027027027,
251
+ "grad_norm": 0.36328125,
252
+ "learning_rate": 4.343931245134616e-05,
253
+ "loss": 1.1584,
254
+ "step": 130
255
+ },
256
+ {
257
+ "epoch": 7.297297297297297,
258
+ "grad_norm": 0.357421875,
259
+ "learning_rate": 3.5721239031346066e-05,
260
+ "loss": 1.1484,
261
+ "step": 135
262
+ },
263
+ {
264
+ "epoch": 7.5675675675675675,
265
+ "grad_norm": 0.337890625,
266
+ "learning_rate": 2.8607026544210114e-05,
267
+ "loss": 1.1477,
268
+ "step": 140
269
+ },
270
+ {
271
+ "epoch": 7.837837837837838,
272
+ "grad_norm": 0.359375,
273
+ "learning_rate": 2.2163508807583998e-05,
274
+ "loss": 1.1521,
275
+ "step": 145
276
+ },
277
+ {
278
+ "epoch": 8.0,
279
+ "eval_loss": 2.5334644317626953,
280
+ "eval_runtime": 0.549,
281
+ "eval_samples_per_second": 18.214,
282
+ "eval_steps_per_second": 1.821,
283
+ "step": 148
284
+ },
285
+ {
286
+ "epoch": 8.108108108108109,
287
+ "grad_norm": 0.283203125,
288
+ "learning_rate": 1.6451218858706374e-05,
289
+ "loss": 1.1642,
290
+ "step": 150
291
+ },
292
+ {
293
+ "epoch": 8.378378378378379,
294
+ "grad_norm": 0.3046875,
295
+ "learning_rate": 1.1523820282334219e-05,
296
+ "loss": 1.1391,
297
+ "step": 155
298
+ },
299
+ {
300
+ "epoch": 8.64864864864865,
301
+ "grad_norm": 0.271484375,
302
+ "learning_rate": 7.427603073110967e-06,
303
+ "loss": 1.1491,
304
+ "step": 160
305
+ },
306
+ {
307
+ "epoch": 8.91891891891892,
308
+ "grad_norm": 0.2734375,
309
+ "learning_rate": 4.20104876845111e-06,
310
+ "loss": 1.147,
311
+ "step": 165
312
+ },
313
+ {
314
+ "epoch": 8.972972972972974,
315
+ "eval_loss": 2.534287929534912,
316
+ "eval_runtime": 0.5609,
317
+ "eval_samples_per_second": 17.829,
318
+ "eval_steps_per_second": 1.783,
319
+ "step": 166
320
+ },
321
+ {
322
+ "epoch": 9.18918918918919,
323
+ "grad_norm": 0.291015625,
324
+ "learning_rate": 1.874468937261531e-06,
325
+ "loss": 1.1527,
326
+ "step": 170
327
+ },
328
+ {
329
+ "epoch": 9.45945945945946,
330
+ "grad_norm": 0.283203125,
331
+ "learning_rate": 4.6972042068341714e-07,
332
+ "loss": 1.1486,
333
+ "step": 175
334
+ },
335
+ {
336
+ "epoch": 9.72972972972973,
337
+ "grad_norm": 0.28515625,
338
+ "learning_rate": 0.0,
339
+ "loss": 1.14,
340
+ "step": 180
341
+ },
342
+ {
343
+ "epoch": 9.72972972972973,
344
+ "eval_loss": 2.534336805343628,
345
+ "eval_runtime": 0.5494,
346
+ "eval_samples_per_second": 18.202,
347
+ "eval_steps_per_second": 1.82,
348
+ "step": 180
349
+ },
350
+ {
351
+ "epoch": 9.72972972972973,
352
+ "step": 180,
353
+ "total_flos": 1.0572720102178816e+17,
354
+ "train_loss": 1.4424436648686727,
355
+ "train_runtime": 971.2544,
356
+ "train_samples_per_second": 9.019,
357
+ "train_steps_per_second": 0.185
358
+ }
359
+ ],
360
+ "logging_steps": 5,
361
+ "max_steps": 180,
362
+ "num_input_tokens_seen": 0,
363
+ "num_train_epochs": 10,
364
+ "save_steps": 100,
365
+ "stateful_callbacks": {
366
+ "TrainerControl": {
367
+ "args": {
368
+ "should_epoch_stop": false,
369
+ "should_evaluate": false,
370
+ "should_log": false,
371
+ "should_save": true,
372
+ "should_training_stop": false
373
+ },
374
+ "attributes": {}
375
+ }
376
+ },
377
+ "total_flos": 1.0572720102178816e+17,
378
+ "train_batch_size": 8,
379
+ "trial_name": null,
380
+ "trial_params": null
381
+ }