lole25 commited on
Commit
51b1f39
1 Parent(s): fc85ef9

Model save

Browse files
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - dpo
7
+ - generated_from_trainer
8
+ base_model: microsoft/phi-2
9
+ model-index:
10
+ - name: phi-2-gpo-ultrachat-lora-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
+ # phi-2-gpo-ultrachat-lora-2
18
+
19
+ This model is a fine-tuned version of [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.0100
22
+ - Rewards/chosen: -0.0005
23
+ - Rewards/rejected: -0.0009
24
+ - Rewards/accuracies: 0.2620
25
+ - Rewards/margins: 0.0004
26
+ - Logps/rejected: -94.2882
27
+ - Logps/chosen: -91.7769
28
+ - Logits/rejected: 0.8176
29
+ - Logits/chosen: 0.7994
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: 4
50
+ - eval_batch_size: 4
51
+ - seed: 42
52
+ - distributed_type: multi-GPU
53
+ - num_devices: 4
54
+ - gradient_accumulation_steps: 4
55
+ - total_train_batch_size: 64
56
+ - total_eval_batch_size: 16
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: 2
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.01 | 1.04 | 100 | 0.0100 | -0.0004 | -0.0007 | 0.25 | 0.0003 | -94.2623 | -91.7671 | 0.8188 | 0.8011 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - PEFT 0.7.1
72
+ - Transformers 4.36.2
73
+ - Pytorch 2.1.2+cu118
74
+ - Datasets 2.14.6
75
+ - Tokenizers 0.15.2
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a2873a4714d851cf961d555fe0d5c4e003dc74444f2ddeae1bf4bbd7e4316daf
3
  size 41977616
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:716f6cfffe6c0290a3d3693b4e351f4358939bc90324c7e09eb6bb9add2bd60a
3
  size 41977616
all_results.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.98,
3
+ "eval_logits/chosen": 0.7993869781494141,
4
+ "eval_logits/rejected": 0.8175749778747559,
5
+ "eval_logps/chosen": -91.77693176269531,
6
+ "eval_logps/rejected": -94.28819274902344,
7
+ "eval_loss": 0.009953780099749565,
8
+ "eval_rewards/accuracies": 0.2619999945163727,
9
+ "eval_rewards/chosen": -0.0004955825861543417,
10
+ "eval_rewards/margins": 0.00041623329161666334,
11
+ "eval_rewards/rejected": -0.0009118159650824964,
12
+ "eval_runtime": 274.2974,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 7.291,
15
+ "eval_steps_per_second": 0.456,
16
+ "train_loss": 0.00995884225458691,
17
+ "train_runtime": 2568.9627,
18
+ "train_samples": 6113,
19
+ "train_samples_per_second": 4.759,
20
+ "train_steps_per_second": 0.074
21
+ }
eval_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.98,
3
+ "eval_logits/chosen": 0.7993869781494141,
4
+ "eval_logits/rejected": 0.8175749778747559,
5
+ "eval_logps/chosen": -91.77693176269531,
6
+ "eval_logps/rejected": -94.28819274902344,
7
+ "eval_loss": 0.009953780099749565,
8
+ "eval_rewards/accuracies": 0.2619999945163727,
9
+ "eval_rewards/chosen": -0.0004955825861543417,
10
+ "eval_rewards/margins": 0.00041623329161666334,
11
+ "eval_rewards/rejected": -0.0009118159650824964,
12
+ "eval_runtime": 274.2974,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 7.291,
15
+ "eval_steps_per_second": 0.456
16
+ }
runs/Feb29_17-39-53_gpu4-119-4/events.out.tfevents.1709188872.gpu4-119-4.1114052.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a800ba3c4715539d01cc1aaa4d56fad15d7ca235e787025beffd5ce2b502790d
3
- size 12414
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8196c904d5639636ba91b3950985d80901f1666329a62d3941c837156254e13
3
+ size 18452
runs/Feb29_17-39-53_gpu4-119-4/events.out.tfevents.1709191715.gpu4-119-4.1114052.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:455f04bc6a07fcfaa9c67b8d371ac1dc5cb6388790610b6a2cb65bf82bd0ab80
3
+ size 828
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.98,
3
+ "train_loss": 0.00995884225458691,
4
+ "train_runtime": 2568.9627,
5
+ "train_samples": 6113,
6
+ "train_samples_per_second": 4.759,
7
+ "train_steps_per_second": 0.074
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,326 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.9843342036553526,
5
+ "eval_steps": 100,
6
+ "global_step": 190,
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": 2.6315789473684213e-07,
14
+ "logits/chosen": 0.8826487064361572,
15
+ "logits/rejected": 0.921362042427063,
16
+ "logps/chosen": -36.58121871948242,
17
+ "logps/rejected": -54.902320861816406,
18
+ "loss": 0.01,
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.1,
27
+ "learning_rate": 2.631578947368421e-06,
28
+ "logits/chosen": 0.8915393352508545,
29
+ "logits/rejected": 0.8742258548736572,
30
+ "logps/chosen": -87.77196502685547,
31
+ "logps/rejected": -96.38507843017578,
32
+ "loss": 0.0101,
33
+ "rewards/accuracies": 0.2569444477558136,
34
+ "rewards/chosen": 0.0003006549668498337,
35
+ "rewards/margins": 0.0004423653008416295,
36
+ "rewards/rejected": -0.00014171031943988055,
37
+ "step": 10
38
+ },
39
+ {
40
+ "epoch": 0.21,
41
+ "learning_rate": 4.999578104083307e-06,
42
+ "logits/chosen": 0.7802013158798218,
43
+ "logits/rejected": 0.8469624519348145,
44
+ "logps/chosen": -91.75413513183594,
45
+ "logps/rejected": -85.1173095703125,
46
+ "loss": 0.01,
47
+ "rewards/accuracies": 0.24375000596046448,
48
+ "rewards/chosen": 3.31846640619915e-05,
49
+ "rewards/margins": -0.00015664812235627323,
50
+ "rewards/rejected": 0.00018983279005624354,
51
+ "step": 20
52
+ },
53
+ {
54
+ "epoch": 0.31,
55
+ "learning_rate": 4.949122667718935e-06,
56
+ "logits/chosen": 0.8652933835983276,
57
+ "logits/rejected": 0.848902702331543,
58
+ "logps/chosen": -85.29698944091797,
59
+ "logps/rejected": -78.0544204711914,
60
+ "loss": 0.0099,
61
+ "rewards/accuracies": 0.28125,
62
+ "rewards/chosen": 0.0002226830692961812,
63
+ "rewards/margins": 0.00038711068918928504,
64
+ "rewards/rejected": -0.00016442763444501907,
65
+ "step": 30
66
+ },
67
+ {
68
+ "epoch": 0.42,
69
+ "learning_rate": 4.8162351680370046e-06,
70
+ "logits/chosen": 0.7649837136268616,
71
+ "logits/rejected": 0.841802716255188,
72
+ "logps/chosen": -122.76881408691406,
73
+ "logps/rejected": -108.8086166381836,
74
+ "loss": 0.01,
75
+ "rewards/accuracies": 0.26875001192092896,
76
+ "rewards/chosen": -0.000362707010935992,
77
+ "rewards/margins": -7.97106167738093e-06,
78
+ "rewards/rejected": -0.0003547359665390104,
79
+ "step": 40
80
+ },
81
+ {
82
+ "epoch": 0.52,
83
+ "learning_rate": 4.605388304968915e-06,
84
+ "logits/chosen": 0.8386613130569458,
85
+ "logits/rejected": 0.8677732348442078,
86
+ "logps/chosen": -65.77490997314453,
87
+ "logps/rejected": -71.66779327392578,
88
+ "loss": 0.01,
89
+ "rewards/accuracies": 0.21250000596046448,
90
+ "rewards/chosen": -0.00019812444224953651,
91
+ "rewards/margins": -0.00015129637904465199,
92
+ "rewards/rejected": -4.682801591116004e-05,
93
+ "step": 50
94
+ },
95
+ {
96
+ "epoch": 0.63,
97
+ "learning_rate": 4.323678718546552e-06,
98
+ "logits/chosen": 0.8152744174003601,
99
+ "logits/rejected": 0.8866288065910339,
100
+ "logps/chosen": -117.6309814453125,
101
+ "logps/rejected": -110.9274673461914,
102
+ "loss": 0.0101,
103
+ "rewards/accuracies": 0.26875001192092896,
104
+ "rewards/chosen": 2.0224386389600113e-05,
105
+ "rewards/margins": -1.7978531104745343e-05,
106
+ "rewards/rejected": 3.820297933998518e-05,
107
+ "step": 60
108
+ },
109
+ {
110
+ "epoch": 0.73,
111
+ "learning_rate": 3.980588131662451e-06,
112
+ "logits/chosen": 0.8049997091293335,
113
+ "logits/rejected": 0.8617580533027649,
114
+ "logps/chosen": -82.61628723144531,
115
+ "logps/rejected": -83.92156982421875,
116
+ "loss": 0.01,
117
+ "rewards/accuracies": 0.3187499940395355,
118
+ "rewards/chosen": 0.00046920054592192173,
119
+ "rewards/margins": 0.000604915083386004,
120
+ "rewards/rejected": -0.00013571445015259087,
121
+ "step": 70
122
+ },
123
+ {
124
+ "epoch": 0.84,
125
+ "learning_rate": 3.5876642162051833e-06,
126
+ "logits/chosen": 0.7660447955131531,
127
+ "logits/rejected": 0.8296969532966614,
128
+ "logps/chosen": -105.82564544677734,
129
+ "logps/rejected": -104.93913269042969,
130
+ "loss": 0.01,
131
+ "rewards/accuracies": 0.23749999701976776,
132
+ "rewards/chosen": -0.0001158899613074027,
133
+ "rewards/margins": -0.00039075990207493305,
134
+ "rewards/rejected": 0.0002748699625954032,
135
+ "step": 80
136
+ },
137
+ {
138
+ "epoch": 0.94,
139
+ "learning_rate": 3.1581319239114983e-06,
140
+ "logits/chosen": 0.8339036107063293,
141
+ "logits/rejected": 0.8548374176025391,
142
+ "logps/chosen": -77.63902282714844,
143
+ "logps/rejected": -90.03132629394531,
144
+ "loss": 0.0099,
145
+ "rewards/accuracies": 0.36250001192092896,
146
+ "rewards/chosen": 0.0005246674409136176,
147
+ "rewards/margins": 0.0012112573022022843,
148
+ "rewards/rejected": -0.0006865898030810058,
149
+ "step": 90
150
+ },
151
+ {
152
+ "epoch": 1.04,
153
+ "learning_rate": 2.7064483636808314e-06,
154
+ "logits/chosen": 0.7685378789901733,
155
+ "logits/rejected": 0.8903138041496277,
156
+ "logps/chosen": -91.08631896972656,
157
+ "logps/rejected": -101.58308410644531,
158
+ "loss": 0.01,
159
+ "rewards/accuracies": 0.29374998807907104,
160
+ "rewards/chosen": -0.00034642056562006474,
161
+ "rewards/margins": 0.00024903417215682566,
162
+ "rewards/rejected": -0.0005954547086730599,
163
+ "step": 100
164
+ },
165
+ {
166
+ "epoch": 1.04,
167
+ "eval_logits/chosen": 0.8011398911476135,
168
+ "eval_logits/rejected": 0.8187842965126038,
169
+ "eval_logps/chosen": -91.76709747314453,
170
+ "eval_logps/rejected": -94.26233673095703,
171
+ "eval_loss": 0.009981811977922916,
172
+ "eval_rewards/accuracies": 0.25,
173
+ "eval_rewards/chosen": -0.00039719167398288846,
174
+ "eval_rewards/margins": 0.00025612558238208294,
175
+ "eval_rewards/rejected": -0.0006533172563649714,
176
+ "eval_runtime": 274.2663,
177
+ "eval_samples_per_second": 7.292,
178
+ "eval_steps_per_second": 0.456,
179
+ "step": 100
180
+ },
181
+ {
182
+ "epoch": 1.15,
183
+ "learning_rate": 2.2478162071993296e-06,
184
+ "logits/chosen": 0.8606807589530945,
185
+ "logits/rejected": 0.9067083597183228,
186
+ "logps/chosen": -103.346435546875,
187
+ "logps/rejected": -102.74019622802734,
188
+ "loss": 0.0099,
189
+ "rewards/accuracies": 0.3125,
190
+ "rewards/chosen": 0.0002891735057346523,
191
+ "rewards/margins": 0.0007119966903701425,
192
+ "rewards/rejected": -0.00042282306822016835,
193
+ "step": 110
194
+ },
195
+ {
196
+ "epoch": 1.25,
197
+ "learning_rate": 1.797672000566077e-06,
198
+ "logits/chosen": 0.8887661099433899,
199
+ "logits/rejected": 0.8524330258369446,
200
+ "logps/chosen": -92.60103607177734,
201
+ "logps/rejected": -70.87162780761719,
202
+ "loss": 0.0099,
203
+ "rewards/accuracies": 0.2874999940395355,
204
+ "rewards/chosen": 0.00012959113519173115,
205
+ "rewards/margins": 0.0010213626082986593,
206
+ "rewards/rejected": -0.0008917713421396911,
207
+ "step": 120
208
+ },
209
+ {
210
+ "epoch": 1.36,
211
+ "learning_rate": 1.3711666042227772e-06,
212
+ "logits/chosen": 0.8812958598136902,
213
+ "logits/rejected": 0.9191433191299438,
214
+ "logps/chosen": -99.47935485839844,
215
+ "logps/rejected": -102.90433502197266,
216
+ "loss": 0.0099,
217
+ "rewards/accuracies": 0.33125001192092896,
218
+ "rewards/chosen": -0.00027921958826482296,
219
+ "rewards/margins": 0.00039964643656276166,
220
+ "rewards/rejected": -0.0006788660539314151,
221
+ "step": 130
222
+ },
223
+ {
224
+ "epoch": 1.46,
225
+ "learning_rate": 9.826552484321086e-07,
226
+ "logits/chosen": 0.8100296258926392,
227
+ "logits/rejected": 0.8721168637275696,
228
+ "logps/chosen": -98.98599243164062,
229
+ "logps/rejected": -95.76078033447266,
230
+ "loss": 0.0099,
231
+ "rewards/accuracies": 0.29374998807907104,
232
+ "rewards/chosen": -0.0003388571203686297,
233
+ "rewards/margins": 0.0009376562084071338,
234
+ "rewards/rejected": -0.0012765133287757635,
235
+ "step": 140
236
+ },
237
+ {
238
+ "epoch": 1.57,
239
+ "learning_rate": 6.452143679117965e-07,
240
+ "logits/chosen": 0.8696478009223938,
241
+ "logits/rejected": 0.884810745716095,
242
+ "logps/chosen": -74.74392700195312,
243
+ "logps/rejected": -80.85291290283203,
244
+ "loss": 0.0099,
245
+ "rewards/accuracies": 0.2874999940395355,
246
+ "rewards/chosen": -3.058182119275443e-05,
247
+ "rewards/margins": 0.0010159575613215566,
248
+ "rewards/rejected": -0.0010465392842888832,
249
+ "step": 150
250
+ },
251
+ {
252
+ "epoch": 1.67,
253
+ "learning_rate": 3.7020147790418266e-07,
254
+ "logits/chosen": 0.8866029977798462,
255
+ "logits/rejected": 0.8834725618362427,
256
+ "logps/chosen": -105.7184066772461,
257
+ "logps/rejected": -99.87519836425781,
258
+ "loss": 0.0099,
259
+ "rewards/accuracies": 0.28125,
260
+ "rewards/chosen": -0.0007261586142703891,
261
+ "rewards/margins": 2.431169559713453e-05,
262
+ "rewards/rejected": -0.000750470208004117,
263
+ "step": 160
264
+ },
265
+ {
266
+ "epoch": 1.78,
267
+ "learning_rate": 1.6687290528135725e-07,
268
+ "logits/chosen": 0.7714171409606934,
269
+ "logits/rejected": 0.8409671783447266,
270
+ "logps/chosen": -102.75898742675781,
271
+ "logps/rejected": -96.38053894042969,
272
+ "loss": 0.0099,
273
+ "rewards/accuracies": 0.3375000059604645,
274
+ "rewards/chosen": -0.0006845382740721107,
275
+ "rewards/margins": 0.00033002972486428916,
276
+ "rewards/rejected": -0.0010145680280402303,
277
+ "step": 170
278
+ },
279
+ {
280
+ "epoch": 1.88,
281
+ "learning_rate": 4.207224101311247e-08,
282
+ "logits/chosen": 0.8822728395462036,
283
+ "logits/rejected": 0.935335636138916,
284
+ "logps/chosen": -119.57994079589844,
285
+ "logps/rejected": -112.05470275878906,
286
+ "loss": 0.0099,
287
+ "rewards/accuracies": 0.3125,
288
+ "rewards/chosen": -0.0007582681137137115,
289
+ "rewards/margins": 0.0003905483172275126,
290
+ "rewards/rejected": -0.001148816430941224,
291
+ "step": 180
292
+ },
293
+ {
294
+ "epoch": 1.98,
295
+ "learning_rate": 0.0,
296
+ "logits/chosen": 0.8246952295303345,
297
+ "logits/rejected": 0.8706514239311218,
298
+ "logps/chosen": -73.35179138183594,
299
+ "logps/rejected": -76.91303253173828,
300
+ "loss": 0.0099,
301
+ "rewards/accuracies": 0.25,
302
+ "rewards/chosen": -0.0005546126631088555,
303
+ "rewards/margins": 0.0004530520236585289,
304
+ "rewards/rejected": -0.0010076647158712149,
305
+ "step": 190
306
+ },
307
+ {
308
+ "epoch": 1.98,
309
+ "step": 190,
310
+ "total_flos": 0.0,
311
+ "train_loss": 0.00995884225458691,
312
+ "train_runtime": 2568.9627,
313
+ "train_samples_per_second": 4.759,
314
+ "train_steps_per_second": 0.074
315
+ }
316
+ ],
317
+ "logging_steps": 10,
318
+ "max_steps": 190,
319
+ "num_input_tokens_seen": 0,
320
+ "num_train_epochs": 2,
321
+ "save_steps": 100,
322
+ "total_flos": 0.0,
323
+ "train_batch_size": 4,
324
+ "trial_name": null,
325
+ "trial_params": null
326
+ }