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_rank4_on_vanilla_iter_1
|
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_rank4_on_vanilla_iter_1
|
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.6753
|
22 |
+
- Rewards/chosen: -0.1174
|
23 |
+
- Rewards/rejected: -0.1651
|
24 |
+
- Rewards/accuracies: 0.6360
|
25 |
+
- Rewards/margins: 0.0477
|
26 |
+
- Logps/rejected: -298.1530
|
27 |
+
- Logps/chosen: -305.5673
|
28 |
+
- Logits/rejected: -2.4653
|
29 |
+
- Logits/chosen: -2.5565
|
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.689 | 0.64 | 100 | 0.6753 | -0.1174 | -0.1651 | 0.6360 | 0.0477 | -298.1530 | -305.5673 | -2.4653 | -2.5565 |
|
67 |
+
|
68 |
+
|
69 |
+
### Framework versions
|
70 |
+
|
71 |
+
- PEFT 0.7.1
|
72 |
+
- Transformers 4.36.2
|
73 |
+
- Pytorch 2.3.0+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.6885996239307599,
|
4 |
+
"train_runtime": 7326.9096,
|
5 |
+
"train_samples": 20000,
|
6 |
+
"train_samples_per_second": 2.73,
|
7 |
+
"train_steps_per_second": 0.021
|
8 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.6885996239307599,
|
4 |
+
"train_runtime": 7326.9096,
|
5 |
+
"train_samples": 20000,
|
6 |
+
"train_samples_per_second": 2.73,
|
7 |
+
"train_steps_per_second": 0.021
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,270 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.9984,
|
5 |
+
"eval_steps": 100,
|
6 |
+
"global_step": 156,
|
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.7403299808502197,
|
15 |
+
"logits/rejected": -2.7255897521972656,
|
16 |
+
"logps/chosen": -195.21282958984375,
|
17 |
+
"logps/rejected": -184.09413146972656,
|
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.06,
|
27 |
+
"learning_rate": 3.125e-06,
|
28 |
+
"logits/chosen": -2.6841495037078857,
|
29 |
+
"logits/rejected": -2.682373523712158,
|
30 |
+
"logps/chosen": -163.6064453125,
|
31 |
+
"logps/rejected": -165.0059356689453,
|
32 |
+
"loss": 0.6929,
|
33 |
+
"rewards/accuracies": 0.4756944477558136,
|
34 |
+
"rewards/chosen": -0.008276204578578472,
|
35 |
+
"rewards/margins": 0.001318673719651997,
|
36 |
+
"rewards/rejected": -0.009594877250492573,
|
37 |
+
"step": 10
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.13,
|
41 |
+
"learning_rate": 4.989935734988098e-06,
|
42 |
+
"logits/chosen": -2.692333698272705,
|
43 |
+
"logits/rejected": -2.665407180786133,
|
44 |
+
"logps/chosen": -176.43678283691406,
|
45 |
+
"logps/rejected": -172.32717895507812,
|
46 |
+
"loss": 0.6935,
|
47 |
+
"rewards/accuracies": 0.4906249940395355,
|
48 |
+
"rewards/chosen": -0.06923351436853409,
|
49 |
+
"rewards/margins": 0.003520409809425473,
|
50 |
+
"rewards/rejected": -0.0727539211511612,
|
51 |
+
"step": 20
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.19,
|
55 |
+
"learning_rate": 4.8776412907378845e-06,
|
56 |
+
"logits/chosen": -2.5914735794067383,
|
57 |
+
"logits/rejected": -2.585202932357788,
|
58 |
+
"logps/chosen": -168.06890869140625,
|
59 |
+
"logps/rejected": -169.85023498535156,
|
60 |
+
"loss": 0.6917,
|
61 |
+
"rewards/accuracies": 0.550000011920929,
|
62 |
+
"rewards/chosen": -0.034951962530612946,
|
63 |
+
"rewards/margins": 0.007884470745921135,
|
64 |
+
"rewards/rejected": -0.04283643513917923,
|
65 |
+
"step": 30
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.26,
|
69 |
+
"learning_rate": 4.646121984004666e-06,
|
70 |
+
"logits/chosen": -2.671989917755127,
|
71 |
+
"logits/rejected": -2.6600332260131836,
|
72 |
+
"logps/chosen": -178.48281860351562,
|
73 |
+
"logps/rejected": -179.00379943847656,
|
74 |
+
"loss": 0.6901,
|
75 |
+
"rewards/accuracies": 0.53125,
|
76 |
+
"rewards/chosen": -0.01323291938751936,
|
77 |
+
"rewards/margins": 0.006769413594156504,
|
78 |
+
"rewards/rejected": -0.020002331584692,
|
79 |
+
"step": 40
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.32,
|
83 |
+
"learning_rate": 4.3069871595684795e-06,
|
84 |
+
"logits/chosen": -2.6603026390075684,
|
85 |
+
"logits/rejected": -2.6338632106781006,
|
86 |
+
"logps/chosen": -188.98532104492188,
|
87 |
+
"logps/rejected": -187.17684936523438,
|
88 |
+
"loss": 0.6888,
|
89 |
+
"rewards/accuracies": 0.5406249761581421,
|
90 |
+
"rewards/chosen": -0.09863803535699844,
|
91 |
+
"rewards/margins": 0.015061549842357635,
|
92 |
+
"rewards/rejected": -0.11369959264993668,
|
93 |
+
"step": 50
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.38,
|
97 |
+
"learning_rate": 3.8772424536302565e-06,
|
98 |
+
"logits/chosen": -2.6301541328430176,
|
99 |
+
"logits/rejected": -2.6398401260375977,
|
100 |
+
"logps/chosen": -184.1541290283203,
|
101 |
+
"logps/rejected": -188.9746856689453,
|
102 |
+
"loss": 0.6898,
|
103 |
+
"rewards/accuracies": 0.543749988079071,
|
104 |
+
"rewards/chosen": -0.16303817927837372,
|
105 |
+
"rewards/margins": 0.013844095170497894,
|
106 |
+
"rewards/rejected": -0.1768822818994522,
|
107 |
+
"step": 60
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.45,
|
111 |
+
"learning_rate": 3.3784370602033572e-06,
|
112 |
+
"logits/chosen": -2.587550401687622,
|
113 |
+
"logits/rejected": -2.550933361053467,
|
114 |
+
"logps/chosen": -184.53257751464844,
|
115 |
+
"logps/rejected": -183.46517944335938,
|
116 |
+
"loss": 0.6902,
|
117 |
+
"rewards/accuracies": 0.4937500059604645,
|
118 |
+
"rewards/chosen": -0.008703355677425861,
|
119 |
+
"rewards/margins": 0.0026464841794222593,
|
120 |
+
"rewards/rejected": -0.011349838227033615,
|
121 |
+
"step": 70
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 0.51,
|
125 |
+
"learning_rate": 2.835583164544139e-06,
|
126 |
+
"logits/chosen": -2.56795072555542,
|
127 |
+
"logits/rejected": -2.5637052059173584,
|
128 |
+
"logps/chosen": -176.33071899414062,
|
129 |
+
"logps/rejected": -184.88938903808594,
|
130 |
+
"loss": 0.6906,
|
131 |
+
"rewards/accuracies": 0.578125,
|
132 |
+
"rewards/chosen": 0.0037323920987546444,
|
133 |
+
"rewards/margins": 0.009280242025852203,
|
134 |
+
"rewards/rejected": -0.005547848995774984,
|
135 |
+
"step": 80
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.58,
|
139 |
+
"learning_rate": 2.2759017277414165e-06,
|
140 |
+
"logits/chosen": -2.6137020587921143,
|
141 |
+
"logits/rejected": -2.5704140663146973,
|
142 |
+
"logps/chosen": -187.82107543945312,
|
143 |
+
"logps/rejected": -184.28587341308594,
|
144 |
+
"loss": 0.6883,
|
145 |
+
"rewards/accuracies": 0.5375000238418579,
|
146 |
+
"rewards/chosen": -0.08189593255519867,
|
147 |
+
"rewards/margins": 0.0156090734526515,
|
148 |
+
"rewards/rejected": -0.09750500321388245,
|
149 |
+
"step": 90
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 0.64,
|
153 |
+
"learning_rate": 1.7274575140626318e-06,
|
154 |
+
"logits/chosen": -2.6152119636535645,
|
155 |
+
"logits/rejected": -2.640665292739868,
|
156 |
+
"logps/chosen": -176.8973388671875,
|
157 |
+
"logps/rejected": -184.32557678222656,
|
158 |
+
"loss": 0.689,
|
159 |
+
"rewards/accuracies": 0.53125,
|
160 |
+
"rewards/chosen": -0.08713572472333908,
|
161 |
+
"rewards/margins": 0.014782750979065895,
|
162 |
+
"rewards/rejected": -0.10191845893859863,
|
163 |
+
"step": 100
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 0.64,
|
167 |
+
"eval_logits/chosen": -2.556511878967285,
|
168 |
+
"eval_logits/rejected": -2.465257406234741,
|
169 |
+
"eval_logps/chosen": -305.5672607421875,
|
170 |
+
"eval_logps/rejected": -298.1529541015625,
|
171 |
+
"eval_loss": 0.6753088235855103,
|
172 |
+
"eval_rewards/accuracies": 0.6359999775886536,
|
173 |
+
"eval_rewards/chosen": -0.11736557632684708,
|
174 |
+
"eval_rewards/margins": 0.04772435873746872,
|
175 |
+
"eval_rewards/rejected": -0.1650899201631546,
|
176 |
+
"eval_runtime": 384.6543,
|
177 |
+
"eval_samples_per_second": 5.199,
|
178 |
+
"eval_steps_per_second": 0.65,
|
179 |
+
"step": 100
|
180 |
+
},
|
181 |
+
{
|
182 |
+
"epoch": 0.7,
|
183 |
+
"learning_rate": 1.217751806485235e-06,
|
184 |
+
"logits/chosen": -2.62018084526062,
|
185 |
+
"logits/rejected": -2.610757350921631,
|
186 |
+
"logps/chosen": -171.35316467285156,
|
187 |
+
"logps/rejected": -176.16299438476562,
|
188 |
+
"loss": 0.6845,
|
189 |
+
"rewards/accuracies": 0.534375011920929,
|
190 |
+
"rewards/chosen": -0.05986649543046951,
|
191 |
+
"rewards/margins": 0.020178433507680893,
|
192 |
+
"rewards/rejected": -0.0800449326634407,
|
193 |
+
"step": 110
|
194 |
+
},
|
195 |
+
{
|
196 |
+
"epoch": 0.77,
|
197 |
+
"learning_rate": 7.723433775328385e-07,
|
198 |
+
"logits/chosen": -2.548755168914795,
|
199 |
+
"logits/rejected": -2.529273271560669,
|
200 |
+
"logps/chosen": -173.8794403076172,
|
201 |
+
"logps/rejected": -172.54251098632812,
|
202 |
+
"loss": 0.6854,
|
203 |
+
"rewards/accuracies": 0.559374988079071,
|
204 |
+
"rewards/chosen": -0.06846034526824951,
|
205 |
+
"rewards/margins": 0.019297173246741295,
|
206 |
+
"rewards/rejected": -0.08775752037763596,
|
207 |
+
"step": 120
|
208 |
+
},
|
209 |
+
{
|
210 |
+
"epoch": 0.83,
|
211 |
+
"learning_rate": 4.1356686569674344e-07,
|
212 |
+
"logits/chosen": -2.6056151390075684,
|
213 |
+
"logits/rejected": -2.5934414863586426,
|
214 |
+
"logps/chosen": -181.0892791748047,
|
215 |
+
"logps/rejected": -185.13357543945312,
|
216 |
+
"loss": 0.686,
|
217 |
+
"rewards/accuracies": 0.5562499761581421,
|
218 |
+
"rewards/chosen": -0.055159904062747955,
|
219 |
+
"rewards/margins": 0.01887853816151619,
|
220 |
+
"rewards/rejected": -0.07403843104839325,
|
221 |
+
"step": 130
|
222 |
+
},
|
223 |
+
{
|
224 |
+
"epoch": 0.9,
|
225 |
+
"learning_rate": 1.59412823400657e-07,
|
226 |
+
"logits/chosen": -2.592637538909912,
|
227 |
+
"logits/rejected": -2.583139657974243,
|
228 |
+
"logps/chosen": -176.57772827148438,
|
229 |
+
"logps/rejected": -182.9418182373047,
|
230 |
+
"loss": 0.6847,
|
231 |
+
"rewards/accuracies": 0.581250011920929,
|
232 |
+
"rewards/chosen": -0.04002287983894348,
|
233 |
+
"rewards/margins": 0.02553923986852169,
|
234 |
+
"rewards/rejected": -0.06556212902069092,
|
235 |
+
"step": 140
|
236 |
+
},
|
237 |
+
{
|
238 |
+
"epoch": 0.96,
|
239 |
+
"learning_rate": 2.262559558016325e-08,
|
240 |
+
"logits/chosen": -2.5700881481170654,
|
241 |
+
"logits/rejected": -2.561204433441162,
|
242 |
+
"logps/chosen": -178.7554473876953,
|
243 |
+
"logps/rejected": -186.81182861328125,
|
244 |
+
"loss": 0.6849,
|
245 |
+
"rewards/accuracies": 0.503125011920929,
|
246 |
+
"rewards/chosen": -0.05323126167058945,
|
247 |
+
"rewards/margins": 0.007863727398216724,
|
248 |
+
"rewards/rejected": -0.0610949881374836,
|
249 |
+
"step": 150
|
250 |
+
},
|
251 |
+
{
|
252 |
+
"epoch": 1.0,
|
253 |
+
"step": 156,
|
254 |
+
"total_flos": 0.0,
|
255 |
+
"train_loss": 0.6885996239307599,
|
256 |
+
"train_runtime": 7326.9096,
|
257 |
+
"train_samples_per_second": 2.73,
|
258 |
+
"train_steps_per_second": 0.021
|
259 |
+
}
|
260 |
+
],
|
261 |
+
"logging_steps": 10,
|
262 |
+
"max_steps": 156,
|
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 |
+
}
|