YYYYYYibo commited on
Commit
5ffbfd9
1 Parent(s): eee5cb5

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_dpo_rank4_on_vanilla_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_dpo_rank4_on_vanilla_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.6884
22
+ - Rewards/chosen: -0.1839
23
+ - Rewards/rejected: -0.2354
24
+ - Rewards/accuracies: 0.5440
25
+ - Rewards/margins: 0.0514
26
+ - Logps/rejected: -311.2962
27
+ - Logps/chosen: -324.9433
28
+ - Logits/rejected: -2.0325
29
+ - Logits/chosen: -2.1221
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.5749 | 0.61 | 100 | 0.6884 | -0.1839 | -0.2354 | 0.5440 | 0.0514 | -311.2962 | -324.9433 | -2.0325 | -2.1221 |
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.5940336465835572,
4
+ "train_runtime": 8165.5058,
5
+ "train_samples": 21135,
6
+ "train_samples_per_second": 2.588,
7
+ "train_steps_per_second": 0.02
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 0.5940336465835572,
4
+ "train_runtime": 8165.5058,
5
+ "train_samples": 21135,
6
+ "train_samples_per_second": 2.588,
7
+ "train_steps_per_second": 0.02
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.4571897983551025,
15
+ "logits/rejected": -2.364729166030884,
16
+ "logps/chosen": -393.0217590332031,
17
+ "logps/rejected": -392.042236328125,
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.4598512649536133,
29
+ "logits/rejected": -2.5237348079681396,
30
+ "logps/chosen": -319.2628479003906,
31
+ "logps/rejected": -363.0235290527344,
32
+ "loss": 0.6922,
33
+ "rewards/accuracies": 0.4513888955116272,
34
+ "rewards/chosen": -0.005169111769646406,
35
+ "rewards/margins": 0.0021531255915760994,
36
+ "rewards/rejected": -0.007322237826883793,
37
+ "step": 10
38
+ },
39
+ {
40
+ "epoch": 0.12,
41
+ "learning_rate": 4.994932636402032e-06,
42
+ "logits/chosen": -2.4682602882385254,
43
+ "logits/rejected": -2.506861925125122,
44
+ "logps/chosen": -310.16632080078125,
45
+ "logps/rejected": -378.22735595703125,
46
+ "loss": 0.6703,
47
+ "rewards/accuracies": 0.6812499761581421,
48
+ "rewards/chosen": 0.03243725374341011,
49
+ "rewards/margins": 0.057667654007673264,
50
+ "rewards/rejected": -0.02523040398955345,
51
+ "step": 20
52
+ },
53
+ {
54
+ "epoch": 0.18,
55
+ "learning_rate": 4.905416503522124e-06,
56
+ "logits/chosen": -2.458878993988037,
57
+ "logits/rejected": -2.5221245288848877,
58
+ "logps/chosen": -329.98956298828125,
59
+ "logps/rejected": -392.0107421875,
60
+ "loss": 0.6549,
61
+ "rewards/accuracies": 0.6468750238418579,
62
+ "rewards/chosen": -0.022809982299804688,
63
+ "rewards/margins": 0.09913644939661026,
64
+ "rewards/rejected": -0.12194643169641495,
65
+ "step": 30
66
+ },
67
+ {
68
+ "epoch": 0.24,
69
+ "learning_rate": 4.707922373336524e-06,
70
+ "logits/chosen": -2.3397133350372314,
71
+ "logits/rejected": -2.440927505493164,
72
+ "logps/chosen": -318.717041015625,
73
+ "logps/rejected": -400.6865539550781,
74
+ "loss": 0.6365,
75
+ "rewards/accuracies": 0.690625011920929,
76
+ "rewards/chosen": -0.11206980794668198,
77
+ "rewards/margins": 0.15860508382320404,
78
+ "rewards/rejected": -0.2706748843193054,
79
+ "step": 40
80
+ },
81
+ {
82
+ "epoch": 0.3,
83
+ "learning_rate": 4.411315662967732e-06,
84
+ "logits/chosen": -2.3495843410491943,
85
+ "logits/rejected": -2.3737149238586426,
86
+ "logps/chosen": -344.6326599121094,
87
+ "logps/rejected": -397.68157958984375,
88
+ "loss": 0.627,
89
+ "rewards/accuracies": 0.6656249761581421,
90
+ "rewards/chosen": -0.17710785567760468,
91
+ "rewards/margins": 0.15342721343040466,
92
+ "rewards/rejected": -0.33053505420684814,
93
+ "step": 50
94
+ },
95
+ {
96
+ "epoch": 0.36,
97
+ "learning_rate": 4.028910905897229e-06,
98
+ "logits/chosen": -2.30446720123291,
99
+ "logits/rejected": -2.3595499992370605,
100
+ "logps/chosen": -353.98602294921875,
101
+ "logps/rejected": -411.59515380859375,
102
+ "loss": 0.6064,
103
+ "rewards/accuracies": 0.715624988079071,
104
+ "rewards/chosen": -0.18608322739601135,
105
+ "rewards/margins": 0.23026804625988007,
106
+ "rewards/rejected": -0.4163512587547302,
107
+ "step": 60
108
+ },
109
+ {
110
+ "epoch": 0.42,
111
+ "learning_rate": 3.577874068920446e-06,
112
+ "logits/chosen": -2.239515781402588,
113
+ "logits/rejected": -2.3043527603149414,
114
+ "logps/chosen": -348.39581298828125,
115
+ "logps/rejected": -414.6133728027344,
116
+ "loss": 0.5915,
117
+ "rewards/accuracies": 0.734375,
118
+ "rewards/chosen": -0.22679059207439423,
119
+ "rewards/margins": 0.23025627434253693,
120
+ "rewards/rejected": -0.45704689621925354,
121
+ "step": 70
122
+ },
123
+ {
124
+ "epoch": 0.48,
125
+ "learning_rate": 3.0784519801008546e-06,
126
+ "logits/chosen": -2.16733980178833,
127
+ "logits/rejected": -2.2091336250305176,
128
+ "logps/chosen": -339.76129150390625,
129
+ "logps/rejected": -419.670654296875,
130
+ "loss": 0.595,
131
+ "rewards/accuracies": 0.715624988079071,
132
+ "rewards/chosen": -0.2677019238471985,
133
+ "rewards/margins": 0.26828354597091675,
134
+ "rewards/rejected": -0.53598552942276,
135
+ "step": 80
136
+ },
137
+ {
138
+ "epoch": 0.55,
139
+ "learning_rate": 2.553063458334059e-06,
140
+ "logits/chosen": -2.177290439605713,
141
+ "logits/rejected": -2.2133171558380127,
142
+ "logps/chosen": -337.5870666503906,
143
+ "logps/rejected": -410.07464599609375,
144
+ "loss": 0.5779,
145
+ "rewards/accuracies": 0.734375,
146
+ "rewards/chosen": -0.21148499846458435,
147
+ "rewards/margins": 0.3073815107345581,
148
+ "rewards/rejected": -0.5188664793968201,
149
+ "step": 90
150
+ },
151
+ {
152
+ "epoch": 0.61,
153
+ "learning_rate": 2.025292943281429e-06,
154
+ "logits/chosen": -2.137645721435547,
155
+ "logits/rejected": -2.2139902114868164,
156
+ "logps/chosen": -362.3526611328125,
157
+ "logps/rejected": -451.25543212890625,
158
+ "loss": 0.5749,
159
+ "rewards/accuracies": 0.734375,
160
+ "rewards/chosen": -0.38997265696525574,
161
+ "rewards/margins": 0.3522176146507263,
162
+ "rewards/rejected": -0.7421903610229492,
163
+ "step": 100
164
+ },
165
+ {
166
+ "epoch": 0.61,
167
+ "eval_logits/chosen": -2.1221249103546143,
168
+ "eval_logits/rejected": -2.0325379371643066,
169
+ "eval_logps/chosen": -324.94329833984375,
170
+ "eval_logps/rejected": -311.2961730957031,
171
+ "eval_loss": 0.688376247882843,
172
+ "eval_rewards/accuracies": 0.5440000295639038,
173
+ "eval_rewards/chosen": -0.18393579125404358,
174
+ "eval_rewards/margins": 0.05143474042415619,
175
+ "eval_rewards/rejected": -0.23537051677703857,
176
+ "eval_runtime": 384.2989,
177
+ "eval_samples_per_second": 5.204,
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.0991530418395996,
185
+ "logits/rejected": -2.1866981983184814,
186
+ "logps/chosen": -343.84478759765625,
187
+ "logps/rejected": -443.0243225097656,
188
+ "loss": 0.5695,
189
+ "rewards/accuracies": 0.753125011920929,
190
+ "rewards/chosen": -0.24366803467273712,
191
+ "rewards/margins": 0.37467828392982483,
192
+ "rewards/rejected": -0.6183463335037231,
193
+ "step": 110
194
+ },
195
+ {
196
+ "epoch": 0.73,
197
+ "learning_rate": 1.0564148305586296e-06,
198
+ "logits/chosen": -2.12058424949646,
199
+ "logits/rejected": -2.183859348297119,
200
+ "logps/chosen": -358.75238037109375,
201
+ "logps/rejected": -454.56982421875,
202
+ "loss": 0.5503,
203
+ "rewards/accuracies": 0.796875,
204
+ "rewards/chosen": -0.3431812822818756,
205
+ "rewards/margins": 0.4134922921657562,
206
+ "rewards/rejected": -0.7566735148429871,
207
+ "step": 120
208
+ },
209
+ {
210
+ "epoch": 0.79,
211
+ "learning_rate": 6.587997083462197e-07,
212
+ "logits/chosen": -2.1187376976013184,
213
+ "logits/rejected": -2.1680569648742676,
214
+ "logps/chosen": -377.47918701171875,
215
+ "logps/rejected": -470.26470947265625,
216
+ "loss": 0.5556,
217
+ "rewards/accuracies": 0.7437499761581421,
218
+ "rewards/chosen": -0.4671626091003418,
219
+ "rewards/margins": 0.353724867105484,
220
+ "rewards/rejected": -0.8208874464035034,
221
+ "step": 130
222
+ },
223
+ {
224
+ "epoch": 0.85,
225
+ "learning_rate": 3.438351873250492e-07,
226
+ "logits/chosen": -2.0515809059143066,
227
+ "logits/rejected": -2.1326162815093994,
228
+ "logps/chosen": -359.46771240234375,
229
+ "logps/rejected": -465.7957458496094,
230
+ "loss": 0.5475,
231
+ "rewards/accuracies": 0.7906249761581421,
232
+ "rewards/chosen": -0.36117881536483765,
233
+ "rewards/margins": 0.44570302963256836,
234
+ "rewards/rejected": -0.8068817853927612,
235
+ "step": 140
236
+ },
237
+ {
238
+ "epoch": 0.91,
239
+ "learning_rate": 1.2565987432367032e-07,
240
+ "logits/chosen": -2.070026159286499,
241
+ "logits/rejected": -2.1689717769622803,
242
+ "logps/chosen": -349.19305419921875,
243
+ "logps/rejected": -467.4447326660156,
244
+ "loss": 0.541,
245
+ "rewards/accuracies": 0.7875000238418579,
246
+ "rewards/chosen": -0.32100656628608704,
247
+ "rewards/margins": 0.48250946402549744,
248
+ "rewards/rejected": -0.8035160303115845,
249
+ "step": 150
250
+ },
251
+ {
252
+ "epoch": 0.97,
253
+ "learning_rate": 1.4067554877743861e-08,
254
+ "logits/chosen": -2.0285654067993164,
255
+ "logits/rejected": -2.1381633281707764,
256
+ "logps/chosen": -329.7977294921875,
257
+ "logps/rejected": -446.18780517578125,
258
+ "loss": 0.5574,
259
+ "rewards/accuracies": 0.778124988079071,
260
+ "rewards/chosen": -0.29442131519317627,
261
+ "rewards/margins": 0.48129719495773315,
262
+ "rewards/rejected": -0.7757185697555542,
263
+ "step": 160
264
+ },
265
+ {
266
+ "epoch": 1.0,
267
+ "step": 165,
268
+ "total_flos": 0.0,
269
+ "train_loss": 0.5940336465835572,
270
+ "train_runtime": 8165.5058,
271
+ "train_samples_per_second": 2.588,
272
+ "train_steps_per_second": 0.02
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
+ }