Kwhale commited on
Commit
5dc3b53
1 Parent(s): a09872c

End of training

Browse files
Files changed (5) hide show
  1. README.md +7 -3
  2. all_results.json +10 -6
  3. eval_results.json +7 -0
  4. train_results.json +6 -6
  5. trainer_state.json +93 -153
README.md CHANGED
@@ -1,17 +1,21 @@
1
  ---
2
  base_model: meta-llama/Llama-3.2-1B
 
3
  library_name: transformers
4
- model_name: Llama-3.2-1B-sportsqa-V1
5
  tags:
6
  - generated_from_trainer
 
 
 
7
  - trl
8
  - sft
9
  licence: license
10
  ---
11
 
12
- # Model Card for Llama-3.2-1B-sportsqa-V1
13
 
14
- This model is a fine-tuned version of [meta-llama/Llama-3.2-1B](https://huggingface.co/meta-llama/Llama-3.2-1B).
15
  It has been trained using [TRL](https://github.com/huggingface/trl).
16
 
17
  ## Quick start
 
1
  ---
2
  base_model: meta-llama/Llama-3.2-1B
3
+ datasets: hanseungwook/wiki-sports-knowledge-qa
4
  library_name: transformers
5
+ model_name: meta-llama/Llama-3.2-1B
6
  tags:
7
  - generated_from_trainer
8
+ - question-answering
9
+ - QA
10
+ - text-generation
11
  - trl
12
  - sft
13
  licence: license
14
  ---
15
 
16
+ # Model Card for meta-llama/Llama-3.2-1B
17
 
18
+ This model is a fine-tuned version of [meta-llama/Llama-3.2-1B](https://huggingface.co/meta-llama/Llama-3.2-1B) on the [hanseungwook/wiki-sports-knowledge-qa](https://huggingface.co/datasets/hanseungwook/wiki-sports-knowledge-qa) dataset.
19
  It has been trained using [TRL](https://github.com/huggingface/trl).
20
 
21
  ## Quick start
all_results.json CHANGED
@@ -1,8 +1,12 @@
1
  {
2
- "epoch": 6.889589905362776,
3
- "total_flos": 1.6473245221453824e+16,
4
- "train_loss": 0.8712233146031697,
5
- "train_runtime": 1146.6252,
6
- "train_samples_per_second": 30.921,
7
- "train_steps_per_second": 0.159
 
 
 
 
8
  }
 
1
  {
2
+ "epoch": 4.971608832807571,
3
+ "eval_loss": 0.8520277738571167,
4
+ "eval_runtime": 6.5794,
5
+ "eval_samples_per_second": 85.57,
6
+ "eval_steps_per_second": 10.791,
7
+ "total_flos": 1.1913588129595392e+16,
8
+ "train_loss": 0.9871828225942758,
9
+ "train_runtime": 692.3499,
10
+ "train_samples_per_second": 36.578,
11
+ "train_steps_per_second": 0.188
12
  }
eval_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.971608832807571,
3
+ "eval_loss": 0.8520277738571167,
4
+ "eval_runtime": 6.5794,
5
+ "eval_samples_per_second": 85.57,
6
+ "eval_steps_per_second": 10.791
7
+ }
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 6.889589905362776,
3
- "total_flos": 1.6473245221453824e+16,
4
- "train_loss": 0.8712233146031697,
5
- "train_runtime": 1146.6252,
6
- "train_samples_per_second": 30.921,
7
- "train_steps_per_second": 0.159
8
  }
 
1
  {
2
+ "epoch": 4.971608832807571,
3
+ "total_flos": 1.1913588129595392e+16,
4
+ "train_loss": 0.9871828225942758,
5
+ "train_runtime": 692.3499,
6
+ "train_samples_per_second": 36.578,
7
+ "train_steps_per_second": 0.188
8
  }
trainer_state.json CHANGED
@@ -1,282 +1,222 @@
1
  {
2
- "best_metric": 0.8432615399360657,
3
- "best_model_checkpoint": "Llama-3.2-1B-sportsqa-V1/checkpoint-150",
4
- "epoch": 6.511041009463723,
5
  "eval_steps": 10,
6
- "global_step": 170,
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.3785488958990536,
13
- "grad_norm": 0.9724205136299133,
14
  "learning_rate": 0.0002,
15
- "loss": 1.4368,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.3785488958990536,
20
- "eval_loss": 1.348753809928894,
21
- "eval_runtime": 6.5589,
22
- "eval_samples_per_second": 85.838,
23
- "eval_steps_per_second": 10.825,
24
  "step": 10
25
  },
26
  {
27
  "epoch": 0.7570977917981072,
28
- "grad_norm": 0.5118973255157471,
29
  "learning_rate": 0.0002,
30
- "loss": 1.2118,
31
  "step": 20
32
  },
33
  {
34
  "epoch": 0.7570977917981072,
35
- "eval_loss": 1.1572917699813843,
36
- "eval_runtime": 6.43,
37
- "eval_samples_per_second": 87.558,
38
- "eval_steps_per_second": 11.042,
39
  "step": 20
40
  },
41
  {
42
  "epoch": 1.1482649842271293,
43
- "grad_norm": 0.41862204670906067,
44
  "learning_rate": 0.0002,
45
- "loss": 1.1684,
46
  "step": 30
47
  },
48
  {
49
  "epoch": 1.1482649842271293,
50
- "eval_loss": 1.0873514413833618,
51
- "eval_runtime": 6.4834,
52
- "eval_samples_per_second": 86.838,
53
- "eval_steps_per_second": 10.951,
54
  "step": 30
55
  },
56
  {
57
  "epoch": 1.526813880126183,
58
- "grad_norm": 0.42144763469696045,
59
  "learning_rate": 0.0002,
60
- "loss": 0.9907,
61
  "step": 40
62
  },
63
  {
64
  "epoch": 1.526813880126183,
65
- "eval_loss": 1.0390795469284058,
66
- "eval_runtime": 6.4784,
67
- "eval_samples_per_second": 86.904,
68
- "eval_steps_per_second": 10.959,
69
  "step": 40
70
  },
71
  {
72
  "epoch": 1.9053627760252367,
73
- "grad_norm": 0.6625965237617493,
74
  "learning_rate": 0.0002,
75
- "loss": 0.8936,
76
  "step": 50
77
  },
78
  {
79
  "epoch": 1.9053627760252367,
80
- "eval_loss": 0.9832194447517395,
81
- "eval_runtime": 6.4575,
82
- "eval_samples_per_second": 87.185,
83
- "eval_steps_per_second": 10.995,
84
  "step": 50
85
  },
86
  {
87
  "epoch": 2.2965299684542586,
88
- "grad_norm": 0.5491335391998291,
89
  "learning_rate": 0.0002,
90
- "loss": 0.9537,
91
  "step": 60
92
  },
93
  {
94
  "epoch": 2.2965299684542586,
95
- "eval_loss": 0.9610708355903625,
96
- "eval_runtime": 6.4935,
97
- "eval_samples_per_second": 86.702,
98
- "eval_steps_per_second": 10.934,
99
  "step": 60
100
  },
101
  {
102
  "epoch": 2.6750788643533125,
103
- "grad_norm": 0.6222676038742065,
104
  "learning_rate": 0.0002,
105
- "loss": 0.7753,
106
  "step": 70
107
  },
108
  {
109
  "epoch": 2.6750788643533125,
110
- "eval_loss": 0.9286745190620422,
111
- "eval_runtime": 6.5271,
112
- "eval_samples_per_second": 86.256,
113
- "eval_steps_per_second": 10.878,
114
  "step": 70
115
  },
116
  {
117
  "epoch": 3.0662460567823344,
118
- "grad_norm": 0.47406917810440063,
119
  "learning_rate": 0.0002,
120
- "loss": 0.8796,
121
  "step": 80
122
  },
123
  {
124
  "epoch": 3.0662460567823344,
125
- "eval_loss": 0.9002482891082764,
126
- "eval_runtime": 6.5139,
127
- "eval_samples_per_second": 86.43,
128
- "eval_steps_per_second": 10.9,
129
  "step": 80
130
  },
131
  {
132
  "epoch": 3.444794952681388,
133
- "grad_norm": 0.54665207862854,
134
  "learning_rate": 0.0002,
135
- "loss": 0.6697,
136
  "step": 90
137
  },
138
  {
139
  "epoch": 3.444794952681388,
140
- "eval_loss": 0.8929345607757568,
141
- "eval_runtime": 6.349,
142
- "eval_samples_per_second": 88.676,
143
- "eval_steps_per_second": 11.183,
144
  "step": 90
145
  },
146
  {
147
  "epoch": 3.823343848580442,
148
- "grad_norm": 0.47858959436416626,
149
  "learning_rate": 0.0002,
150
- "loss": 0.7382,
151
  "step": 100
152
  },
153
  {
154
  "epoch": 3.823343848580442,
155
- "eval_loss": 0.8687711358070374,
156
- "eval_runtime": 6.4617,
157
- "eval_samples_per_second": 87.129,
158
- "eval_steps_per_second": 10.988,
159
  "step": 100
160
  },
161
  {
162
  "epoch": 4.214511041009464,
163
- "grad_norm": 0.6165306568145752,
164
  "learning_rate": 0.0002,
165
- "loss": 0.6795,
166
  "step": 110
167
  },
168
  {
169
  "epoch": 4.214511041009464,
170
- "eval_loss": 0.8820136189460754,
171
- "eval_runtime": 6.4456,
172
- "eval_samples_per_second": 87.346,
173
- "eval_steps_per_second": 11.015,
174
  "step": 110
175
  },
176
  {
177
  "epoch": 4.593059936908517,
178
- "grad_norm": 0.5470077395439148,
179
  "learning_rate": 0.0002,
180
- "loss": 0.646,
181
  "step": 120
182
  },
183
  {
184
  "epoch": 4.593059936908517,
185
- "eval_loss": 0.8543145060539246,
186
- "eval_runtime": 6.4186,
187
- "eval_samples_per_second": 87.713,
188
- "eval_steps_per_second": 11.062,
189
  "step": 120
190
  },
191
  {
192
  "epoch": 4.971608832807571,
193
- "grad_norm": 0.5192540287971497,
194
  "learning_rate": 0.0002,
195
- "loss": 0.5972,
196
  "step": 130
197
  },
198
  {
199
  "epoch": 4.971608832807571,
200
- "eval_loss": 0.8454616069793701,
201
- "eval_runtime": 6.3674,
202
- "eval_samples_per_second": 88.419,
203
- "eval_steps_per_second": 11.151,
204
  "step": 130
205
  },
206
  {
207
- "epoch": 5.3627760252365935,
208
- "grad_norm": 0.5664217472076416,
209
- "learning_rate": 0.0002,
210
- "loss": 0.6179,
211
- "step": 140
212
- },
213
- {
214
- "epoch": 5.3627760252365935,
215
- "eval_loss": 0.845314085483551,
216
- "eval_runtime": 6.4608,
217
- "eval_samples_per_second": 87.141,
218
- "eval_steps_per_second": 10.989,
219
- "step": 140
220
- },
221
- {
222
- "epoch": 5.7413249211356465,
223
- "grad_norm": 0.5141603350639343,
224
- "learning_rate": 0.0002,
225
- "loss": 0.5488,
226
- "step": 150
227
- },
228
- {
229
- "epoch": 5.7413249211356465,
230
- "eval_loss": 0.8432615399360657,
231
- "eval_runtime": 6.4351,
232
- "eval_samples_per_second": 87.489,
233
- "eval_steps_per_second": 11.033,
234
- "step": 150
235
- },
236
- {
237
- "epoch": 6.132492113564669,
238
- "grad_norm": 0.4900747835636139,
239
- "learning_rate": 0.0002,
240
- "loss": 0.5574,
241
- "step": 160
242
- },
243
- {
244
- "epoch": 6.132492113564669,
245
- "eval_loss": 0.8658251166343689,
246
- "eval_runtime": 6.4211,
247
- "eval_samples_per_second": 87.679,
248
- "eval_steps_per_second": 11.057,
249
- "step": 160
250
- },
251
- {
252
- "epoch": 6.511041009463723,
253
- "grad_norm": 0.5367661118507385,
254
- "learning_rate": 0.0002,
255
- "loss": 0.4778,
256
- "step": 170
257
- },
258
- {
259
- "epoch": 6.511041009463723,
260
- "eval_loss": 0.8633659482002258,
261
- "eval_runtime": 6.4456,
262
- "eval_samples_per_second": 87.346,
263
- "eval_steps_per_second": 11.015,
264
- "step": 170
265
- },
266
- {
267
- "epoch": 6.511041009463723,
268
- "step": 170,
269
- "total_flos": 1.5618225878728704e+16,
270
- "train_loss": 0.8142486740561092,
271
- "train_runtime": 890.4577,
272
- "train_samples_per_second": 39.817,
273
- "train_steps_per_second": 0.204
274
  }
275
  ],
276
  "logging_steps": 10,
277
- "max_steps": 182,
278
  "num_input_tokens_seen": 0,
279
- "num_train_epochs": 7,
280
  "save_steps": 10,
281
  "stateful_callbacks": {
282
  "EarlyStoppingCallback": {
@@ -285,7 +225,7 @@
285
  "early_stopping_threshold": 0.01
286
  },
287
  "attributes": {
288
- "early_stopping_patience_counter": 5
289
  }
290
  },
291
  "TrainerControl": {
@@ -299,7 +239,7 @@
299
  "attributes": {}
300
  }
301
  },
