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_simple_online_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_simple_online_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.6779
|
22 |
+
- Rewards/chosen: 0.0306
|
23 |
+
- Rewards/rejected: -0.0021
|
24 |
+
- Rewards/accuracies: 0.6480
|
25 |
+
- Rewards/margins: 0.0327
|
26 |
+
- Logps/rejected: -257.7254
|
27 |
+
- Logps/chosen: -280.9805
|
28 |
+
- Logits/rejected: -2.6488
|
29 |
+
- Logits/chosen: -2.7230
|
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.6844 | 0.64 | 100 | 0.6779 | 0.0306 | -0.0021 | 0.6480 | 0.0327 | -257.7254 | -280.9805 | -2.6488 | -2.7230 |
|
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.6878455548714368,
|
4 |
+
"train_runtime": 6320.6894,
|
5 |
+
"train_samples": 20000,
|
6 |
+
"train_samples_per_second": 3.164,
|
7 |
+
"train_steps_per_second": 0.025
|
8 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.6878455548714368,
|
4 |
+
"train_runtime": 6320.6894,
|
5 |
+
"train_samples": 20000,
|
6 |
+
"train_samples_per_second": 3.164,
|
7 |
+
"train_steps_per_second": 0.025
|
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.783127546310425,
|
15 |
+
"logits/rejected": -2.8651208877563477,
|
16 |
+
"logps/chosen": -134.2432861328125,
|
17 |
+
"logps/rejected": -141.6387939453125,
|
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.801163911819458,
|
29 |
+
"logits/rejected": -2.7942428588867188,
|
30 |
+
"logps/chosen": -112.86317443847656,
|
31 |
+
"logps/rejected": -110.90413665771484,
|
32 |
+
"loss": 0.6931,
|
33 |
+
"rewards/accuracies": 0.4444444477558136,
|
34 |
+
"rewards/chosen": 0.0007365171913988888,
|
35 |
+
"rewards/margins": -3.1015442800708115e-05,
|
36 |
+
"rewards/rejected": 0.0007675326196476817,
|
37 |
+
"step": 10
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.13,
|
41 |
+
"learning_rate": 4.989935734988098e-06,
|
42 |
+
"logits/chosen": -2.7939412593841553,
|
43 |
+
"logits/rejected": -2.761488437652588,
|
44 |
+
"logps/chosen": -111.9773178100586,
|
45 |
+
"logps/rejected": -112.6773681640625,
|
46 |
+
"loss": 0.693,
|
47 |
+
"rewards/accuracies": 0.5531250238418579,
|
48 |
+
"rewards/chosen": 0.007041769567877054,
|
49 |
+
"rewards/margins": 0.0005797661142423749,
|
50 |
+
"rewards/rejected": 0.006462003104388714,
|
51 |
+
"step": 20
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.19,
|
55 |
+
"learning_rate": 4.8776412907378845e-06,
|
56 |
+
"logits/chosen": -2.7452473640441895,
|
57 |
+
"logits/rejected": -2.71763277053833,
|
58 |
+
"logps/chosen": -110.77873229980469,
|
59 |
+
"logps/rejected": -116.26164245605469,
|
60 |
+
"loss": 0.6919,
|
61 |
+
"rewards/accuracies": 0.590624988079071,
|
62 |
+
"rewards/chosen": 0.027953902259469032,
|
63 |
+
"rewards/margins": 0.002175498753786087,
|
64 |
+
"rewards/rejected": 0.025778403505682945,
|
65 |
+
"step": 30
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.26,
|
69 |
+
"learning_rate": 4.646121984004666e-06,
|
70 |
+
"logits/chosen": -2.7981982231140137,
|
71 |
+
"logits/rejected": -2.760676860809326,
|
72 |
+
"logps/chosen": -110.84574890136719,
|
73 |
+
"logps/rejected": -111.5237808227539,
|
74 |
+
"loss": 0.6908,
|
75 |
+
"rewards/accuracies": 0.606249988079071,
|
76 |
+
"rewards/chosen": 0.05981600284576416,
|
77 |
+
"rewards/margins": 0.0045239622704684734,
|
78 |
+
"rewards/rejected": 0.055292047560214996,
|
79 |
+
"step": 40
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.32,
|
83 |
+
"learning_rate": 4.3069871595684795e-06,
|
84 |
+
"logits/chosen": -2.7610268592834473,
|
85 |
+
"logits/rejected": -2.7524187564849854,
|
86 |
+
"logps/chosen": -109.18692779541016,
|
87 |
+
"logps/rejected": -110.45135498046875,
|
88 |
+
"loss": 0.6898,
|
89 |
+
"rewards/accuracies": 0.5625,
|
90 |
+
"rewards/chosen": 0.07008253037929535,
|
91 |
+
"rewards/margins": 0.003140285611152649,
|
92 |
+
"rewards/rejected": 0.0669422522187233,
|
93 |
+
"step": 50
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.38,
|
97 |
+
"learning_rate": 3.8772424536302565e-06,
|
98 |
+
"logits/chosen": -2.7594542503356934,
|
99 |
+
"logits/rejected": -2.7281312942504883,
|
100 |
+
"logps/chosen": -105.79144287109375,
|
101 |
+
"logps/rejected": -108.7798080444336,
|
102 |
+
"loss": 0.6899,
|
103 |
+
"rewards/accuracies": 0.606249988079071,
|
104 |
+
"rewards/chosen": 0.08012694865465164,
|
105 |
+
"rewards/margins": 0.008532116189599037,
|
106 |
+
"rewards/rejected": 0.07159483432769775,
|
107 |
+
"step": 60
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.45,
|
111 |
+
"learning_rate": 3.3784370602033572e-06,
|
112 |
+
"logits/chosen": -2.7187533378601074,
|
113 |
+
"logits/rejected": -2.6961326599121094,
|
114 |
+
"logps/chosen": -120.80352783203125,
|
115 |
+
"logps/rejected": -117.37217712402344,
|
116 |
+
"loss": 0.6883,
|
117 |
+
"rewards/accuracies": 0.5375000238418579,
|
118 |
+
"rewards/chosen": 0.05428874492645264,
|
119 |
+
"rewards/margins": 0.007891224697232246,
|
120 |
+
"rewards/rejected": 0.04639752581715584,
|
121 |
+
"step": 70
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 0.51,
|
125 |
+
"learning_rate": 2.835583164544139e-06,
|
126 |
+
"logits/chosen": -2.7139596939086914,
|
127 |
+
"logits/rejected": -2.6886355876922607,
|
128 |
+
"logps/chosen": -117.95060729980469,
|
129 |
+
"logps/rejected": -119.08524322509766,
|
130 |
+
"loss": 0.6878,
|
131 |
+
"rewards/accuracies": 0.5843750238418579,
|
132 |
+
"rewards/chosen": 0.04534279555082321,
|
133 |
+
"rewards/margins": 0.010814065113663673,
|
134 |
+
"rewards/rejected": 0.03452872857451439,
|
135 |
+
"step": 80
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.58,
|
139 |
+
"learning_rate": 2.2759017277414165e-06,
|
140 |
+
"logits/chosen": -2.7270092964172363,
|
141 |
+
"logits/rejected": -2.677152633666992,
|
142 |
+
"logps/chosen": -109.81172943115234,
|
143 |
+
"logps/rejected": -110.4306640625,
|
144 |
+
"loss": 0.6872,
|
145 |
+
"rewards/accuracies": 0.550000011920929,
|
146 |
+
"rewards/chosen": 0.026867974549531937,
|
147 |
+
"rewards/margins": 0.010544367134571075,
|
148 |
+
"rewards/rejected": 0.01632360741496086,
|
149 |
+
"step": 90
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 0.64,
|
153 |
+
"learning_rate": 1.7274575140626318e-06,
|
154 |
+
"logits/chosen": -2.720876932144165,
|
155 |
+
"logits/rejected": -2.7096195220947266,
|
156 |
+
"logps/chosen": -115.74837493896484,
|
157 |
+
"logps/rejected": -114.7901382446289,
|
158 |
+
"loss": 0.6844,
|
159 |
+
"rewards/accuracies": 0.5531250238418579,
|
160 |
+
"rewards/chosen": 0.042589299380779266,
|
161 |
+
"rewards/margins": 0.017415037378668785,
|
162 |
+
"rewards/rejected": 0.02517426386475563,
|
163 |
+
"step": 100
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 0.64,
|
167 |
+
"eval_logits/chosen": -2.722978353500366,
|
168 |
+
"eval_logits/rejected": -2.648787021636963,
|
169 |
+
"eval_logps/chosen": -280.98046875,
|
170 |
+
"eval_logps/rejected": -257.7253723144531,
|
171 |
+
"eval_loss": 0.677879810333252,
|
172 |
+
"eval_rewards/accuracies": 0.6480000019073486,
|
173 |
+
"eval_rewards/chosen": 0.03059276193380356,
|
174 |
+
"eval_rewards/margins": 0.032687921077013016,
|
175 |
+
"eval_rewards/rejected": -0.0020951556507498026,
|
176 |
+
"eval_runtime": 383.9393,
|
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.6989266872406006,
|
185 |
+
"logits/rejected": -2.669929265975952,
|
186 |
+
"logps/chosen": -106.67137145996094,
|
187 |
+
"logps/rejected": -105.73466491699219,
|
188 |
+
"loss": 0.6849,
|
189 |
+
"rewards/accuracies": 0.640625,
|
190 |
+
"rewards/chosen": 0.05706842616200447,
|
191 |
+
"rewards/margins": 0.01945202611386776,
|
192 |
+
"rewards/rejected": 0.03761639818549156,
|
193 |
+
"step": 110
|
194 |
+
},
|
195 |
+
{
|
196 |
+
"epoch": 0.77,
|
197 |
+
"learning_rate": 7.723433775328385e-07,
|
198 |
+
"logits/chosen": -2.6370861530303955,
|
199 |
+
"logits/rejected": -2.6202707290649414,
|
200 |
+
"logps/chosen": -107.36185455322266,
|
201 |
+
"logps/rejected": -108.76318359375,
|
202 |
+
"loss": 0.6858,
|
203 |
+
"rewards/accuracies": 0.5843750238418579,
|
204 |
+
"rewards/chosen": 0.06415753811597824,
|
205 |
+
"rewards/margins": 0.012921139597892761,
|
206 |
+
"rewards/rejected": 0.05123639851808548,
|
207 |
+
"step": 120
|
208 |
+
},
|
209 |
+
{
|
210 |
+
"epoch": 0.83,
|
211 |
+
"learning_rate": 4.1356686569674344e-07,
|
212 |
+
"logits/chosen": -2.7071995735168457,
|
213 |
+
"logits/rejected": -2.6700949668884277,
|
214 |
+
"logps/chosen": -110.8349609375,
|
215 |
+
"logps/rejected": -116.52140045166016,
|
216 |
+
"loss": 0.6859,
|
217 |
+
"rewards/accuracies": 0.581250011920929,
|
218 |
+
"rewards/chosen": 0.062352847307920456,
|
219 |
+
"rewards/margins": 0.018708955496549606,
|
220 |
+
"rewards/rejected": 0.04364389181137085,
|
221 |
+
"step": 130
|
222 |
+
},
|
223 |
+
{
|
224 |
+
"epoch": 0.9,
|
225 |
+
"learning_rate": 1.59412823400657e-07,
|
226 |
+
"logits/chosen": -2.7012362480163574,
|
227 |
+
"logits/rejected": -2.673867702484131,
|
228 |
+
"logps/chosen": -114.33103942871094,
|
229 |
+
"logps/rejected": -117.1007308959961,
|
230 |
+
"loss": 0.6849,
|
231 |
+
"rewards/accuracies": 0.612500011920929,
|
232 |
+
"rewards/chosen": 0.055680979043245316,
|
233 |
+
"rewards/margins": 0.020022045820951462,
|
234 |
+
"rewards/rejected": 0.03565892577171326,
|
235 |
+
"step": 140
|
236 |
+
},
|
237 |
+
{
|
238 |
+
"epoch": 0.96,
|
239 |
+
"learning_rate": 2.262559558016325e-08,
|
240 |
+
"logits/chosen": -2.6588995456695557,
|
241 |
+
"logits/rejected": -2.643526077270508,
|
242 |
+
"logps/chosen": -107.59385681152344,
|
243 |
+
"logps/rejected": -118.29096984863281,
|
244 |
+
"loss": 0.6837,
|
245 |
+
"rewards/accuracies": 0.609375,
|
246 |
+
"rewards/chosen": 0.05322548747062683,
|
247 |
+
"rewards/margins": 0.02210088260471821,
|
248 |
+
"rewards/rejected": 0.031124606728553772,
|
249 |
+
"step": 150
|
250 |
+
},
|
251 |
+
{
|
252 |
+
"epoch": 1.0,
|
253 |
+
"step": 156,
|
254 |
+
"total_flos": 0.0,
|
255 |
+
"train_loss": 0.6878455548714368,
|
256 |
+
"train_runtime": 6320.6894,
|
257 |
+
"train_samples_per_second": 3.164,
|
258 |
+
"train_steps_per_second": 0.025
|
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 |
+
}
|