chansung commited on
Commit
187e8e4
1 Parent(s): 7444b5e

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 +232 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: llama3
4
+ base_model: meta-llama/Meta-Llama-3-8B
5
+ tags:
6
+ - trl
7
+ - sft
8
+ - generated_from_trainer
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: llama3-8b-kasa-closedqa-11-v1
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-8b-kasa-closedqa-11-v1
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.3773
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: 16
44
+ - eval_batch_size: 16
45
+ - seed: 42
46
+ - distributed_type: multi-GPU
47
+ - num_devices: 8
48
+ - gradient_accumulation_steps: 2
49
+ - total_train_batch_size: 256
50
+ - total_eval_batch_size: 128
51
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
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
+ | 1.6912 | 0.9961 | 129 | 2.3773 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - PEFT 0.13.1.dev0
66
+ - Transformers 4.46.2
67
+ - Pytorch 2.5.1+cu124
68
+ - Datasets 3.1.0
69
+ - Tokenizers 0.20.3
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9961389961389961,
3
+ "total_flos": 7.617195409366057e+17,
4
+ "train_loss": 1.8217888118684753,
5
+ "train_runtime": 663.1517,
6
+ "train_samples": 111440,
7
+ "train_samples_per_second": 49.983,
8
+ "train_steps_per_second": 0.195
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9961389961389961,
3
+ "total_flos": 7.617195409366057e+17,
4
+ "train_loss": 1.8217888118684753,
5
+ "train_runtime": 663.1517,
6
+ "train_samples": 111440,
7
+ "train_samples_per_second": 49.983,
8
+ "train_steps_per_second": 0.195
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9961389961389961,
5
+ "eval_steps": 500,
6
+ "global_step": 129,
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.007722007722007722,
13
+ "grad_norm": 1.7816834449768066,
14
+ "learning_rate": 1.5384615384615387e-05,
15
+ "loss": 2.391,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.03861003861003861,
20
+ "grad_norm": 1.4342066049575806,
21
+ "learning_rate": 7.692307692307693e-05,
22
+ "loss": 2.3898,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.07722007722007722,
27
+ "grad_norm": 0.5361077189445496,
28
+ "learning_rate": 0.00015384615384615385,
29
+ "loss": 2.3243,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.11583011583011583,
34
+ "grad_norm": 0.5296446681022644,
35
+ "learning_rate": 0.00019985334138511237,
36
+ "loss": 2.2164,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.15444015444015444,
41
+ "grad_norm": 0.6367804408073425,
42
+ "learning_rate": 0.0001982083682742156,
43
+ "loss": 2.0755,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.19305019305019305,
48
+ "grad_norm": 0.5406314134597778,
49
+ "learning_rate": 0.00019476531711828027,
50
+ "loss": 1.9492,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.23166023166023167,
55
+ "grad_norm": 0.37518641352653503,
56
+ "learning_rate": 0.0001895872260758688,
57
+ "loss": 1.8895,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.2702702702702703,
62
+ "grad_norm": 0.3098143935203552,
63
+ "learning_rate": 0.00018276889981568906,
64
+ "loss": 1.833,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.3088803088803089,
69
+ "grad_norm": 0.2785213589668274,
70
+ "learning_rate": 0.00017443517375622704,
71
+ "loss": 1.7927,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.3474903474903475,
76
+ "grad_norm": 0.23454847931861877,
77
+ "learning_rate": 0.00016473862847818277,
78
+ "loss": 1.784,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.3861003861003861,
83
+ "grad_norm": 0.20828357338905334,
84
+ "learning_rate": 0.00015385679615609042,
85
+ "loss": 1.7591,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.4247104247104247,
90
+ "grad_norm": 0.2269953042268753,
91
+ "learning_rate": 0.00014198891015602646,
92
+ "loss": 1.7541,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.46332046332046334,
97
+ "grad_norm": 0.22065143287181854,
98
+ "learning_rate": 0.00012935225731039348,
99
+ "loss": 1.739,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.5019305019305019,
104
+ "grad_norm": 0.2357364445924759,
105
+ "learning_rate": 0.0001161781996552765,
106
+ "loss": 1.7335,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.5405405405405406,
111
+ "grad_norm": 0.26511350274086,
112
+ "learning_rate": 0.00010270793846761347,
113
+ "loss": 1.7297,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.5791505791505791,
118
+ "grad_norm": 0.23851530253887177,
119
+ "learning_rate": 8.918809815760585e-05,
120
+ "loss": 1.7163,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.6177606177606177,
125
+ "grad_norm": 0.273843914270401,
126
+ "learning_rate": 7.586621087002945e-05,
127
+ "loss": 1.7118,
128
+ "step": 80
129
+ },
130
+ {
131
+ "epoch": 0.6563706563706564,
132
+ "grad_norm": 0.2239556759595871,
133
+ "learning_rate": 6.298618446600856e-05,
134
+ "loss": 1.7166,
135
+ "step": 85
136
+ },
137
+ {
138
+ "epoch": 0.694980694980695,
139
+ "grad_norm": 0.242255300283432,
140
+ "learning_rate": 5.078383686109926e-05,
141
+ "loss": 1.6918,
142
+ "step": 90
143
+ },
144
+ {
145
+ "epoch": 0.7335907335907336,
146
+ "grad_norm": 0.21650227904319763,
147
+ "learning_rate": 3.948257848062351e-05,
148
+ "loss": 1.6965,
149
+ "step": 95
150
+ },
151
+ {
152
+ "epoch": 0.7722007722007722,
153
+ "grad_norm": 0.2475181221961975,
154
+ "learning_rate": 2.9289321881345254e-05,
155
+ "loss": 1.6979,
156
+ "step": 100
157
+ },
158
+ {
159
+ "epoch": 0.8108108108108109,
160
+ "grad_norm": 0.22755274176597595,
161
+ "learning_rate": 2.0390693429435627e-05,
162
+ "loss": 1.6902,
163
+ "step": 105
164
+ },
165
+ {
166
+ "epoch": 0.8494208494208494,
167
+ "grad_norm": 0.23448188602924347,
168
+ "learning_rate": 1.2949616394382802e-05,
169
+ "loss": 1.6914,
170
+ "step": 110
171
+ },
172
+ {
173
+ "epoch": 0.888030888030888,
174
+ "grad_norm": 0.25876742601394653,
175
+ "learning_rate": 7.102328018320858e-06,
176
+ "loss": 1.6983,
177
+ "step": 115
178
+ },
179
+ {
180
+ "epoch": 0.9266409266409267,
181
+ "grad_norm": 0.2385036200284958,
182
+ "learning_rate": 2.9558851746788517e-06,
183
+ "loss": 1.7022,
184
+ "step": 120
185
+ },
186
+ {
187
+ "epoch": 0.9652509652509652,
188
+ "grad_norm": 0.2816598117351532,
189
+ "learning_rate": 5.862042845640403e-07,
190
+ "loss": 1.6912,
191
+ "step": 125
192
+ },
193
+ {
194
+ "epoch": 0.9961389961389961,
195
+ "eval_loss": 2.3773248195648193,
196
+ "eval_runtime": 0.8215,
197
+ "eval_samples_per_second": 14.607,
198
+ "eval_steps_per_second": 1.217,
199
+ "step": 129
200
+ },
201
+ {
202
+ "epoch": 0.9961389961389961,
203
+ "step": 129,
204
+ "total_flos": 7.617195409366057e+17,
205
+ "train_loss": 1.8217888118684753,
206
+ "train_runtime": 663.1517,
207
+ "train_samples_per_second": 49.983,
208
+ "train_steps_per_second": 0.195
209
+ }
210
+ ],
211
+ "logging_steps": 5,
212
+ "max_steps": 129,
213
+ "num_input_tokens_seen": 0,
214
+ "num_train_epochs": 1,
215
+ "save_steps": 100,
216
+ "stateful_callbacks": {
217
+ "TrainerControl": {
218
+ "args": {
219
+ "should_epoch_stop": false,
220
+ "should_evaluate": false,
221
+ "should_log": false,
222
+ "should_save": true,
223
+ "should_training_stop": true
224
+ },
225
+ "attributes": {}
226
+ }
227
+ },
228
+ "total_flos": 7.617195409366057e+17,
229
+ "train_batch_size": 16,
230
+ "trial_name": null,
231
+ "trial_params": null
232
+ }