chansung commited on
Commit
e9970c3
·
verified ·
1 Parent(s): b4f3d9b

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 +246 -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-milora-coding-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-milora-coding-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: 1.6430
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.1598 | 1.0 | 137 | 1.6430 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - PEFT 0.13.3.dev0
66
+ - Transformers 4.46.3
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": 1.0,
3
+ "total_flos": 8.08957492854784e+17,
4
+ "train_loss": 1.2680163078934608,
5
+ "train_runtime": 662.1797,
6
+ "train_samples": 116368,
7
+ "train_samples_per_second": 52.795,
8
+ "train_steps_per_second": 0.207
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 8.08957492854784e+17,
4
+ "train_loss": 1.2680163078934608,
5
+ "train_runtime": 662.1797,
6
+ "train_samples": 116368,
7
+ "train_samples_per_second": 52.795,
8
+ "train_steps_per_second": 0.207
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,246 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 137,
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.0072992700729927005,
13
+ "grad_norm": 2.037527561187744,
14
+ "learning_rate": 1.4285714285714285e-05,
15
+ "loss": 1.7627,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.0364963503649635,
20
+ "grad_norm": 1.0240328311920166,
21
+ "learning_rate": 7.142857142857143e-05,
22
+ "loss": 1.729,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.072992700729927,
27
+ "grad_norm": 0.4906023442745209,
28
+ "learning_rate": 0.00014285714285714287,
29
+ "loss": 1.686,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.10948905109489052,
34
+ "grad_norm": 0.5248916745185852,
35
+ "learning_rate": 0.00019996738360808565,
36
+ "loss": 1.624,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.145985401459854,
41
+ "grad_norm": 0.5368553400039673,
42
+ "learning_rate": 0.00019882804237803488,
43
+ "loss": 1.516,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.18248175182481752,
48
+ "grad_norm": 0.2822141945362091,
49
+ "learning_rate": 0.00019607909582962477,
50
+ "loss": 1.4264,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.21897810218978103,
55
+ "grad_norm": 0.2575882375240326,
56
+ "learning_rate": 0.0001917653158603628,
57
+ "loss": 1.3472,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.25547445255474455,
62
+ "grad_norm": 0.19714128971099854,
63
+ "learning_rate": 0.00018595696069872013,
64
+ "loss": 1.2921,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.291970802919708,
69
+ "grad_norm": 0.12405715137720108,
70
+ "learning_rate": 0.00017874863061334657,
71
+ "loss": 1.2586,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.3284671532846715,
76
+ "grad_norm": 0.09485290199518204,
77
+ "learning_rate": 0.00017025772716520323,
78
+ "loss": 1.2474,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.36496350364963503,
83
+ "grad_norm": 0.08865249156951904,
84
+ "learning_rate": 0.0001606225410966638,
85
+ "loss": 1.2304,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.40145985401459855,
90
+ "grad_norm": 0.08730119466781616,
91
+ "learning_rate": 0.00015000000000000001,
92
+ "loss": 1.2155,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.43795620437956206,
97
+ "grad_norm": 0.07352937012910843,
98
+ "learning_rate": 0.0001385631124488136,
99
+ "loss": 1.2032,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.4744525547445255,
104
+ "grad_norm": 0.06901456415653229,
105
+ "learning_rate": 0.0001264981502196662,
106
+ "loss": 1.1911,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.5109489051094891,
111
+ "grad_norm": 0.06873830407857895,
112
+ "learning_rate": 0.00011400161449686293,
113
+ "loss": 1.1886,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.5474452554744526,
118
+ "grad_norm": 0.07086185365915298,
119
+ "learning_rate": 0.00010127703547159739,
120
+ "loss": 1.1737,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.583941605839416,
125
+ "grad_norm": 0.06949092447757721,
126
+ "learning_rate": 8.853165746015997e-05,
127
+ "loss": 1.1693,
128
+ "step": 80
129
+ },
130
+ {
131
+ "epoch": 0.6204379562043796,
132
+ "grad_norm": 0.06831766664981842,
133
+ "learning_rate": 7.597306353045393e-05,
134
+ "loss": 1.1595,
135
+ "step": 85
136
+ },
137
+ {
138
+ "epoch": 0.656934306569343,
139
+ "grad_norm": 0.06490089744329453,
140
+ "learning_rate": 6.380579461128819e-05,
141
+ "loss": 1.1741,
142
+ "step": 90
143
+ },
144
+ {
145
+ "epoch": 0.6934306569343066,
146
+ "grad_norm": 0.06254352629184723,
147
+ "learning_rate": 5.222801814877369e-05,
148
+ "loss": 1.1567,
149
+ "step": 95
150
+ },
151
+ {
152
+ "epoch": 0.7299270072992701,
153
+ "grad_norm": 0.06689339876174927,
154
+ "learning_rate": 4.142830056718052e-05,
155
+ "loss": 1.1625,
156
+ "step": 100
157
+ },
158
+ {
159
+ "epoch": 0.7664233576642335,
160
+ "grad_norm": 0.06685953587293625,
161
+ "learning_rate": 3.158253610095697e-05,
162
+ "loss": 1.1569,
163
+ "step": 105
164
+ },
165
+ {
166
+ "epoch": 0.8029197080291971,
167
+ "grad_norm": 0.06890476495027542,
168
+ "learning_rate": 2.2851082017805703e-05,
169
+ "loss": 1.153,
170
+ "step": 110
171
+ },
172
+ {
173
+ "epoch": 0.8394160583941606,
174
+ "grad_norm": 0.06309118121862411,
175
+ "learning_rate": 1.5376146891235598e-05,
176
+ "loss": 1.1583,
177
+ "step": 115
178
+ },
179
+ {
180
+ "epoch": 0.8759124087591241,
181
+ "grad_norm": 0.06340091675519943,
182
+ "learning_rate": 9.279474459608805e-06,
183
+ "loss": 1.1639,
184
+ "step": 120
185
+ },
186
+ {
187
+ "epoch": 0.9124087591240876,
188
+ "grad_norm": 0.06254470348358154,
189
+ "learning_rate": 4.660360794506946e-06,
190
+ "loss": 1.1547,
191
+ "step": 125
192
+ },
193
+ {
194
+ "epoch": 0.948905109489051,
195
+ "grad_norm": 0.06014714017510414,
196
+ "learning_rate": 1.5940370726542863e-06,
197
+ "loss": 1.161,
198
+ "step": 130
199
+ },
200
+ {
201
+ "epoch": 0.9854014598540146,
202
+ "grad_norm": 0.0610809363424778,
203
+ "learning_rate": 1.3044429107700318e-07,
204
+ "loss": 1.1598,
205
+ "step": 135
206
+ },
207
+ {
208
+ "epoch": 1.0,
209
+ "eval_loss": 1.6429708003997803,
210
+ "eval_runtime": 0.7863,
211
+ "eval_samples_per_second": 11.446,
212
+ "eval_steps_per_second": 1.272,
213
+ "step": 137
214
+ },
215
+ {
216
+ "epoch": 1.0,
217
+ "step": 137,
218
+ "total_flos": 8.08957492854784e+17,
219
+ "train_loss": 1.2680163078934608,
220
+ "train_runtime": 662.1797,
221
+ "train_samples_per_second": 52.795,
222
+ "train_steps_per_second": 0.207
223
+ }
224
+ ],
225
+ "logging_steps": 5,
226
+ "max_steps": 137,
227
+ "num_input_tokens_seen": 0,
228
+ "num_train_epochs": 1,
229
+ "save_steps": 100,
230
+ "stateful_callbacks": {
231
+ "TrainerControl": {
232
+ "args": {
233
+ "should_epoch_stop": false,
234
+ "should_evaluate": false,
235
+ "should_log": false,
236
+ "should_save": true,
237
+ "should_training_stop": true
238
+ },
239
+ "attributes": {}
240
+ }
241
+ },
242
+ "total_flos": 8.08957492854784e+17,
243
+ "train_batch_size": 16,
244
+ "trial_name": null,
245
+ "trial_params": null
246
+ }