YYYYYYibo commited on
Commit
ba57b2e
1 Parent(s): b84f3af

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
+ base_model: alignment-handbook/zephyr-7b-sft-full
3
+ library_name: peft
4
+ license: apache-2.0
5
+ tags:
6
+ - trl
7
+ - dpo
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: imp_sam_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
+ # imp_sam_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.6669
22
+ - Rewards/chosen: -0.0263
23
+ - Rewards/rejected: -0.0862
24
+ - Rewards/accuracies: 0.6440
25
+ - Rewards/margins: 0.0600
26
+ - Logps/rejected: -269.8819
27
+ - Logps/chosen: -289.5703
28
+ - Logits/rejected: -2.5401
29
+ - Logits/chosen: -2.6276
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.6781 | 0.65 | 100 | 0.6669 | -0.0263 | -0.0862 | 0.6440 | 0.0600 | -269.8819 | -289.5703 | -2.5401 | -2.6276 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - PEFT 0.7.1
72
+ - Transformers 4.36.2
73
+ - Pytorch 2.1.2+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.6834432619069916,
4
+ "train_runtime": 6282.2252,
5
+ "train_samples": 19635,
6
+ "train_samples_per_second": 3.125,
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.6834432619069916,
4
+ "train_runtime": 6282.2252,
5
+ "train_samples": 19635,
6
+ "train_samples_per_second": 3.125,
7
+ "train_steps_per_second": 0.024
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9971486761710794,
5
+ "eval_steps": 100,
6
+ "global_step": 153,
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.8404829502105713,
15
+ "logits/rejected": -2.7363457679748535,
16
+ "logps/chosen": -137.61058044433594,
17
+ "logps/rejected": -117.74949645996094,
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.07,
27
+ "learning_rate": 3.125e-06,
28
+ "logits/chosen": -2.7154855728149414,
29
+ "logits/rejected": -2.6928329467773438,
30
+ "logps/chosen": -123.34764099121094,
31
+ "logps/rejected": -126.27674865722656,
32
+ "loss": 0.693,
33
+ "rewards/accuracies": 0.4895833432674408,
34
+ "rewards/chosen": 0.0009532907279208302,
35
+ "rewards/margins": 0.00024687068071216345,
36
+ "rewards/rejected": 0.0007064202218316495,
37
+ "step": 10
38
+ },
39
+ {
40
+ "epoch": 0.13,
41
+ "learning_rate": 4.989490450759331e-06,
42
+ "logits/chosen": -2.775507688522339,
43
+ "logits/rejected": -2.7605175971984863,
44
+ "logps/chosen": -131.35130310058594,
45
+ "logps/rejected": -129.89755249023438,
46
+ "loss": 0.6927,
47
+ "rewards/accuracies": 0.574999988079071,
48
+ "rewards/chosen": 0.012469060719013214,
49
+ "rewards/margins": 0.00148476823233068,
50
+ "rewards/rejected": 0.010984293185174465,
51
+ "step": 20
52
+ },
53
+ {
54
+ "epoch": 0.2,
55
+ "learning_rate": 4.872270441827174e-06,
56
+ "logits/chosen": -2.7530579566955566,
57
+ "logits/rejected": -2.703279733657837,
58
+ "logps/chosen": -124.97566223144531,
59
+ "logps/rejected": -123.0599136352539,
60
+ "loss": 0.6914,
61
+ "rewards/accuracies": 0.578125,
62
+ "rewards/chosen": 0.04268375411629677,
63
+ "rewards/margins": 0.004245065152645111,
64
+ "rewards/rejected": 0.03843868523836136,
65
+ "step": 30
66
+ },
67
+ {
68
+ "epoch": 0.26,
69
+ "learning_rate": 4.630851211353007e-06,
70
+ "logits/chosen": -2.7293448448181152,
71
+ "logits/rejected": -2.70413875579834,
72
+ "logps/chosen": -121.0544204711914,
73
+ "logps/rejected": -125.32257080078125,
74
+ "loss": 0.6899,
75
+ "rewards/accuracies": 0.606249988079071,
76
+ "rewards/chosen": 0.06691654026508331,
77
+ "rewards/margins": 0.008759822696447372,
78
+ "rewards/rejected": 0.05815672129392624,
79
+ "step": 40
80
+ },
81
+ {
82
+ "epoch": 0.33,
83
+ "learning_rate": 4.277872161641682e-06,
84
+ "logits/chosen": -2.7005789279937744,
85
+ "logits/rejected": -2.6852593421936035,
86
+ "logps/chosen": -121.9286880493164,
87
+ "logps/rejected": -122.9526596069336,
88
+ "loss": 0.6889,
89
+ "rewards/accuracies": 0.59375,
90
+ "rewards/chosen": 0.08492810279130936,
91
+ "rewards/margins": 0.008367636241018772,
92
+ "rewards/rejected": 0.07656045258045197,
93
+ "step": 50
94
+ },
95
+ {
96
+ "epoch": 0.39,
97
+ "learning_rate": 3.831813362428005e-06,
98
+ "logits/chosen": -2.6874237060546875,
99
+ "logits/rejected": -2.6661763191223145,
100
+ "logps/chosen": -127.428955078125,
101
+ "logps/rejected": -120.95658111572266,
102
+ "loss": 0.6868,
103
+ "rewards/accuracies": 0.5718749761581421,
104
+ "rewards/chosen": 0.09333746135234833,
105
+ "rewards/margins": 0.018141191452741623,
106
+ "rewards/rejected": 0.075196273624897,
107
+ "step": 60
108
+ },
109
+ {
110
+ "epoch": 0.46,
111
+ "learning_rate": 3.3160280345958614e-06,
112
+ "logits/chosen": -2.631645679473877,
113
+ "logits/rejected": -2.592644214630127,
114
+ "logps/chosen": -116.2786636352539,
115
+ "logps/rejected": -119.904541015625,
116
+ "loss": 0.6833,
117
+ "rewards/accuracies": 0.621874988079071,
118
+ "rewards/chosen": 0.068717822432518,
119
+ "rewards/margins": 0.020535219460725784,
120
+ "rewards/rejected": 0.04818259924650192,
121
+ "step": 70
122
+ },
123
+ {
124
+ "epoch": 0.52,
125
+ "learning_rate": 2.757519902117886e-06,
126
+ "logits/chosen": -2.6794140338897705,
127
+ "logits/rejected": -2.6262881755828857,
128
+ "logps/chosen": -115.40583801269531,
129
+ "logps/rejected": -118.37687683105469,
130
+ "loss": 0.6826,
131
+ "rewards/accuracies": 0.643750011920929,
132
+ "rewards/chosen": 0.04097718372941017,
133
+ "rewards/margins": 0.0270619448274374,
134
+ "rewards/rejected": 0.01391523890197277,
135
+ "step": 80
136
+ },
137
+ {
138
+ "epoch": 0.59,
139
+ "learning_rate": 2.185529423440807e-06,
140
+ "logits/chosen": -2.654372453689575,
141
+ "logits/rejected": -2.6041693687438965,
142
+ "logps/chosen": -125.3586654663086,
143
+ "logps/rejected": -126.3048095703125,
144
+ "loss": 0.6802,
145
+ "rewards/accuracies": 0.612500011920929,
146
+ "rewards/chosen": 0.07956322282552719,
147
+ "rewards/margins": 0.03575668856501579,
148
+ "rewards/rejected": 0.0438065305352211,
149
+ "step": 90
150
+ },
151
+ {
152
+ "epoch": 0.65,
153
+ "learning_rate": 1.6300029195778454e-06,
154
+ "logits/chosen": -2.6299571990966797,
155
+ "logits/rejected": -2.6014647483825684,
156
+ "logps/chosen": -121.17118835449219,
157
+ "logps/rejected": -126.56787109375,
158
+ "loss": 0.6781,
159
+ "rewards/accuracies": 0.590624988079071,
160
+ "rewards/chosen": 0.06307043880224228,
161
+ "rewards/margins": 0.035764340311288834,
162
+ "rewards/rejected": 0.027306100353598595,
163
+ "step": 100
164
+ },
165
+ {
166
+ "epoch": 0.65,
167
+ "eval_logits/chosen": -2.6276280879974365,
168
+ "eval_logits/rejected": -2.5400655269622803,
169
+ "eval_logps/chosen": -289.5703125,
170
+ "eval_logps/rejected": -269.8819274902344,
171
+ "eval_loss": 0.6668701171875,
172
+ "eval_rewards/accuracies": 0.6439999938011169,
173
+ "eval_rewards/chosen": -0.026262342929840088,
174
+ "eval_rewards/margins": 0.059951718896627426,
175
+ "eval_rewards/rejected": -0.08621405810117722,
176
+ "eval_runtime": 381.9384,
177
+ "eval_samples_per_second": 5.236,
178
+ "eval_steps_per_second": 0.655,
179
+ "step": 100
180
+ },
181
+ {
182
+ "epoch": 0.72,
183
+ "learning_rate": 1.1200247470632394e-06,
184
+ "logits/chosen": -2.640122652053833,
185
+ "logits/rejected": -2.605874538421631,
186
+ "logps/chosen": -128.22695922851562,
187
+ "logps/rejected": -126.72957611083984,
188
+ "loss": 0.6778,
189
+ "rewards/accuracies": 0.565625011920929,
190
+ "rewards/chosen": 0.03247489407658577,
191
+ "rewards/margins": 0.034549370408058167,
192
+ "rewards/rejected": -0.0020744793582707644,
193
+ "step": 110
194
+ },
195
+ {
196
+ "epoch": 0.78,
197
+ "learning_rate": 6.822945986946386e-07,
198
+ "logits/chosen": -2.6430487632751465,
199
+ "logits/rejected": -2.6212897300720215,
200
+ "logps/chosen": -125.3406753540039,
201
+ "logps/rejected": -127.47813415527344,
202
+ "loss": 0.6773,
203
+ "rewards/accuracies": 0.546875,
204
+ "rewards/chosen": 0.04354492202401161,
205
+ "rewards/margins": 0.01878989301621914,
206
+ "rewards/rejected": 0.02475503273308277,
207
+ "step": 120
208
+ },
209
+ {
210
+ "epoch": 0.85,
211
+ "learning_rate": 3.397296523427807e-07,
212
+ "logits/chosen": -2.5850777626037598,
213
+ "logits/rejected": -2.558905839920044,
214
+ "logps/chosen": -126.96197509765625,
215
+ "logps/rejected": -130.18173217773438,
216
+ "loss": 0.676,
217
+ "rewards/accuracies": 0.6343749761581421,
218
+ "rewards/chosen": 0.026839906349778175,
219
+ "rewards/margins": 0.039194256067276,
220
+ "rewards/rejected": -0.012354351580142975,
221
+ "step": 130
222
+ },
223
+ {
224
+ "epoch": 0.91,
225
+ "learning_rate": 1.102647517397798e-07,
226
+ "logits/chosen": -2.6094307899475098,
227
+ "logits/rejected": -2.559872627258301,
228
+ "logps/chosen": -123.62800598144531,
229
+ "logps/rejected": -125.2538833618164,
230
+ "loss": 0.6781,
231
+ "rewards/accuracies": 0.590624988079071,
232
+ "rewards/chosen": 0.02713879942893982,
233
+ "rewards/margins": 0.04252254590392113,
234
+ "rewards/rejected": -0.015383748337626457,
235
+ "step": 140
236
+ },
237
+ {
238
+ "epoch": 0.98,
239
+ "learning_rate": 5.9134352763748345e-09,
240
+ "logits/chosen": -2.6256508827209473,
241
+ "logits/rejected": -2.61336088180542,
242
+ "logps/chosen": -125.59254455566406,
243
+ "logps/rejected": -130.33981323242188,
244
+ "loss": 0.6745,
245
+ "rewards/accuracies": 0.6031249761581421,
246
+ "rewards/chosen": 0.032428476959466934,
247
+ "rewards/margins": 0.05681389570236206,
248
+ "rewards/rejected": -0.024385426193475723,
249
+ "step": 150
250
+ },
251
+ {
252
+ "epoch": 1.0,
253
+ "step": 153,
254
+ "total_flos": 0.0,
255
+ "train_loss": 0.6834432619069916,
256
+ "train_runtime": 6282.2252,
257
+ "train_samples_per_second": 3.125,
258
+ "train_steps_per_second": 0.024
259
+ }
260
+ ],
261
+ "logging_steps": 10,
262
+ "max_steps": 153,
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
+ }