302
- "total_flos": 1.5618225878728704e+16,
303
  "train_batch_size": 16,
304
  "trial_name": null,
305
  "trial_params": null
 
1
  {
2
+ "best_metric": 0.8520275354385376,
3
+ "best_model_checkpoint": "Llama-3.2-1B-sportsqa-V1/checkpoint-130",
4
+ "epoch": 4.971608832807571,
5
  "eval_steps": 10,
6
+ "global_step": 130,
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.3785488958990536,
13
+ "grad_norm": 0.5394421219825745,
14
  "learning_rate": 0.0002,
15
+ "loss": 1.8051,
16
  "step": 10
17
  },
18
  {
19
  "epoch": 0.3785488958990536,
20
+ "eval_loss": 1.5353755950927734,
21
+ "eval_runtime": 6.6028,
22
+ "eval_samples_per_second": 85.267,
23
+ "eval_steps_per_second": 10.753,
24
  "step": 10
25
  },
26
  {
27
  "epoch": 0.7570977917981072,
28
+ "grad_norm": 0.6756414771080017,
29
  "learning_rate": 0.0002,
30
+ "loss": 1.4193,
31
  "step": 20
32
  },
33
  {
34
  "epoch": 0.7570977917981072,
35
+ "eval_loss": 1.3329508304595947,
36
+ "eval_runtime": 6.4761,
37
+ "eval_samples_per_second": 86.935,
38
+ "eval_steps_per_second": 10.963,
39
  "step": 20
40
  },
