AmberYifan commited on
Commit
6fead94
1 Parent(s): e30d591

Model save

Browse files
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: mistralai/Mistral-7B-v0.1
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: mistral-base-dpo-2k
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # mistral-base-dpo-2k
15
+
16
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on an unknown dataset.
17
+
18
+ ## Model description
19
+
20
+ More information needed
21
+
22
+ ## Intended uses & limitations
23
+
24
+ More information needed
25
+
26
+ ## Training and evaluation data
27
+
28
+ More information needed
29
+
30
+ ## Training procedure
31
+
32
+ ### Training hyperparameters
33
+
34
+ The following hyperparameters were used during training:
35
+ - learning_rate: 5e-07
36
+ - train_batch_size: 4
37
+ - eval_batch_size: 4
38
+ - seed: 42
39
+ - distributed_type: multi-GPU
40
+ - num_devices: 4
41
+ - total_train_batch_size: 16
42
+ - total_eval_batch_size: 16
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - lr_scheduler_warmup_ratio: 0.1
46
+ - num_epochs: 1
47
+
48
+ ### Training results
49
+
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.43.3
55
+ - Pytorch 2.2.2+cu121
56
+ - Datasets 2.20.0
57
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.7958872079849243,
5
+ "train_runtime": 757.4298,
6
+ "train_samples": 2000,
7
+ "train_samples_per_second": 2.641,
8
+ "train_steps_per_second": 0.165
9
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.43.3"
6
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.7958872079849243,
5
+ "train_runtime": 757.4298,
6
+ "train_samples": 2000,
7
+ "train_samples_per_second": 2.641,
8
+ "train_steps_per_second": 0.165
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 200,
6
+ "global_step": 125,
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.008,
13
+ "grad_norm": 147.89808677022958,
14
+ "learning_rate": 3.846153846153846e-08,
15
+ "logits/generated": -2.517829418182373,
16
+ "logits/real": -2.19148588180542,
17
+ "logps/generated": -122.74644470214844,
18
+ "logps/real": -171.45494079589844,
19
+ "loss": 0.843,
20
+ "rewards/accuracies": 0.0,
21
+ "rewards/generated": 0.0,
22
+ "rewards/margins": 0.0,
23
+ "rewards/real": 0.0,
24
+ "step": 1
25
+ },
26
+ {
27
+ "epoch": 0.08,
28
+ "grad_norm": 134.47376195877482,
29
+ "learning_rate": 3.8461538461538463e-07,
30
+ "logits/generated": -2.4292914867401123,
31
+ "logits/real": -2.433361530303955,
32
+ "logps/generated": -128.08148193359375,
33
+ "logps/real": -129.51199340820312,
34
+ "loss": 0.8235,
35
+ "rewards/accuracies": 0.4444444477558136,
36
+ "rewards/generated": -0.045434772968292236,
37
+ "rewards/margins": 0.06507062166929245,
38
+ "rewards/real": 0.019635863602161407,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.16,
43
+ "grad_norm": 116.28359724719947,
44
+ "learning_rate": 4.6874999999999996e-07,
45
+ "logits/generated": -2.5721659660339355,
46
+ "logits/real": -2.5940754413604736,
47
+ "logps/generated": -140.29403686523438,
48
+ "logps/real": -152.1209259033203,
49
+ "loss": 0.7834,
50
+ "rewards/accuracies": 0.6000000238418579,
51
+ "rewards/generated": -0.023977667093276978,
52
+ "rewards/margins": 0.11755923926830292,
53
+ "rewards/real": 0.09358155727386475,
54
+ "step": 20
55
+ },
56
+ {
57
+ "epoch": 0.24,
58
+ "grad_norm": 125.42421242327684,
59
+ "learning_rate": 4.2410714285714283e-07,
60
+ "logits/generated": -2.451955556869507,
61
+ "logits/real": -2.5324044227600098,
62
+ "logps/generated": -132.75013732910156,
63
+ "logps/real": -126.1029052734375,
64
+ "loss": 0.8007,
65
+ "rewards/accuracies": 0.699999988079071,
66
+ "rewards/generated": 0.14888708293437958,
67
+ "rewards/margins": 0.19555671513080597,
68
+ "rewards/real": 0.34444382786750793,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 0.32,
73
+ "grad_norm": 120.25166417318326,
74
+ "learning_rate": 3.794642857142857e-07,
75
+ "logits/generated": -2.4365317821502686,
76
+ "logits/real": -2.4784128665924072,
77
+ "logps/generated": -121.6016845703125,
78
+ "logps/real": -121.78703308105469,
79
+ "loss": 0.7746,
80
+ "rewards/accuracies": 0.699999988079071,
81
+ "rewards/generated": 0.10297657549381256,
82
+ "rewards/margins": 0.5478044152259827,
83
+ "rewards/real": 0.650780975818634,
84
+ "step": 40
85
+ },
86
+ {
87
+ "epoch": 0.4,
88
+ "grad_norm": 175.1395451582952,
89
+ "learning_rate": 3.348214285714285e-07,
90
+ "logits/generated": -2.4824845790863037,
91
+ "logits/real": -2.628711223602295,
92
+ "logps/generated": -108.2540054321289,
93
+ "logps/real": -110.33675384521484,
94
+ "loss": 0.8005,
95
+ "rewards/accuracies": 0.625,
96
+ "rewards/generated": 0.8452979326248169,
97
+ "rewards/margins": 0.32963427901268005,
98
+ "rewards/real": 1.1749321222305298,
99
+ "step": 50
100
+ },
101
+ {
102
+ "epoch": 0.48,
103
+ "grad_norm": 136.08698116076778,
104
+ "learning_rate": 2.9017857142857143e-07,
105
+ "logits/generated": -2.5444846153259277,
106
+ "logits/real": -2.5586628913879395,
107
+ "logps/generated": -103.48173522949219,
108
+ "logps/real": -113.9021224975586,
109
+ "loss": 0.7874,
110
+ "rewards/accuracies": 0.699999988079071,
111
+ "rewards/generated": 0.6939820051193237,
112
+ "rewards/margins": 0.3397112190723419,
113
+ "rewards/real": 1.0336930751800537,
114
+ "step": 60
115
+ },
116
+ {
117
+ "epoch": 0.56,
118
+ "grad_norm": 146.30984170549294,
119
+ "learning_rate": 2.4553571428571425e-07,
120
+ "logits/generated": -2.645383358001709,
121
+ "logits/real": -2.6484053134918213,
122
+ "logps/generated": -125.13639831542969,
123
+ "logps/real": -122.11183166503906,
124
+ "loss": 0.8997,
125
+ "rewards/accuracies": 0.5,
126
+ "rewards/generated": 1.455406665802002,
127
+ "rewards/margins": -0.3015662729740143,
128
+ "rewards/real": 1.1538405418395996,
129
+ "step": 70
130
+ },
131
+ {
132
+ "epoch": 0.64,
133
+ "grad_norm": 84.4045941576579,
134
+ "learning_rate": 2.0089285714285714e-07,
135
+ "logits/generated": -2.6049187183380127,
136
+ "logits/real": -2.5537009239196777,
137
+ "logps/generated": -118.47220611572266,
138
+ "logps/real": -142.0023193359375,
139
+ "loss": 0.7769,
140
+ "rewards/accuracies": 0.699999988079071,
141
+ "rewards/generated": 0.9211456179618835,
142
+ "rewards/margins": 0.8597875833511353,
143
+ "rewards/real": 1.7809330224990845,
144
+ "step": 80
145
+ },
146
+ {
147
+ "epoch": 0.72,
148
+ "grad_norm": 127.03498544690872,
149
+ "learning_rate": 1.5624999999999999e-07,
150
+ "logits/generated": -2.618711233139038,
151
+ "logits/real": -2.6723551750183105,
152
+ "logps/generated": -114.33888244628906,
153
+ "logps/real": -143.75564575195312,
154
+ "loss": 0.7321,
155
+ "rewards/accuracies": 0.6000000238418579,
156
+ "rewards/generated": 1.1004014015197754,
157
+ "rewards/margins": 0.39606350660324097,
158
+ "rewards/real": 1.4964649677276611,
159
+ "step": 90
160
+ },
161
+ {
162
+ "epoch": 0.8,
163
+ "grad_norm": 122.17610215112185,
164
+ "learning_rate": 1.1160714285714285e-07,
165
+ "logits/generated": -2.5757622718811035,
166
+ "logits/real": -2.5916008949279785,
167
+ "logps/generated": -127.0289306640625,
168
+ "logps/real": -129.51431274414062,
169
+ "loss": 0.8665,
170
+ "rewards/accuracies": 0.625,
171
+ "rewards/generated": 1.3618738651275635,
172
+ "rewards/margins": 0.11677682399749756,
173
+ "rewards/real": 1.4786508083343506,
174
+ "step": 100
175
+ },
176
+ {
177
+ "epoch": 0.88,
178
+ "grad_norm": 133.71019821071505,
179
+ "learning_rate": 6.696428571428571e-08,
180
+ "logits/generated": -2.4835140705108643,
181
+ "logits/real": -2.498384952545166,
182
+ "logps/generated": -125.1689682006836,
183
+ "logps/real": -121.4903564453125,
184
+ "loss": 0.7741,
185
+ "rewards/accuracies": 0.550000011920929,
186
+ "rewards/generated": 1.3967167139053345,
187
+ "rewards/margins": 0.36560097336769104,
188
+ "rewards/real": 1.7623176574707031,
189
+ "step": 110
190
+ },
191
+ {
192
+ "epoch": 0.96,
193
+ "grad_norm": 87.60022795114257,
194
+ "learning_rate": 2.2321428571428572e-08,
195
+ "logits/generated": -2.532543897628784,
196
+ "logits/real": -2.6096348762512207,
197
+ "logps/generated": -124.0304183959961,
198
+ "logps/real": -137.7096405029297,
199
+ "loss": 0.8181,
200
+ "rewards/accuracies": 0.625,
201
+ "rewards/generated": 1.4160971641540527,
202
+ "rewards/margins": 0.37906622886657715,
203
+ "rewards/real": 1.7951635122299194,
204
+ "step": 120
205
+ },
206
+ {
207
+ "epoch": 1.0,
208
+ "step": 125,
209
+ "total_flos": 0.0,
210
+ "train_loss": 0.7958872079849243,
211
+ "train_runtime": 757.4298,
212
+ "train_samples_per_second": 2.641,
213
+ "train_steps_per_second": 0.165
214
+ }
215
+ ],
216
+ "logging_steps": 10,
217
+ "max_steps": 125,
218
+ "num_input_tokens_seen": 0,
219
+ "num_train_epochs": 1,
220
+ "save_steps": 200,
221
+ "stateful_callbacks": {
222
+ "TrainerControl": {
223
+ "args": {
224
+ "should_epoch_stop": false,
225
+ "should_evaluate": false,
226
+ "should_log": false,
227
+ "should_save": true,
228
+ "should_training_stop": true
229
+ },
230
+ "attributes": {}
231
+ }
232
+ },
233
+ "total_flos": 0.0,
234
+ "train_batch_size": 4,
235
+ "trial_name": null,
236
+ "trial_params": null
237
+ }