YYYYYYibo commited on
Commit
c15c67d
1 Parent(s): a06cc38

Model save

Browse files
Files changed (4) hide show
  1. README.md +75 -0
  2. all_results.json +8 -0
  3. train_results.json +8 -0
  4. trainer_state.json +284 -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_3
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_3
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.6670
22
+ - Rewards/chosen: -0.0073
23
+ - Rewards/rejected: -0.0639
24
+ - Rewards/accuracies: 0.6260
25
+ - Rewards/margins: 0.0566
26
+ - Logps/rejected: -276.2926
27
+ - Logps/chosen: -295.2946
28
+ - Logits/rejected: -2.5081
29
+ - Logits/chosen: -2.6012
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.6816 | 0.61 | 100 | 0.6670 | -0.0073 | -0.0639 | 0.6260 | 0.0566 | -276.2926 | -295.2946 | -2.5081 | -2.6012 |
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.6834371660694931,
4
+ "train_runtime": 6903.7645,
5
+ "train_samples": 21135,
6
+ "train_samples_per_second": 3.061,
7
+ "train_steps_per_second": 0.024
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 0.6834371660694931,
4
+ "train_runtime": 6903.7645,
5
+ "train_samples": 21135,
6
+ "train_samples_per_second": 3.061,
7
+ "train_steps_per_second": 0.024
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9992429977289932,
5
+ "eval_steps": 100,
6
+ "global_step": 165,
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": 2.9411764705882356e-07,
14
+ "logits/chosen": -2.7495079040527344,
15
+ "logits/rejected": -2.7064833641052246,
16
+ "logps/chosen": -164.81121826171875,
17
+ "logps/rejected": -156.92835998535156,
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": 2.9411764705882355e-06,
28
+ "logits/chosen": -2.7017762660980225,
29
+ "logits/rejected": -2.6830601692199707,
30
+ "logps/chosen": -139.487548828125,
31
+ "logps/rejected": -143.1040802001953,
32
+ "loss": 0.6932,
33
+ "rewards/accuracies": 0.3958333432674408,
34
+ "rewards/chosen": 0.004722592420876026,
35
+ "rewards/margins": -0.0002141917502740398,
36
+ "rewards/rejected": 0.004936783574521542,
37
+ "step": 10
38
+ },
39
+ {
40
+ "epoch": 0.12,
41
+ "learning_rate": 4.994932636402032e-06,
42
+ "logits/chosen": -2.735475540161133,
43
+ "logits/rejected": -2.686282157897949,
44
+ "logps/chosen": -130.50253295898438,
45
+ "logps/rejected": -130.809326171875,
46
+ "loss": 0.692,
47
+ "rewards/accuracies": 0.49687498807907104,
48
+ "rewards/chosen": 0.08099536597728729,
49
+ "rewards/margins": 0.001809996203519404,
50
+ "rewards/rejected": 0.0791853740811348,
51
+ "step": 20
52
+ },
53
+ {
54
+ "epoch": 0.18,
55
+ "learning_rate": 4.905416503522124e-06,
56
+ "logits/chosen": -2.7524123191833496,
57
+ "logits/rejected": -2.7140748500823975,
58
+ "logps/chosen": -123.51778411865234,
59
+ "logps/rejected": -126.41548919677734,
60
+ "loss": 0.6893,
61
+ "rewards/accuracies": 0.5687500238418579,
62
+ "rewards/chosen": 0.14591369032859802,
63
+ "rewards/margins": 0.008296089246869087,
64
+ "rewards/rejected": 0.13761760294437408,
65
+ "step": 30
66
+ },
67
+ {
68
+ "epoch": 0.24,
69
+ "learning_rate": 4.707922373336524e-06,
70
+ "logits/chosen": -2.6890153884887695,
71
+ "logits/rejected": -2.6654117107391357,
72
+ "logps/chosen": -132.10757446289062,
73
+ "logps/rejected": -136.89508056640625,
74
+ "loss": 0.6877,
75
+ "rewards/accuracies": 0.5531250238418579,
76
+ "rewards/chosen": 0.09638135135173798,
77
+ "rewards/margins": 0.012408262118697166,
78
+ "rewards/rejected": 0.08397307246923447,
79
+ "step": 40
80
+ },
81
+ {
82
+ "epoch": 0.3,
83
+ "learning_rate": 4.411315662967732e-06,
84
+ "logits/chosen": -2.6580519676208496,
85
+ "logits/rejected": -2.691502809524536,
86
+ "logps/chosen": -122.78013610839844,
87
+ "logps/rejected": -132.18321228027344,
88
+ "loss": 0.6865,
89
+ "rewards/accuracies": 0.515625,
90
+ "rewards/chosen": 0.1647396981716156,
91
+ "rewards/margins": 0.004126954823732376,
92
+ "rewards/rejected": 0.16061276197433472,
93
+ "step": 50
94
+ },
95
+ {
96
+ "epoch": 0.36,
97
+ "learning_rate": 4.028910905897229e-06,
98
+ "logits/chosen": -2.655439615249634,
99
+ "logits/rejected": -2.6334452629089355,
100
+ "logps/chosen": -124.12255859375,
101
+ "logps/rejected": -132.15664672851562,
102
+ "loss": 0.6837,
103
+ "rewards/accuracies": 0.5625,
104
+ "rewards/chosen": 0.14119209349155426,
105
+ "rewards/margins": 0.026216480880975723,
106
+ "rewards/rejected": 0.11497560888528824,
107
+ "step": 60
108
+ },
109
+ {
110
+ "epoch": 0.42,
111
+ "learning_rate": 3.577874068920446e-06,
112
+ "logits/chosen": -2.6378352642059326,
113
+ "logits/rejected": -2.601242780685425,
114
+ "logps/chosen": -144.02236938476562,
115
+ "logps/rejected": -147.04486083984375,
116
+ "loss": 0.6856,
117
+ "rewards/accuracies": 0.590624988079071,
118
+ "rewards/chosen": -0.013076819479465485,
119
+ "rewards/margins": 0.030333761125802994,
120
+ "rewards/rejected": -0.04341058060526848,
121
+ "step": 70
122
+ },
123
+ {
124
+ "epoch": 0.48,
125
+ "learning_rate": 3.0784519801008546e-06,
126
+ "logits/chosen": -2.613574504852295,
127
+ "logits/rejected": -2.547489643096924,
128
+ "logps/chosen": -128.6609649658203,
129
+ "logps/rejected": -128.91639709472656,
130
+ "loss": 0.6795,
131
+ "rewards/accuracies": 0.5531250238418579,
132
+ "rewards/chosen": 0.1631721556186676,
133
+ "rewards/margins": 0.03735139220952988,
134
+ "rewards/rejected": 0.12582075595855713,
135
+ "step": 80
136
+ },
137
+ {
138
+ "epoch": 0.55,
139
+ "learning_rate": 2.553063458334059e-06,
140
+ "logits/chosen": -2.6456406116485596,
141
+ "logits/rejected": -2.6266322135925293,
142
+ "logps/chosen": -124.13682556152344,
143
+ "logps/rejected": -135.78231811523438,
144
+ "loss": 0.6817,
145
+ "rewards/accuracies": 0.5718749761581421,
146
+ "rewards/chosen": 0.15800026059150696,
147
+ "rewards/margins": 0.03171014413237572,
148
+ "rewards/rejected": 0.12629011273384094,
149
+ "step": 90
150
+ },
151
+ {
152
+ "epoch": 0.61,
153
+ "learning_rate": 2.025292943281429e-06,
154
+ "logits/chosen": -2.659860134124756,
155
+ "logits/rejected": -2.62748122215271,
156
+ "logps/chosen": -129.3069305419922,
157
+ "logps/rejected": -131.54519653320312,
158
+ "loss": 0.6816,
159
+ "rewards/accuracies": 0.590624988079071,
160
+ "rewards/chosen": 0.12287310510873795,
161
+ "rewards/margins": 0.0398445650935173,
162
+ "rewards/rejected": 0.08302854001522064,
163
+ "step": 100
164
+ },
165
+ {
166
+ "epoch": 0.61,
167
+ "eval_logits/chosen": -2.6012067794799805,
168
+ "eval_logits/rejected": -2.5080597400665283,
169
+ "eval_logps/chosen": -295.2945556640625,
170
+ "eval_logps/rejected": -276.2926330566406,
171
+ "eval_loss": 0.6669759750366211,
172
+ "eval_rewards/accuracies": 0.6259999871253967,
173
+ "eval_rewards/chosen": -0.0072901868261396885,
174
+ "eval_rewards/margins": 0.05662847310304642,
175
+ "eval_rewards/rejected": -0.06391866505146027,
176
+ "eval_runtime": 383.8552,
177
+ "eval_samples_per_second": 5.21,
178
+ "eval_steps_per_second": 0.651,
179
+ "step": 100
180
+ },
181
+ {
182
+ "epoch": 0.67,
183
+ "learning_rate": 1.5188318011445907e-06,
184
+ "logits/chosen": -2.6604905128479004,
185
+ "logits/rejected": -2.6317429542541504,
186
+ "logps/chosen": -140.4075927734375,
187
+ "logps/rejected": -148.9583282470703,
188
+ "loss": 0.674,
189
+ "rewards/accuracies": 0.609375,
190
+ "rewards/chosen": 0.03068632446229458,
191
+ "rewards/margins": 0.04105384275317192,
192
+ "rewards/rejected": -0.01036751363426447,
193
+ "step": 110
194
+ },
195
+ {
196
+ "epoch": 0.73,
197
+ "learning_rate": 1.0564148305586296e-06,
198
+ "logits/chosen": -2.6386797428131104,
199
+ "logits/rejected": -2.65537428855896,
200
+ "logps/chosen": -133.14720153808594,
201
+ "logps/rejected": -141.28182983398438,
202
+ "loss": 0.6802,
203
+ "rewards/accuracies": 0.578125,
204
+ "rewards/chosen": 0.07068979740142822,
205
+ "rewards/margins": 0.035736724734306335,
206
+ "rewards/rejected": 0.034953076392412186,
207
+ "step": 120
208
+ },
209
+ {
210
+ "epoch": 0.79,
211
+ "learning_rate": 6.587997083462197e-07,
212
+ "logits/chosen": -2.6442322731018066,
213
+ "logits/rejected": -2.62335467338562,
214
+ "logps/chosen": -145.12142944335938,
215
+ "logps/rejected": -146.34092712402344,
216
+ "loss": 0.6763,
217
+ "rewards/accuracies": 0.581250011920929,
218
+ "rewards/chosen": 0.05981719493865967,
219
+ "rewards/margins": 0.03406576067209244,
220
+ "rewards/rejected": 0.02575143240392208,
221
+ "step": 130
222
+ },
223
+ {
224
+ "epoch": 0.85,
225
+ "learning_rate": 3.438351873250492e-07,
226
+ "logits/chosen": -2.591649293899536,
227
+ "logits/rejected": -2.575448513031006,
228
+ "logps/chosen": -136.5642852783203,
229
+ "logps/rejected": -135.15036010742188,
230
+ "loss": 0.6799,
231
+ "rewards/accuracies": 0.5625,
232
+ "rewards/chosen": 0.02418154664337635,
233
+ "rewards/margins": 0.014547958970069885,
234
+ "rewards/rejected": 0.009633589535951614,
235
+ "step": 140
236
+ },
237
+ {
238
+ "epoch": 0.91,
239
+ "learning_rate": 1.2565987432367032e-07,
240
+ "logits/chosen": -2.628605842590332,
241
+ "logits/rejected": -2.6137516498565674,
242
+ "logps/chosen": -131.29632568359375,
243
+ "logps/rejected": -132.41908264160156,
244
+ "loss": 0.681,
245
+ "rewards/accuracies": 0.590624988079071,
246
+ "rewards/chosen": 0.05179730802774429,
247
+ "rewards/margins": 0.021983899176120758,
248
+ "rewards/rejected": 0.029813403263688087,
249
+ "step": 150
250
+ },
251
+ {
252
+ "epoch": 0.97,
253
+ "learning_rate": 1.4067554877743861e-08,
254
+ "logits/chosen": -2.5783798694610596,
255
+ "logits/rejected": -2.5735974311828613,
256
+ "logps/chosen": -126.33128356933594,
257
+ "logps/rejected": -133.07003784179688,
258
+ "loss": 0.6789,
259
+ "rewards/accuracies": 0.5625,
260
+ "rewards/chosen": 0.06782820075750351,
261
+ "rewards/margins": 0.04517916589975357,
262
+ "rewards/rejected": 0.022649036720395088,
263
+ "step": 160
264
+ },
265
+ {
266
+ "epoch": 1.0,
267
+ "step": 165,
268
+ "total_flos": 0.0,
269
+ "train_loss": 0.6834371660694931,
270
+ "train_runtime": 6903.7645,
271
+ "train_samples_per_second": 3.061,
272
+ "train_steps_per_second": 0.024
273
+ }
274
+ ],
275
+ "logging_steps": 10,
276
+ "max_steps": 165,
277
+ "num_input_tokens_seen": 0,
278
+ "num_train_epochs": 1,
279
+ "save_steps": 100,
280
+ "total_flos": 0.0,
281
+ "train_batch_size": 2,
282
+ "trial_name": null,
283
+ "trial_params": null
284
+ }