YYYYYYibo commited on
Commit
5d3aca0
1 Parent(s): c782023

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 +256 -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_2
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_2
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.6837
22
+ - Rewards/chosen: -0.0930
23
+ - Rewards/rejected: -0.1136
24
+ - Rewards/accuracies: 0.5720
25
+ - Rewards/margins: 0.0206
26
+ - Logps/rejected: -301.1933
27
+ - Logps/chosen: -307.7010
28
+ - Logits/rejected: -2.4848
29
+ - Logits/chosen: -2.5771
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.686 | 0.67 | 100 | 0.6837 | -0.0930 | -0.1136 | 0.5720 | 0.0206 | -301.1933 | -307.7010 | -2.4848 | -2.5771 |
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.6894321513656002,
4
+ "train_runtime": 6902.8391,
5
+ "train_samples": 19100,
6
+ "train_samples_per_second": 2.767,
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.6894321513656002,
4
+ "train_runtime": 6902.8391,
5
+ "train_samples": 19100,
6
+ "train_samples_per_second": 2.767,
7
+ "train_steps_per_second": 0.022
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.998324958123953,
5
+ "eval_steps": 100,
6
+ "global_step": 149,
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.3333333333333335e-07,
14
+ "logits/chosen": -2.491262435913086,
15
+ "logits/rejected": -2.5593011379241943,
16
+ "logps/chosen": -151.13595581054688,
17
+ "logps/rejected": -176.25180053710938,
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.3333333333333333e-06,
28
+ "logits/chosen": -2.657362699508667,
29
+ "logits/rejected": -2.6224162578582764,
30
+ "logps/chosen": -177.82272338867188,
31
+ "logps/rejected": -179.98106384277344,
32
+ "loss": 0.6925,
33
+ "rewards/accuracies": 0.4930555522441864,
34
+ "rewards/chosen": -0.013637593947350979,
35
+ "rewards/margins": 0.004961313679814339,
36
+ "rewards/rejected": -0.018598908558487892,
37
+ "step": 10
38
+ },
39
+ {
40
+ "epoch": 0.13,
41
+ "learning_rate": 4.982842942906386e-06,
42
+ "logits/chosen": -2.702573299407959,
43
+ "logits/rejected": -2.6558778285980225,
44
+ "logps/chosen": -193.16390991210938,
45
+ "logps/rejected": -188.91493225097656,
46
+ "loss": 0.694,
47
+ "rewards/accuracies": 0.512499988079071,
48
+ "rewards/chosen": -0.10607340186834335,
49
+ "rewards/margins": 0.0018767903093248606,
50
+ "rewards/rejected": -0.10795019567012787,
51
+ "step": 20
52
+ },
53
+ {
54
+ "epoch": 0.2,
55
+ "learning_rate": 4.846996204000967e-06,
56
+ "logits/chosen": -2.6284031867980957,
57
+ "logits/rejected": -2.585899829864502,
58
+ "logps/chosen": -186.4259490966797,
59
+ "logps/rejected": -187.31175231933594,
60
+ "loss": 0.6914,
61
+ "rewards/accuracies": 0.5406249761581421,
62
+ "rewards/chosen": -0.0701591819524765,
63
+ "rewards/margins": 0.008776131086051464,
64
+ "rewards/rejected": -0.07893531024456024,
65
+ "step": 30
66
+ },
67
+ {
68
+ "epoch": 0.27,
69
+ "learning_rate": 4.582735470385229e-06,
70
+ "logits/chosen": -2.6113476753234863,
71
+ "logits/rejected": -2.6379783153533936,
72
+ "logps/chosen": -169.52566528320312,
73
+ "logps/rejected": -175.36927795410156,
74
+ "loss": 0.6898,
75
+ "rewards/accuracies": 0.528124988079071,
76
+ "rewards/chosen": 0.0019457591697573662,
77
+ "rewards/margins": 0.011439744383096695,
78
+ "rewards/rejected": -0.009493985213339329,
79
+ "step": 40
80
+ },
81
+ {
82
+ "epoch": 0.34,
83
+ "learning_rate": 4.204519553876095e-06,
84
+ "logits/chosen": -2.6095616817474365,
85
+ "logits/rejected": -2.5940325260162354,
86
+ "logps/chosen": -160.98004150390625,
87
+ "logps/rejected": -164.4163360595703,
88
+ "loss": 0.6926,
89
+ "rewards/accuracies": 0.5249999761581421,
90
+ "rewards/chosen": 0.015476897358894348,
91
+ "rewards/margins": 0.006927810609340668,
92
+ "rewards/rejected": 0.008549087680876255,
93
+ "step": 50
94
+ },
95
+ {
96
+ "epoch": 0.4,
97
+ "learning_rate": 3.7330422317447686e-06,
98
+ "logits/chosen": -2.662424087524414,
99
+ "logits/rejected": -2.6424801349639893,
100
+ "logps/chosen": -180.03500366210938,
101
+ "logps/rejected": -174.4924774169922,
102
+ "loss": 0.6925,
103
+ "rewards/accuracies": 0.515625,
104
+ "rewards/chosen": 0.0384332574903965,
105
+ "rewards/margins": 0.005103477276861668,
106
+ "rewards/rejected": 0.03332977741956711,
107
+ "step": 60
108
+ },
109
+ {
110
+ "epoch": 0.47,
111
+ "learning_rate": 3.1941000034687516e-06,
112
+ "logits/chosen": -2.6400465965270996,
113
+ "logits/rejected": -2.6263554096221924,
114
+ "logps/chosen": -167.74423217773438,
115
+ "logps/rejected": -171.72691345214844,
116
+ "loss": 0.6919,
117
+ "rewards/accuracies": 0.5562499761581421,
118
+ "rewards/chosen": -0.05802411586046219,
119
+ "rewards/margins": 0.008442241698503494,
120
+ "rewards/rejected": -0.06646636128425598,
121
+ "step": 70
122
+ },
123
+ {
124
+ "epoch": 0.54,
125
+ "learning_rate": 2.6171806561748503e-06,
126
+ "logits/chosen": -2.6121268272399902,
127
+ "logits/rejected": -2.5906381607055664,
128
+ "logps/chosen": -180.24801635742188,
129
+ "logps/rejected": -179.08216857910156,
130
+ "loss": 0.6883,
131
+ "rewards/accuracies": 0.534375011920929,
132
+ "rewards/chosen": -0.025833597406744957,
133
+ "rewards/margins": 0.0072801136411726475,
134
+ "rewards/rejected": -0.03311371058225632,
135
+ "step": 80
136
+ },
137
+ {
138
+ "epoch": 0.6,
139
+ "learning_rate": 2.0338498642707977e-06,
140
+ "logits/chosen": -2.663304090499878,
141
+ "logits/rejected": -2.61620831489563,
142
+ "logps/chosen": -175.11361694335938,
143
+ "logps/rejected": -171.87161254882812,
144
+ "loss": 0.6862,
145
+ "rewards/accuracies": 0.59375,
146
+ "rewards/chosen": -0.03003253974020481,
147
+ "rewards/margins": 0.019972536712884903,
148
+ "rewards/rejected": -0.05000507831573486,
149
+ "step": 90
150
+ },
151
+ {
152
+ "epoch": 0.67,
153
+ "learning_rate": 1.4760240991587338e-06,
154
+ "logits/chosen": -2.612849712371826,
155
+ "logits/rejected": -2.590980052947998,
156
+ "logps/chosen": -158.46450805664062,
157
+ "logps/rejected": -165.57606506347656,
158
+ "loss": 0.686,
159
+ "rewards/accuracies": 0.596875011920929,
160
+ "rewards/chosen": -0.00229537021368742,
161
+ "rewards/margins": 0.028590286150574684,
162
+ "rewards/rejected": -0.03088565543293953,
163
+ "step": 100
164
+ },
165
+ {
166
+ "epoch": 0.67,
167
+ "eval_logits/chosen": -2.5771172046661377,
168
+ "eval_logits/rejected": -2.4848170280456543,
169
+ "eval_logps/chosen": -307.7010192871094,
170
+ "eval_logps/rejected": -301.19329833984375,
171
+ "eval_loss": 0.683651864528656,
172
+ "eval_rewards/accuracies": 0.5720000267028809,
173
+ "eval_rewards/chosen": -0.09298302233219147,
174
+ "eval_rewards/margins": 0.020600860938429832,
175
+ "eval_rewards/rejected": -0.11358388513326645,
176
+ "eval_runtime": 382.0082,
177
+ "eval_samples_per_second": 5.235,
178
+ "eval_steps_per_second": 0.654,
179
+ "step": 100
180
+ },
181
+ {
182
+ "epoch": 0.74,
183
+ "learning_rate": 9.742243453755202e-07,
184
+ "logits/chosen": -2.6324477195739746,
185
+ "logits/rejected": -2.6193971633911133,
186
+ "logps/chosen": -169.78958129882812,
187
+ "logps/rejected": -178.68710327148438,
188
+ "loss": 0.69,
189
+ "rewards/accuracies": 0.528124988079071,
190
+ "rewards/chosen": -0.028186390176415443,
191
+ "rewards/margins": 0.006812813691794872,
192
+ "rewards/rejected": -0.03499920293688774,
193
+ "step": 110
194
+ },
195
+ {
196
+ "epoch": 0.8,
197
+ "learning_rate": 5.559061696656199e-07,
198
+ "logits/chosen": -2.6105129718780518,
199
+ "logits/rejected": -2.5832369327545166,
200
+ "logps/chosen": -177.0843505859375,
201
+ "logps/rejected": -179.75782775878906,
202
+ "loss": 0.6852,
203
+ "rewards/accuracies": 0.5531250238418579,
204
+ "rewards/chosen": -0.021660596132278442,
205
+ "rewards/margins": 0.016608651727437973,
206
+ "rewards/rejected": -0.038269251585006714,
207
+ "step": 120
208
+ },
209
+ {
210
+ "epoch": 0.87,
211
+ "learning_rate": 2.4395751190352924e-07,
212
+ "logits/chosen": -2.590940475463867,
213
+ "logits/rejected": -2.5727646350860596,
214
+ "logps/chosen": -174.79104614257812,
215
+ "logps/rejected": -179.25521850585938,
216
+ "loss": 0.687,
217
+ "rewards/accuracies": 0.5375000238418579,
218
+ "rewards/chosen": -0.03851151093840599,
219
+ "rewards/margins": 0.011401178315281868,
220
+ "rewards/rejected": -0.04991268739104271,
221
+ "step": 130
222
+ },
223
+ {
224
+ "epoch": 0.94,
225
+ "learning_rate": 5.544639001763719e-08,
226
+ "logits/chosen": -2.6073455810546875,
227
+ "logits/rejected": -2.6085193157196045,
228
+ "logps/chosen": -189.36952209472656,
229
+ "logps/rejected": -190.8089141845703,
230
+ "loss": 0.688,
231
+ "rewards/accuracies": 0.5249999761581421,
232
+ "rewards/chosen": -0.04472886398434639,
233
+ "rewards/margins": 0.012851757928729057,
234
+ "rewards/rejected": -0.0575806125998497,
235
+ "step": 140
236
+ },
237
+ {
238
+ "epoch": 1.0,
239
+ "step": 149,
240
+ "total_flos": 0.0,
241
+ "train_loss": 0.6894321513656002,
242
+ "train_runtime": 6902.8391,
243
+ "train_samples_per_second": 2.767,
244
+ "train_steps_per_second": 0.022
245
+ }
246
+ ],
247
+ "logging_steps": 10,
248
+ "max_steps": 149,
249
+ "num_input_tokens_seen": 0,
250
+ "num_train_epochs": 1,
251
+ "save_steps": 100,
252
+ "total_flos": 0.0,
253
+ "train_batch_size": 2,
254
+ "trial_name": null,
255
+ "trial_params": null
256
+ }