41
  {
42
  "epoch": 1.1482649842271293,
43
+ "grad_norm": 0.4857617914676666,
44
  "learning_rate": 0.0002,
45
+ "loss": 1.2895,
46
  "step": 30
47
  },
48
  {
49
  "epoch": 1.1482649842271293,
50
+ "eval_loss": 1.1635785102844238,
51
+ "eval_runtime": 6.4995,
52
+ "eval_samples_per_second": 86.622,
53
+ "eval_steps_per_second": 10.924,
54
  "step": 30
55
  },
56
  {
57
  "epoch": 1.526813880126183,
58
+ "grad_norm": 0.43100810050964355,
59
  "learning_rate": 0.0002,
60
+ "loss": 1.0738,
61
  "step": 40
62
  },
63
  {
64
  "epoch": 1.526813880126183,
65
+ "eval_loss": 1.0900534391403198,
66
+ "eval_runtime": 6.4609,
67
+ "eval_samples_per_second": 87.14,
68
+ "eval_steps_per_second": 10.989,
69
  "step": 40
70
  },
71
  {
72
  "epoch": 1.9053627760252367,
73
+ "grad_norm": 0.661459743976593,
74
  "learning_rate": 0.0002,
75
+ "loss": 0.9551,
76
  "step": 50
77
  },
