chansung commited on
Commit
e1bfb78
1 Parent(s): ecfffa6

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 +218 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Meta-Llama-3-8B
3
+ datasets:
4
+ - generator
5
+ library_name: peft
6
+ license: llama3
7
+ tags:
8
+ - trl
9
+ - sft
10
+ - generated_from_trainer
11
+ model-index:
12
+ - name: llama3.1-8b-gpt4o_100k_classification-lora
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.1-8b-gpt4o_100k_classification-lora
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.6186
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.0003
43
+ - train_batch_size: 4
44
+ - eval_batch_size: 4
45
+ - seed: 42
46
+ - distributed_type: multi-GPU
47
+ - num_devices: 8
48
+ - gradient_accumulation_steps: 2
49
+ - total_train_batch_size: 64
50
+ - total_eval_batch_size: 32
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: 1
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss |
59
+ |:-------------:|:------:|:----:|:---------------:|
60
+ | 1.0732 | 0.9958 | 118 | 1.6186 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - PEFT 0.13.0
66
+ - Transformers 4.45.1
67
+ - Pytorch 2.4.1+cu121
68
+ - Datasets 3.0.1
69
+ - Tokenizers 0.20.0
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9957805907172996,
3
+ "total_flos": 3.483831540687831e+17,
4
+ "train_loss": 1.2929974753977889,
5
+ "train_runtime": 1281.4902,
6
+ "train_samples": 92634,
7
+ "train_samples_per_second": 5.906,
8
+ "train_steps_per_second": 0.092
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9957805907172996,
3
+ "total_flos": 3.483831540687831e+17,
4
+ "train_loss": 1.2929974753977889,
5
+ "train_runtime": 1281.4902,
6
+ "train_samples": 92634,
7
+ "train_samples_per_second": 5.906,
8
+ "train_steps_per_second": 0.092
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9957805907172996,
5
+ "eval_steps": 500,
6
+ "global_step": 118,
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.008438818565400843,
13
+ "grad_norm": 0.9650136232376099,
14
+ "learning_rate": 2.4999999999999998e-05,
15
+ "loss": 2.8582,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.04219409282700422,
20
+ "grad_norm": 1.779584288597107,
21
+ "learning_rate": 0.000125,
22
+ "loss": 2.8146,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.08438818565400844,
27
+ "grad_norm": 2.2833831310272217,
28
+ "learning_rate": 0.00025,
29
+ "loss": 2.5451,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.12658227848101267,
34
+ "grad_norm": 5.367890357971191,
35
+ "learning_rate": 0.0002994074763922825,
36
+ "loss": 1.6976,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.16877637130801687,
41
+ "grad_norm": 1.000970482826233,
42
+ "learning_rate": 0.0002958034371120616,
43
+ "loss": 1.4928,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.2109704641350211,
48
+ "grad_norm": 0.7289397120475769,
49
+ "learning_rate": 0.000289003441114775,
50
+ "loss": 1.3257,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.25316455696202533,
55
+ "grad_norm": 0.511790931224823,
56
+ "learning_rate": 0.0002791565417651033,
57
+ "loss": 1.2616,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.29535864978902954,
62
+ "grad_norm": 0.5492662191390991,
63
+ "learning_rate": 0.00026647857940770634,
64
+ "loss": 1.2023,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.33755274261603374,
69
+ "grad_norm": 0.33897170424461365,
70
+ "learning_rate": 0.0002512474502277316,
71
+ "loss": 1.1788,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.379746835443038,
76
+ "grad_norm": 0.24469247460365295,
77
+ "learning_rate": 0.00023379701487054785,
78
+ "loss": 1.1525,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.4219409282700422,
83
+ "grad_norm": 0.21288429200649261,
84
+ "learning_rate": 0.00021450978034147806,
85
+ "loss": 1.1336,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.4641350210970464,
90
+ "grad_norm": 0.22459806501865387,
91
+ "learning_rate": 0.00019380851559554636,
92
+ "loss": 1.1152,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.5063291139240507,
97
+ "grad_norm": 0.21257351338863373,
98
+ "learning_rate": 0.00017214698460037218,
99
+ "loss": 1.1092,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.5485232067510548,
104
+ "grad_norm": 0.2138395607471466,
105
+ "learning_rate": 0.00015,
106
+ "loss": 1.0926,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.5907172995780591,
111
+ "grad_norm": 0.19117598235607147,
112
+ "learning_rate": 0.00012785301539962782,
113
+ "loss": 1.0938,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.6329113924050633,
118
+ "grad_norm": 0.18693800270557404,
119
+ "learning_rate": 0.00010619148440445364,
120
+ "loss": 1.0873,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.6751054852320675,
125
+ "grad_norm": 0.22816094756126404,
126
+ "learning_rate": 8.549021965852197e-05,
127
+ "loss": 1.0805,
128
+ "step": 80
129
+ },
130
+ {
131
+ "epoch": 0.7172995780590717,
132
+ "grad_norm": 0.20088453590869904,
133
+ "learning_rate": 6.620298512945214e-05,
134
+ "loss": 1.0702,
135
+ "step": 85
136
+ },
137
+ {
138
+ "epoch": 0.759493670886076,
139
+ "grad_norm": 0.19913840293884277,
140
+ "learning_rate": 4.8752549772268444e-05,
141
+ "loss": 1.0596,
142
+ "step": 90
143
+ },
144
+ {
145
+ "epoch": 0.8016877637130801,
146
+ "grad_norm": 0.20332343876361847,
147
+ "learning_rate": 3.352142059229365e-05,
148
+ "loss": 1.0629,
149
+ "step": 95
150
+ },
151
+ {
152
+ "epoch": 0.8438818565400844,
153
+ "grad_norm": 0.1878909319639206,
154
+ "learning_rate": 2.0843458234896666e-05,
155
+ "loss": 1.0765,
156
+ "step": 100
157
+ },
158
+ {
159
+ "epoch": 0.8860759493670886,
160
+ "grad_norm": 0.25477486848831177,
161
+ "learning_rate": 1.0996558885224993e-05,
162
+ "loss": 1.0739,
163
+ "step": 105
164
+ },
165
+ {
166
+ "epoch": 0.9282700421940928,
167
+ "grad_norm": 0.19258134067058563,
168
+ "learning_rate": 4.1965628879383875e-06,
169
+ "loss": 1.0637,
170
+ "step": 110
171
+ },
172
+ {
173
+ "epoch": 0.9704641350210971,
174
+ "grad_norm": 0.19716647267341614,
175
+ "learning_rate": 5.925236077174655e-07,
176
+ "loss": 1.0732,
177
+ "step": 115
178
+ },
179
+ {
180
+ "epoch": 0.9957805907172996,
181
+ "eval_loss": 1.6185935735702515,
182
+ "eval_runtime": 1.1156,
183
+ "eval_samples_per_second": 1.793,
184
+ "eval_steps_per_second": 0.896,
185
+ "step": 118
186
+ },
187
+ {
188
+ "epoch": 0.9957805907172996,
189
+ "step": 118,
190
+ "total_flos": 3.483831540687831e+17,
191
+ "train_loss": 1.2929974753977889,
192
+ "train_runtime": 1281.4902,
193
+ "train_samples_per_second": 5.906,
194
+ "train_steps_per_second": 0.092
195
+ }
196
+ ],
197
+ "logging_steps": 5,
198
+ "max_steps": 118,
199
+ "num_input_tokens_seen": 0,
200
+ "num_train_epochs": 1,
201
+ "save_steps": 100,
202
+ "stateful_callbacks": {
203
+ "TrainerControl": {
204
+ "args": {
205
+ "should_epoch_stop": false,
206
+ "should_evaluate": false,
207
+ "should_log": false,
208
+ "should_save": true,
209
+ "should_training_stop": true
210
+ },
211
+ "attributes": {}
212
+ }
213
+ },
214
+ "total_flos": 3.483831540687831e+17,
215
+ "train_batch_size": 4,
216
+ "trial_name": null,
217
+ "trial_params": null
218
+ }