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_ave_pi_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_ave_pi_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.6930
|
22 |
+
- Rewards/chosen: -0.1247
|
23 |
+
- Rewards/rejected: -0.1296
|
24 |
+
- Rewards/accuracies: 0.5140
|
25 |
+
- Rewards/margins: 0.0049
|
26 |
+
- Logps/rejected: -302.4665
|
27 |
+
- Logps/chosen: -310.5244
|
28 |
+
- Logits/rejected: -2.4580
|
29 |
+
- Logits/chosen: -2.5554
|
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.6902 | 0.64 | 100 | 0.6930 | -0.1247 | -0.1296 | 0.5140 | 0.0049 | -302.4665 | -310.5244 | -2.4580 | -2.5554 |
|
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.6914212252849188,
|
4 |
+
"train_runtime": 7065.3773,
|
5 |
+
"train_samples": 20000,
|
6 |
+
"train_samples_per_second": 2.831,
|
7 |
+
"train_steps_per_second": 0.022
|
8 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.6914212252849188,
|
4 |
+
"train_runtime": 7065.3773,
|
5 |
+
"train_samples": 20000,
|
6 |
+
"train_samples_per_second": 2.831,
|
7 |
+
"train_steps_per_second": 0.022
|
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.62762188911438,
|
15 |
+
"logits/rejected": -2.586808681488037,
|
16 |
+
"logps/chosen": -233.10275268554688,
|
17 |
+
"logps/rejected": -220.01724243164062,
|
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.640223741531372,
|
29 |
+
"logits/rejected": -2.6421992778778076,
|
30 |
+
"logps/chosen": -172.71710205078125,
|
31 |
+
"logps/rejected": -174.91177368164062,
|
32 |
+
"loss": 0.6932,
|
33 |
+
"rewards/accuracies": 0.4270833432674408,
|
34 |
+
"rewards/chosen": -0.0005670329555869102,
|
35 |
+
"rewards/margins": -0.00034490120015107095,
|
36 |
+
"rewards/rejected": -0.00022213184274733067,
|
37 |
+
"step": 10
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.13,
|
41 |
+
"learning_rate": 4.989935734988098e-06,
|
42 |
+
"logits/chosen": -2.6506519317626953,
|
43 |
+
"logits/rejected": -2.6606290340423584,
|
44 |
+
"logps/chosen": -163.25784301757812,
|
45 |
+
"logps/rejected": -166.31251525878906,
|
46 |
+
"loss": 0.6923,
|
47 |
+
"rewards/accuracies": 0.546875,
|
48 |
+
"rewards/chosen": -0.005096795037388802,
|
49 |
+
"rewards/margins": 0.002602009102702141,
|
50 |
+
"rewards/rejected": -0.007698804140090942,
|
51 |
+
"step": 20
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.19,
|
55 |
+
"learning_rate": 4.8776412907378845e-06,
|
56 |
+
"logits/chosen": -2.6732003688812256,
|
57 |
+
"logits/rejected": -2.6337249279022217,
|
58 |
+
"logps/chosen": -179.1455535888672,
|
59 |
+
"logps/rejected": -177.36630249023438,
|
60 |
+
"loss": 0.6928,
|
61 |
+
"rewards/accuracies": 0.5218750238418579,
|
62 |
+
"rewards/chosen": -0.07040824741125107,
|
63 |
+
"rewards/margins": 0.0008022676920518279,
|
64 |
+
"rewards/rejected": -0.07121052592992783,
|
65 |
+
"step": 30
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.26,
|
69 |
+
"learning_rate": 4.646121984004666e-06,
|
70 |
+
"logits/chosen": -2.592510223388672,
|
71 |
+
"logits/rejected": -2.569596767425537,
|
72 |
+
"logps/chosen": -176.0773162841797,
|
73 |
+
"logps/rejected": -177.98220825195312,
|
74 |
+
"loss": 0.6939,
|
75 |
+
"rewards/accuracies": 0.5249999761581421,
|
76 |
+
"rewards/chosen": -0.06681038439273834,
|
77 |
+
"rewards/margins": -0.002174162771552801,
|
78 |
+
"rewards/rejected": -0.0646362155675888,
|
79 |
+
"step": 40
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.32,
|
83 |
+
"learning_rate": 4.3069871595684795e-06,
|
84 |
+
"logits/chosen": -2.6304595470428467,
|
85 |
+
"logits/rejected": -2.6132376194000244,
|
86 |
+
"logps/chosen": -170.5052947998047,
|
87 |
+
"logps/rejected": -170.62728881835938,
|
88 |
+
"loss": 0.6925,
|
89 |
+
"rewards/accuracies": 0.5218750238418579,
|
90 |
+
"rewards/chosen": -0.03540392965078354,
|
91 |
+
"rewards/margins": 0.004562810063362122,
|
92 |
+
"rewards/rejected": -0.03996673971414566,
|
93 |
+
"step": 50
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.38,
|
97 |
+
"learning_rate": 3.8772424536302565e-06,
|
98 |
+
"logits/chosen": -2.5987067222595215,
|
99 |
+
"logits/rejected": -2.573859691619873,
|
100 |
+
"logps/chosen": -180.9357452392578,
|
101 |
+
"logps/rejected": -177.1747589111328,
|
102 |
+
"loss": 0.6923,
|
103 |
+
"rewards/accuracies": 0.48750001192092896,
|
104 |
+
"rewards/chosen": -0.09346936643123627,
|
105 |
+
"rewards/margins": 0.0016549427527934313,
|
106 |
+
"rewards/rejected": -0.09512430429458618,
|
107 |
+
"step": 60
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.45,
|
111 |
+
"learning_rate": 3.3784370602033572e-06,
|
112 |
+
"logits/chosen": -2.5544121265411377,
|
113 |
+
"logits/rejected": -2.570075750350952,
|
114 |
+
"logps/chosen": -172.70663452148438,
|
115 |
+
"logps/rejected": -173.13766479492188,
|
116 |
+
"loss": 0.692,
|
117 |
+
"rewards/accuracies": 0.49687498807907104,
|
118 |
+
"rewards/chosen": -0.15676796436309814,
|
119 |
+
"rewards/margins": -0.002442942699417472,
|
120 |
+
"rewards/rejected": -0.15432503819465637,
|
121 |
+
"step": 70
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 0.51,
|
125 |
+
"learning_rate": 2.835583164544139e-06,
|
126 |
+
"logits/chosen": -2.604128122329712,
|
127 |
+
"logits/rejected": -2.5767688751220703,
|
128 |
+
"logps/chosen": -184.4633331298828,
|
129 |
+
"logps/rejected": -183.540283203125,
|
130 |
+
"loss": 0.6936,
|
131 |
+
"rewards/accuracies": 0.5562499761581421,
|
132 |
+
"rewards/chosen": -0.18969281017780304,
|
133 |
+
"rewards/margins": -0.0006604200461879373,
|
134 |
+
"rewards/rejected": -0.18903236091136932,
|
135 |
+
"step": 80
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.58,
|
139 |
+
"learning_rate": 2.2759017277414165e-06,
|
140 |
+
"logits/chosen": -2.661609172821045,
|
141 |
+
"logits/rejected": -2.5941507816314697,
|
142 |
+
"logps/chosen": -191.8031463623047,
|
143 |
+
"logps/rejected": -189.98135375976562,
|
144 |
+
"loss": 0.6914,
|
145 |
+
"rewards/accuracies": 0.565625011920929,
|
146 |
+
"rewards/chosen": -0.08525966852903366,
|
147 |
+
"rewards/margins": 0.013879667036235332,
|
148 |
+
"rewards/rejected": -0.09913934022188187,
|
149 |
+
"step": 90
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 0.64,
|
153 |
+
"learning_rate": 1.7274575140626318e-06,
|
154 |
+
"logits/chosen": -2.6250574588775635,
|
155 |
+
"logits/rejected": -2.6189353466033936,
|
156 |
+
"logps/chosen": -178.07730102539062,
|
157 |
+
"logps/rejected": -179.85862731933594,
|
158 |
+
"loss": 0.6902,
|
159 |
+
"rewards/accuracies": 0.5625,
|
160 |
+
"rewards/chosen": -0.038252077996730804,
|
161 |
+
"rewards/margins": 0.017853444442152977,
|
162 |
+
"rewards/rejected": -0.05610552430152893,
|
163 |
+
"step": 100
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 0.64,
|
167 |
+
"eval_logits/chosen": -2.555354595184326,
|
168 |
+
"eval_logits/rejected": -2.4580423831939697,
|
169 |
+
"eval_logps/chosen": -310.5243835449219,
|
170 |
+
"eval_logps/rejected": -302.46649169921875,
|
171 |
+
"eval_loss": 0.6929731369018555,
|
172 |
+
"eval_rewards/accuracies": 0.5139999985694885,
|
173 |
+
"eval_rewards/chosen": -0.12465862929821014,
|
174 |
+
"eval_rewards/margins": 0.00494543369859457,
|
175 |
+
"eval_rewards/rejected": -0.12960407137870789,
|
176 |
+
"eval_runtime": 383.981,
|
177 |
+
"eval_samples_per_second": 5.209,
|
178 |
+
"eval_steps_per_second": 0.651,
|
179 |
+
"step": 100
|
180 |
+
},
|
181 |
+
{
|
182 |
+
"epoch": 0.7,
|
183 |
+
"learning_rate": 1.217751806485235e-06,
|
184 |
+
"logits/chosen": -2.651780128479004,
|
185 |
+
"logits/rejected": -2.581507921218872,
|
186 |
+
"logps/chosen": -194.07461547851562,
|
187 |
+
"logps/rejected": -183.43362426757812,
|
188 |
+
"loss": 0.6898,
|
189 |
+
"rewards/accuracies": 0.4781250059604645,
|
190 |
+
"rewards/chosen": -0.11336056143045425,
|
191 |
+
"rewards/margins": 0.0036790375597774982,
|
192 |
+
"rewards/rejected": -0.11703959852457047,
|
193 |
+
"step": 110
|
194 |
+
},
|
195 |
+
{
|
196 |
+
"epoch": 0.77,
|
197 |
+
"learning_rate": 7.723433775328385e-07,
|
198 |
+
"logits/chosen": -2.6290206909179688,
|
199 |
+
"logits/rejected": -2.6049842834472656,
|
200 |
+
"logps/chosen": -186.02259826660156,
|
201 |
+
"logps/rejected": -193.3793487548828,
|
202 |
+
"loss": 0.6902,
|
203 |
+
"rewards/accuracies": 0.534375011920929,
|
204 |
+
"rewards/chosen": -0.11839202791452408,
|
205 |
+
"rewards/margins": 0.004132995847612619,
|
206 |
+
"rewards/rejected": -0.12252502143383026,
|
207 |
+
"step": 120
|
208 |
+
},
|
209 |
+
{
|
210 |
+
"epoch": 0.83,
|
211 |
+
"learning_rate": 4.1356686569674344e-07,
|
212 |
+
"logits/chosen": -2.5702383518218994,
|
213 |
+
"logits/rejected": -2.5472493171691895,
|
214 |
+
"logps/chosen": -169.70834350585938,
|
215 |
+
"logps/rejected": -174.14761352539062,
|
216 |
+
"loss": 0.6891,
|
217 |
+
"rewards/accuracies": 0.5562499761581421,
|
218 |
+
"rewards/chosen": -0.09281644970178604,
|
219 |
+
"rewards/margins": 0.012840485200285912,
|
220 |
+
"rewards/rejected": -0.1056569367647171,
|
221 |
+
"step": 130
|
222 |
+
},
|
223 |
+
{
|
224 |
+
"epoch": 0.9,
|
225 |
+
"learning_rate": 1.59412823400657e-07,
|
226 |
+
"logits/chosen": -2.5276107788085938,
|
227 |
+
"logits/rejected": -2.5228161811828613,
|
228 |
+
"logps/chosen": -174.78802490234375,
|
229 |
+
"logps/rejected": -176.2909698486328,
|
230 |
+
"loss": 0.6878,
|
231 |
+
"rewards/accuracies": 0.5625,
|
232 |
+
"rewards/chosen": -0.05636407807469368,
|
233 |
+
"rewards/margins": 0.011297663673758507,
|
234 |
+
"rewards/rejected": -0.06766173988580704,
|
235 |
+
"step": 140
|
236 |
+
},
|
237 |
+
{
|
238 |
+
"epoch": 0.96,
|
239 |
+
"learning_rate": 2.262559558016325e-08,
|
240 |
+
"logits/chosen": -2.568333864212036,
|
241 |
+
"logits/rejected": -2.586660623550415,
|
242 |
+
"logps/chosen": -166.882080078125,
|
243 |
+
"logps/rejected": -171.17140197753906,
|
244 |
+
"loss": 0.6892,
|
245 |
+
"rewards/accuracies": 0.565625011920929,
|
246 |
+
"rewards/chosen": -0.061885736882686615,
|
247 |
+
"rewards/margins": 0.011388251557946205,
|
248 |
+
"rewards/rejected": -0.07327400147914886,
|
249 |
+
"step": 150
|
250 |
+
},
|
251 |
+
{
|
252 |
+
"epoch": 1.0,
|
253 |
+
"step": 156,
|
254 |
+
"total_flos": 0.0,
|
255 |
+
"train_loss": 0.6914212252849188,
|
256 |
+
"train_runtime": 7065.3773,
|
257 |
+
"train_samples_per_second": 2.831,
|
258 |
+
"train_steps_per_second": 0.022
|
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 |
+
}
|