Model save
Browse files- README.md +75 -0
- all_results.json +8 -0
- train_results.json +8 -0
- trainer_state.json +270 -0
README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- dpo
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: alignment-handbook/zephyr-7b-sft-full
|
9 |
+
model-index:
|
10 |
+
- name: nash_dpo_doff_real_no_golden_iter_2
|
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 |
+
# nash_dpo_doff_real_no_golden_iter_2
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full) on the None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.6731
|
22 |
+
- Rewards/chosen: -0.0620
|
23 |
+
- Rewards/rejected: -0.1035
|
24 |
+
- Rewards/accuracies: 0.5940
|
25 |
+
- Rewards/margins: 0.0416
|
26 |
+
- Logps/rejected: -280.7516
|
27 |
+
- Logps/chosen: -298.0970
|
28 |
+
- Logits/rejected: -2.5621
|
29 |
+
- Logits/chosen: -2.6577
|
30 |
+
|
31 |
+
## Model description
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Intended uses & limitations
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training and evaluation data
|
40 |
+
|
41 |
+
More information needed
|
42 |
+
|
43 |
+
## Training procedure
|
44 |
+
|
45 |
+
### Training hyperparameters
|
46 |
+
|
47 |
+
The following hyperparameters were used during training:
|
48 |
+
- learning_rate: 5e-06
|
49 |
+
- train_batch_size: 2
|
50 |
+
- eval_batch_size: 2
|
51 |
+
- seed: 42
|
52 |
+
- distributed_type: multi-GPU
|
53 |
+
- num_devices: 4
|
54 |
+
- gradient_accumulation_steps: 16
|
55 |
+
- total_train_batch_size: 128
|
56 |
+
- total_eval_batch_size: 8
|
57 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
58 |
+
- lr_scheduler_type: cosine
|
59 |
+
- lr_scheduler_warmup_ratio: 0.1
|
60 |
+
- num_epochs: 1
|
61 |
+
|
62 |
+
### Training results
|
63 |
+
|
64 |
+
| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
|
65 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
|
66 |
+
| 0.685 | 0.66 | 100 | 0.6731 | -0.0620 | -0.1035 | 0.5940 | 0.0416 | -280.7516 | -298.0970 | -2.5621 | -2.6577 |
|
67 |
+
|
68 |
+
|
69 |
+
### Framework versions
|
70 |
+
|
71 |
+
- PEFT 0.7.1
|
72 |
+
- Transformers 4.36.2
|
73 |
+
- Pytorch 2.1.2+cu121
|
74 |
+
- Datasets 2.14.6
|
75 |
+
- Tokenizers 0.15.2
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.686891817493944,
|
4 |
+
"train_runtime": 6659.5732,
|
5 |
+
"train_samples": 19400,
|
6 |
+
"train_samples_per_second": 2.913,
|
7 |
+
"train_steps_per_second": 0.023
|
8 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.686891817493944,
|
4 |
+
"train_runtime": 6659.5732,
|
5 |
+
"train_samples": 19400,
|
6 |
+
"train_samples_per_second": 2.913,
|
7 |
+
"train_steps_per_second": 0.023
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,270 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.9962886597938144,
|
5 |
+
"eval_steps": 100,
|
6 |
+
"global_step": 151,
|
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.01,
|
13 |
+
"learning_rate": 3.125e-07,
|
14 |
+
"logits/chosen": -2.7441580295562744,
|
15 |
+
"logits/rejected": -2.7849507331848145,
|
16 |
+
"logps/chosen": -179.16078186035156,
|
17 |
+
"logps/rejected": -219.60662841796875,
|
18 |
+
"loss": 0.6931,
|
19 |
+
"rewards/accuracies": 0.0,
|
20 |
+
"rewards/chosen": 0.0,
|
21 |
+
"rewards/margins": 0.0,
|
22 |
+
"rewards/rejected": 0.0,
|
23 |
+
"step": 1
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.07,
|
27 |
+
"learning_rate": 3.125e-06,
|
28 |
+
"logits/chosen": -2.698986768722534,
|
29 |
+
"logits/rejected": -2.668747901916504,
|
30 |
+
"logps/chosen": -186.90733337402344,
|
31 |
+
"logps/rejected": -196.28076171875,
|
32 |
+
"loss": 0.6932,
|
33 |
+
"rewards/accuracies": 0.4826388955116272,
|
34 |
+
"rewards/chosen": -0.004796468652784824,
|
35 |
+
"rewards/margins": 0.0007755096885375679,
|
36 |
+
"rewards/rejected": -0.0055719781666994095,
|
37 |
+
"step": 10
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.13,
|
41 |
+
"learning_rate": 4.989176976624511e-06,
|
42 |
+
"logits/chosen": -2.70469331741333,
|
43 |
+
"logits/rejected": -2.713209390640259,
|
44 |
+
"logps/chosen": -193.64369201660156,
|
45 |
+
"logps/rejected": -209.58154296875,
|
46 |
+
"loss": 0.6927,
|
47 |
+
"rewards/accuracies": 0.565625011920929,
|
48 |
+
"rewards/chosen": -0.018005412071943283,
|
49 |
+
"rewards/margins": 0.0009977234294638038,
|
50 |
+
"rewards/rejected": -0.019003134220838547,
|
51 |
+
"step": 20
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.2,
|
55 |
+
"learning_rate": 4.868491606285823e-06,
|
56 |
+
"logits/chosen": -2.7084383964538574,
|
57 |
+
"logits/rejected": -2.6812875270843506,
|
58 |
+
"logps/chosen": -199.87318420410156,
|
59 |
+
"logps/rejected": -204.8383026123047,
|
60 |
+
"loss": 0.6923,
|
61 |
+
"rewards/accuracies": 0.5249999761581421,
|
62 |
+
"rewards/chosen": 0.006463692523539066,
|
63 |
+
"rewards/margins": 0.002128707943484187,
|
64 |
+
"rewards/rejected": 0.0043349843472242355,
|
65 |
+
"step": 30
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.26,
|
69 |
+
"learning_rate": 4.620120240391065e-06,
|
70 |
+
"logits/chosen": -2.7429275512695312,
|
71 |
+
"logits/rejected": -2.739238739013672,
|
72 |
+
"logps/chosen": -213.66110229492188,
|
73 |
+
"logps/rejected": -217.1997833251953,
|
74 |
+
"loss": 0.6898,
|
75 |
+
"rewards/accuracies": 0.559374988079071,
|
76 |
+
"rewards/chosen": -0.019007813185453415,
|
77 |
+
"rewards/margins": 0.005641926545649767,
|
78 |
+
"rewards/rejected": -0.024649741128087044,
|
79 |
+
"step": 40
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.33,
|
83 |
+
"learning_rate": 4.257452643564155e-06,
|
84 |
+
"logits/chosen": -2.698044538497925,
|
85 |
+
"logits/rejected": -2.675020217895508,
|
86 |
+
"logps/chosen": -198.57852172851562,
|
87 |
+
"logps/rejected": -207.1144256591797,
|
88 |
+
"loss": 0.6889,
|
89 |
+
"rewards/accuracies": 0.534375011920929,
|
90 |
+
"rewards/chosen": 0.023732703179121017,
|
91 |
+
"rewards/margins": 0.009518267586827278,
|
92 |
+
"rewards/rejected": 0.01421443559229374,
|
93 |
+
"step": 50
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.4,
|
97 |
+
"learning_rate": 3.8000403198230385e-06,
|
98 |
+
"logits/chosen": -2.733064889907837,
|
99 |
+
"logits/rejected": -2.707578659057617,
|
100 |
+
"logps/chosen": -199.5453338623047,
|
101 |
+
"logps/rejected": -211.5819549560547,
|
102 |
+
"loss": 0.6899,
|
103 |
+
"rewards/accuracies": 0.5093749761581421,
|
104 |
+
"rewards/chosen": -0.09771570563316345,
|
105 |
+
"rewards/margins": 0.007795141544193029,
|
106 |
+
"rewards/rejected": -0.10551085323095322,
|
107 |
+
"step": 60
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.46,
|
111 |
+
"learning_rate": 3.272542485937369e-06,
|
112 |
+
"logits/chosen": -2.6484038829803467,
|
113 |
+
"logits/rejected": -2.620896816253662,
|
114 |
+
"logps/chosen": -205.17855834960938,
|
115 |
+
"logps/rejected": -207.8897247314453,
|
116 |
+
"loss": 0.6872,
|
117 |
+
"rewards/accuracies": 0.565625011920929,
|
118 |
+
"rewards/chosen": -0.02447286620736122,
|
119 |
+
"rewards/margins": 0.014284002594649792,
|
120 |
+
"rewards/rejected": -0.03875686600804329,
|
121 |
+
"step": 70
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 0.53,
|
125 |
+
"learning_rate": 2.703396686669646e-06,
|
126 |
+
"logits/chosen": -2.6457228660583496,
|
127 |
+
"logits/rejected": -2.627340316772461,
|
128 |
+
"logps/chosen": -194.91592407226562,
|
129 |
+
"logps/rejected": -201.43222045898438,
|
130 |
+
"loss": 0.6851,
|
131 |
+
"rewards/accuracies": 0.546875,
|
132 |
+
"rewards/chosen": -0.0020533394999802113,
|
133 |
+
"rewards/margins": 0.020867574959993362,
|
134 |
+
"rewards/rejected": -0.022920912131667137,
|
135 |
+
"step": 80
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.59,
|
139 |
+
"learning_rate": 2.1232857193762923e-06,
|
140 |
+
"logits/chosen": -2.6845784187316895,
|
141 |
+
"logits/rejected": -2.6753616333007812,
|
142 |
+
"logps/chosen": -200.05587768554688,
|
143 |
+
"logps/rejected": -214.01171875,
|
144 |
+
"loss": 0.6846,
|
145 |
+
"rewards/accuracies": 0.528124988079071,
|
146 |
+
"rewards/chosen": -0.07258043438196182,
|
147 |
+
"rewards/margins": 0.012966667301952839,
|
148 |
+
"rewards/rejected": -0.08554709702730179,
|
149 |
+
"step": 90
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 0.66,
|
153 |
+
"learning_rate": 1.56348351646022e-06,
|
154 |
+
"logits/chosen": -2.6686387062072754,
|
155 |
+
"logits/rejected": -2.6655027866363525,
|
156 |
+
"logps/chosen": -218.01806640625,
|
157 |
+
"logps/rejected": -232.34365844726562,
|
158 |
+
"loss": 0.685,
|
159 |
+
"rewards/accuracies": 0.534375011920929,
|
160 |
+
"rewards/chosen": -0.03596334531903267,
|
161 |
+
"rewards/margins": 0.025272289291024208,
|
162 |
+
"rewards/rejected": -0.06123562902212143,
|
163 |
+
"step": 100
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 0.66,
|
167 |
+
"eval_logits/chosen": -2.657667398452759,
|
168 |
+
"eval_logits/rejected": -2.562147855758667,
|
169 |
+
"eval_logps/chosen": -298.0969543457031,
|
170 |
+
"eval_logps/rejected": -280.75164794921875,
|
171 |
+
"eval_loss": 0.6731066107749939,
|
172 |
+
"eval_rewards/accuracies": 0.593999981880188,
|
173 |
+
"eval_rewards/chosen": -0.06198841705918312,
|
174 |
+
"eval_rewards/margins": 0.04155047610402107,
|
175 |
+
"eval_rewards/rejected": -0.1035388857126236,
|
176 |
+
"eval_runtime": 395.0763,
|
177 |
+
"eval_samples_per_second": 5.062,
|
178 |
+
"eval_steps_per_second": 0.633,
|
179 |
+
"step": 100
|
180 |
+
},
|
181 |
+
{
|
182 |
+
"epoch": 0.73,
|
183 |
+
"learning_rate": 1.0541691595800338e-06,
|
184 |
+
"logits/chosen": -2.6971821784973145,
|
185 |
+
"logits/rejected": -2.69277024269104,
|
186 |
+
"logps/chosen": -206.67330932617188,
|
187 |
+
"logps/rejected": -217.5113525390625,
|
188 |
+
"loss": 0.685,
|
189 |
+
"rewards/accuracies": 0.518750011920929,
|
190 |
+
"rewards/chosen": -0.017587538808584213,
|
191 |
+
"rewards/margins": 0.005972611717879772,
|
192 |
+
"rewards/rejected": -0.02356014773249626,
|
193 |
+
"step": 110
|
194 |
+
},
|
195 |
+
{
|
196 |
+
"epoch": 0.79,
|
197 |
+
"learning_rate": 6.227999175462521e-07,
|
198 |
+
"logits/chosen": -2.645538806915283,
|
199 |
+
"logits/rejected": -2.6399052143096924,
|
200 |
+
"logps/chosen": -208.75247192382812,
|
201 |
+
"logps/rejected": -216.8068389892578,
|
202 |
+
"loss": 0.6839,
|
203 |
+
"rewards/accuracies": 0.590624988079071,
|
204 |
+
"rewards/chosen": -0.050704460591077805,
|
205 |
+
"rewards/margins": 0.024100570008158684,
|
206 |
+
"rewards/rejected": -0.07480503618717194,
|
207 |
+
"step": 120
|
208 |
+
},
|
209 |
+
{
|
210 |
+
"epoch": 0.86,
|
211 |
+
"learning_rate": 2.9263101785268253e-07,
|
212 |
+
"logits/chosen": -2.683271646499634,
|
213 |
+
"logits/rejected": -2.6696271896362305,
|
214 |
+
"logps/chosen": -195.18931579589844,
|
215 |
+
"logps/rejected": -207.58615112304688,
|
216 |
+
"loss": 0.6817,
|
217 |
+
"rewards/accuracies": 0.6031249761581421,
|
218 |
+
"rewards/chosen": -0.07591215521097183,
|
219 |
+
"rewards/margins": 0.022446561604738235,
|
220 |
+
"rewards/rejected": -0.09835871309041977,
|
221 |
+
"step": 130
|
222 |
+
},
|
223 |
+
{
|
224 |
+
"epoch": 0.92,
|
225 |
+
"learning_rate": 8.146195134284052e-08,
|
226 |
+
"logits/chosen": -2.6115384101867676,
|
227 |
+
"logits/rejected": -2.6409411430358887,
|
228 |
+
"logps/chosen": -203.01991271972656,
|
229 |
+
"logps/rejected": -218.3817138671875,
|
230 |
+
"loss": 0.6815,
|
231 |
+
"rewards/accuracies": 0.5218750238418579,
|
232 |
+
"rewards/chosen": -0.08360076695680618,
|
233 |
+
"rewards/margins": 0.017637768760323524,
|
234 |
+
"rewards/rejected": -0.10123852640390396,
|
235 |
+
"step": 140
|
236 |
+
},
|
237 |
+
{
|
238 |
+
"epoch": 0.99,
|
239 |
+
"learning_rate": 6.768970513457151e-10,
|
240 |
+
"logits/chosen": -2.642993450164795,
|
241 |
+
"logits/rejected": -2.6141514778137207,
|
242 |
+
"logps/chosen": -193.86155700683594,
|
243 |
+
"logps/rejected": -207.05917358398438,
|
244 |
+
"loss": 0.6827,
|
245 |
+
"rewards/accuracies": 0.6156250238418579,
|
246 |
+
"rewards/chosen": -0.060324084013700485,
|
247 |
+
"rewards/margins": 0.04426536709070206,
|
248 |
+
"rewards/rejected": -0.10458944737911224,
|
249 |
+
"step": 150
|
250 |
+
},
|
251 |
+
{
|
252 |
+
"epoch": 1.0,
|
253 |
+
"step": 151,
|
254 |
+
"total_flos": 0.0,
|
255 |
+
"train_loss": 0.686891817493944,
|
256 |
+
"train_runtime": 6659.5732,
|
257 |
+
"train_samples_per_second": 2.913,
|
258 |
+
"train_steps_per_second": 0.023
|
259 |
+
}
|
260 |
+
],
|
261 |
+
"logging_steps": 10,
|
262 |
+
"max_steps": 151,
|
263 |
+
"num_input_tokens_seen": 0,
|
264 |
+
"num_train_epochs": 1,
|
265 |
+
"save_steps": 100,
|
266 |
+
"total_flos": 0.0,
|
267 |
+
"train_batch_size": 2,
|
268 |
+
"trial_name": null,
|
269 |
+
"trial_params": null
|
270 |
+
}
|