YYYYYYibo commited on
Commit
c7f2e0e
1 Parent(s): c90f33c

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_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_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.6852
22
+ - Rewards/chosen: -0.0952
23
+ - Rewards/rejected: -0.1146
24
+ - Rewards/accuracies: 0.5660
25
+ - Rewards/margins: 0.0194
26
+ - Logps/rejected: -301.2935
27
+ - Logps/chosen: -307.9213
28
+ - Logits/rejected: -2.4415
29
+ - Logits/chosen: -2.5384
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.6889 | 0.67 | 100 | 0.6852 | -0.0952 | -0.1146 | 0.5660 | 0.0194 | -301.2935 | -307.9213 | -2.4415 | -2.5384 |
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.6901595840518107,
4
+ "train_runtime": 6945.5042,
5
+ "train_samples": 19100,
6
+ "train_samples_per_second": 2.75,
7
+ "train_steps_per_second": 0.021
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 0.6901595840518107,
4
+ "train_runtime": 6945.5042,
5
+ "train_samples": 19100,
6
+ "train_samples_per_second": 2.75,
7
+ "train_steps_per_second": 0.021
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.55656099319458,
15
+ "logits/rejected": -2.55704402923584,
16
+ "logps/chosen": -162.36532592773438,
17
+ "logps/rejected": -172.43312072753906,
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.666642189025879,
29
+ "logits/rejected": -2.6329586505889893,
30
+ "logps/chosen": -185.80641174316406,
31
+ "logps/rejected": -184.18959045410156,
32
+ "loss": 0.6928,
33
+ "rewards/accuracies": 0.4548611044883728,
34
+ "rewards/chosen": -0.001971459249034524,
35
+ "rewards/margins": 0.0016002749325707555,
36
+ "rewards/rejected": -0.003571733832359314,
37
+ "step": 10
38
+ },
39
+ {
40
+ "epoch": 0.13,
41
+ "learning_rate": 4.982842942906386e-06,
42
+ "logits/chosen": -2.721466541290283,
43
+ "logits/rejected": -2.67402982711792,
44
+ "logps/chosen": -201.33470153808594,
45
+ "logps/rejected": -194.63198852539062,
46
+ "loss": 0.6949,
47
+ "rewards/accuracies": 0.534375011920929,
48
+ "rewards/chosen": -0.10967914760112762,
49
+ "rewards/margins": 0.0006104880012571812,
50
+ "rewards/rejected": -0.11028961837291718,
51
+ "step": 20
52
+ },
53
+ {
54
+ "epoch": 0.2,
55
+ "learning_rate": 4.846996204000967e-06,
56
+ "logits/chosen": -2.625549077987671,
57
+ "logits/rejected": -2.607099771499634,
58
+ "logps/chosen": -197.00973510742188,
59
+ "logps/rejected": -195.684326171875,
60
+ "loss": 0.6939,
61
+ "rewards/accuracies": 0.5093749761581421,
62
+ "rewards/chosen": -0.08795476704835892,
63
+ "rewards/margins": -0.002985857194289565,
64
+ "rewards/rejected": -0.08496890217065811,
65
+ "step": 30
66
+ },
67
+ {
68
+ "epoch": 0.27,
69
+ "learning_rate": 4.582735470385229e-06,
70
+ "logits/chosen": -2.633084535598755,
71
+ "logits/rejected": -2.634359836578369,
72
+ "logps/chosen": -185.71023559570312,
73
+ "logps/rejected": -185.03509521484375,
74
+ "loss": 0.6921,
75
+ "rewards/accuracies": 0.5531250238418579,
76
+ "rewards/chosen": -0.04532230272889137,
77
+ "rewards/margins": 0.0011206632480025291,
78
+ "rewards/rejected": -0.046442966908216476,
79
+ "step": 40
80
+ },
81
+ {
82
+ "epoch": 0.34,
83
+ "learning_rate": 4.204519553876095e-06,
84
+ "logits/chosen": -2.6109485626220703,
85
+ "logits/rejected": -2.6062893867492676,
86
+ "logps/chosen": -171.55734252929688,
87
+ "logps/rejected": -173.1212158203125,
88
+ "loss": 0.6912,
89
+ "rewards/accuracies": 0.4625000059604645,
90
+ "rewards/chosen": -0.014199512079358101,
91
+ "rewards/margins": 0.0028473488055169582,
92
+ "rewards/rejected": -0.017046859487891197,
93
+ "step": 50
94
+ },
95
+ {
96
+ "epoch": 0.4,
97
+ "learning_rate": 3.7330422317447686e-06,
98
+ "logits/chosen": -2.6457674503326416,
99
+ "logits/rejected": -2.6292178630828857,
100
+ "logps/chosen": -188.72109985351562,
101
+ "logps/rejected": -184.30081176757812,
102
+ "loss": 0.6905,
103
+ "rewards/accuracies": 0.5375000238418579,
104
+ "rewards/chosen": -0.00934157706797123,
105
+ "rewards/margins": 0.002996337367221713,
106
+ "rewards/rejected": -0.012337915599346161,
107
+ "step": 60
108
+ },
109
+ {
110
+ "epoch": 0.47,
111
+ "learning_rate": 3.1941000034687516e-06,
112
+ "logits/chosen": -2.6249117851257324,
113
+ "logits/rejected": -2.611786365509033,
114
+ "logps/chosen": -170.21836853027344,
115
+ "logps/rejected": -177.2921142578125,
116
+ "loss": 0.6905,
117
+ "rewards/accuracies": 0.534375011920929,
118
+ "rewards/chosen": -0.03585924953222275,
119
+ "rewards/margins": 0.0028343182057142258,
120
+ "rewards/rejected": -0.03869356960058212,
121
+ "step": 70
122
+ },
123
+ {
124
+ "epoch": 0.54,
125
+ "learning_rate": 2.6171806561748503e-06,
126
+ "logits/chosen": -2.5946967601776123,
127
+ "logits/rejected": -2.571646213531494,
128
+ "logps/chosen": -184.07911682128906,
129
+ "logps/rejected": -189.4521942138672,
130
+ "loss": 0.6896,
131
+ "rewards/accuracies": 0.5874999761581421,
132
+ "rewards/chosen": -0.019358564168214798,
133
+ "rewards/margins": 0.011903460137546062,
134
+ "rewards/rejected": -0.031262025237083435,
135
+ "step": 80
136
+ },
137
+ {
138
+ "epoch": 0.6,
139
+ "learning_rate": 2.0338498642707977e-06,
140
+ "logits/chosen": -2.629333972930908,
141
+ "logits/rejected": -2.6070916652679443,
142
+ "logps/chosen": -183.12803649902344,
143
+ "logps/rejected": -187.22447204589844,
144
+ "loss": 0.6902,
145
+ "rewards/accuracies": 0.565625011920929,
146
+ "rewards/chosen": -0.0804746001958847,
147
+ "rewards/margins": 0.01135367900133133,
148
+ "rewards/rejected": -0.09182827174663544,
149
+ "step": 90
150
+ },
151
+ {
152
+ "epoch": 0.67,
153
+ "learning_rate": 1.4760240991587338e-06,
154
+ "logits/chosen": -2.5863940715789795,
155
+ "logits/rejected": -2.5969200134277344,
156
+ "logps/chosen": -172.47142028808594,
157
+ "logps/rejected": -180.51638793945312,
158
+ "loss": 0.6889,
159
+ "rewards/accuracies": 0.5531250238418579,
160
+ "rewards/chosen": -0.05926589295268059,
161
+ "rewards/margins": 0.011102231219410896,
162
+ "rewards/rejected": -0.07036812603473663,
163
+ "step": 100
164
+ },
165
+ {
166
+ "epoch": 0.67,
167
+ "eval_logits/chosen": -2.5383808612823486,
168
+ "eval_logits/rejected": -2.4414656162261963,
169
+ "eval_logps/chosen": -307.9212646484375,
170
+ "eval_logps/rejected": -301.2935485839844,
171
+ "eval_loss": 0.6852481365203857,
172
+ "eval_rewards/accuracies": 0.5659999847412109,
173
+ "eval_rewards/chosen": -0.0951852798461914,
174
+ "eval_rewards/margins": 0.019401030614972115,
175
+ "eval_rewards/rejected": -0.11458631604909897,
176
+ "eval_runtime": 382.181,
177
+ "eval_samples_per_second": 5.233,
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.612968683242798,
185
+ "logits/rejected": -2.6128811836242676,
186
+ "logps/chosen": -176.701416015625,
187
+ "logps/rejected": -186.86849975585938,
188
+ "loss": 0.6882,
189
+ "rewards/accuracies": 0.5406249761581421,
190
+ "rewards/chosen": -0.027405280619859695,
191
+ "rewards/margins": 0.016830626875162125,
192
+ "rewards/rejected": -0.04423590749502182,
193
+ "step": 110
194
+ },
195
+ {
196
+ "epoch": 0.8,
197
+ "learning_rate": 5.559061696656199e-07,
198
+ "logits/chosen": -2.585603713989258,
199
+ "logits/rejected": -2.5767314434051514,
200
+ "logps/chosen": -184.33139038085938,
201
+ "logps/rejected": -189.44131469726562,
202
+ "loss": 0.686,
203
+ "rewards/accuracies": 0.6031249761581421,
204
+ "rewards/chosen": -0.03763353452086449,
205
+ "rewards/margins": 0.025313779711723328,
206
+ "rewards/rejected": -0.06294731795787811,
207
+ "step": 120
208
+ },
209
+ {
210
+ "epoch": 0.87,
211
+ "learning_rate": 2.4395751190352924e-07,
212
+ "logits/chosen": -2.5703272819519043,
213
+ "logits/rejected": -2.5677199363708496,
214
+ "logps/chosen": -184.06341552734375,
215
+ "logps/rejected": -188.58779907226562,
216
+ "loss": 0.6884,
217
+ "rewards/accuracies": 0.5249999761581421,
218
+ "rewards/chosen": -0.06450501084327698,
219
+ "rewards/margins": 0.007478479295969009,
220
+ "rewards/rejected": -0.07198350131511688,
221
+ "step": 130
222
+ },
223
+ {
224
+ "epoch": 0.94,
225
+ "learning_rate": 5.544639001763719e-08,
226
+ "logits/chosen": -2.6024391651153564,
227
+ "logits/rejected": -2.5870203971862793,
228
+ "logps/chosen": -199.04031372070312,
229
+ "logps/rejected": -197.60330200195312,
230
+ "loss": 0.686,
231
+ "rewards/accuracies": 0.565625011920929,
232
+ "rewards/chosen": -0.06172681599855423,
233
+ "rewards/margins": 0.017358267679810524,
234
+ "rewards/rejected": -0.0790850818157196,
235
+ "step": 140
236
+ },
237
+ {
238
+ "epoch": 1.0,
239
+ "step": 149,
240
+ "total_flos": 0.0,
241
+ "train_loss": 0.6901595840518107,
242
+ "train_runtime": 6945.5042,
243
+ "train_samples_per_second": 2.75,
244
+ "train_steps_per_second": 0.021
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
+ }