YYYYYYibo commited on
Commit
242682b
1 Parent(s): 4898141

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_1_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_1_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.6653
22
+ - Rewards/chosen: -0.0216
23
+ - Rewards/rejected: -0.0823
24
+ - Rewards/accuracies: 0.6400
25
+ - Rewards/margins: 0.0607
26
+ - Logps/rejected: -269.4945
27
+ - Logps/chosen: -289.1737
28
+ - Logits/rejected: -2.5754
29
+ - Logits/chosen: -2.6625
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.6763 | 0.65 | 100 | 0.6653 | -0.0216 | -0.0823 | 0.6400 | 0.0607 | -269.4945 | -289.1737 | -2.5754 | -2.6625 |
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.6804818130308582,
4
+ "train_runtime": 6451.0629,
5
+ "train_samples": 19835,
6
+ "train_samples_per_second": 3.075,
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.6804818130308582,
4
+ "train_runtime": 6451.0629,
5
+ "train_samples": 19835,
6
+ "train_samples_per_second": 3.075,
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": 1.0,
5
+ "eval_steps": 100,
6
+ "global_step": 155,
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.8946032524108887,
15
+ "logits/rejected": -2.8606104850769043,
16
+ "logps/chosen": -149.65138244628906,
17
+ "logps/rejected": -147.93389892578125,
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.7723653316497803,
29
+ "logits/rejected": -2.7413721084594727,
30
+ "logps/chosen": -127.34146881103516,
31
+ "logps/rejected": -128.1923065185547,
32
+ "loss": 0.693,
33
+ "rewards/accuracies": 0.46875,
34
+ "rewards/chosen": 0.0019323664018884301,
35
+ "rewards/margins": 0.0003104716306552291,
36
+ "rewards/rejected": 0.001621894771233201,
37
+ "step": 10
38
+ },
39
+ {
40
+ "epoch": 0.13,
41
+ "learning_rate": 4.989790503518888e-06,
42
+ "logits/chosen": -2.78098464012146,
43
+ "logits/rejected": -2.7467544078826904,
44
+ "logps/chosen": -123.1203384399414,
45
+ "logps/rejected": -123.0350341796875,
46
+ "loss": 0.6922,
47
+ "rewards/accuracies": 0.518750011920929,
48
+ "rewards/chosen": 0.028792519122362137,
49
+ "rewards/margins": 0.0023718727752566338,
50
+ "rewards/rejected": 0.026420647278428078,
51
+ "step": 20
52
+ },
53
+ {
54
+ "epoch": 0.19,
55
+ "learning_rate": 4.8758891663695165e-06,
56
+ "logits/chosen": -2.7641711235046387,
57
+ "logits/rejected": -2.7216341495513916,
58
+ "logps/chosen": -122.10086822509766,
59
+ "logps/rejected": -121.503662109375,
60
+ "loss": 0.6897,
61
+ "rewards/accuracies": 0.565625011920929,
62
+ "rewards/chosen": 0.07782017439603806,
63
+ "rewards/margins": 0.005080958362668753,
64
+ "rewards/rejected": 0.07273921370506287,
65
+ "step": 30
66
+ },
67
+ {
68
+ "epoch": 0.26,
69
+ "learning_rate": 4.64113778721764e-06,
70
+ "logits/chosen": -2.7458434104919434,
71
+ "logits/rejected": -2.717912197113037,
72
+ "logps/chosen": -109.0793228149414,
73
+ "logps/rejected": -111.13133239746094,
74
+ "loss": 0.6888,
75
+ "rewards/accuracies": 0.5625,
76
+ "rewards/chosen": 0.0947461873292923,
77
+ "rewards/margins": 0.010546943172812462,
78
+ "rewards/rejected": 0.08419923484325409,
79
+ "step": 40
80
+ },
81
+ {
82
+ "epoch": 0.32,
83
+ "learning_rate": 4.297477038394368e-06,
84
+ "logits/chosen": -2.7164647579193115,
85
+ "logits/rejected": -2.6716389656066895,
86
+ "logps/chosen": -124.75947570800781,
87
+ "logps/rejected": -124.14982604980469,
88
+ "loss": 0.6863,
89
+ "rewards/accuracies": 0.581250011920929,
90
+ "rewards/chosen": 0.07808887958526611,
91
+ "rewards/margins": 0.012092621996998787,
92
+ "rewards/rejected": 0.06599625200033188,
93
+ "step": 50
94
+ },
95
+ {
96
+ "epoch": 0.39,
97
+ "learning_rate": 3.862387287468095e-06,
98
+ "logits/chosen": -2.7368290424346924,
99
+ "logits/rejected": -2.7067949771881104,
100
+ "logps/chosen": -122.44651794433594,
101
+ "logps/rejected": -123.14102935791016,
102
+ "loss": 0.6814,
103
+ "rewards/accuracies": 0.59375,
104
+ "rewards/chosen": 0.04377375915646553,
105
+ "rewards/margins": 0.0176816638559103,
106
+ "rewards/rejected": 0.02609209157526493,
107
+ "step": 60
108
+ },
109
+ {
110
+ "epoch": 0.45,
111
+ "learning_rate": 3.357999455114148e-06,
112
+ "logits/chosen": -2.6553173065185547,
113
+ "logits/rejected": -2.6178958415985107,
114
+ "logps/chosen": -131.94534301757812,
115
+ "logps/rejected": -128.55323791503906,
116
+ "loss": 0.6783,
117
+ "rewards/accuracies": 0.628125011920929,
118
+ "rewards/chosen": 0.01449825894087553,
119
+ "rewards/margins": 0.04684123024344444,
120
+ "rewards/rejected": -0.03234297037124634,
121
+ "step": 70
122
+ },
123
+ {
124
+ "epoch": 0.52,
125
+ "learning_rate": 2.8099693217402807e-06,
126
+ "logits/chosen": -2.680434226989746,
127
+ "logits/rejected": -2.652169704437256,
128
+ "logps/chosen": -135.7716522216797,
129
+ "logps/rejected": -137.4171142578125,
130
+ "loss": 0.6796,
131
+ "rewards/accuracies": 0.628125011920929,
132
+ "rewards/chosen": -0.02753743901848793,
133
+ "rewards/margins": 0.03442533686757088,
134
+ "rewards/rejected": -0.06196277216076851,
135
+ "step": 80
136
+ },
137
+ {
138
+ "epoch": 0.58,
139
+ "learning_rate": 2.24617254146973e-06,
140
+ "logits/chosen": -2.683811664581299,
141
+ "logits/rejected": -2.6760880947113037,
142
+ "logps/chosen": -109.57649230957031,
143
+ "logps/rejected": -118.2197265625,
144
+ "loss": 0.6791,
145
+ "rewards/accuracies": 0.5687500238418579,
146
+ "rewards/chosen": 0.08844764530658722,
147
+ "rewards/margins": 0.03314244747161865,
148
+ "rewards/rejected": 0.055305201560258865,
149
+ "step": 90
150
+ },
151
+ {
152
+ "epoch": 0.65,
153
+ "learning_rate": 1.6952867418370707e-06,
154
+ "logits/chosen": -2.662198543548584,
155
+ "logits/rejected": -2.6310229301452637,
156
+ "logps/chosen": -123.90461730957031,
157
+ "logps/rejected": -129.31741333007812,
158
+ "loss": 0.6763,
159
+ "rewards/accuracies": 0.5874999761581421,
160
+ "rewards/chosen": 0.07869021594524384,
161
+ "rewards/margins": 0.050858981907367706,
162
+ "rewards/rejected": 0.027831237763166428,
163
+ "step": 100
164
+ },
165
+ {
166
+ "epoch": 0.65,
167
+ "eval_logits/chosen": -2.662461042404175,
168
+ "eval_logits/rejected": -2.5754306316375732,
169
+ "eval_logps/chosen": -289.1737365722656,
170
+ "eval_logps/rejected": -269.4944763183594,
171
+ "eval_loss": 0.6652680039405823,
172
+ "eval_rewards/accuracies": 0.6399999856948853,
173
+ "eval_rewards/chosen": -0.02158256620168686,
174
+ "eval_rewards/margins": 0.060695480555295944,
175
+ "eval_rewards/rejected": -0.0822780430316925,
176
+ "eval_runtime": 382.0664,
177
+ "eval_samples_per_second": 5.235,
178
+ "eval_steps_per_second": 0.654,
179
+ "step": 100
180
+ },
181
+ {
182
+ "epoch": 0.71,
183
+ "learning_rate": 1.1853328309581139e-06,
184
+ "logits/chosen": -2.6986496448516846,
185
+ "logits/rejected": -2.6445116996765137,
186
+ "logps/chosen": -126.5402603149414,
187
+ "logps/rejected": -126.73878479003906,
188
+ "loss": 0.6724,
189
+ "rewards/accuracies": 0.6031249761581421,
190
+ "rewards/chosen": 0.008479948155581951,
191
+ "rewards/margins": 0.04984438419342041,
192
+ "rewards/rejected": -0.04136443883180618,
193
+ "step": 110
194
+ },
195
+ {
196
+ "epoch": 0.77,
197
+ "learning_rate": 7.422497088545436e-07,
198
+ "logits/chosen": -2.6892261505126953,
199
+ "logits/rejected": -2.61507511138916,
200
+ "logps/chosen": -121.74040222167969,
201
+ "logps/rejected": -122.19820404052734,
202
+ "loss": 0.6739,
203
+ "rewards/accuracies": 0.5531250238418579,
204
+ "rewards/chosen": -0.008245681412518024,
205
+ "rewards/margins": 0.041609544306993484,
206
+ "rewards/rejected": -0.049855224788188934,
207
+ "step": 120
208
+ },
209
+ {
210
+ "epoch": 0.84,
211
+ "learning_rate": 3.8857488050544903e-07,
212
+ "logits/chosen": -2.6735100746154785,
213
+ "logits/rejected": -2.6348578929901123,
214
+ "logps/chosen": -125.81143951416016,
215
+ "logps/rejected": -133.61953735351562,
216
+ "loss": 0.6736,
217
+ "rewards/accuracies": 0.581250011920929,
218
+ "rewards/chosen": 0.015428361482918262,
219
+ "rewards/margins": 0.057859934866428375,
220
+ "rewards/rejected": -0.04243157058954239,
221
+ "step": 130
222
+ },
223
+ {
224
+ "epoch": 0.9,
225
+ "learning_rate": 1.4229808148697732e-07,
226
+ "logits/chosen": -2.6265532970428467,
227
+ "logits/rejected": -2.633122205734253,
228
+ "logps/chosen": -131.5351104736328,
229
+ "logps/rejected": -136.5831756591797,
230
+ "loss": 0.6743,
231
+ "rewards/accuracies": 0.6031249761581421,
232
+ "rewards/chosen": 0.021531684324145317,
233
+ "rewards/margins": 0.03703152388334274,
234
+ "rewards/rejected": -0.015499832108616829,
235
+ "step": 140
236
+ },
237
+ {
238
+ "epoch": 0.97,
239
+ "learning_rate": 1.5946226744029402e-08,
240
+ "logits/chosen": -2.687284231185913,
241
+ "logits/rejected": -2.641932249069214,
242
+ "logps/chosen": -122.74555969238281,
243
+ "logps/rejected": -129.6962127685547,
244
+ "loss": 0.6756,
245
+ "rewards/accuracies": 0.6000000238418579,
246
+ "rewards/chosen": 0.03600780665874481,
247
+ "rewards/margins": 0.05919266864657402,
248
+ "rewards/rejected": -0.023184867575764656,
249
+ "step": 150
250
+ },
251
+ {
252
+ "epoch": 1.0,
253
+ "step": 155,
254
+ "total_flos": 0.0,
255
+ "train_loss": 0.6804818130308582,
256
+ "train_runtime": 6451.0629,
257
+ "train_samples_per_second": 3.075,
258
+ "train_steps_per_second": 0.024
259
+ }
260
+ ],
261
+ "logging_steps": 10,
262
+ "max_steps": 155,
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
+ }