Qin Liu commited on
Commit
1a389d8
1 Parent(s): 170d3f1

Model save

Browse files
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3
3
+ base_model: Jackie999/llama3-sudo-5epochs-tofu_full_sft
4
+ tags:
5
+ - trl
6
+ - dpo
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: llama3-sudo-dpo-5epochs-forget10mix400-1sft-2fullpara
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # llama3-sudo-dpo-5epochs-forget10mix400-1sft-2fullpara
17
+
18
+ This model is a fine-tuned version of [Jackie999/llama3-sudo-5epochs-tofu_full_sft](https://huggingface.co/Jackie999/llama3-sudo-5epochs-tofu_full_sft) on an unknown dataset.
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 5e-06
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - num_devices: 4
43
+ - gradient_accumulation_steps: 4
44
+ - total_train_batch_size: 64
45
+ - total_eval_batch_size: 32
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 5
50
+
51
+ ### Training results
52
+
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.44.0
58
+ - Pytorch 2.1.2
59
+ - Datasets 3.0.0
60
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.10525495952181518,
5
+ "train_runtime": 12485.2526,
6
+ "train_samples": 1600,
7
+ "train_samples_per_second": 0.641,
8
+ "train_steps_per_second": 0.01
9
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 128000,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 128001,
6
+ 128009
7
+ ],
8
+ "max_length": 4096,
9
+ "temperature": 0.6,
10
+ "top_p": 0.9,
11
+ "transformers_version": "4.44.0"
12
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.10525495952181518,
5
+ "train_runtime": 12485.2526,
6
+ "train_samples": 1600,
7
+ "train_samples_per_second": 0.641,
8
+ "train_steps_per_second": 0.01
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "eval_steps": 1000,
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.04,
13
+ "grad_norm": 5.490324960115022,
14
+ "learning_rate": 3.846153846153847e-07,
15
+ "logits/chosen": -1.73323655128479,
16
+ "logits/rejected": -1.963712453842163,
17
+ "logps/chosen": -64.71795654296875,
18
+ "logps/rejected": -92.56527709960938,
19
+ "loss": 0.6931,
20
+ "rewards/accuracies": 0.0,
21
+ "rewards/chosen": 0.0,
22
+ "rewards/margins": 0.0,
23
+ "rewards/rejected": 0.0,
24
+ "step": 1
25
+ },
26
+ {
27
+ "epoch": 0.4,
28
+ "grad_norm": 1.946222324869374,
29
+ "learning_rate": 3.846153846153847e-06,
30
+ "logits/chosen": -1.728408694267273,
31
+ "logits/rejected": -1.9020811319351196,
32
+ "logps/chosen": -72.22079467773438,
33
+ "logps/rejected": -116.01087951660156,
34
+ "loss": 0.6242,
35
+ "rewards/accuracies": 0.6041666865348816,
36
+ "rewards/chosen": -0.08828946202993393,
37
+ "rewards/margins": 0.1939040869474411,
38
+ "rewards/rejected": -0.28219354152679443,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.8,
43
+ "grad_norm": 3.522682391478169,
44
+ "learning_rate": 4.9519632010080765e-06,
45
+ "logits/chosen": -1.5478551387786865,
46
+ "logits/rejected": -1.8321882486343384,
47
+ "logps/chosen": -64.30168914794922,
48
+ "logps/rejected": -259.0096435546875,
49
+ "loss": 0.4142,
50
+ "rewards/accuracies": 0.768750011920929,
51
+ "rewards/chosen": -0.03247198835015297,
52
+ "rewards/margins": 1.648101806640625,
53
+ "rewards/rejected": -1.6805737018585205,
54
+ "step": 20
55
+ },
56
+ {
57
+ "epoch": 1.2,
58
+ "grad_norm": 3.068578740455024,
59
+ "learning_rate": 4.721114089947181e-06,
60
+ "logits/chosen": -1.21674382686615,
61
+ "logits/rejected": -1.6157382726669312,
62
+ "logps/chosen": -70.33782958984375,
63
+ "logps/rejected": -497.0357360839844,
64
+ "loss": 0.189,
65
+ "rewards/accuracies": 0.9375,
66
+ "rewards/chosen": -0.08688753098249435,
67
+ "rewards/margins": 3.9799323081970215,
68
+ "rewards/rejected": -4.066819667816162,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 1.6,
73
+ "grad_norm": 0.22868786429214566,
74
+ "learning_rate": 4.316650805085068e-06,
75
+ "logits/chosen": -1.0377681255340576,
76
+ "logits/rejected": -1.4782741069793701,
77
+ "logps/chosen": -146.58694458007812,
78
+ "logps/rejected": -769.5899658203125,
79
+ "loss": 0.0266,
80
+ "rewards/accuracies": 1.0,
81
+ "rewards/chosen": -0.891402542591095,
82
+ "rewards/margins": 5.863120079040527,
83
+ "rewards/rejected": -6.754522800445557,
84
+ "step": 40
85
+ },
86
+ {
87
+ "epoch": 2.0,
88
+ "grad_norm": 4.80554513563544,
89
+ "learning_rate": 3.770188363116324e-06,
90
+ "logits/chosen": -1.2781574726104736,
91
+ "logits/rejected": -1.560027837753296,
92
+ "logps/chosen": -180.29161071777344,
93
+ "logps/rejected": -1096.177001953125,
94
+ "loss": 0.042,
95
+ "rewards/accuracies": 0.981249988079071,
96
+ "rewards/chosen": -1.180869460105896,
97
+ "rewards/margins": 8.900360107421875,
98
+ "rewards/rejected": -10.081230163574219,
99
+ "step": 50
100
+ },
101
+ {
102
+ "epoch": 2.4,
103
+ "grad_norm": 0.27603672981693994,
104
+ "learning_rate": 3.1244411954180677e-06,
105
+ "logits/chosen": -0.9170042276382446,
106
+ "logits/rejected": -1.313642978668213,
107
+ "logps/chosen": -199.44625854492188,
108
+ "logps/rejected": -1061.7119140625,
109
+ "loss": 0.0072,
110
+ "rewards/accuracies": 1.0,
111
+ "rewards/chosen": -1.4110476970672607,
112
+ "rewards/margins": 8.259212493896484,
113
+ "rewards/rejected": -9.67026138305664,
114
+ "step": 60
115
+ },
116
+ {
117
+ "epoch": 2.8,
118
+ "grad_norm": 4.0781788867244595,
119
+ "learning_rate": 2.429884359310328e-06,
120
+ "logits/chosen": -1.0711753368377686,
121
+ "logits/rejected": -1.4404046535491943,
122
+ "logps/chosen": -216.3368377685547,
123
+ "logps/rejected": -1323.527587890625,
124
+ "loss": 0.003,
125
+ "rewards/accuracies": 1.0,
126
+ "rewards/chosen": -1.5303722620010376,
127
+ "rewards/margins": 10.808874130249023,
128
+ "rewards/rejected": -12.33924674987793,
129
+ "step": 70
130
+ },
131
+ {
132
+ "epoch": 3.2,
133
+ "grad_norm": 0.058123220019245296,
134
+ "learning_rate": 1.7408081372259633e-06,
135
+ "logits/chosen": -0.8975645899772644,
136
+ "logits/rejected": -1.296263337135315,
137
+ "logps/chosen": -145.1630859375,
138
+ "logps/rejected": -1060.802734375,
139
+ "loss": 0.0005,
140
+ "rewards/accuracies": 1.0,
141
+ "rewards/chosen": -0.8476600646972656,
142
+ "rewards/margins": 8.854598045349121,
143
+ "rewards/rejected": -9.702258110046387,
144
+ "step": 80
145
+ },
146
+ {
147
+ "epoch": 3.6,
148
+ "grad_norm": 0.09682108714448862,
149
+ "learning_rate": 1.1110744174509952e-06,
150
+ "logits/chosen": -1.0131741762161255,
151
+ "logits/rejected": -1.4304622411727905,
152
+ "logps/chosen": -159.85574340820312,
153
+ "logps/rejected": -1194.8968505859375,
154
+ "loss": 0.0013,
155
+ "rewards/accuracies": 1.0,
156
+ "rewards/chosen": -0.978173553943634,
157
+ "rewards/margins": 10.080551147460938,
158
+ "rewards/rejected": -11.058725357055664,
159
+ "step": 90
160
+ },
161
+ {
162
+ "epoch": 4.0,
163
+ "grad_norm": 0.004709132530498062,
164
+ "learning_rate": 5.899065604459814e-07,
165
+ "logits/chosen": -0.9850813150405884,
166
+ "logits/rejected": -1.3841135501861572,
167
+ "logps/chosen": -170.55239868164062,
168
+ "logps/rejected": -1331.4459228515625,
169
+ "loss": 0.0002,
170
+ "rewards/accuracies": 1.0,
171
+ "rewards/chosen": -1.085587739944458,
172
+ "rewards/margins": 11.312799453735352,
173
+ "rewards/rejected": -12.398386001586914,
174
+ "step": 100
175
+ },
176
+ {
177
+ "epoch": 4.4,
178
+ "grad_norm": 0.004246194962367942,
179
+ "learning_rate": 2.1804183734670277e-07,
180
+ "logits/chosen": -1.1493442058563232,
181
+ "logits/rejected": -1.5497456789016724,
182
+ "logps/chosen": -195.21815490722656,
183
+ "logps/rejected": -1428.41064453125,
184
+ "loss": 0.0002,
185
+ "rewards/accuracies": 1.0,
186
+ "rewards/chosen": -1.3281663656234741,
187
+ "rewards/margins": 12.071850776672363,
188
+ "rewards/rejected": -13.400018692016602,
189
+ "step": 110
190
+ },
191
+ {
192
+ "epoch": 4.8,
193
+ "grad_norm": 0.010996089792622345,
194
+ "learning_rate": 2.454718665888589e-08,
195
+ "logits/chosen": -1.056302785873413,
196
+ "logits/rejected": -1.4732356071472168,
197
+ "logps/chosen": -179.13990783691406,
198
+ "logps/rejected": -1402.2952880859375,
199
+ "loss": 0.0002,
200
+ "rewards/accuracies": 1.0,
201
+ "rewards/chosen": -1.1820361614227295,
202
+ "rewards/margins": 11.938187599182129,
203
+ "rewards/rejected": -13.120223999023438,
204
+ "step": 120
205
+ },
206
+ {
207
+ "epoch": 5.0,
208
+ "step": 125,
209
+ "total_flos": 0.0,
210
+ "train_loss": 0.10525495952181518,
211
+ "train_runtime": 12485.2526,
212
+ "train_samples_per_second": 0.641,
213
+ "train_steps_per_second": 0.01
214
+ }
215
+ ],
216
+ "logging_steps": 10,
217
+ "max_steps": 125,
218
+ "num_input_tokens_seen": 0,
219
+ "num_train_epochs": 5,
220
+ "save_steps": 1000,
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
+ }