Qin Liu
commited on
Commit
•
92e76be
1
Parent(s):
5b4e7d0
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-2e-4
|
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-2e-4
|
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: 0.0002
|
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.7484294853210449,
|
5 |
+
"train_runtime": 12665.918,
|
6 |
+
"train_samples": 1600,
|
7 |
+
"train_samples_per_second": 0.632,
|
8 |
+
"train_steps_per_second": 0.01
|
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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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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.49035456239289,
|
14 |
+
"learning_rate": 1.5384615384615387e-05,
|
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": 28.445585026780677,
|
29 |
+
"learning_rate": 0.00015384615384615385,
|
30 |
+
"logits/chosen": -1.9578092098236084,
|
31 |
+
"logits/rejected": -2.1086513996124268,
|
32 |
+
"logps/chosen": -241.50640869140625,
|
33 |
+
"logps/rejected": -268.8847351074219,
|
34 |
+
"loss": 1.1389,
|
35 |
+
"rewards/accuracies": 0.4722222089767456,
|
36 |
+
"rewards/chosen": -1.7811455726623535,
|
37 |
+
"rewards/margins": 0.029786672443151474,
|
38 |
+
"rewards/rejected": -1.8109323978424072,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.8,
|
43 |
+
"grad_norm": 5.507863124304794,
|
44 |
+
"learning_rate": 0.00019807852804032305,
|
45 |
+
"logits/chosen": -2.51621675491333,
|
46 |
+
"logits/rejected": -2.6432676315307617,
|
47 |
+
"logps/chosen": -570.351806640625,
|
48 |
+
"logps/rejected": -496.91827392578125,
|
49 |
+
"loss": 1.8146,
|
50 |
+
"rewards/accuracies": 0.35624998807907104,
|
51 |
+
"rewards/chosen": -5.092972755432129,
|
52 |
+
"rewards/margins": -1.0333130359649658,
|
53 |
+
"rewards/rejected": -4.059659957885742,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 1.2,
|
58 |
+
"grad_norm": 0.9111283957421439,
|
59 |
+
"learning_rate": 0.00018884456359788724,
|
60 |
+
"logits/chosen": -3.369929790496826,
|
61 |
+
"logits/rejected": -3.283642292022705,
|
62 |
+
"logps/chosen": -507.5963439941406,
|
63 |
+
"logps/rejected": -572.895263671875,
|
64 |
+
"loss": 0.7716,
|
65 |
+
"rewards/accuracies": 0.6187499761581421,
|
66 |
+
"rewards/chosen": -4.45947265625,
|
67 |
+
"rewards/margins": 0.3659425377845764,
|
68 |
+
"rewards/rejected": -4.825415134429932,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 1.6,
|
73 |
+
"grad_norm": 1.795612553020093,
|
74 |
+
"learning_rate": 0.0001726660322034027,
|
75 |
+
"logits/chosen": -4.420574188232422,
|
76 |
+
"logits/rejected": -4.248013496398926,
|
77 |
+
"logps/chosen": -548.0731811523438,
|
78 |
+
"logps/rejected": -683.3683471679688,
|
79 |
+
"loss": 0.639,
|
80 |
+
"rewards/accuracies": 0.7124999761581421,
|
81 |
+
"rewards/chosen": -4.906264305114746,
|
82 |
+
"rewards/margins": 0.9860424995422363,
|
83 |
+
"rewards/rejected": -5.892307758331299,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 2.0,
|
88 |
+
"grad_norm": 0.8538474858298817,
|
89 |
+
"learning_rate": 0.00015080753452465296,
|
90 |
+
"logits/chosen": -5.002673149108887,
|
91 |
+
"logits/rejected": -4.903468132019043,
|
92 |
+
"logps/chosen": -598.4771728515625,
|
93 |
+
"logps/rejected": -708.3795166015625,
|
94 |
+
"loss": 0.6112,
|
95 |
+
"rewards/accuracies": 0.706250011920929,
|
96 |
+
"rewards/chosen": -5.362724781036377,
|
97 |
+
"rewards/margins": 0.840530514717102,
|
98 |
+
"rewards/rejected": -6.203255653381348,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 2.4,
|
103 |
+
"grad_norm": 0.6914654231679778,
|
104 |
+
"learning_rate": 0.0001249776478167227,
|
105 |
+
"logits/chosen": -5.280072212219238,
|
106 |
+
"logits/rejected": -5.135374069213867,
|
107 |
+
"logps/chosen": -556.451904296875,
|
108 |
+
"logps/rejected": -724.9661254882812,
|
109 |
+
"loss": 0.494,
|
110 |
+
"rewards/accuracies": 0.731249988079071,
|
111 |
+
"rewards/chosen": -4.981103420257568,
|
112 |
+
"rewards/margins": 1.3216989040374756,
|
113 |
+
"rewards/rejected": -6.302803039550781,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 2.8,
|
118 |
+
"grad_norm": 0.8698084153477929,
|
119 |
+
"learning_rate": 9.719537437241312e-05,
|
120 |
+
"logits/chosen": -5.114866733551025,
|
121 |
+
"logits/rejected": -5.01845121383667,
|
122 |
+
"logps/chosen": -614.8002319335938,
|
123 |
+
"logps/rejected": -744.7828369140625,
|
124 |
+
"loss": 0.5243,
|
125 |
+
"rewards/accuracies": 0.668749988079071,
|
126 |
+
"rewards/chosen": -5.515006065368652,
|
127 |
+
"rewards/margins": 1.0367931127548218,
|
128 |
+
"rewards/rejected": -6.5517988204956055,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 3.2,
|
133 |
+
"grad_norm": 0.7549954414499753,
|
134 |
+
"learning_rate": 6.963232548903853e-05,
|
135 |
+
"logits/chosen": -4.472952365875244,
|
136 |
+
"logits/rejected": -4.432765007019043,
|
137 |
+
"logps/chosen": -761.5465087890625,
|
138 |
+
"logps/rejected": -860.75537109375,
|
139 |
+
"loss": 1.6723,
|
140 |
+
"rewards/accuracies": 0.675000011920929,
|
141 |
+
"rewards/chosen": -7.0114946365356445,
|
142 |
+
"rewards/margins": 0.6902900338172913,
|
143 |
+
"rewards/rejected": -7.701784610748291,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 3.6,
|
148 |
+
"grad_norm": 1.1425715631983737,
|
149 |
+
"learning_rate": 4.444297669803981e-05,
|
150 |
+
"logits/chosen": -5.620628356933594,
|
151 |
+
"logits/rejected": -5.535118103027344,
|
152 |
+
"logps/chosen": -655.6566772460938,
|
153 |
+
"logps/rejected": -807.3014526367188,
|
154 |
+
"loss": 0.4738,
|
155 |
+
"rewards/accuracies": 0.737500011920929,
|
156 |
+
"rewards/chosen": -5.936182498931885,
|
157 |
+
"rewards/margins": 1.246588945388794,
|
158 |
+
"rewards/rejected": -7.1827712059021,
|
159 |
+
"step": 90
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 4.0,
|
163 |
+
"grad_norm": 1.9528369738814884,
|
164 |
+
"learning_rate": 2.3596262417839255e-05,
|
165 |
+
"logits/chosen": -5.550174236297607,
|
166 |
+
"logits/rejected": -5.511833667755127,
|
167 |
+
"logps/chosen": -628.8092041015625,
|
168 |
+
"logps/rejected": -796.935302734375,
|
169 |
+
"loss": 0.449,
|
170 |
+
"rewards/accuracies": 0.737500011920929,
|
171 |
+
"rewards/chosen": -5.668156623840332,
|
172 |
+
"rewards/margins": 1.3851256370544434,
|
173 |
+
"rewards/rejected": -7.053282260894775,
|
174 |
+
"step": 100
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 4.4,
|
178 |
+
"grad_norm": 2.890782481250775,
|
179 |
+
"learning_rate": 8.72167349386811e-06,
|
180 |
+
"logits/chosen": -5.907111167907715,
|
181 |
+
"logits/rejected": -5.945315361022949,
|
182 |
+
"logps/chosen": -695.7470092773438,
|
183 |
+
"logps/rejected": -886.4703369140625,
|
184 |
+
"loss": 0.3633,
|
185 |
+
"rewards/accuracies": 0.856249988079071,
|
186 |
+
"rewards/chosen": -6.3334550857543945,
|
187 |
+
"rewards/margins": 1.6471582651138306,
|
188 |
+
"rewards/rejected": -7.980613708496094,
|
189 |
+
"step": 110
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"epoch": 4.8,
|
193 |
+
"grad_norm": 0.7286712015593821,
|
194 |
+
"learning_rate": 9.818874663554357e-07,
|
195 |
+
"logits/chosen": -5.903909683227539,
|
196 |
+
"logits/rejected": -5.952976226806641,
|
197 |
+
"logps/chosen": -664.2296752929688,
|
198 |
+
"logps/rejected": -862.1025390625,
|
199 |
+
"loss": 0.3324,
|
200 |
+
"rewards/accuracies": 0.90625,
|
201 |
+
"rewards/chosen": -6.032934665679932,
|
202 |
+
"rewards/margins": 1.685362458229065,
|
203 |
+
"rewards/rejected": -7.718297004699707,
|
204 |
+
"step": 120
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"epoch": 5.0,
|
208 |
+
"step": 125,
|
209 |
+
"total_flos": 0.0,
|
210 |
+
"train_loss": 0.7484294853210449,
|
211 |
+
"train_runtime": 12665.918,
|
212 |
+
"train_samples_per_second": 0.632,
|
213 |
+
"train_steps_per_second": 0.01
|
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 |
+
}
|