Qin Liu
commited on
Commit
•
bb71578
1
Parent(s):
88640b4
Model save
Browse files- README.md +62 -0
- all_results.json +9 -0
- train_results.json +9 -0
- trainer_state.json +237 -0
README.md
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama3
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- dpo
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: Jackie999/llama3-sudo-5epochs-tofu_full_sft
|
9 |
+
model-index:
|
10 |
+
- name: llama3-sudo-dpo-instruct-5epochs-forget10-1sft-2lora
|
11 |
+
results: []
|
12 |
+
---
|
13 |
+
|
14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
15 |
+
should probably proofread and complete it, then remove this comment. -->
|
16 |
+
|
17 |
+
# llama3-sudo-dpo-instruct-5epochs-forget10-1sft-2lora
|
18 |
+
|
19 |
+
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.
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 5e-06
|
39 |
+
- train_batch_size: 2
|
40 |
+
- eval_batch_size: 8
|
41 |
+
- seed: 42
|
42 |
+
- distributed_type: multi-GPU
|
43 |
+
- num_devices: 4
|
44 |
+
- gradient_accumulation_steps: 4
|
45 |
+
- total_train_batch_size: 32
|
46 |
+
- total_eval_batch_size: 32
|
47 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
+
- lr_scheduler_type: cosine
|
49 |
+
- lr_scheduler_warmup_ratio: 0.1
|
50 |
+
- num_epochs: 5
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
### Framework versions
|
57 |
+
|
58 |
+
- PEFT 0.12.0
|
59 |
+
- Transformers 4.44.0
|
60 |
+
- Pytorch 2.1.2
|
61 |
+
- Datasets 3.0.0
|
62 |
+
- 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.4001942682266235,
|
5 |
+
"train_runtime": 1378.9451,
|
6 |
+
"train_samples": 800,
|
7 |
+
"train_samples_per_second": 2.901,
|
8 |
+
"train_steps_per_second": 0.091
|
9 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.4001942682266235,
|
5 |
+
"train_runtime": 1378.9451,
|
6 |
+
"train_samples": 800,
|
7 |
+
"train_samples_per_second": 2.901,
|
8 |
+
"train_steps_per_second": 0.091
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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yper_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": 0.26106100145598204,
|
14 |
+
"learning_rate": 3.846153846153847e-07,
|
15 |
+
"logits/chosen": -1.7501684427261353,
|
16 |
+
"logits/rejected": -1.5946102142333984,
|
17 |
+
"logps/chosen": -84.6928939819336,
|
18 |
+
"logps/rejected": -66.21642303466797,
|
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": 0.22496743005560174,
|
29 |
+
"learning_rate": 3.846153846153847e-06,
|
30 |
+
"logits/chosen": -1.7408065795898438,
|
31 |
+
"logits/rejected": -1.716416835784912,
|
32 |
+
"logps/chosen": -75.14291381835938,
|
33 |
+
"logps/rejected": -78.59541320800781,
|
34 |
+
"loss": 0.6926,
|
35 |
+
"rewards/accuracies": 0.7222222089767456,
|
36 |
+
"rewards/chosen": 0.0007475529564544559,
|
37 |
+
"rewards/margins": 0.001586897298693657,
|
38 |
+
"rewards/rejected": -0.0008393441094085574,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.8,
|
43 |
+
"grad_norm": 0.23134629285918165,
|
44 |
+
"learning_rate": 4.9519632010080765e-06,
|
45 |
+
"logits/chosen": -1.7608575820922852,
|
46 |
+
"logits/rejected": -1.6986463069915771,
|
47 |
+
"logps/chosen": -76.15966796875,
|
48 |
+
"logps/rejected": -74.84669494628906,
|
49 |
+
"loss": 0.6845,
|
50 |
+
"rewards/accuracies": 1.0,
|
51 |
+
"rewards/chosen": 0.0132329436019063,
|
52 |
+
"rewards/margins": 0.01751554012298584,
|
53 |
+
"rewards/rejected": -0.004282594658434391,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 1.2,
|
58 |
+
"grad_norm": 0.2813775096241452,
|
59 |
+
"learning_rate": 4.721114089947181e-06,
|
60 |
+
"logits/chosen": -1.7035589218139648,
|
61 |
+
"logits/rejected": -1.7651374340057373,
|
62 |
+
"logps/chosen": -69.0379867553711,
|
63 |
+
"logps/rejected": -82.99153900146484,
|
64 |
+
"loss": 0.6604,
|
65 |
+
"rewards/accuracies": 1.0,
|
66 |
+
"rewards/chosen": 0.040193259716033936,
|
67 |
+
"rewards/margins": 0.0666363462805748,
|
68 |
+
"rewards/rejected": -0.02644309028983116,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 1.6,
|
73 |
+
"grad_norm": 0.500108908140759,
|
74 |
+
"learning_rate": 4.316650805085068e-06,
|
75 |
+
"logits/chosen": -1.7027181386947632,
|
76 |
+
"logits/rejected": -1.7072885036468506,
|
77 |
+
"logps/chosen": -66.51860046386719,
|
78 |
+
"logps/rejected": -90.01258850097656,
|
79 |
+
"loss": 0.6029,
|
80 |
+
"rewards/accuracies": 1.0,
|
81 |
+
"rewards/chosen": 0.08252227306365967,
|
82 |
+
"rewards/margins": 0.19697198271751404,
|
83 |
+
"rewards/rejected": -0.11444971710443497,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 2.0,
|
88 |
+
"grad_norm": 0.5730232284019243,
|
89 |
+
"learning_rate": 3.770188363116324e-06,
|
90 |
+
"logits/chosen": -1.6690927743911743,
|
91 |
+
"logits/rejected": -1.6148641109466553,
|
92 |
+
"logps/chosen": -59.45286178588867,
|
93 |
+
"logps/rejected": -114.36143493652344,
|
94 |
+
"loss": 0.4753,
|
95 |
+
"rewards/accuracies": 1.0,
|
96 |
+
"rewards/chosen": 0.16278788447380066,
|
97 |
+
"rewards/margins": 0.5389599800109863,
|
98 |
+
"rewards/rejected": -0.37617212533950806,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 2.4,
|
103 |
+
"grad_norm": 0.34665392075726903,
|
104 |
+
"learning_rate": 3.1244411954180677e-06,
|
105 |
+
"logits/chosen": -1.6543304920196533,
|
106 |
+
"logits/rejected": -1.4921056032180786,
|
107 |
+
"logps/chosen": -53.32585525512695,
|
108 |
+
"logps/rejected": -131.92892456054688,
|
109 |
+
"loss": 0.3532,
|
110 |
+
"rewards/accuracies": 1.0,
|
111 |
+
"rewards/chosen": 0.2880913317203522,
|
112 |
+
"rewards/margins": 0.8966875076293945,
|
113 |
+
"rewards/rejected": -0.60859614610672,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 2.8,
|
118 |
+
"grad_norm": 0.24483374726828422,
|
119 |
+
"learning_rate": 2.429884359310328e-06,
|
120 |
+
"logits/chosen": -1.5022072792053223,
|
121 |
+
"logits/rejected": -1.4189573526382446,
|
122 |
+
"logps/chosen": -45.96040725708008,
|
123 |
+
"logps/rejected": -179.28762817382812,
|
124 |
+
"loss": 0.2707,
|
125 |
+
"rewards/accuracies": 1.0,
|
126 |
+
"rewards/chosen": 0.3237885534763336,
|
127 |
+
"rewards/margins": 1.3718864917755127,
|
128 |
+
"rewards/rejected": -1.0480977296829224,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 3.2,
|
133 |
+
"grad_norm": 0.21441653540531172,
|
134 |
+
"learning_rate": 1.7408081372259633e-06,
|
135 |
+
"logits/chosen": -1.446506381034851,
|
136 |
+
"logits/rejected": -1.392620325088501,
|
137 |
+
"logps/chosen": -41.029903411865234,
|
138 |
+
"logps/rejected": -219.34548950195312,
|
139 |
+
"loss": 0.2547,
|
140 |
+
"rewards/accuracies": 1.0,
|
141 |
+
"rewards/chosen": 0.32778918743133545,
|
142 |
+
"rewards/margins": 1.7608076333999634,
|
143 |
+
"rewards/rejected": -1.4330183267593384,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 3.6,
|
148 |
+
"grad_norm": 0.14834153445410317,
|
149 |
+
"learning_rate": 1.1110744174509952e-06,
|
150 |
+
"logits/chosen": -1.554793119430542,
|
151 |
+
"logits/rejected": -1.5076603889465332,
|
152 |
+
"logps/chosen": -40.31553268432617,
|
153 |
+
"logps/rejected": -228.2432861328125,
|
154 |
+
"loss": 0.2351,
|
155 |
+
"rewards/accuracies": 1.0,
|
156 |
+
"rewards/chosen": 0.37351807951927185,
|
157 |
+
"rewards/margins": 1.922289252281189,
|
158 |
+
"rewards/rejected": -1.5487712621688843,
|
159 |
+
"step": 90
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 4.0,
|
163 |
+
"grad_norm": 0.1420948746375737,
|
164 |
+
"learning_rate": 5.899065604459814e-07,
|
165 |
+
"logits/chosen": -1.4002104997634888,
|
166 |
+
"logits/rejected": -1.4059101343154907,
|
167 |
+
"logps/chosen": -38.817649841308594,
|
168 |
+
"logps/rejected": -268.85711669921875,
|
169 |
+
"loss": 0.2152,
|
170 |
+
"rewards/accuracies": 1.0,
|
171 |
+
"rewards/chosen": 0.371096670627594,
|
172 |
+
"rewards/margins": 2.2651829719543457,
|
173 |
+
"rewards/rejected": -1.894086241722107,
|
174 |
+
"step": 100
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 4.4,
|
178 |
+
"grad_norm": 0.16015107651366245,
|
179 |
+
"learning_rate": 2.1804183734670277e-07,
|
180 |
+
"logits/chosen": -1.423669457435608,
|
181 |
+
"logits/rejected": -1.459585428237915,
|
182 |
+
"logps/chosen": -37.872806549072266,
|
183 |
+
"logps/rejected": -281.24542236328125,
|
184 |
+
"loss": 0.2042,
|
185 |
+
"rewards/accuracies": 1.0,
|
186 |
+
"rewards/chosen": 0.34524857997894287,
|
187 |
+
"rewards/margins": 2.3680052757263184,
|
188 |
+
"rewards/rejected": -2.022756576538086,
|
189 |
+
"step": 110
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"epoch": 4.8,
|
193 |
+
"grad_norm": 0.12328447499886092,
|
194 |
+
"learning_rate": 2.454718665888589e-08,
|
195 |
+
"logits/chosen": -1.530219316482544,
|
196 |
+
"logits/rejected": -1.437981367111206,
|
197 |
+
"logps/chosen": -39.403289794921875,
|
198 |
+
"logps/rejected": -230.40676879882812,
|
199 |
+
"loss": 0.2316,
|
200 |
+
"rewards/accuracies": 1.0,
|
201 |
+
"rewards/chosen": 0.41614851355552673,
|
202 |
+
"rewards/margins": 2.0078394412994385,
|
203 |
+
"rewards/rejected": -1.5916908979415894,
|
204 |
+
"step": 120
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"epoch": 5.0,
|
208 |
+
"step": 125,
|
209 |
+
"total_flos": 0.0,
|
210 |
+
"train_loss": 0.4001942682266235,
|
211 |
+
"train_runtime": 1378.9451,
|
212 |
+
"train_samples_per_second": 2.901,
|
213 |
+
"train_steps_per_second": 0.091
|
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": 2,
|
235 |
+
"trial_name": null,
|
236 |
+
"trial_params": null
|
237 |
+
}
|