AmberYifan commited on
Commit
60d25e0
1 Parent(s): ae3654d

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-gen-dpo
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-gen-dpo
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.5433647909164429,
5
+ "train_runtime": 756.8858,
6
+ "train_samples": 2000,
7
+ "train_samples_per_second": 2.642,
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.5433647909164429,
5
+ "train_runtime": 756.8858,
6
+ "train_samples": 2000,
7
+ "train_samples_per_second": 2.642,
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": 195.76847577214488,
14
+ "learning_rate": 3.846153846153846e-08,
15
+ "logits/generated": -2.827054262161255,
16
+ "logits/real": -2.5581681728363037,
17
+ "logps/generated": -192.72244262695312,
18
+ "logps/real": -149.0590057373047,
19
+ "loss": 0.8742,
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": 218.63661928274885,
29
+ "learning_rate": 3.8461538461538463e-07,
30
+ "logits/generated": -2.7630491256713867,
31
+ "logits/real": -2.6888210773468018,
32
+ "logps/generated": -214.9255828857422,
33
+ "logps/real": -163.09947204589844,
34
+ "loss": 0.8317,
35
+ "rewards/accuracies": 0.6111111044883728,
36
+ "rewards/generated": -0.16190433502197266,
37
+ "rewards/margins": 0.3583752512931824,
38
+ "rewards/real": 0.19647091627120972,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.16,
43
+ "grad_norm": 169.19013750338308,
44
+ "learning_rate": 4.6874999999999996e-07,
45
+ "logits/generated": -2.662771701812744,
46
+ "logits/real": -2.601508140563965,
47
+ "logps/generated": -220.6349334716797,
48
+ "logps/real": -179.73020935058594,
49
+ "loss": 0.6427,
50
+ "rewards/accuracies": 0.7749999761581421,
51
+ "rewards/generated": -1.4358702898025513,
52
+ "rewards/margins": 1.1641441583633423,
53
+ "rewards/real": -0.271726131439209,
54
+ "step": 20
55
+ },
56
+ {
57
+ "epoch": 0.24,
58
+ "grad_norm": 230.2618516037045,
59
+ "learning_rate": 4.2410714285714283e-07,
60
+ "logits/generated": -2.8341822624206543,
61
+ "logits/real": -2.751523733139038,
62
+ "logps/generated": -218.51016235351562,
63
+ "logps/real": -174.5108184814453,
64
+ "loss": 0.6557,
65
+ "rewards/accuracies": 0.7749999761581421,
66
+ "rewards/generated": -0.7633816003799438,
67
+ "rewards/margins": 1.2909877300262451,
68
+ "rewards/real": 0.5276059508323669,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 0.32,
73
+ "grad_norm": 102.92598060702612,
74
+ "learning_rate": 3.794642857142857e-07,
75
+ "logits/generated": -2.670307159423828,
76
+ "logits/real": -2.709695816040039,
77
+ "logps/generated": -225.74386596679688,
78
+ "logps/real": -180.8232879638672,
79
+ "loss": 0.5411,
80
+ "rewards/accuracies": 0.824999988079071,
81
+ "rewards/generated": -1.9952844381332397,
82
+ "rewards/margins": 2.492525100708008,
83
+ "rewards/real": 0.4972406327724457,
84
+ "step": 40
85
+ },
86
+ {
87
+ "epoch": 0.4,
88
+ "grad_norm": 133.1268603857592,
89
+ "learning_rate": 3.348214285714285e-07,
90
+ "logits/generated": -2.6185507774353027,
91
+ "logits/real": -2.7017085552215576,
92
+ "logps/generated": -229.56289672851562,
93
+ "logps/real": -180.7897491455078,
94
+ "loss": 0.5403,
95
+ "rewards/accuracies": 0.8500000238418579,
96
+ "rewards/generated": -1.7043462991714478,
97
+ "rewards/margins": 2.115872859954834,
98
+ "rewards/real": 0.4115265905857086,
99
+ "step": 50
100
+ },
101
+ {
102
+ "epoch": 0.48,
103
+ "grad_norm": 121.16388402268068,
104
+ "learning_rate": 2.9017857142857143e-07,
105
+ "logits/generated": -2.3595099449157715,
106
+ "logits/real": -2.389936923980713,
107
+ "logps/generated": -231.27981567382812,
108
+ "logps/real": -185.60150146484375,
109
+ "loss": 0.5111,
110
+ "rewards/accuracies": 0.824999988079071,
111
+ "rewards/generated": -1.7304115295410156,
112
+ "rewards/margins": 1.988268494606018,
113
+ "rewards/real": 0.25785699486732483,
114
+ "step": 60
115
+ },
116
+ {
117
+ "epoch": 0.56,
118
+ "grad_norm": 128.2291938662715,
119
+ "learning_rate": 2.4553571428571425e-07,
120
+ "logits/generated": -2.2344260215759277,
121
+ "logits/real": -2.396183967590332,
122
+ "logps/generated": -219.56826782226562,
123
+ "logps/real": -175.6507568359375,
124
+ "loss": 0.5046,
125
+ "rewards/accuracies": 0.800000011920929,
126
+ "rewards/generated": -1.3278710842132568,
127
+ "rewards/margins": 2.380357027053833,
128
+ "rewards/real": 1.0524860620498657,
129
+ "step": 70
130
+ },
131
+ {
132
+ "epoch": 0.64,
133
+ "grad_norm": 111.69308541433698,
134
+ "learning_rate": 2.0089285714285714e-07,
135
+ "logits/generated": -2.416640043258667,
136
+ "logits/real": -2.4667611122131348,
137
+ "logps/generated": -239.8185577392578,
138
+ "logps/real": -192.8653106689453,
139
+ "loss": 0.5268,
140
+ "rewards/accuracies": 0.7749999761581421,
141
+ "rewards/generated": -2.3186020851135254,
142
+ "rewards/margins": 2.0476338863372803,
143
+ "rewards/real": -0.2709681987762451,
144
+ "step": 80
145
+ },
146
+ {
147
+ "epoch": 0.72,
148
+ "grad_norm": 82.56461355690034,
149
+ "learning_rate": 1.5624999999999999e-07,
150
+ "logits/generated": -2.270512580871582,
151
+ "logits/real": -2.530308961868286,
152
+ "logps/generated": -230.5257568359375,
153
+ "logps/real": -196.55819702148438,
154
+ "loss": 0.4677,
155
+ "rewards/accuracies": 0.800000011920929,
156
+ "rewards/generated": -1.9373829364776611,
157
+ "rewards/margins": 1.8367639780044556,
158
+ "rewards/real": -0.10061860084533691,
159
+ "step": 90
160
+ },
161
+ {
162
+ "epoch": 0.8,
163
+ "grad_norm": 107.57601154514983,
164
+ "learning_rate": 1.1160714285714285e-07,
165
+ "logits/generated": -2.257317304611206,
166
+ "logits/real": -2.4022774696350098,
167
+ "logps/generated": -231.86752319335938,
168
+ "logps/real": -181.0973358154297,
169
+ "loss": 0.5317,
170
+ "rewards/accuracies": 0.800000011920929,
171
+ "rewards/generated": -2.2553870677948,
172
+ "rewards/margins": 2.6081173419952393,
173
+ "rewards/real": 0.35273003578186035,
174
+ "step": 100
175
+ },
176
+ {
177
+ "epoch": 0.88,
178
+ "grad_norm": 71.26563004679359,
179
+ "learning_rate": 6.696428571428571e-08,
180
+ "logits/generated": -2.0771467685699463,
181
+ "logits/real": -2.54282546043396,
182
+ "logps/generated": -235.5596466064453,
183
+ "logps/real": -190.90234375,
184
+ "loss": 0.3627,
185
+ "rewards/accuracies": 0.949999988079071,
186
+ "rewards/generated": -3.041977643966675,
187
+ "rewards/margins": 3.7202351093292236,
188
+ "rewards/real": 0.6782575249671936,
189
+ "step": 110
190
+ },
191
+ {
192
+ "epoch": 0.96,
193
+ "grad_norm": 162.74800080175157,
194
+ "learning_rate": 2.2321428571428572e-08,
195
+ "logits/generated": -2.3272647857666016,
196
+ "logits/real": -2.594679117202759,
197
+ "logps/generated": -231.59286499023438,
198
+ "logps/real": -206.37869262695312,
199
+ "loss": 0.4876,
200
+ "rewards/accuracies": 0.824999988079071,
201
+ "rewards/generated": -2.5086724758148193,
202
+ "rewards/margins": 2.344866991043091,
203
+ "rewards/real": -0.16380572319030762,
204
+ "step": 120
205
+ },
206
+ {
207
+ "epoch": 1.0,
208
+ "step": 125,
209
+ "total_flos": 0.0,
210
+ "train_loss": 0.5433647909164429,
211
+ "train_runtime": 756.8858,
212
+ "train_samples_per_second": 2.642,
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
+ }