AmberYifan
commited on
Model save
Browse files- README.md +68 -0
- all_results.json +9 -0
- generation_config.json +10 -0
- train_results.json +9 -0
- trainer_state.json +690 -0
README.md
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: AmberYifan/llama2-7b-sft-ultrachat-safeRLHF
|
3 |
+
library_name: transformers
|
4 |
+
model_name: Llama-2-7b-relevant-4k
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
- trl
|
8 |
+
- dpo
|
9 |
+
licence: license
|
10 |
+
---
|
11 |
+
|
12 |
+
# Model Card for Llama-2-7b-relevant-4k
|
13 |
+
|
14 |
+
This model is a fine-tuned version of [AmberYifan/llama2-7b-sft-ultrachat-safeRLHF](https://huggingface.co/AmberYifan/llama2-7b-sft-ultrachat-safeRLHF).
|
15 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
16 |
+
|
17 |
+
## Quick start
|
18 |
+
|
19 |
+
```python
|
20 |
+
from transformers import pipeline
|
21 |
+
|
22 |
+
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
23 |
+
generator = pipeline("text-generation", model="AmberYifan/Llama-2-7b-relevant-4k", device="cuda")
|
24 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
25 |
+
print(output["generated_text"])
|
26 |
+
```
|
27 |
+
|
28 |
+
## Training procedure
|
29 |
+
|
30 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/yifanwang/huggingface/runs/lyy0ym22)
|
31 |
+
|
32 |
+
This model was trained with DPO, a method introduced in [Direct Preference Optimization: Your Language Model is Secretly a Reward Model](https://huggingface.co/papers/2305.18290).
|
33 |
+
|
34 |
+
### Framework versions
|
35 |
+
|
36 |
+
- TRL: 0.12.2
|
37 |
+
- Transformers: 4.46.3
|
38 |
+
- Pytorch: 2.5.1+cu118
|
39 |
+
- Datasets: 3.2.0
|
40 |
+
- Tokenizers: 0.20.3
|
41 |
+
|
42 |
+
## Citations
|
43 |
+
|
44 |
+
Cite DPO as:
|
45 |
+
|
46 |
+
```bibtex
|
47 |
+
@inproceedings{rafailov2023direct,
|
48 |
+
title = {{Direct Preference Optimization: Your Language Model is Secretly a Reward Model}},
|
49 |
+
author = {Rafael Rafailov and Archit Sharma and Eric Mitchell and Christopher D. Manning and Stefano Ermon and Chelsea Finn},
|
50 |
+
year = 2023,
|
51 |
+
booktitle = {Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023},
|
52 |
+
url = {http://papers.nips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html},
|
53 |
+
editor = {Alice Oh and Tristan Naumann and Amir Globerson and Kate Saenko and Moritz Hardt and Sergey Levine},
|
54 |
+
}
|
55 |
+
```
|
56 |
+
|
57 |
+
Cite TRL as:
|
58 |
+
|
59 |
+
```bibtex
|
60 |
+
@misc{vonwerra2022trl,
|
61 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
62 |
+
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
|
63 |
+
year = 2020,
|
64 |
+
journal = {GitHub repository},
|
65 |
+
publisher = {GitHub},
|
66 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
67 |
+
}
|
68 |
+
```
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.04084648387600677,
|
5 |
+
"train_runtime": 2792.6222,
|
6 |
+
"train_samples": 4212,
|
7 |
+
"train_samples_per_second": 4.525,
|
8 |
+
"train_steps_per_second": 0.142
|
9 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 1,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"max_length": 4096,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"temperature": 0.6,
|
8 |
+
"top_p": 0.9,
|
9 |
+
"transformers_version": "4.46.3"
|
10 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.04084648387600677,
|
5 |
+
"train_runtime": 2792.6222,
|
6 |
+
"train_samples": 4212,
|
7 |
+
"train_samples_per_second": 4.525,
|
8 |
+
"train_steps_per_second": 0.142
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,690 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 396,
|
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.007575757575757576,
|
13 |
+
"grad_norm": 32.91323715722947,
|
14 |
+
"learning_rate": 1.25e-08,
|
15 |
+
"logits/chosen": -1.65625,
|
16 |
+
"logits/rejected": -1.6640625,
|
17 |
+
"logps/chosen": -174.0,
|
18 |
+
"logps/rejected": -146.0,
|
19 |
+
"loss": 0.6914,
|
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.07575757575757576,
|
28 |
+
"grad_norm": 33.44451536419978,
|
29 |
+
"learning_rate": 1.25e-07,
|
30 |
+
"logits/chosen": -1.59375,
|
31 |
+
"logits/rejected": -1.5234375,
|
32 |
+
"logps/chosen": -162.0,
|
33 |
+
"logps/rejected": -138.0,
|
34 |
+
"loss": 0.6866,
|
35 |
+
"rewards/accuracies": 0.1666666716337204,
|
36 |
+
"rewards/chosen": -0.0111083984375,
|
37 |
+
"rewards/margins": -0.00138092041015625,
|
38 |
+
"rewards/rejected": -0.00970458984375,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.15151515151515152,
|
43 |
+
"grad_norm": 24.18673269022567,
|
44 |
+
"learning_rate": 2.5e-07,
|
45 |
+
"logits/chosen": -1.5390625,
|
46 |
+
"logits/rejected": -1.4296875,
|
47 |
+
"logps/chosen": -140.0,
|
48 |
+
"logps/rejected": -136.0,
|
49 |
+
"loss": 0.581,
|
50 |
+
"rewards/accuracies": 0.949999988079071,
|
51 |
+
"rewards/chosen": 0.01031494140625,
|
52 |
+
"rewards/margins": 0.2392578125,
|
53 |
+
"rewards/rejected": -0.228515625,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 0.22727272727272727,
|
58 |
+
"grad_norm": 9.48516053714528,
|
59 |
+
"learning_rate": 3.75e-07,
|
60 |
+
"logits/chosen": -1.5390625,
|
61 |
+
"logits/rejected": -1.3828125,
|
62 |
+
"logps/chosen": -138.0,
|
63 |
+
"logps/rejected": -148.0,
|
64 |
+
"loss": 0.29,
|
65 |
+
"rewards/accuracies": 1.0,
|
66 |
+
"rewards/chosen": 0.0018768310546875,
|
67 |
+
"rewards/margins": 1.2578125,
|
68 |
+
"rewards/rejected": -1.2578125,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.30303030303030304,
|
73 |
+
"grad_norm": 0.6687099946093109,
|
74 |
+
"learning_rate": 5e-07,
|
75 |
+
"logits/chosen": -1.53125,
|
76 |
+
"logits/rejected": -1.4140625,
|
77 |
+
"logps/chosen": -157.0,
|
78 |
+
"logps/rejected": -181.0,
|
79 |
+
"loss": 0.0402,
|
80 |
+
"rewards/accuracies": 1.0,
|
81 |
+
"rewards/chosen": -0.333984375,
|
82 |
+
"rewards/margins": 4.21875,
|
83 |
+
"rewards/rejected": -4.5625,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.3787878787878788,
|
88 |
+
"grad_norm": 0.13276288591607247,
|
89 |
+
"learning_rate": 4.859550561797752e-07,
|
90 |
+
"logits/chosen": -1.53125,
|
91 |
+
"logits/rejected": -1.40625,
|
92 |
+
"logps/chosen": -165.0,
|
93 |
+
"logps/rejected": -207.0,
|
94 |
+
"loss": 0.0018,
|
95 |
+
"rewards/accuracies": 1.0,
|
96 |
+
"rewards/chosen": -0.6171875,
|
97 |
+
"rewards/margins": 7.0625,
|
98 |
+
"rewards/rejected": -7.6875,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.45454545454545453,
|
103 |
+
"grad_norm": 0.22272699774735913,
|
104 |
+
"learning_rate": 4.7191011235955054e-07,
|
105 |
+
"logits/chosen": -1.578125,
|
106 |
+
"logits/rejected": -1.484375,
|
107 |
+
"logps/chosen": -170.0,
|
108 |
+
"logps/rejected": -227.0,
|
109 |
+
"loss": 0.0016,
|
110 |
+
"rewards/accuracies": 1.0,
|
111 |
+
"rewards/chosen": -0.6875,
|
112 |
+
"rewards/margins": 8.0625,
|
113 |
+
"rewards/rejected": -8.75,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.5303030303030303,
|
118 |
+
"grad_norm": 0.224870741613382,
|
119 |
+
"learning_rate": 4.5786516853932584e-07,
|
120 |
+
"logits/chosen": -1.546875,
|
121 |
+
"logits/rejected": -1.4921875,
|
122 |
+
"logps/chosen": -163.0,
|
123 |
+
"logps/rejected": -231.0,
|
124 |
+
"loss": 0.0012,
|
125 |
+
"rewards/accuracies": 1.0,
|
126 |
+
"rewards/chosen": -0.7734375,
|
127 |
+
"rewards/margins": 8.5,
|
128 |
+
"rewards/rejected": -9.25,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.6060606060606061,
|
133 |
+
"grad_norm": 0.16097415690521813,
|
134 |
+
"learning_rate": 4.438202247191011e-07,
|
135 |
+
"logits/chosen": -1.5078125,
|
136 |
+
"logits/rejected": -1.46875,
|
137 |
+
"logps/chosen": -153.0,
|
138 |
+
"logps/rejected": -235.0,
|
139 |
+
"loss": 0.0027,
|
140 |
+
"rewards/accuracies": 1.0,
|
141 |
+
"rewards/chosen": -0.79296875,
|
142 |
+
"rewards/margins": 9.125,
|
143 |
+
"rewards/rejected": -9.9375,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 0.6818181818181818,
|
148 |
+
"grad_norm": 0.09475144242280534,
|
149 |
+
"learning_rate": 4.297752808988764e-07,
|
150 |
+
"logits/chosen": -1.5625,
|
151 |
+
"logits/rejected": -1.5546875,
|
152 |
+
"logps/chosen": -151.0,
|
153 |
+
"logps/rejected": -244.0,
|
154 |
+
"loss": 0.0009,
|
155 |
+
"rewards/accuracies": 1.0,
|
156 |
+
"rewards/chosen": -0.6640625,
|
157 |
+
"rewards/margins": 9.5,
|
158 |
+
"rewards/rejected": -10.125,
|
159 |
+
"step": 90
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 0.7575757575757576,
|
163 |
+
"grad_norm": 0.19544716197287873,
|
164 |
+
"learning_rate": 4.157303370786517e-07,
|
165 |
+
"logits/chosen": -1.484375,
|
166 |
+
"logits/rejected": -1.515625,
|
167 |
+
"logps/chosen": -163.0,
|
168 |
+
"logps/rejected": -246.0,
|
169 |
+
"loss": 0.0009,
|
170 |
+
"rewards/accuracies": 1.0,
|
171 |
+
"rewards/chosen": -0.62109375,
|
172 |
+
"rewards/margins": 9.75,
|
173 |
+
"rewards/rejected": -10.375,
|
174 |
+
"step": 100
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 0.8333333333333334,
|
178 |
+
"grad_norm": 0.18126368085142058,
|
179 |
+
"learning_rate": 4.0168539325842696e-07,
|
180 |
+
"logits/chosen": -1.515625,
|
181 |
+
"logits/rejected": -1.484375,
|
182 |
+
"logps/chosen": -159.0,
|
183 |
+
"logps/rejected": -246.0,
|
184 |
+
"loss": 0.001,
|
185 |
+
"rewards/accuracies": 1.0,
|
186 |
+
"rewards/chosen": -0.703125,
|
187 |
+
"rewards/margins": 10.0625,
|
188 |
+
"rewards/rejected": -10.75,
|
189 |
+
"step": 110
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"epoch": 0.9090909090909091,
|
193 |
+
"grad_norm": 0.00566877598086428,
|
194 |
+
"learning_rate": 3.876404494382022e-07,
|
195 |
+
"logits/chosen": -1.53125,
|
196 |
+
"logits/rejected": -1.4453125,
|
197 |
+
"logps/chosen": -148.0,
|
198 |
+
"logps/rejected": -247.0,
|
199 |
+
"loss": 0.0014,
|
200 |
+
"rewards/accuracies": 1.0,
|
201 |
+
"rewards/chosen": -0.77734375,
|
202 |
+
"rewards/margins": 10.5,
|
203 |
+
"rewards/rejected": -11.3125,
|
204 |
+
"step": 120
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"epoch": 0.9848484848484849,
|
208 |
+
"grad_norm": 0.5918723347747266,
|
209 |
+
"learning_rate": 3.735955056179775e-07,
|
210 |
+
"logits/chosen": -1.609375,
|
211 |
+
"logits/rejected": -1.546875,
|
212 |
+
"logps/chosen": -171.0,
|
213 |
+
"logps/rejected": -252.0,
|
214 |
+
"loss": 0.0007,
|
215 |
+
"rewards/accuracies": 1.0,
|
216 |
+
"rewards/chosen": -0.65234375,
|
217 |
+
"rewards/margins": 10.9375,
|
218 |
+
"rewards/rejected": -11.5625,
|
219 |
+
"step": 130
|
220 |
+
},
|
221 |
+
{
|
222 |
+
"epoch": 1.0,
|
223 |
+
"eval_logits/chosen": -1.484375,
|
224 |
+
"eval_logits/rejected": -1.4609375,
|
225 |
+
"eval_logps/chosen": -117.5,
|
226 |
+
"eval_logps/rejected": -245.0,
|
227 |
+
"eval_loss": 0.002259350847452879,
|
228 |
+
"eval_rewards/accuracies": 1.0,
|
229 |
+
"eval_rewards/chosen": -0.6015625,
|
230 |
+
"eval_rewards/margins": 10.375,
|
231 |
+
"eval_rewards/rejected": -11.0,
|
232 |
+
"eval_runtime": 5.1355,
|
233 |
+
"eval_samples_per_second": 16.357,
|
234 |
+
"eval_steps_per_second": 0.584,
|
235 |
+
"step": 132
|
236 |
+
},
|
237 |
+
{
|
238 |
+
"epoch": 1.0606060606060606,
|
239 |
+
"grad_norm": 0.044137608822413354,
|
240 |
+
"learning_rate": 3.5955056179775277e-07,
|
241 |
+
"logits/chosen": -1.578125,
|
242 |
+
"logits/rejected": -1.5078125,
|
243 |
+
"logps/chosen": -155.0,
|
244 |
+
"logps/rejected": -260.0,
|
245 |
+
"loss": 0.0003,
|
246 |
+
"rewards/accuracies": 1.0,
|
247 |
+
"rewards/chosen": -0.65625,
|
248 |
+
"rewards/margins": 11.3125,
|
249 |
+
"rewards/rejected": -12.0,
|
250 |
+
"step": 140
|
251 |
+
},
|
252 |
+
{
|
253 |
+
"epoch": 1.1363636363636362,
|
254 |
+
"grad_norm": 0.03726527729430989,
|
255 |
+
"learning_rate": 3.4550561797752807e-07,
|
256 |
+
"logits/chosen": -1.578125,
|
257 |
+
"logits/rejected": -1.515625,
|
258 |
+
"logps/chosen": -152.0,
|
259 |
+
"logps/rejected": -252.0,
|
260 |
+
"loss": 0.0017,
|
261 |
+
"rewards/accuracies": 1.0,
|
262 |
+
"rewards/chosen": -0.427734375,
|
263 |
+
"rewards/margins": 11.0,
|
264 |
+
"rewards/rejected": -11.4375,
|
265 |
+
"step": 150
|
266 |
+
},
|
267 |
+
{
|
268 |
+
"epoch": 1.2121212121212122,
|
269 |
+
"grad_norm": 0.04249817642262755,
|
270 |
+
"learning_rate": 3.314606741573033e-07,
|
271 |
+
"logits/chosen": -1.5625,
|
272 |
+
"logits/rejected": -1.5703125,
|
273 |
+
"logps/chosen": -157.0,
|
274 |
+
"logps/rejected": -252.0,
|
275 |
+
"loss": 0.0004,
|
276 |
+
"rewards/accuracies": 1.0,
|
277 |
+
"rewards/chosen": -0.345703125,
|
278 |
+
"rewards/margins": 10.9375,
|
279 |
+
"rewards/rejected": -11.25,
|
280 |
+
"step": 160
|
281 |
+
},
|
282 |
+
{
|
283 |
+
"epoch": 1.2878787878787878,
|
284 |
+
"grad_norm": 0.02636991212367461,
|
285 |
+
"learning_rate": 3.1741573033707863e-07,
|
286 |
+
"logits/chosen": -1.546875,
|
287 |
+
"logits/rejected": -1.5546875,
|
288 |
+
"logps/chosen": -153.0,
|
289 |
+
"logps/rejected": -253.0,
|
290 |
+
"loss": 0.0003,
|
291 |
+
"rewards/accuracies": 1.0,
|
292 |
+
"rewards/chosen": -0.326171875,
|
293 |
+
"rewards/margins": 11.0,
|
294 |
+
"rewards/rejected": -11.3125,
|
295 |
+
"step": 170
|
296 |
+
},
|
297 |
+
{
|
298 |
+
"epoch": 1.3636363636363638,
|
299 |
+
"grad_norm": 0.002485552309390973,
|
300 |
+
"learning_rate": 3.0337078651685393e-07,
|
301 |
+
"logits/chosen": -1.59375,
|
302 |
+
"logits/rejected": -1.578125,
|
303 |
+
"logps/chosen": -170.0,
|
304 |
+
"logps/rejected": -251.0,
|
305 |
+
"loss": 0.0001,
|
306 |
+
"rewards/accuracies": 1.0,
|
307 |
+
"rewards/chosen": -0.4375,
|
308 |
+
"rewards/margins": 11.0625,
|
309 |
+
"rewards/rejected": -11.5,
|
310 |
+
"step": 180
|
311 |
+
},
|
312 |
+
{
|
313 |
+
"epoch": 1.4393939393939394,
|
314 |
+
"grad_norm": 0.06372981794712247,
|
315 |
+
"learning_rate": 2.893258426966292e-07,
|
316 |
+
"logits/chosen": -1.546875,
|
317 |
+
"logits/rejected": -1.53125,
|
318 |
+
"logps/chosen": -152.0,
|
319 |
+
"logps/rejected": -254.0,
|
320 |
+
"loss": 0.0001,
|
321 |
+
"rewards/accuracies": 1.0,
|
322 |
+
"rewards/chosen": -0.384765625,
|
323 |
+
"rewards/margins": 11.6875,
|
324 |
+
"rewards/rejected": -12.0625,
|
325 |
+
"step": 190
|
326 |
+
},
|
327 |
+
{
|
328 |
+
"epoch": 1.5151515151515151,
|
329 |
+
"grad_norm": 0.056568516864774675,
|
330 |
+
"learning_rate": 2.752808988764045e-07,
|
331 |
+
"logits/chosen": -1.5703125,
|
332 |
+
"logits/rejected": -1.5078125,
|
333 |
+
"logps/chosen": -158.0,
|
334 |
+
"logps/rejected": -256.0,
|
335 |
+
"loss": 0.0011,
|
336 |
+
"rewards/accuracies": 1.0,
|
337 |
+
"rewards/chosen": -0.53515625,
|
338 |
+
"rewards/margins": 11.5,
|
339 |
+
"rewards/rejected": -12.0,
|
340 |
+
"step": 200
|
341 |
+
},
|
342 |
+
{
|
343 |
+
"epoch": 1.5909090909090908,
|
344 |
+
"grad_norm": 0.0017135050317799595,
|
345 |
+
"learning_rate": 2.612359550561798e-07,
|
346 |
+
"logits/chosen": -1.609375,
|
347 |
+
"logits/rejected": -1.53125,
|
348 |
+
"logps/chosen": -171.0,
|
349 |
+
"logps/rejected": -264.0,
|
350 |
+
"loss": 0.0001,
|
351 |
+
"rewards/accuracies": 1.0,
|
352 |
+
"rewards/chosen": -0.6875,
|
353 |
+
"rewards/margins": 11.875,
|
354 |
+
"rewards/rejected": -12.5,
|
355 |
+
"step": 210
|
356 |
+
},
|
357 |
+
{
|
358 |
+
"epoch": 1.6666666666666665,
|
359 |
+
"grad_norm": 0.011438568560823217,
|
360 |
+
"learning_rate": 2.4719101123595505e-07,
|
361 |
+
"logits/chosen": -1.5,
|
362 |
+
"logits/rejected": -1.53125,
|
363 |
+
"logps/chosen": -155.0,
|
364 |
+
"logps/rejected": -264.0,
|
365 |
+
"loss": 0.0001,
|
366 |
+
"rewards/accuracies": 1.0,
|
367 |
+
"rewards/chosen": -0.8125,
|
368 |
+
"rewards/margins": 11.6875,
|
369 |
+
"rewards/rejected": -12.5,
|
370 |
+
"step": 220
|
371 |
+
},
|
372 |
+
{
|
373 |
+
"epoch": 1.7424242424242424,
|
374 |
+
"grad_norm": 0.00196532311899783,
|
375 |
+
"learning_rate": 2.331460674157303e-07,
|
376 |
+
"logits/chosen": -1.59375,
|
377 |
+
"logits/rejected": -1.5625,
|
378 |
+
"logps/chosen": -160.0,
|
379 |
+
"logps/rejected": -264.0,
|
380 |
+
"loss": 0.0001,
|
381 |
+
"rewards/accuracies": 1.0,
|
382 |
+
"rewards/chosen": -0.98828125,
|
383 |
+
"rewards/margins": 11.75,
|
384 |
+
"rewards/rejected": -12.75,
|
385 |
+
"step": 230
|
386 |
+
},
|
387 |
+
{
|
388 |
+
"epoch": 1.8181818181818183,
|
389 |
+
"grad_norm": 0.02412516870728502,
|
390 |
+
"learning_rate": 2.191011235955056e-07,
|
391 |
+
"logits/chosen": -1.578125,
|
392 |
+
"logits/rejected": -1.578125,
|
393 |
+
"logps/chosen": -163.0,
|
394 |
+
"logps/rejected": -272.0,
|
395 |
+
"loss": 0.0002,
|
396 |
+
"rewards/accuracies": 1.0,
|
397 |
+
"rewards/chosen": -0.859375,
|
398 |
+
"rewards/margins": 12.0625,
|
399 |
+
"rewards/rejected": -12.9375,
|
400 |
+
"step": 240
|
401 |
+
},
|
402 |
+
{
|
403 |
+
"epoch": 1.893939393939394,
|
404 |
+
"grad_norm": 0.008677592300417748,
|
405 |
+
"learning_rate": 2.0505617977528089e-07,
|
406 |
+
"logits/chosen": -1.5625,
|
407 |
+
"logits/rejected": -1.546875,
|
408 |
+
"logps/chosen": -164.0,
|
409 |
+
"logps/rejected": -268.0,
|
410 |
+
"loss": 0.0002,
|
411 |
+
"rewards/accuracies": 1.0,
|
412 |
+
"rewards/chosen": -0.98046875,
|
413 |
+
"rewards/margins": 12.0,
|
414 |
+
"rewards/rejected": -13.0,
|
415 |
+
"step": 250
|
416 |
+
},
|
417 |
+
{
|
418 |
+
"epoch": 1.9696969696969697,
|
419 |
+
"grad_norm": 0.005504070078399264,
|
420 |
+
"learning_rate": 1.9101123595505617e-07,
|
421 |
+
"logits/chosen": -1.53125,
|
422 |
+
"logits/rejected": -1.515625,
|
423 |
+
"logps/chosen": -164.0,
|
424 |
+
"logps/rejected": -268.0,
|
425 |
+
"loss": 0.0001,
|
426 |
+
"rewards/accuracies": 1.0,
|
427 |
+
"rewards/chosen": -0.91796875,
|
428 |
+
"rewards/margins": 12.1875,
|
429 |
+
"rewards/rejected": -13.0625,
|
430 |
+
"step": 260
|
431 |
+
},
|
432 |
+
{
|
433 |
+
"epoch": 2.0,
|
434 |
+
"eval_logits/chosen": -1.4921875,
|
435 |
+
"eval_logits/rejected": -1.484375,
|
436 |
+
"eval_logps/chosen": -119.5,
|
437 |
+
"eval_logps/rejected": -256.0,
|
438 |
+
"eval_loss": 0.0008152184309437871,
|
439 |
+
"eval_rewards/accuracies": 1.0,
|
440 |
+
"eval_rewards/chosen": -0.79296875,
|
441 |
+
"eval_rewards/margins": 11.375,
|
442 |
+
"eval_rewards/rejected": -12.125,
|
443 |
+
"eval_runtime": 5.7051,
|
444 |
+
"eval_samples_per_second": 14.724,
|
445 |
+
"eval_steps_per_second": 0.526,
|
446 |
+
"step": 264
|
447 |
+
},
|
448 |
+
{
|
449 |
+
"epoch": 2.0454545454545454,
|
450 |
+
"grad_norm": 0.00984660780499755,
|
451 |
+
"learning_rate": 1.7696629213483144e-07,
|
452 |
+
"logits/chosen": -1.5234375,
|
453 |
+
"logits/rejected": -1.5390625,
|
454 |
+
"logps/chosen": -148.0,
|
455 |
+
"logps/rejected": -266.0,
|
456 |
+
"loss": 0.0002,
|
457 |
+
"rewards/accuracies": 1.0,
|
458 |
+
"rewards/chosen": -0.7734375,
|
459 |
+
"rewards/margins": 12.0,
|
460 |
+
"rewards/rejected": -12.75,
|
461 |
+
"step": 270
|
462 |
+
},
|
463 |
+
{
|
464 |
+
"epoch": 2.121212121212121,
|
465 |
+
"grad_norm": 0.004414538457258972,
|
466 |
+
"learning_rate": 1.6292134831460675e-07,
|
467 |
+
"logits/chosen": -1.5,
|
468 |
+
"logits/rejected": -1.515625,
|
469 |
+
"logps/chosen": -165.0,
|
470 |
+
"logps/rejected": -264.0,
|
471 |
+
"loss": 0.0002,
|
472 |
+
"rewards/accuracies": 1.0,
|
473 |
+
"rewards/chosen": -0.75390625,
|
474 |
+
"rewards/margins": 12.125,
|
475 |
+
"rewards/rejected": -12.875,
|
476 |
+
"step": 280
|
477 |
+
},
|
478 |
+
{
|
479 |
+
"epoch": 2.196969696969697,
|
480 |
+
"grad_norm": 0.016662720665351936,
|
481 |
+
"learning_rate": 1.4887640449438203e-07,
|
482 |
+
"logits/chosen": -1.5703125,
|
483 |
+
"logits/rejected": -1.546875,
|
484 |
+
"logps/chosen": -156.0,
|
485 |
+
"logps/rejected": -272.0,
|
486 |
+
"loss": 0.0002,
|
487 |
+
"rewards/accuracies": 1.0,
|
488 |
+
"rewards/chosen": -0.79296875,
|
489 |
+
"rewards/margins": 12.1875,
|
490 |
+
"rewards/rejected": -13.0,
|
491 |
+
"step": 290
|
492 |
+
},
|
493 |
+
{
|
494 |
+
"epoch": 2.2727272727272725,
|
495 |
+
"grad_norm": 0.05873531330460493,
|
496 |
+
"learning_rate": 1.3483146067415728e-07,
|
497 |
+
"logits/chosen": -1.59375,
|
498 |
+
"logits/rejected": -1.546875,
|
499 |
+
"logps/chosen": -160.0,
|
500 |
+
"logps/rejected": -268.0,
|
501 |
+
"loss": 0.0001,
|
502 |
+
"rewards/accuracies": 1.0,
|
503 |
+
"rewards/chosen": -0.78515625,
|
504 |
+
"rewards/margins": 12.25,
|
505 |
+
"rewards/rejected": -13.0,
|
506 |
+
"step": 300
|
507 |
+
},
|
508 |
+
{
|
509 |
+
"epoch": 2.3484848484848486,
|
510 |
+
"grad_norm": 0.046015511031248915,
|
511 |
+
"learning_rate": 1.2078651685393259e-07,
|
512 |
+
"logits/chosen": -1.5625,
|
513 |
+
"logits/rejected": -1.546875,
|
514 |
+
"logps/chosen": -151.0,
|
515 |
+
"logps/rejected": -264.0,
|
516 |
+
"loss": 0.0001,
|
517 |
+
"rewards/accuracies": 1.0,
|
518 |
+
"rewards/chosen": -0.70703125,
|
519 |
+
"rewards/margins": 12.125,
|
520 |
+
"rewards/rejected": -12.875,
|
521 |
+
"step": 310
|
522 |
+
},
|
523 |
+
{
|
524 |
+
"epoch": 2.4242424242424243,
|
525 |
+
"grad_norm": 0.3021671776155001,
|
526 |
+
"learning_rate": 1.0674157303370785e-07,
|
527 |
+
"logits/chosen": -1.578125,
|
528 |
+
"logits/rejected": -1.578125,
|
529 |
+
"logps/chosen": -161.0,
|
530 |
+
"logps/rejected": -272.0,
|
531 |
+
"loss": 0.0003,
|
532 |
+
"rewards/accuracies": 1.0,
|
533 |
+
"rewards/chosen": -0.75390625,
|
534 |
+
"rewards/margins": 12.3125,
|
535 |
+
"rewards/rejected": -13.0625,
|
536 |
+
"step": 320
|
537 |
+
},
|
538 |
+
{
|
539 |
+
"epoch": 2.5,
|
540 |
+
"grad_norm": 0.0015387455528242642,
|
541 |
+
"learning_rate": 9.269662921348314e-08,
|
542 |
+
"logits/chosen": -1.6171875,
|
543 |
+
"logits/rejected": -1.5703125,
|
544 |
+
"logps/chosen": -163.0,
|
545 |
+
"logps/rejected": -266.0,
|
546 |
+
"loss": 0.0001,
|
547 |
+
"rewards/accuracies": 1.0,
|
548 |
+
"rewards/chosen": -0.74609375,
|
549 |
+
"rewards/margins": 12.375,
|
550 |
+
"rewards/rejected": -13.125,
|
551 |
+
"step": 330
|
552 |
+
},
|
553 |
+
{
|
554 |
+
"epoch": 2.5757575757575757,
|
555 |
+
"grad_norm": 0.001321971934515845,
|
556 |
+
"learning_rate": 7.865168539325842e-08,
|
557 |
+
"logits/chosen": -1.53125,
|
558 |
+
"logits/rejected": -1.609375,
|
559 |
+
"logps/chosen": -150.0,
|
560 |
+
"logps/rejected": -276.0,
|
561 |
+
"loss": 0.0001,
|
562 |
+
"rewards/accuracies": 1.0,
|
563 |
+
"rewards/chosen": -0.7421875,
|
564 |
+
"rewards/margins": 12.625,
|
565 |
+
"rewards/rejected": -13.375,
|
566 |
+
"step": 340
|
567 |
+
},
|
568 |
+
{
|
569 |
+
"epoch": 2.6515151515151514,
|
570 |
+
"grad_norm": 0.0057061429256677594,
|
571 |
+
"learning_rate": 6.460674157303371e-08,
|
572 |
+
"logits/chosen": -1.53125,
|
573 |
+
"logits/rejected": -1.5703125,
|
574 |
+
"logps/chosen": -159.0,
|
575 |
+
"logps/rejected": -276.0,
|
576 |
+
"loss": 0.0001,
|
577 |
+
"rewards/accuracies": 1.0,
|
578 |
+
"rewards/chosen": -0.875,
|
579 |
+
"rewards/margins": 12.5625,
|
580 |
+
"rewards/rejected": -13.4375,
|
581 |
+
"step": 350
|
582 |
+
},
|
583 |
+
{
|
584 |
+
"epoch": 2.7272727272727275,
|
585 |
+
"grad_norm": 0.4762341538722265,
|
586 |
+
"learning_rate": 5.056179775280899e-08,
|
587 |
+
"logits/chosen": -1.5625,
|
588 |
+
"logits/rejected": -1.546875,
|
589 |
+
"logps/chosen": -143.0,
|
590 |
+
"logps/rejected": -268.0,
|
591 |
+
"loss": 0.0004,
|
592 |
+
"rewards/accuracies": 1.0,
|
593 |
+
"rewards/chosen": -0.68359375,
|
594 |
+
"rewards/margins": 12.3125,
|
595 |
+
"rewards/rejected": -13.0,
|
596 |
+
"step": 360
|
597 |
+
},
|
598 |
+
{
|
599 |
+
"epoch": 2.8030303030303028,
|
600 |
+
"grad_norm": 0.2900268557706346,
|
601 |
+
"learning_rate": 3.6516853932584266e-08,
|
602 |
+
"logits/chosen": -1.53125,
|
603 |
+
"logits/rejected": -1.5859375,
|
604 |
+
"logps/chosen": -147.0,
|
605 |
+
"logps/rejected": -270.0,
|
606 |
+
"loss": 0.0002,
|
607 |
+
"rewards/accuracies": 1.0,
|
608 |
+
"rewards/chosen": -0.85546875,
|
609 |
+
"rewards/margins": 12.25,
|
610 |
+
"rewards/rejected": -13.0625,
|
611 |
+
"step": 370
|
612 |
+
},
|
613 |
+
{
|
614 |
+
"epoch": 2.878787878787879,
|
615 |
+
"grad_norm": 0.005709415780533644,
|
616 |
+
"learning_rate": 2.2471910112359548e-08,
|
617 |
+
"logits/chosen": -1.59375,
|
618 |
+
"logits/rejected": -1.5390625,
|
619 |
+
"logps/chosen": -163.0,
|
620 |
+
"logps/rejected": -270.0,
|
621 |
+
"loss": 0.0001,
|
622 |
+
"rewards/accuracies": 1.0,
|
623 |
+
"rewards/chosen": -0.74609375,
|
624 |
+
"rewards/margins": 12.4375,
|
625 |
+
"rewards/rejected": -13.1875,
|
626 |
+
"step": 380
|
627 |
+
},
|
628 |
+
{
|
629 |
+
"epoch": 2.9545454545454546,
|
630 |
+
"grad_norm": 0.009508653721430635,
|
631 |
+
"learning_rate": 8.42696629213483e-09,
|
632 |
+
"logits/chosen": -1.5703125,
|
633 |
+
"logits/rejected": -1.59375,
|
634 |
+
"logps/chosen": -160.0,
|
635 |
+
"logps/rejected": -266.0,
|
636 |
+
"loss": 0.0001,
|
637 |
+
"rewards/accuracies": 1.0,
|
638 |
+
"rewards/chosen": -0.7421875,
|
639 |
+
"rewards/margins": 12.125,
|
640 |
+
"rewards/rejected": -12.875,
|
641 |
+
"step": 390
|
642 |
+
},
|
643 |
+
{
|
644 |
+
"epoch": 3.0,
|
645 |
+
"eval_logits/chosen": -1.5,
|
646 |
+
"eval_logits/rejected": -1.484375,
|
647 |
+
"eval_logps/chosen": -119.0,
|
648 |
+
"eval_logps/rejected": -260.0,
|
649 |
+
"eval_loss": 0.0003405184834264219,
|
650 |
+
"eval_rewards/accuracies": 1.0,
|
651 |
+
"eval_rewards/chosen": -0.734375,
|
652 |
+
"eval_rewards/margins": 11.75,
|
653 |
+
"eval_rewards/rejected": -12.5,
|
654 |
+
"eval_runtime": 16.5049,
|
655 |
+
"eval_samples_per_second": 5.089,
|
656 |
+
"eval_steps_per_second": 0.182,
|
657 |
+
"step": 396
|
658 |
+
},
|
659 |
+
{
|
660 |
+
"epoch": 3.0,
|
661 |
+
"step": 396,
|
662 |
+
"total_flos": 0.0,
|
663 |
+
"train_loss": 0.04084648387600677,
|
664 |
+
"train_runtime": 2792.6222,
|
665 |
+
"train_samples_per_second": 4.525,
|
666 |
+
"train_steps_per_second": 0.142
|
667 |
+
}
|
668 |
+
],
|
669 |
+
"logging_steps": 10,
|
670 |
+
"max_steps": 396,
|
671 |
+
"num_input_tokens_seen": 0,
|
672 |
+
"num_train_epochs": 3,
|
673 |
+
"save_steps": 500,
|
674 |
+
"stateful_callbacks": {
|
675 |
+
"TrainerControl": {
|
676 |
+
"args": {
|
677 |
+
"should_epoch_stop": false,
|
678 |
+
"should_evaluate": false,
|
679 |
+
"should_log": false,
|
680 |
+
"should_save": true,
|
681 |
+
"should_training_stop": true
|
682 |
+
},
|
683 |
+
"attributes": {}
|
684 |
+
}
|
685 |
+
},
|
686 |
+
"total_flos": 0.0,
|
687 |
+
"train_batch_size": 8,
|
688 |
+
"trial_name": null,
|
689 |
+
"trial_params": null
|
690 |
+
}
|