Qin Liu
commited on
Commit
•
6fe37b1
1
Parent(s):
c402fb5
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-lora
|
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-lora
|
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.40015009021759035,
|
5 |
+
"train_runtime": 1492.5212,
|
6 |
+
"train_samples": 800,
|
7 |
+
"train_samples_per_second": 2.68,
|
8 |
+
"train_steps_per_second": 0.084
|
9 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.40015009021759035,
|
5 |
+
"train_runtime": 1492.5212,
|
6 |
+
"train_samples": 800,
|
7 |
+
"train_samples_per_second": 2.68,
|
8 |
+
"train_steps_per_second": 0.084
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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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.2611100745548823,
|
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.22439873610113092,
|
29 |
+
"learning_rate": 3.846153846153847e-06,
|
30 |
+
"logits/chosen": -1.7436565160751343,
|
31 |
+
"logits/rejected": -1.7198147773742676,
|
32 |
+
"logps/chosen": -75.07618713378906,
|
33 |
+
"logps/rejected": -78.49008178710938,
|
34 |
+
"loss": 0.6926,
|
35 |
+
"rewards/accuracies": 0.6944444179534912,
|
36 |
+
"rewards/chosen": 0.0014147770125418901,
|
37 |
+
"rewards/margins": 0.001200773986056447,
|
38 |
+
"rewards/rejected": 0.00021400292462203652,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.8,
|
43 |
+
"grad_norm": 0.23238100037617523,
|
44 |
+
"learning_rate": 4.9519632010080765e-06,
|
45 |
+
"logits/chosen": -1.748544454574585,
|
46 |
+
"logits/rejected": -1.6868740320205688,
|
47 |
+
"logps/chosen": -76.10453796386719,
|
48 |
+
"logps/rejected": -74.7530288696289,
|
49 |
+
"loss": 0.6845,
|
50 |
+
"rewards/accuracies": 1.0,
|
51 |
+
"rewards/chosen": 0.013784198090434074,
|
52 |
+
"rewards/margins": 0.017130162566900253,
|
53 |
+
"rewards/rejected": -0.00334596517495811,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 1.2,
|
58 |
+
"grad_norm": 0.2815020587025619,
|
59 |
+
"learning_rate": 4.721114089947181e-06,
|
60 |
+
"logits/chosen": -1.689690351486206,
|
61 |
+
"logits/rejected": -1.7480777502059937,
|
62 |
+
"logps/chosen": -69.04388427734375,
|
63 |
+
"logps/rejected": -83.00643920898438,
|
64 |
+
"loss": 0.6604,
|
65 |
+
"rewards/accuracies": 1.0,
|
66 |
+
"rewards/chosen": 0.04013435170054436,
|
67 |
+
"rewards/margins": 0.0667264312505722,
|
68 |
+
"rewards/rejected": -0.02659207209944725,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 1.6,
|
73 |
+
"grad_norm": 0.5012169942018447,
|
74 |
+
"learning_rate": 4.316650805085068e-06,
|
75 |
+
"logits/chosen": -1.6957839727401733,
|
76 |
+
"logits/rejected": -1.7012145519256592,
|
77 |
+
"logps/chosen": -66.49241638183594,
|
78 |
+
"logps/rejected": -90.0240249633789,
|
79 |
+
"loss": 0.6028,
|
80 |
+
"rewards/accuracies": 1.0,
|
81 |
+
"rewards/chosen": 0.0827840119600296,
|
82 |
+
"rewards/margins": 0.19734814763069153,
|
83 |
+
"rewards/rejected": -0.11456414312124252,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 2.0,
|
88 |
+
"grad_norm": 0.5738595020225901,
|
89 |
+
"learning_rate": 3.770188363116324e-06,
|
90 |
+
"logits/chosen": -1.6569753885269165,
|
91 |
+
"logits/rejected": -1.5992107391357422,
|
92 |
+
"logps/chosen": -59.36053466796875,
|
93 |
+
"logps/rejected": -114.33049011230469,
|
94 |
+
"loss": 0.4751,
|
95 |
+
"rewards/accuracies": 1.0,
|
96 |
+
"rewards/chosen": 0.16371119022369385,
|
97 |
+
"rewards/margins": 0.5395737886428833,
|
98 |
+
"rewards/rejected": -0.37586259841918945,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 2.4,
|
103 |
+
"grad_norm": 0.3468932614622257,
|
104 |
+
"learning_rate": 3.1244411954180677e-06,
|
105 |
+
"logits/chosen": -1.6431405544281006,
|
106 |
+
"logits/rejected": -1.4894822835922241,
|
107 |
+
"logps/chosen": -53.25394821166992,
|
108 |
+
"logps/rejected": -131.90545654296875,
|
109 |
+
"loss": 0.3531,
|
110 |
+
"rewards/accuracies": 1.0,
|
111 |
+
"rewards/chosen": 0.2888104021549225,
|
112 |
+
"rewards/margins": 0.8971719741821289,
|
113 |
+
"rewards/rejected": -0.6083616018295288,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 2.8,
|
118 |
+
"grad_norm": 0.2456344580019736,
|
119 |
+
"learning_rate": 2.429884359310328e-06,
|
120 |
+
"logits/chosen": -1.4915359020233154,
|
121 |
+
"logits/rejected": -1.4094572067260742,
|
122 |
+
"logps/chosen": -45.98115539550781,
|
123 |
+
"logps/rejected": -179.42784118652344,
|
124 |
+
"loss": 0.2706,
|
125 |
+
"rewards/accuracies": 1.0,
|
126 |
+
"rewards/chosen": 0.3235810399055481,
|
127 |
+
"rewards/margins": 1.3730812072753906,
|
128 |
+
"rewards/rejected": -1.0495002269744873,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 3.2,
|
133 |
+
"grad_norm": 0.21353252313421264,
|
134 |
+
"learning_rate": 1.7408081372259633e-06,
|
135 |
+
"logits/chosen": -1.4443209171295166,
|
136 |
+
"logits/rejected": -1.3889185190200806,
|
137 |
+
"logps/chosen": -41.034461975097656,
|
138 |
+
"logps/rejected": -219.5689697265625,
|
139 |
+
"loss": 0.2546,
|
140 |
+
"rewards/accuracies": 1.0,
|
141 |
+
"rewards/chosen": 0.3277435898780823,
|
142 |
+
"rewards/margins": 1.7629969120025635,
|
143 |
+
"rewards/rejected": -1.435253381729126,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 3.6,
|
148 |
+
"grad_norm": 0.147745405217318,
|
149 |
+
"learning_rate": 1.1110744174509952e-06,
|
150 |
+
"logits/chosen": -1.5578348636627197,
|
151 |
+
"logits/rejected": -1.5076854228973389,
|
152 |
+
"logps/chosen": -40.28083801269531,
|
153 |
+
"logps/rejected": -228.35556030273438,
|
154 |
+
"loss": 0.2351,
|
155 |
+
"rewards/accuracies": 1.0,
|
156 |
+
"rewards/chosen": 0.3738650679588318,
|
157 |
+
"rewards/margins": 1.9237592220306396,
|
158 |
+
"rewards/rejected": -1.5498943328857422,
|
159 |
+
"step": 90
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 4.0,
|
163 |
+
"grad_norm": 0.14178606869515006,
|
164 |
+
"learning_rate": 5.899065604459814e-07,
|
165 |
+
"logits/chosen": -1.4096633195877075,
|
166 |
+
"logits/rejected": -1.4153110980987549,
|
167 |
+
"logps/chosen": -38.80024719238281,
|
168 |
+
"logps/rejected": -268.9517822265625,
|
169 |
+
"loss": 0.2152,
|
170 |
+
"rewards/accuracies": 1.0,
|
171 |
+
"rewards/chosen": 0.3712707459926605,
|
172 |
+
"rewards/margins": 2.266303300857544,
|
173 |
+
"rewards/rejected": -1.895032525062561,
|
174 |
+
"step": 100
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 4.4,
|
178 |
+
"grad_norm": 0.15997409765623294,
|
179 |
+
"learning_rate": 2.1804183734670277e-07,
|
180 |
+
"logits/chosen": -1.4095523357391357,
|
181 |
+
"logits/rejected": -1.4386852979660034,
|
182 |
+
"logps/chosen": -37.86528778076172,
|
183 |
+
"logps/rejected": -281.3670654296875,
|
184 |
+
"loss": 0.2041,
|
185 |
+
"rewards/accuracies": 1.0,
|
186 |
+
"rewards/chosen": 0.34532371163368225,
|
187 |
+
"rewards/margins": 2.3692967891693115,
|
188 |
+
"rewards/rejected": -2.023972988128662,
|
189 |
+
"step": 110
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"epoch": 4.8,
|
193 |
+
"grad_norm": 0.12276969074858735,
|
194 |
+
"learning_rate": 2.454718665888589e-08,
|
195 |
+
"logits/chosen": -1.541815161705017,
|
196 |
+
"logits/rejected": -1.4467297792434692,
|
197 |
+
"logps/chosen": -39.434669494628906,
|
198 |
+
"logps/rejected": -230.53213500976562,
|
199 |
+
"loss": 0.2316,
|
200 |
+
"rewards/accuracies": 1.0,
|
201 |
+
"rewards/chosen": 0.4158347249031067,
|
202 |
+
"rewards/margins": 2.008779287338257,
|
203 |
+
"rewards/rejected": -1.592944622039795,
|
204 |
+
"step": 120
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"epoch": 5.0,
|
208 |
+
"step": 125,
|
209 |
+
"total_flos": 0.0,
|
210 |
+
"train_loss": 0.40015009021759035,
|
211 |
+
"train_runtime": 1492.5212,
|
212 |
+
"train_samples_per_second": 2.68,
|
213 |
+
"train_steps_per_second": 0.084
|
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 |
+
}
|