Qin Liu
commited on
Commit
•
93d1b4b
1
Parent(s):
a097b7c
Model save
Browse files- README.md +60 -0
- all_results.json +9 -0
- generation_config.json +12 -0
- train_results.json +9 -0
- trainer_state.json +237 -0
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-instruct-5epochs-forget10-fullpara
|
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-instruct-5epochs-forget10-fullpara
|
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: 2
|
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: 32
|
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.07030335423257202,
|
5 |
+
"train_runtime": 8011.3193,
|
6 |
+
"train_samples": 800,
|
7 |
+
"train_samples_per_second": 0.499,
|
8 |
+
"train_steps_per_second": 0.016
|
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.07030335423257202,
|
5 |
+
"train_runtime": 8011.3193,
|
6 |
+
"train_samples": 800,
|
7 |
+
"train_samples_per_second": 0.499,
|
8 |
+
"train_steps_per_second": 0.016
|
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": 3.554304809363554,
|
14 |
+
"learning_rate": 3.846153846153847e-07,
|
15 |
+
"logits/chosen": -1.7501684427261353,
|
16 |
+
"logits/rejected": -1.5946102142333984,
|
17 |
+
"logps/chosen": -84.6928939819336,
|
18 |
+
"logps/rejected": -66.21642303466797,
|
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": 4.900524905972191,
|
29 |
+
"learning_rate": 3.846153846153847e-06,
|
30 |
+
"logits/chosen": -1.7080682516098022,
|
31 |
+
"logits/rejected": -1.6930590867996216,
|
32 |
+
"logps/chosen": -71.15042114257812,
|
33 |
+
"logps/rejected": -81.29680633544922,
|
34 |
+
"loss": 0.6627,
|
35 |
+
"rewards/accuracies": 0.8055555820465088,
|
36 |
+
"rewards/chosen": 0.040672361850738525,
|
37 |
+
"rewards/margins": 0.06852560490369797,
|
38 |
+
"rewards/rejected": -0.027853243052959442,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.8,
|
43 |
+
"grad_norm": 0.17197492369867923,
|
44 |
+
"learning_rate": 4.9519632010080765e-06,
|
45 |
+
"logits/chosen": -1.501769781112671,
|
46 |
+
"logits/rejected": -1.5045287609100342,
|
47 |
+
"logps/chosen": -55.158836364746094,
|
48 |
+
"logps/rejected": -317.1681823730469,
|
49 |
+
"loss": 0.2119,
|
50 |
+
"rewards/accuracies": 1.0,
|
51 |
+
"rewards/chosen": 0.2232411801815033,
|
52 |
+
"rewards/margins": 2.6507387161254883,
|
53 |
+
"rewards/rejected": -2.427497386932373,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 1.2,
|
58 |
+
"grad_norm": 0.014772261199203527,
|
59 |
+
"learning_rate": 4.721114089947181e-06,
|
60 |
+
"logits/chosen": -0.9690781831741333,
|
61 |
+
"logits/rejected": -1.0795819759368896,
|
62 |
+
"logps/chosen": -249.5034637451172,
|
63 |
+
"logps/rejected": -1324.19091796875,
|
64 |
+
"loss": 0.0006,
|
65 |
+
"rewards/accuracies": 1.0,
|
66 |
+
"rewards/chosen": -1.7644612789154053,
|
67 |
+
"rewards/margins": 10.673975944519043,
|
68 |
+
"rewards/rejected": -12.438436508178711,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 1.6,
|
73 |
+
"grad_norm": 0.0033918924347121214,
|
74 |
+
"learning_rate": 4.316650805085068e-06,
|
75 |
+
"logits/chosen": -1.2455154657363892,
|
76 |
+
"logits/rejected": -1.294455647468567,
|
77 |
+
"logps/chosen": -155.76324462890625,
|
78 |
+
"logps/rejected": -1702.1519775390625,
|
79 |
+
"loss": 0.0001,
|
80 |
+
"rewards/accuracies": 1.0,
|
81 |
+
"rewards/chosen": -0.8099241256713867,
|
82 |
+
"rewards/margins": 15.425918579101562,
|
83 |
+
"rewards/rejected": -16.235843658447266,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 2.0,
|
88 |
+
"grad_norm": 0.002248346138217333,
|
89 |
+
"learning_rate": 3.770188363116324e-06,
|
90 |
+
"logits/chosen": -1.3940218687057495,
|
91 |
+
"logits/rejected": -1.3445849418640137,
|
92 |
+
"logps/chosen": -162.5945587158203,
|
93 |
+
"logps/rejected": -1922.8701171875,
|
94 |
+
"loss": 0.0001,
|
95 |
+
"rewards/accuracies": 1.0,
|
96 |
+
"rewards/chosen": -0.868628978729248,
|
97 |
+
"rewards/margins": 17.592626571655273,
|
98 |
+
"rewards/rejected": -18.46125602722168,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 2.4,
|
103 |
+
"grad_norm": 0.001498031862466307,
|
104 |
+
"learning_rate": 3.1244411954180677e-06,
|
105 |
+
"logits/chosen": -1.5801560878753662,
|
106 |
+
"logits/rejected": -1.383643388748169,
|
107 |
+
"logps/chosen": -182.91412353515625,
|
108 |
+
"logps/rejected": -2047.5972900390625,
|
109 |
+
"loss": 0.0,
|
110 |
+
"rewards/accuracies": 1.0,
|
111 |
+
"rewards/chosen": -1.0077913999557495,
|
112 |
+
"rewards/margins": 18.757488250732422,
|
113 |
+
"rewards/rejected": -19.765277862548828,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 2.8,
|
118 |
+
"grad_norm": 0.0017507720015667862,
|
119 |
+
"learning_rate": 2.429884359310328e-06,
|
120 |
+
"logits/chosen": -1.3874660730361938,
|
121 |
+
"logits/rejected": -1.264624834060669,
|
122 |
+
"logps/chosen": -170.91595458984375,
|
123 |
+
"logps/rejected": -1971.678466796875,
|
124 |
+
"loss": 0.0001,
|
125 |
+
"rewards/accuracies": 1.0,
|
126 |
+
"rewards/chosen": -0.9257668256759644,
|
127 |
+
"rewards/margins": 18.046239852905273,
|
128 |
+
"rewards/rejected": -18.972007751464844,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 3.2,
|
133 |
+
"grad_norm": 0.0012759873530227032,
|
134 |
+
"learning_rate": 1.7408081372259633e-06,
|
135 |
+
"logits/chosen": -1.3026721477508545,
|
136 |
+
"logits/rejected": -1.211972951889038,
|
137 |
+
"logps/chosen": -161.51548767089844,
|
138 |
+
"logps/rejected": -1921.3414306640625,
|
139 |
+
"loss": 0.0,
|
140 |
+
"rewards/accuracies": 1.0,
|
141 |
+
"rewards/chosen": -0.8770667314529419,
|
142 |
+
"rewards/margins": 17.575910568237305,
|
143 |
+
"rewards/rejected": -18.452978134155273,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 3.6,
|
148 |
+
"grad_norm": 0.0015468265273843927,
|
149 |
+
"learning_rate": 1.1110744174509952e-06,
|
150 |
+
"logits/chosen": -1.4862353801727295,
|
151 |
+
"logits/rejected": -1.386122226715088,
|
152 |
+
"logps/chosen": -173.3203887939453,
|
153 |
+
"logps/rejected": -2036.2054443359375,
|
154 |
+
"loss": 0.0,
|
155 |
+
"rewards/accuracies": 1.0,
|
156 |
+
"rewards/chosen": -0.9565305709838867,
|
157 |
+
"rewards/margins": 18.671863555908203,
|
158 |
+
"rewards/rejected": -19.628393173217773,
|
159 |
+
"step": 90
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 4.0,
|
163 |
+
"grad_norm": 0.0013608753936275465,
|
164 |
+
"learning_rate": 5.899065604459814e-07,
|
165 |
+
"logits/chosen": -1.2386879920959473,
|
166 |
+
"logits/rejected": -1.2031110525131226,
|
167 |
+
"logps/chosen": -157.1131591796875,
|
168 |
+
"logps/rejected": -1883.630126953125,
|
169 |
+
"loss": 0.0,
|
170 |
+
"rewards/accuracies": 1.0,
|
171 |
+
"rewards/chosen": -0.8118581771850586,
|
172 |
+
"rewards/margins": 17.229957580566406,
|
173 |
+
"rewards/rejected": -18.041812896728516,
|
174 |
+
"step": 100
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 4.4,
|
178 |
+
"grad_norm": 0.000781528269573621,
|
179 |
+
"learning_rate": 2.1804183734670277e-07,
|
180 |
+
"logits/chosen": -1.2313117980957031,
|
181 |
+
"logits/rejected": -1.2176135778427124,
|
182 |
+
"logps/chosen": -154.5117645263672,
|
183 |
+
"logps/rejected": -1841.933837890625,
|
184 |
+
"loss": 0.0,
|
185 |
+
"rewards/accuracies": 1.0,
|
186 |
+
"rewards/chosen": -0.8211410641670227,
|
187 |
+
"rewards/margins": 16.808500289916992,
|
188 |
+
"rewards/rejected": -17.629640579223633,
|
189 |
+
"step": 110
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"epoch": 4.8,
|
193 |
+
"grad_norm": 0.0015269909111218947,
|
194 |
+
"learning_rate": 2.454718665888589e-08,
|
195 |
+
"logits/chosen": -1.4756698608398438,
|
196 |
+
"logits/rejected": -1.2926015853881836,
|
197 |
+
"logps/chosen": -181.42701721191406,
|
198 |
+
"logps/rejected": -1979.6390380859375,
|
199 |
+
"loss": 0.0,
|
200 |
+
"rewards/accuracies": 1.0,
|
201 |
+
"rewards/chosen": -1.0040886402130127,
|
202 |
+
"rewards/margins": 18.079927444458008,
|
203 |
+
"rewards/rejected": -19.084014892578125,
|
204 |
+
"step": 120
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"epoch": 5.0,
|
208 |
+
"step": 125,
|
209 |
+
"total_flos": 0.0,
|
210 |
+
"train_loss": 0.07030335423257202,
|
211 |
+
"train_runtime": 8011.3193,
|
212 |
+
"train_samples_per_second": 0.499,
|
213 |
+
"train_steps_per_second": 0.016
|
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": 2,
|
235 |
+
"trial_name": null,
|
236 |
+
"trial_params": null
|
237 |
+
}
|