78
  {
79
  "epoch": 1.9053627760252367,
80
+ "eval_loss": 1.032881498336792,
81
+ "eval_runtime": 6.3928,
82
+ "eval_samples_per_second": 88.067,
83
+ "eval_steps_per_second": 11.106,
84
  "step": 50
85
  },
86
  {
87
  "epoch": 2.2965299684542586,
88
+ "grad_norm": 0.41446322202682495,
89
  "learning_rate": 0.0002,
90
+ "loss": 1.0296,
91
  "step": 60
92
  },
93
  {
94
  "epoch": 2.2965299684542586,
95
+ "eval_loss": 0.9979809522628784,
96
+ "eval_runtime": 6.4989,
97
+ "eval_samples_per_second": 86.63,
98
+ "eval_steps_per_second": 10.925,
99
  "step": 60
100
  },
101
  {
102
  "epoch": 2.6750788643533125,
103
+ "grad_norm": 0.6213859915733337,
104
  "learning_rate": 0.0002,
105
+ "loss": 0.8314,
106
  "step": 70
107
  },
108
  {
109
  "epoch": 2.6750788643533125,
110
+ "eval_loss": 0.9495619535446167,
111
+ "eval_runtime": 6.4778,
112
+ "eval_samples_per_second": 86.912,
113
+ "eval_steps_per_second": 10.961,
114
  "step": 70
115
  },
