chansung commited on
Commit
b392d71
·
verified ·
1 Parent(s): bb09605

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-lora-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-lora-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.2849
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 OptimizerNames.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.4631 | 0.9961 | 129 | 2.2849 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - PEFT 0.13.2
66
+ - Transformers 4.46.2
67
+ - Pytorch 2.3.1+cu121
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.61719099628716e+17,
4
+ "train_loss": 1.5859730927519096,
5
+ "train_runtime": 2226.6138,
6
+ "train_samples": 111440,
7
+ "train_samples_per_second": 14.886,
8
+ "train_steps_per_second": 0.058
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9961389961389961,
3
+ "total_flos": 7.61719099628716e+17,
4
+ "train_loss": 1.5859730927519096,
5
+ "train_runtime": 2226.6138,
6
+ "train_samples": 111440,
7
+ "train_samples_per_second": 14.886,
8
+ "train_steps_per_second": 0.058
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": 0.7566112279891968,
14
+ "learning_rate": 1.5384615384615387e-05,
15
+ "loss": 2.1393,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.03861003861003861,
20
+ "grad_norm": 1.1990445852279663,
21
+ "learning_rate": 7.692307692307693e-05,
22
+ "loss": 2.1362,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.07722007722007722,
27
+ "grad_norm": 0.5208460092544556,
28
+ "learning_rate": 0.00015384615384615385,
29
+ "loss": 2.0814,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.11583011583011583,
34
+ "grad_norm": 0.6390016078948975,
35
+ "learning_rate": 0.00019985334138511237,
36
+ "loss": 1.9687,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.15444015444015444,
41
+ "grad_norm": 0.6168708801269531,
42
+ "learning_rate": 0.0001982083682742156,
43
+ "loss": 1.8165,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.19305019305019305,
48
+ "grad_norm": 0.5843796133995056,
49
+ "learning_rate": 0.00019476531711828027,
50
+ "loss": 1.6979,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.23166023166023167,
55
+ "grad_norm": 0.329062283039093,
56
+ "learning_rate": 0.0001895872260758688,
57
+ "loss": 1.6433,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.2702702702702703,
62
+ "grad_norm": 0.35946840047836304,
63
+ "learning_rate": 0.00018276889981568906,
64
+ "loss": 1.5942,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.3088803088803089,
69
+ "grad_norm": 0.24955272674560547,
70
+ "learning_rate": 0.00017443517375622704,
71
+ "loss": 1.5573,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.3474903474903475,
76
+ "grad_norm": 0.2598620355129242,
77
+ "learning_rate": 0.00016473862847818277,
78
+ "loss": 1.5501,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.3861003861003861,
83
+ "grad_norm": 0.21895311772823334,
84
+ "learning_rate": 0.00015385679615609042,
85
+ "loss": 1.5251,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.4247104247104247,
90
+ "grad_norm": 0.2305791676044464,
91
+ "learning_rate": 0.00014198891015602646,
92
+ "loss": 1.5191,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.46332046332046334,
97
+ "grad_norm": 0.21794967353343964,
98
+ "learning_rate": 0.00012935225731039348,
99
+ "loss": 1.5042,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.5019305019305019,
104
+ "grad_norm": 0.22447626292705536,
105
+ "learning_rate": 0.0001161781996552765,
106
+ "loss": 1.4992,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.5405405405405406,
111
+ "grad_norm": 0.2490142434835434,
112
+ "learning_rate": 0.00010270793846761347,
113
+ "loss": 1.4967,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.5791505791505791,
118
+ "grad_norm": 0.2434530258178711,
119
+ "learning_rate": 8.918809815760585e-05,
120
+ "loss": 1.4842,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.6177606177606177,
125
+ "grad_norm": 0.29860490560531616,
126
+ "learning_rate": 7.586621087002945e-05,
127
+ "loss": 1.4808,
128
+ "step": 80
129
+ },
130
+ {
131
+ "epoch": 0.6563706563706564,
132
+ "grad_norm": 0.2233101725578308,
133
+ "learning_rate": 6.298618446600856e-05,
134
+ "loss": 1.4863,
135
+ "step": 85
136
+ },
137
+ {
138
+ "epoch": 0.694980694980695,
139
+ "grad_norm": 0.24076718091964722,
140
+ "learning_rate": 5.078383686109926e-05,
141
+ "loss": 1.4625,
142
+ "step": 90
143
+ },
144
+ {
145
+ "epoch": 0.7335907335907336,
146
+ "grad_norm": 0.2131790667772293,
147
+ "learning_rate": 3.948257848062351e-05,
148
+ "loss": 1.4676,
149
+ "step": 95
150
+ },
151
+ {
152
+ "epoch": 0.7722007722007722,
153
+ "grad_norm": 0.2535589635372162,
154
+ "learning_rate": 2.9289321881345254e-05,
155
+ "loss": 1.4689,
156
+ "step": 100
157
+ },
158
+ {
159
+ "epoch": 0.8108108108108109,
160
+ "grad_norm": 0.2187783420085907,
161
+ "learning_rate": 2.0390693429435627e-05,
162
+ "loss": 1.4613,
163
+ "step": 105
164
+ },
165
+ {
166
+ "epoch": 0.8494208494208494,
167
+ "grad_norm": 0.22383730113506317,
168
+ "learning_rate": 1.2949616394382802e-05,
169
+ "loss": 1.4626,
170
+ "step": 110
171
+ },
172
+ {
173
+ "epoch": 0.888030888030888,
174
+ "grad_norm": 0.24992400407791138,
175
+ "learning_rate": 7.102328018320858e-06,
176
+ "loss": 1.4698,
177
+ "step": 115
178
+ },
179
+ {
180
+ "epoch": 0.9266409266409267,
181
+ "grad_norm": 0.24492764472961426,
182
+ "learning_rate": 2.9558851746788517e-06,
183
+ "loss": 1.4742,
184
+ "step": 120
185
+ },
186
+ {
187
+ "epoch": 0.9652509652509652,
188
+ "grad_norm": 0.27442848682403564,
189
+ "learning_rate": 5.862042845640403e-07,
190
+ "loss": 1.4631,
191
+ "step": 125
192
+ },
193
+ {
194
+ "epoch": 0.9961389961389961,
195
+ "eval_loss": 2.2848541736602783,
196
+ "eval_runtime": 1.132,
197
+ "eval_samples_per_second": 10.601,
198
+ "eval_steps_per_second": 0.883,
199
+ "step": 129
200
+ },
201
+ {
202
+ "epoch": 0.9961389961389961,
203
+ "step": 129,
204
+ "total_flos": 7.61719099628716e+17,
205
+ "train_loss": 1.5859730927519096,
206
+ "train_runtime": 2226.6138,
207
+ "train_samples_per_second": 14.886,
208
+ "train_steps_per_second": 0.058
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.61719099628716e+17,
229
+ "train_batch_size": 16,
230
+ "trial_name": null,
231
+ "trial_params": null
232
+ }