YYYYYYibo commited on
Commit
32f7d5b
1 Parent(s): c2bfbdc

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 +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_with_golden_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_ave_pi_with_golden_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.6285
22
+ - Rewards/chosen: -0.1151
23
+ - Rewards/rejected: -0.2881
24
+ - Rewards/accuracies: 0.6880
25
+ - Rewards/margins: 0.1730
26
+ - Logps/rejected: -286.3282
27
+ - Logps/chosen: -295.5510
28
+ - Logits/rejected: -2.5398
29
+ - Logits/chosen: -2.6242
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.6297 | 0.64 | 100 | 0.6285 | -0.1151 | -0.2881 | 0.6880 | 0.1730 | -286.3282 | -295.5510 | -2.5398 | -2.6242 |
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.6447198520868253,
4
+ "train_runtime": 7178.8885,
5
+ "train_samples": 20000,
6
+ "train_samples_per_second": 2.786,
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.6447198520868253,
4
+ "train_runtime": 7178.8885,
5
+ "train_samples": 20000,
6
+ "train_samples_per_second": 2.786,
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.89351749420166,
15
+ "logits/rejected": -2.7752203941345215,
16
+ "logps/chosen": -345.7324523925781,
17
+ "logps/rejected": -319.42047119140625,
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.8027219772338867,
29
+ "logits/rejected": -2.7471206188201904,
30
+ "logps/chosen": -255.04139709472656,
31
+ "logps/rejected": -252.81085205078125,
32
+ "loss": 0.6928,
33
+ "rewards/accuracies": 0.46875,
34
+ "rewards/chosen": 0.00026138738030567765,
35
+ "rewards/margins": 0.00045877473894506693,
36
+ "rewards/rejected": -0.00019738740229513496,
37
+ "step": 10
38
+ },
39
+ {
40
+ "epoch": 0.13,
41
+ "learning_rate": 4.989935734988098e-06,
42
+ "logits/chosen": -2.771097183227539,
43
+ "logits/rejected": -2.7165303230285645,
44
+ "logps/chosen": -277.1825256347656,
45
+ "logps/rejected": -257.04290771484375,
46
+ "loss": 0.6888,
47
+ "rewards/accuracies": 0.643750011920929,
48
+ "rewards/chosen": 0.012711542658507824,
49
+ "rewards/margins": 0.009278710931539536,
50
+ "rewards/rejected": 0.003432832658290863,
51
+ "step": 20
52
+ },
53
+ {
54
+ "epoch": 0.19,
55
+ "learning_rate": 4.8776412907378845e-06,
56
+ "logits/chosen": -2.721252918243408,
57
+ "logits/rejected": -2.657611846923828,
58
+ "logps/chosen": -274.41973876953125,
59
+ "logps/rejected": -246.46884155273438,
60
+ "loss": 0.6795,
61
+ "rewards/accuracies": 0.699999988079071,
62
+ "rewards/chosen": 0.033503077924251556,
63
+ "rewards/margins": 0.027159536257386208,
64
+ "rewards/rejected": 0.006343540735542774,
65
+ "step": 30
66
+ },
67
+ {
68
+ "epoch": 0.26,
69
+ "learning_rate": 4.646121984004666e-06,
70
+ "logits/chosen": -2.7624173164367676,
71
+ "logits/rejected": -2.654289960861206,
72
+ "logps/chosen": -268.4293212890625,
73
+ "logps/rejected": -251.5210418701172,
74
+ "loss": 0.6695,
75
+ "rewards/accuracies": 0.7124999761581421,
76
+ "rewards/chosen": 0.03509635850787163,
77
+ "rewards/margins": 0.057297080755233765,
78
+ "rewards/rejected": -0.022200724110007286,
79
+ "step": 40
80
+ },
81
+ {
82
+ "epoch": 0.32,
83
+ "learning_rate": 4.3069871595684795e-06,
84
+ "logits/chosen": -2.6763150691986084,
85
+ "logits/rejected": -2.6229124069213867,
86
+ "logps/chosen": -274.2480163574219,
87
+ "logps/rejected": -281.6312561035156,
88
+ "loss": 0.6605,
89
+ "rewards/accuracies": 0.6656249761581421,
90
+ "rewards/chosen": -0.0026254388503730297,
91
+ "rewards/margins": 0.07845916599035263,
92
+ "rewards/rejected": -0.08108460903167725,
93
+ "step": 50
94
+ },
95
+ {
96
+ "epoch": 0.38,
97
+ "learning_rate": 3.8772424536302565e-06,
98
+ "logits/chosen": -2.6876912117004395,
99
+ "logits/rejected": -2.615192413330078,
100
+ "logps/chosen": -287.15826416015625,
101
+ "logps/rejected": -274.56610107421875,
102
+ "loss": 0.6506,
103
+ "rewards/accuracies": 0.7124999761581421,
104
+ "rewards/chosen": -0.033494334667921066,
105
+ "rewards/margins": 0.11426861584186554,
106
+ "rewards/rejected": -0.1477629393339157,
107
+ "step": 60
108
+ },
109
+ {
110
+ "epoch": 0.45,
111
+ "learning_rate": 3.3784370602033572e-06,
112
+ "logits/chosen": -2.626436471939087,
113
+ "logits/rejected": -2.5704116821289062,
114
+ "logps/chosen": -304.19744873046875,
115
+ "logps/rejected": -293.0374450683594,
116
+ "loss": 0.6431,
117
+ "rewards/accuracies": 0.721875011920929,
118
+ "rewards/chosen": -0.03456612303853035,
119
+ "rewards/margins": 0.1283847689628601,
120
+ "rewards/rejected": -0.16295088827610016,
121
+ "step": 70
122
+ },
123
+ {
124
+ "epoch": 0.51,
125
+ "learning_rate": 2.835583164544139e-06,
126
+ "logits/chosen": -2.6321258544921875,
127
+ "logits/rejected": -2.5355112552642822,
128
+ "logps/chosen": -302.4496765136719,
129
+ "logps/rejected": -276.21484375,
130
+ "loss": 0.6341,
131
+ "rewards/accuracies": 0.6875,
132
+ "rewards/chosen": -0.04431954026222229,
133
+ "rewards/margins": 0.14259546995162964,
134
+ "rewards/rejected": -0.18691501021385193,
135
+ "step": 80
136
+ },
137
+ {
138
+ "epoch": 0.58,
139
+ "learning_rate": 2.2759017277414165e-06,
140
+ "logits/chosen": -2.5837318897247314,
141
+ "logits/rejected": -2.5942935943603516,
142
+ "logps/chosen": -292.6695861816406,
143
+ "logps/rejected": -311.11724853515625,
144
+ "loss": 0.625,
145
+ "rewards/accuracies": 0.699999988079071,
146
+ "rewards/chosen": -0.09852292388677597,
147
+ "rewards/margins": 0.17917943000793457,
148
+ "rewards/rejected": -0.27770236134529114,
149
+ "step": 90
150
+ },
151
+ {
152
+ "epoch": 0.64,
153
+ "learning_rate": 1.7274575140626318e-06,
154
+ "logits/chosen": -2.6302809715270996,
155
+ "logits/rejected": -2.5902750492095947,
156
+ "logps/chosen": -290.39288330078125,
157
+ "logps/rejected": -273.9955749511719,
158
+ "loss": 0.6297,
159
+ "rewards/accuracies": 0.643750011920929,
160
+ "rewards/chosen": -0.12990322709083557,
161
+ "rewards/margins": 0.16275252401828766,
162
+ "rewards/rejected": -0.2926557660102844,
163
+ "step": 100
164
+ },
165
+ {
166
+ "epoch": 0.64,
167
+ "eval_logits/chosen": -2.6242196559906006,
168
+ "eval_logits/rejected": -2.5397887229919434,
169
+ "eval_logps/chosen": -295.551025390625,
170
+ "eval_logps/rejected": -286.3282165527344,
171
+ "eval_loss": 0.6285393834114075,
172
+ "eval_rewards/accuracies": 0.6880000233650208,
173
+ "eval_rewards/chosen": -0.11511250585317612,
174
+ "eval_rewards/margins": 0.17301124334335327,
175
+ "eval_rewards/rejected": -0.2881237268447876,
176
+ "eval_runtime": 383.7826,
177
+ "eval_samples_per_second": 5.211,
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.632079601287842,
185
+ "logits/rejected": -2.526585817337036,
186
+ "logps/chosen": -289.1620178222656,
187
+ "logps/rejected": -275.42742919921875,
188
+ "loss": 0.6179,
189
+ "rewards/accuracies": 0.6937500238418579,
190
+ "rewards/chosen": -0.06891096383333206,
191
+ "rewards/margins": 0.20267972350120544,
192
+ "rewards/rejected": -0.2715906798839569,
193
+ "step": 110
194
+ },
195
+ {
196
+ "epoch": 0.77,
197
+ "learning_rate": 7.723433775328385e-07,
198
+ "logits/chosen": -2.5513744354248047,
199
+ "logits/rejected": -2.548856496810913,
200
+ "logps/chosen": -273.984619140625,
201
+ "logps/rejected": -288.4661865234375,
202
+ "loss": 0.6253,
203
+ "rewards/accuracies": 0.675000011920929,
204
+ "rewards/chosen": -0.10123135894536972,
205
+ "rewards/margins": 0.16150596737861633,
206
+ "rewards/rejected": -0.26273733377456665,
207
+ "step": 120
208
+ },
209
+ {
210
+ "epoch": 0.83,
211
+ "learning_rate": 4.1356686569674344e-07,
212
+ "logits/chosen": -2.609344244003296,
213
+ "logits/rejected": -2.545771837234497,
214
+ "logps/chosen": -291.45574951171875,
215
+ "logps/rejected": -301.5300598144531,
216
+ "loss": 0.6234,
217
+ "rewards/accuracies": 0.690625011920929,
218
+ "rewards/chosen": -0.1096922755241394,
219
+ "rewards/margins": 0.2059115469455719,
220
+ "rewards/rejected": -0.3156037926673889,
221
+ "step": 130
222
+ },
223
+ {
224
+ "epoch": 0.9,
225
+ "learning_rate": 1.59412823400657e-07,
226
+ "logits/chosen": -2.6051926612854004,
227
+ "logits/rejected": -2.4772098064422607,
228
+ "logps/chosen": -313.3153991699219,
229
+ "logps/rejected": -287.3096923828125,
230
+ "loss": 0.6144,
231
+ "rewards/accuracies": 0.6937500238418579,
232
+ "rewards/chosen": -0.09460710734128952,
233
+ "rewards/margins": 0.21818473935127258,
234
+ "rewards/rejected": -0.3127918243408203,
235
+ "step": 140
236
+ },
237
+ {
238
+ "epoch": 0.96,
239
+ "learning_rate": 2.262559558016325e-08,
240
+ "logits/chosen": -2.5833957195281982,
241
+ "logits/rejected": -2.4759347438812256,
242
+ "logps/chosen": -300.4779968261719,
243
+ "logps/rejected": -280.8038024902344,
244
+ "loss": 0.6195,
245
+ "rewards/accuracies": 0.746874988079071,
246
+ "rewards/chosen": -0.11339084059000015,
247
+ "rewards/margins": 0.22617027163505554,
248
+ "rewards/rejected": -0.3395610749721527,
249
+ "step": 150
250
+ },
251
+ {
252
+ "epoch": 1.0,
253
+ "step": 156,
254
+ "total_flos": 0.0,
255
+ "train_loss": 0.6447198520868253,
256
+ "train_runtime": 7178.8885,
257
+ "train_samples_per_second": 2.786,
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
+ }