Model save
Browse files- README.md +60 -0
- all_results.json +9 -0
- generation_config.json +12 -0
- train_results.json +9 -0
- trainer_state.json +237 -0
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama3
|
3 |
+
base_model: Jackie999/llama3-sudo-5epochs-tofu_full_sft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- dpo
|
7 |
+
- generated_from_trainer
|
8 |
+
model-index:
|
9 |
+
- name: llama3-sudo-dpo-5epochs-forget10mix400-1sft-2fullpara-1e-5
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# llama3-sudo-dpo-5epochs-forget10mix400-1sft-2fullpara-1e-5
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [Jackie999/llama3-sudo-5epochs-tofu_full_sft](https://huggingface.co/Jackie999/llama3-sudo-5epochs-tofu_full_sft) on an unknown dataset.
|
19 |
+
|
20 |
+
## Model description
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Intended uses & limitations
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training and evaluation data
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training procedure
|
33 |
+
|
34 |
+
### Training hyperparameters
|
35 |
+
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 1e-05
|
38 |
+
- train_batch_size: 4
|
39 |
+
- eval_batch_size: 8
|
40 |
+
- seed: 42
|
41 |
+
- distributed_type: multi-GPU
|
42 |
+
- num_devices: 4
|
43 |
+
- gradient_accumulation_steps: 4
|
44 |
+
- total_train_batch_size: 64
|
45 |
+
- total_eval_batch_size: 32
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: cosine
|
48 |
+
- lr_scheduler_warmup_ratio: 0.1
|
49 |
+
- num_epochs: 5
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
### Framework versions
|
56 |
+
|
57 |
+
- Transformers 4.44.0
|
58 |
+
- Pytorch 2.1.2
|
59 |
+
- Datasets 3.0.0
|
60 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.07995766662200912,
|
5 |
+
"train_runtime": 9770.964,
|
6 |
+
"train_samples": 1600,
|
7 |
+
"train_samples_per_second": 0.819,
|
8 |
+
"train_steps_per_second": 0.013
|
9 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 128000,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": [
|
5 |
+
128001,
|
6 |
+
128009
|
7 |
+
],
|
8 |
+
"max_length": 4096,
|
9 |
+
"temperature": 0.6,
|
10 |
+
"top_p": 0.9,
|
11 |
+
"transformers_version": "4.44.0"
|
12 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 5.0,
|
5 |
+
"eval_steps": 1000,
|
6 |
+
"global_step": 125,
|
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.04,
|
13 |
+
"grad_norm": 5.490319312063127,
|
14 |
+
"learning_rate": 7.692307692307694e-07,
|
15 |
+
"logits/chosen": -1.73323655128479,
|
16 |
+
"logits/rejected": -1.963712453842163,
|
17 |
+
"logps/chosen": -64.71795654296875,
|
18 |
+
"logps/rejected": -92.56527709960938,
|
19 |
+
"loss": 0.6931,
|
20 |
+
"rewards/accuracies": 0.0,
|
21 |
+
"rewards/chosen": 0.0,
|
22 |
+
"rewards/margins": 0.0,
|
23 |
+
"rewards/rejected": 0.0,
|
24 |
+
"step": 1
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 0.4,
|
28 |
+
"grad_norm": 2.4753255673765837,
|
29 |
+
"learning_rate": 7.692307692307694e-06,
|
30 |
+
"logits/chosen": -1.6273242235183716,
|
31 |
+
"logits/rejected": -1.7998943328857422,
|
32 |
+
"logps/chosen": -78.1596450805664,
|
33 |
+
"logps/rejected": -136.78704833984375,
|
34 |
+
"loss": 0.5986,
|
35 |
+
"rewards/accuracies": 0.625,
|
36 |
+
"rewards/chosen": -0.14767809212207794,
|
37 |
+
"rewards/margins": 0.3422772288322449,
|
38 |
+
"rewards/rejected": -0.48995527625083923,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.8,
|
43 |
+
"grad_norm": 1.4922013042570934,
|
44 |
+
"learning_rate": 9.903926402016153e-06,
|
45 |
+
"logits/chosen": -1.132021188735962,
|
46 |
+
"logits/rejected": -1.4362722635269165,
|
47 |
+
"logps/chosen": -60.54664993286133,
|
48 |
+
"logps/rejected": -335.38629150390625,
|
49 |
+
"loss": 0.3069,
|
50 |
+
"rewards/accuracies": 0.8812500238418579,
|
51 |
+
"rewards/chosen": 0.005078454967588186,
|
52 |
+
"rewards/margins": 2.449418783187866,
|
53 |
+
"rewards/rejected": -2.444340467453003,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 1.2,
|
58 |
+
"grad_norm": 0.08650022357203001,
|
59 |
+
"learning_rate": 9.442228179894362e-06,
|
60 |
+
"logits/chosen": -1.4244499206542969,
|
61 |
+
"logits/rejected": -1.7115017175674438,
|
62 |
+
"logps/chosen": -159.7740020751953,
|
63 |
+
"logps/rejected": -776.4279174804688,
|
64 |
+
"loss": 0.0327,
|
65 |
+
"rewards/accuracies": 1.0,
|
66 |
+
"rewards/chosen": -0.981249213218689,
|
67 |
+
"rewards/margins": 5.87949275970459,
|
68 |
+
"rewards/rejected": -6.86074161529541,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 1.6,
|
73 |
+
"grad_norm": 0.6071478933413408,
|
74 |
+
"learning_rate": 8.633301610170136e-06,
|
75 |
+
"logits/chosen": -1.8324272632598877,
|
76 |
+
"logits/rejected": -2.274733781814575,
|
77 |
+
"logps/chosen": -173.323486328125,
|
78 |
+
"logps/rejected": -1064.7208251953125,
|
79 |
+
"loss": 0.017,
|
80 |
+
"rewards/accuracies": 0.9937499761581421,
|
81 |
+
"rewards/chosen": -1.1587677001953125,
|
82 |
+
"rewards/margins": 8.547063827514648,
|
83 |
+
"rewards/rejected": -9.705831527709961,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 2.0,
|
88 |
+
"grad_norm": 10.37379661402861,
|
89 |
+
"learning_rate": 7.540376726232648e-06,
|
90 |
+
"logits/chosen": -2.072046995162964,
|
91 |
+
"logits/rejected": -2.5416159629821777,
|
92 |
+
"logps/chosen": -201.16822814941406,
|
93 |
+
"logps/rejected": -1270.976806640625,
|
94 |
+
"loss": 0.0143,
|
95 |
+
"rewards/accuracies": 0.987500011920929,
|
96 |
+
"rewards/chosen": -1.3896355628967285,
|
97 |
+
"rewards/margins": 10.439592361450195,
|
98 |
+
"rewards/rejected": -11.829228401184082,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 2.4,
|
103 |
+
"grad_norm": 0.08724694925694036,
|
104 |
+
"learning_rate": 6.248882390836135e-06,
|
105 |
+
"logits/chosen": -1.5749847888946533,
|
106 |
+
"logits/rejected": -2.108443021774292,
|
107 |
+
"logps/chosen": -206.0604248046875,
|
108 |
+
"logps/rejected": -1066.5167236328125,
|
109 |
+
"loss": 0.0116,
|
110 |
+
"rewards/accuracies": 1.0,
|
111 |
+
"rewards/chosen": -1.477189302444458,
|
112 |
+
"rewards/margins": 8.241119384765625,
|
113 |
+
"rewards/rejected": -9.718308448791504,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 2.8,
|
118 |
+
"grad_norm": 1.5412553598400243,
|
119 |
+
"learning_rate": 4.859768718620656e-06,
|
120 |
+
"logits/chosen": -1.5107686519622803,
|
121 |
+
"logits/rejected": -2.1837661266326904,
|
122 |
+
"logps/chosen": -248.97695922851562,
|
123 |
+
"logps/rejected": -1404.155517578125,
|
124 |
+
"loss": 0.0022,
|
125 |
+
"rewards/accuracies": 1.0,
|
126 |
+
"rewards/chosen": -1.8567733764648438,
|
127 |
+
"rewards/margins": 11.288753509521484,
|
128 |
+
"rewards/rejected": -13.145527839660645,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 3.2,
|
133 |
+
"grad_norm": 0.008991447421855448,
|
134 |
+
"learning_rate": 3.4816162744519266e-06,
|
135 |
+
"logits/chosen": -1.091412901878357,
|
136 |
+
"logits/rejected": -1.767606496810913,
|
137 |
+
"logps/chosen": -267.06280517578125,
|
138 |
+
"logps/rejected": -1556.9952392578125,
|
139 |
+
"loss": 0.0003,
|
140 |
+
"rewards/accuracies": 1.0,
|
141 |
+
"rewards/chosen": -2.066657066345215,
|
142 |
+
"rewards/margins": 12.597526550292969,
|
143 |
+
"rewards/rejected": -14.6641845703125,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 3.6,
|
148 |
+
"grad_norm": 0.07467711604243485,
|
149 |
+
"learning_rate": 2.2221488349019903e-06,
|
150 |
+
"logits/chosen": -1.1434813737869263,
|
151 |
+
"logits/rejected": -1.8074337244033813,
|
152 |
+
"logps/chosen": -272.1551513671875,
|
153 |
+
"logps/rejected": -1601.199951171875,
|
154 |
+
"loss": 0.0042,
|
155 |
+
"rewards/accuracies": 0.9937499761581421,
|
156 |
+
"rewards/chosen": -2.1011674404144287,
|
157 |
+
"rewards/margins": 13.020586013793945,
|
158 |
+
"rewards/rejected": -15.121752738952637,
|
159 |
+
"step": 90
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 4.0,
|
163 |
+
"grad_norm": 0.002962899425955675,
|
164 |
+
"learning_rate": 1.1798131208919628e-06,
|
165 |
+
"logits/chosen": -1.2595702409744263,
|
166 |
+
"logits/rejected": -1.8675899505615234,
|
167 |
+
"logps/chosen": -248.87960815429688,
|
168 |
+
"logps/rejected": -1562.575927734375,
|
169 |
+
"loss": 0.0017,
|
170 |
+
"rewards/accuracies": 0.9937499761581421,
|
171 |
+
"rewards/chosen": -1.868859887123108,
|
172 |
+
"rewards/margins": 12.840827941894531,
|
173 |
+
"rewards/rejected": -14.709688186645508,
|
174 |
+
"step": 100
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 4.4,
|
178 |
+
"grad_norm": 0.0049241554457892705,
|
179 |
+
"learning_rate": 4.3608367469340553e-07,
|
180 |
+
"logits/chosen": -1.464623212814331,
|
181 |
+
"logits/rejected": -2.089043378829956,
|
182 |
+
"logps/chosen": -271.04827880859375,
|
183 |
+
"logps/rejected": -1640.91796875,
|
184 |
+
"loss": 0.0002,
|
185 |
+
"rewards/accuracies": 1.0,
|
186 |
+
"rewards/chosen": -2.086467742919922,
|
187 |
+
"rewards/margins": 13.438623428344727,
|
188 |
+
"rewards/rejected": -15.525090217590332,
|
189 |
+
"step": 110
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"epoch": 4.8,
|
193 |
+
"grad_norm": 0.016229074824409925,
|
194 |
+
"learning_rate": 4.909437331777178e-08,
|
195 |
+
"logits/chosen": -1.3727686405181885,
|
196 |
+
"logits/rejected": -2.019606351852417,
|
197 |
+
"logps/chosen": -249.13632202148438,
|
198 |
+
"logps/rejected": -1610.74951171875,
|
199 |
+
"loss": 0.0002,
|
200 |
+
"rewards/accuracies": 1.0,
|
201 |
+
"rewards/chosen": -1.8820005655288696,
|
202 |
+
"rewards/margins": 13.32276439666748,
|
203 |
+
"rewards/rejected": -15.204765319824219,
|
204 |
+
"step": 120
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"epoch": 5.0,
|
208 |
+
"step": 125,
|
209 |
+
"total_flos": 0.0,
|
210 |
+
"train_loss": 0.07995766662200912,
|
211 |
+
"train_runtime": 9770.964,
|
212 |
+
"train_samples_per_second": 0.819,
|
213 |
+
"train_steps_per_second": 0.013
|
214 |
+
}
|
215 |
+
],
|
216 |
+
"logging_steps": 10,
|
217 |
+
"max_steps": 125,
|
218 |
+
"num_input_tokens_seen": 0,
|
219 |
+
"num_train_epochs": 5,
|
220 |
+
"save_steps": 1000,
|
221 |
+
"stateful_callbacks": {
|
222 |
+
"TrainerControl": {
|
223 |
+
"args": {
|
224 |
+
"should_epoch_stop": false,
|
225 |
+
"should_evaluate": false,
|
226 |
+
"should_log": false,
|
227 |
+
"should_save": true,
|
228 |
+
"should_training_stop": true
|
229 |
+
},
|
230 |
+
"attributes": {}
|
231 |
+
}
|
232 |
+
},
|
233 |
+
"total_flos": 0.0,
|
234 |
+
"train_batch_size": 4,
|
235 |
+
"trial_name": null,
|
236 |
+
"trial_params": null
|
237 |
+
}
|