116
  {
117
  "epoch": 3.0662460567823344,
118
+ "grad_norm": 0.5072933435440063,
119
  "learning_rate": 0.0002,
120
+ "loss": 0.9114,
121
  "step": 80
122
  },
123
  {
124
  "epoch": 3.0662460567823344,
125
+ "eval_loss": 0.9263410568237305,
126
+ "eval_runtime": 6.4355,
127
+ "eval_samples_per_second": 87.484,
128
+ "eval_steps_per_second": 11.033,
129
  "step": 80
130
  },
131
  {
132
  "epoch": 3.444794952681388,
133
+ "grad_norm": 0.5831320881843567,
134
  "learning_rate": 0.0002,
135
+ "loss": 0.7374,
136
  "step": 90
137
  },
138
  {
139
  "epoch": 3.444794952681388,
140
+ "eval_loss": 0.9075612425804138,
141
+ "eval_runtime": 6.4648,
142
+ "eval_samples_per_second": 87.087,
143
+ "eval_steps_per_second": 10.983,
144
  "step": 90
145
  },
146
  {
147
  "epoch": 3.823343848580442,
148
+ "grad_norm": 0.5210297107696533,
149
  "learning_rate": 0.0002,
150
+ "loss": 0.7606,
151
  "step": 100
152
  },
153
  {
154
  "epoch": 3.823343848580442,
155
+ "eval_loss": 0.8877434730529785,
156
+ "eval_runtime": 6.4394,
157
+ "eval_samples_per_second": 87.43,
158
+ "eval_steps_per_second": 11.026,
159
  "step": 100
160
  },
161
  {
162
  "epoch": 4.214511041009464,
163
+ "grad_norm": 0.7101346254348755,
164
  "learning_rate": 0.0002,
165
+ "loss": 0.7158,
166
  "step": 110
167
  },
168
  {
169
  "epoch": 4.214511041009464,
170
+ "eval_loss": 0.8949338793754578,
171
+ "eval_runtime": 6.4802,
172
+ "eval_samples_per_second": 86.88,
173
+ "eval_steps_per_second": 10.956,
174
  "step": 110
175
  },
176
  {
177
  "epoch": 4.593059936908517,
178
+ "grad_norm": 0.4959416091442108,
179
  "learning_rate": 0.0002,
180
+ "loss": 0.6792,
181
  "step": 120
182
  },
183
  {
184
  "epoch": 4.593059936908517,
185
+ "eval_loss": 0.8711220622062683,
186
+ "eval_runtime": 6.5288,
187
+ "eval_samples_per_second": 86.233,
188
+ "eval_steps_per_second": 10.875,
189
  "step": 120
190
  },
191
  {
192
  "epoch": 4.971608832807571,
193
+ "grad_norm": 0.4901735484600067,
194
  "learning_rate": 0.0002,
195
+ "loss": 0.6251,
196
  "step": 130
197
  },
198
  {
199
  "epoch": 4.971608832807571,
200
+ "eval_loss": 0.8520275354385376,
201
+ "eval_runtime": 6.5294,
202
+ "eval_samples_per_second": 86.226,
203
+ "eval_steps_per_second": 10.874,
204
  "step": 130
205
  },
206
  {
207
+ "epoch": 4.971608832807571,
208
+ "step": 130,
209
+ "total_flos": 1.1913588129595392e+16,
210
+ "train_loss": 0.9871828225942758,
211
+ "train_runtime": 692.3499,
212
+ "train_samples_per_second": 36.578,
213
+ "train_steps_per_second": 0.188
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
  }
215
  ],
216
  "logging_steps": 10,
217
+ "max_steps": 130,
218
  "num_input_tokens_seen": 0,
219
+ "num_train_epochs": 5,
220
  "save_steps": 10,
221
  "stateful_callbacks": {
222
  "EarlyStoppingCallback": {
 
225
  "early_stopping_threshold": 0.01
226
  },
227
  "attributes": {
228
+ "early_stopping_patience_counter": 0
229
  }
230
  },
231
  "TrainerControl": {
 
239
  "attributes": {}
240
  }
241
  },
242
+ "total_flos": 1.1913588129595392e+16,
243
  "train_batch_size": 16,
244
  "trial_name": null,
245
  "trial_params": null