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-sft-spin-4k
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
- trl
|
8 |
+
- dpo
|
9 |
+
licence: license
|
10 |
+
---
|
11 |
+
|
12 |
+
# Model Card for Llama-2-7b-sft-spin-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-sft-spin-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/3pzzv8aq)
|
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.041059525631782084,
|
5 |
+
"train_runtime": 2403.0973,
|
6 |
+
"train_samples": 4200,
|
7 |
+
"train_samples_per_second": 5.243,
|
8 |
+
"train_steps_per_second": 0.165
|
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.041059525631782084,
|
5 |
+
"train_runtime": 2403.0973,
|
6 |
+
"train_samples": 4200,
|
7 |
+
"train_samples_per_second": 5.243,
|
8 |
+
"train_steps_per_second": 0.165
|
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.091551837266515,
|
14 |
+
"learning_rate": 1.25e-08,
|
15 |
+
"logits/chosen": -1.8046875,
|
16 |
+
"logits/rejected": -1.5859375,
|
17 |
+
"logps/chosen": -163.0,
|
18 |
+
"logps/rejected": -142.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": 29.307157179340344,
|
29 |
+
"learning_rate": 1.25e-07,
|
30 |
+
"logits/chosen": -1.59375,
|
31 |
+
"logits/rejected": -1.328125,
|
32 |
+
"logps/chosen": -152.0,
|
33 |
+
"logps/rejected": -132.0,
|
34 |
+
"loss": 0.6876,
|
35 |
+
"rewards/accuracies": 0.2638888955116272,
|
36 |
+
"rewards/chosen": -0.00347900390625,
|
37 |
+
"rewards/margins": 0.0069580078125,
|
38 |
+
"rewards/rejected": -0.01043701171875,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.15151515151515152,
|
43 |
+
"grad_norm": 25.07098632835419,
|
44 |
+
"learning_rate": 2.5e-07,
|
45 |
+
"logits/chosen": -1.609375,
|
46 |
+
"logits/rejected": -1.3828125,
|
47 |
+
"logps/chosen": -153.0,
|
48 |
+
"logps/rejected": -132.0,
|
49 |
+
"loss": 0.5848,
|
50 |
+
"rewards/accuracies": 0.925000011920929,
|
51 |
+
"rewards/chosen": 0.01531982421875,
|
52 |
+
"rewards/margins": 0.232421875,
|
53 |
+
"rewards/rejected": -0.2177734375,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 0.22727272727272727,
|
58 |
+
"grad_norm": 11.45839328112264,
|
59 |
+
"learning_rate": 3.75e-07,
|
60 |
+
"logits/chosen": -1.609375,
|
61 |
+
"logits/rejected": -1.3359375,
|
62 |
+
"logps/chosen": -147.0,
|
63 |
+
"logps/rejected": -141.0,
|
64 |
+
"loss": 0.292,
|
65 |
+
"rewards/accuracies": 0.987500011920929,
|
66 |
+
"rewards/chosen": 0.032470703125,
|
67 |
+
"rewards/margins": 1.21875,
|
68 |
+
"rewards/rejected": -1.1796875,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.30303030303030304,
|
73 |
+
"grad_norm": 0.46253339983913294,
|
74 |
+
"learning_rate": 5e-07,
|
75 |
+
"logits/chosen": -1.515625,
|
76 |
+
"logits/rejected": -1.3671875,
|
77 |
+
"logps/chosen": -132.0,
|
78 |
+
"logps/rejected": -174.0,
|
79 |
+
"loss": 0.0439,
|
80 |
+
"rewards/accuracies": 1.0,
|
81 |
+
"rewards/chosen": -0.255859375,
|
82 |
+
"rewards/margins": 4.25,
|
83 |
+
"rewards/rejected": -4.5,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.3787878787878788,
|
88 |
+
"grad_norm": 0.3395592758682824,
|
89 |
+
"learning_rate": 4.859550561797752e-07,
|
90 |
+
"logits/chosen": -1.5078125,
|
91 |
+
"logits/rejected": -1.3671875,
|
92 |
+
"logps/chosen": -151.0,
|
93 |
+
"logps/rejected": -211.0,
|
94 |
+
"loss": 0.0033,
|
95 |
+
"rewards/accuracies": 1.0,
|
96 |
+
"rewards/chosen": -0.63671875,
|
97 |
+
"rewards/margins": 6.96875,
|
98 |
+
"rewards/rejected": -7.625,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.45454545454545453,
|
103 |
+
"grad_norm": 0.5048466762536648,
|
104 |
+
"learning_rate": 4.7191011235955054e-07,
|
105 |
+
"logits/chosen": -1.515625,
|
106 |
+
"logits/rejected": -1.28125,
|
107 |
+
"logps/chosen": -145.0,
|
108 |
+
"logps/rejected": -214.0,
|
109 |
+
"loss": 0.0017,
|
110 |
+
"rewards/accuracies": 1.0,
|
111 |
+
"rewards/chosen": -0.71875,
|
112 |
+
"rewards/margins": 8.0,
|
113 |
+
"rewards/rejected": -8.75,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.5303030303030303,
|
118 |
+
"grad_norm": 0.2393323020031099,
|
119 |
+
"learning_rate": 4.5786516853932584e-07,
|
120 |
+
"logits/chosen": -1.625,
|
121 |
+
"logits/rejected": -1.515625,
|
122 |
+
"logps/chosen": -169.0,
|
123 |
+
"logps/rejected": -224.0,
|
124 |
+
"loss": 0.0022,
|
125 |
+
"rewards/accuracies": 1.0,
|
126 |
+
"rewards/chosen": -0.8046875,
|
127 |
+
"rewards/margins": 8.375,
|
128 |
+
"rewards/rejected": -9.1875,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.6060606060606061,
|
133 |
+
"grad_norm": 0.4781670788915071,
|
134 |
+
"learning_rate": 4.438202247191011e-07,
|
135 |
+
"logits/chosen": -1.5078125,
|
136 |
+
"logits/rejected": -1.359375,
|
137 |
+
"logps/chosen": -157.0,
|
138 |
+
"logps/rejected": -230.0,
|
139 |
+
"loss": 0.0012,
|
140 |
+
"rewards/accuracies": 1.0,
|
141 |
+
"rewards/chosen": -0.8046875,
|
142 |
+
"rewards/margins": 9.25,
|
143 |
+
"rewards/rejected": -10.125,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 0.6818181818181818,
|
148 |
+
"grad_norm": 0.17816540763501387,
|
149 |
+
"learning_rate": 4.297752808988764e-07,
|
150 |
+
"logits/chosen": -1.5625,
|
151 |
+
"logits/rejected": -1.421875,
|
152 |
+
"logps/chosen": -146.0,
|
153 |
+
"logps/rejected": -240.0,
|
154 |
+
"loss": 0.0005,
|
155 |
+
"rewards/accuracies": 1.0,
|
156 |
+
"rewards/chosen": -0.72265625,
|
157 |
+
"rewards/margins": 9.8125,
|
158 |
+
"rewards/rejected": -10.5,
|
159 |
+
"step": 90
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 0.7575757575757576,
|
163 |
+
"grad_norm": 0.11217914292234316,
|
164 |
+
"learning_rate": 4.157303370786517e-07,
|
165 |
+
"logits/chosen": -1.6171875,
|
166 |
+
"logits/rejected": -1.4453125,
|
167 |
+
"logps/chosen": -152.0,
|
168 |
+
"logps/rejected": -231.0,
|
169 |
+
"loss": 0.0008,
|
170 |
+
"rewards/accuracies": 1.0,
|
171 |
+
"rewards/chosen": -0.8125,
|
172 |
+
"rewards/margins": 9.5,
|
173 |
+
"rewards/rejected": -10.3125,
|
174 |
+
"step": 100
|
175 |
+
},
|
176 |
+
{
|
177 |
+
"epoch": 0.8333333333333334,
|
178 |
+
"grad_norm": 0.010563655594026364,
|
179 |
+
"learning_rate": 4.0168539325842696e-07,
|
180 |
+
"logits/chosen": -1.5625,
|
181 |
+
"logits/rejected": -1.4375,
|
182 |
+
"logps/chosen": -165.0,
|
183 |
+
"logps/rejected": -239.0,
|
184 |
+
"loss": 0.0018,
|
185 |
+
"rewards/accuracies": 1.0,
|
186 |
+
"rewards/chosen": -0.92578125,
|
187 |
+
"rewards/margins": 9.875,
|
188 |
+
"rewards/rejected": -10.8125,
|
189 |
+
"step": 110
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"epoch": 0.9090909090909091,
|
193 |
+
"grad_norm": 0.023851884708781215,
|
194 |
+
"learning_rate": 3.876404494382022e-07,
|
195 |
+
"logits/chosen": -1.5078125,
|
196 |
+
"logits/rejected": -1.4296875,
|
197 |
+
"logps/chosen": -152.0,
|
198 |
+
"logps/rejected": -244.0,
|
199 |
+
"loss": 0.0004,
|
200 |
+
"rewards/accuracies": 1.0,
|
201 |
+
"rewards/chosen": -0.9453125,
|
202 |
+
"rewards/margins": 10.3125,
|
203 |
+
"rewards/rejected": -11.25,
|
204 |
+
"step": 120
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"epoch": 0.9848484848484849,
|
208 |
+
"grad_norm": 0.09604967540471057,
|
209 |
+
"learning_rate": 3.735955056179775e-07,
|
210 |
+
"logits/chosen": -1.5546875,
|
211 |
+
"logits/rejected": -1.46875,
|
212 |
+
"logps/chosen": -153.0,
|
213 |
+
"logps/rejected": -244.0,
|
214 |
+
"loss": 0.0002,
|
215 |
+
"rewards/accuracies": 1.0,
|
216 |
+
"rewards/chosen": -0.953125,
|
217 |
+
"rewards/margins": 10.125,
|
218 |
+
"rewards/rejected": -11.0625,
|
219 |
+
"step": 130
|
220 |
+
},
|
221 |
+
{
|
222 |
+
"epoch": 1.0,
|
223 |
+
"eval_logits/chosen": -1.4921875,
|
224 |
+
"eval_logits/rejected": -1.453125,
|
225 |
+
"eval_logps/chosen": -147.0,
|
226 |
+
"eval_logps/rejected": -244.0,
|
227 |
+
"eval_loss": 0.00021177291637286544,
|
228 |
+
"eval_rewards/accuracies": 1.0,
|
229 |
+
"eval_rewards/chosen": -0.81640625,
|
230 |
+
"eval_rewards/margins": 10.4375,
|
231 |
+
"eval_rewards/rejected": -11.3125,
|
232 |
+
"eval_runtime": 12.2918,
|
233 |
+
"eval_samples_per_second": 16.271,
|
234 |
+
"eval_steps_per_second": 0.569,
|
235 |
+
"step": 132
|
236 |
+
},
|
237 |
+
{
|
238 |
+
"epoch": 1.0606060606060606,
|
239 |
+
"grad_norm": 0.025427232520216565,
|
240 |
+
"learning_rate": 3.5955056179775277e-07,
|
241 |
+
"logits/chosen": -1.5546875,
|
242 |
+
"logits/rejected": -1.421875,
|
243 |
+
"logps/chosen": -156.0,
|
244 |
+
"logps/rejected": -243.0,
|
245 |
+
"loss": 0.0003,
|
246 |
+
"rewards/accuracies": 1.0,
|
247 |
+
"rewards/chosen": -0.9140625,
|
248 |
+
"rewards/margins": 10.5625,
|
249 |
+
"rewards/rejected": -11.5,
|
250 |
+
"step": 140
|
251 |
+
},
|
252 |
+
{
|
253 |
+
"epoch": 1.1363636363636362,
|
254 |
+
"grad_norm": 0.01529093932750603,
|
255 |
+
"learning_rate": 3.4550561797752807e-07,
|
256 |
+
"logits/chosen": -1.53125,
|
257 |
+
"logits/rejected": -1.46875,
|
258 |
+
"logps/chosen": -140.0,
|
259 |
+
"logps/rejected": -250.0,
|
260 |
+
"loss": 0.0001,
|
261 |
+
"rewards/accuracies": 1.0,
|
262 |
+
"rewards/chosen": -0.76171875,
|
263 |
+
"rewards/margins": 11.125,
|
264 |
+
"rewards/rejected": -11.875,
|
265 |
+
"step": 150
|
266 |
+
},
|
267 |
+
{
|
268 |
+
"epoch": 1.2121212121212122,
|
269 |
+
"grad_norm": 0.010074912036860673,
|
270 |
+
"learning_rate": 3.314606741573033e-07,
|
271 |
+
"logits/chosen": -1.5390625,
|
272 |
+
"logits/rejected": -1.4453125,
|
273 |
+
"logps/chosen": -150.0,
|
274 |
+
"logps/rejected": -245.0,
|
275 |
+
"loss": 0.0005,
|
276 |
+
"rewards/accuracies": 1.0,
|
277 |
+
"rewards/chosen": -0.8984375,
|
278 |
+
"rewards/margins": 11.0,
|
279 |
+
"rewards/rejected": -11.875,
|
280 |
+
"step": 160
|
281 |
+
},
|
282 |
+
{
|
283 |
+
"epoch": 1.2878787878787878,
|
284 |
+
"grad_norm": 0.024954993930167084,
|
285 |
+
"learning_rate": 3.1741573033707863e-07,
|
286 |
+
"logits/chosen": -1.59375,
|
287 |
+
"logits/rejected": -1.4921875,
|
288 |
+
"logps/chosen": -152.0,
|
289 |
+
"logps/rejected": -247.0,
|
290 |
+
"loss": 0.0002,
|
291 |
+
"rewards/accuracies": 1.0,
|
292 |
+
"rewards/chosen": -0.76953125,
|
293 |
+
"rewards/margins": 10.875,
|
294 |
+
"rewards/rejected": -11.625,
|
295 |
+
"step": 170
|
296 |
+
},
|
297 |
+
{
|
298 |
+
"epoch": 1.3636363636363638,
|
299 |
+
"grad_norm": 0.003532695770478855,
|
300 |
+
"learning_rate": 3.0337078651685393e-07,
|
301 |
+
"logits/chosen": -1.5078125,
|
302 |
+
"logits/rejected": -1.46875,
|
303 |
+
"logps/chosen": -127.5,
|
304 |
+
"logps/rejected": -249.0,
|
305 |
+
"loss": 0.0002,
|
306 |
+
"rewards/accuracies": 1.0,
|
307 |
+
"rewards/chosen": -0.9765625,
|
308 |
+
"rewards/margins": 10.9375,
|
309 |
+
"rewards/rejected": -11.875,
|
310 |
+
"step": 180
|
311 |
+
},
|
312 |
+
{
|
313 |
+
"epoch": 1.4393939393939394,
|
314 |
+
"grad_norm": 0.0018665433852718737,
|
315 |
+
"learning_rate": 2.893258426966292e-07,
|
316 |
+
"logits/chosen": -1.6015625,
|
317 |
+
"logits/rejected": -1.5078125,
|
318 |
+
"logps/chosen": -164.0,
|
319 |
+
"logps/rejected": -258.0,
|
320 |
+
"loss": 0.0002,
|
321 |
+
"rewards/accuracies": 1.0,
|
322 |
+
"rewards/chosen": -0.91015625,
|
323 |
+
"rewards/margins": 11.375,
|
324 |
+
"rewards/rejected": -12.25,
|
325 |
+
"step": 190
|
326 |
+
},
|
327 |
+
{
|
328 |
+
"epoch": 1.5151515151515151,
|
329 |
+
"grad_norm": 0.020725382536818583,
|
330 |
+
"learning_rate": 2.752808988764045e-07,
|
331 |
+
"logits/chosen": -1.578125,
|
332 |
+
"logits/rejected": -1.4765625,
|
333 |
+
"logps/chosen": -157.0,
|
334 |
+
"logps/rejected": -253.0,
|
335 |
+
"loss": 0.0004,
|
336 |
+
"rewards/accuracies": 1.0,
|
337 |
+
"rewards/chosen": -1.0078125,
|
338 |
+
"rewards/margins": 11.25,
|
339 |
+
"rewards/rejected": -12.3125,
|
340 |
+
"step": 200
|
341 |
+
},
|
342 |
+
{
|
343 |
+
"epoch": 1.5909090909090908,
|
344 |
+
"grad_norm": 0.009333169079013727,
|
345 |
+
"learning_rate": 2.612359550561798e-07,
|
346 |
+
"logits/chosen": -1.515625,
|
347 |
+
"logits/rejected": -1.4765625,
|
348 |
+
"logps/chosen": -154.0,
|
349 |
+
"logps/rejected": -260.0,
|
350 |
+
"loss": 0.0005,
|
351 |
+
"rewards/accuracies": 1.0,
|
352 |
+
"rewards/chosen": -1.390625,
|
353 |
+
"rewards/margins": 11.4375,
|
354 |
+
"rewards/rejected": -12.875,
|
355 |
+
"step": 210
|
356 |
+
},
|
357 |
+
{
|
358 |
+
"epoch": 1.6666666666666665,
|
359 |
+
"grad_norm": 0.018292778581923616,
|
360 |
+
"learning_rate": 2.4719101123595505e-07,
|
361 |
+
"logits/chosen": -1.5703125,
|
362 |
+
"logits/rejected": -1.375,
|
363 |
+
"logps/chosen": -156.0,
|
364 |
+
"logps/rejected": -248.0,
|
365 |
+
"loss": 0.0001,
|
366 |
+
"rewards/accuracies": 1.0,
|
367 |
+
"rewards/chosen": -1.2265625,
|
368 |
+
"rewards/margins": 11.375,
|
369 |
+
"rewards/rejected": -12.625,
|
370 |
+
"step": 220
|
371 |
+
},
|
372 |
+
{
|
373 |
+
"epoch": 1.7424242424242424,
|
374 |
+
"grad_norm": 0.006108685272396747,
|
375 |
+
"learning_rate": 2.331460674157303e-07,
|
376 |
+
"logits/chosen": -1.5625,
|
377 |
+
"logits/rejected": -1.40625,
|
378 |
+
"logps/chosen": -155.0,
|
379 |
+
"logps/rejected": -253.0,
|
380 |
+
"loss": 0.0002,
|
381 |
+
"rewards/accuracies": 1.0,
|
382 |
+
"rewards/chosen": -1.2578125,
|
383 |
+
"rewards/margins": 11.5,
|
384 |
+
"rewards/rejected": -12.75,
|
385 |
+
"step": 230
|
386 |
+
},
|
387 |
+
{
|
388 |
+
"epoch": 1.8181818181818183,
|
389 |
+
"grad_norm": 0.008540878901725096,
|
390 |
+
"learning_rate": 2.191011235955056e-07,
|
391 |
+
"logits/chosen": -1.5546875,
|
392 |
+
"logits/rejected": -1.4921875,
|
393 |
+
"logps/chosen": -145.0,
|
394 |
+
"logps/rejected": -256.0,
|
395 |
+
"loss": 0.0003,
|
396 |
+
"rewards/accuracies": 1.0,
|
397 |
+
"rewards/chosen": -1.046875,
|
398 |
+
"rewards/margins": 11.8125,
|
399 |
+
"rewards/rejected": -12.875,
|
400 |
+
"step": 240
|
401 |
+
},
|
402 |
+
{
|
403 |
+
"epoch": 1.893939393939394,
|
404 |
+
"grad_norm": 0.26338726379953975,
|
405 |
+
"learning_rate": 2.0505617977528089e-07,
|
406 |
+
"logits/chosen": -1.5625,
|
407 |
+
"logits/rejected": -1.5,
|
408 |
+
"logps/chosen": -152.0,
|
409 |
+
"logps/rejected": -255.0,
|
410 |
+
"loss": 0.0003,
|
411 |
+
"rewards/accuracies": 1.0,
|
412 |
+
"rewards/chosen": -1.046875,
|
413 |
+
"rewards/margins": 11.8125,
|
414 |
+
"rewards/rejected": -12.875,
|
415 |
+
"step": 250
|
416 |
+
},
|
417 |
+
{
|
418 |
+
"epoch": 1.9696969696969697,
|
419 |
+
"grad_norm": 0.0326586506464961,
|
420 |
+
"learning_rate": 1.9101123595505617e-07,
|
421 |
+
"logits/chosen": -1.5703125,
|
422 |
+
"logits/rejected": -1.4453125,
|
423 |
+
"logps/chosen": -169.0,
|
424 |
+
"logps/rejected": -258.0,
|
425 |
+
"loss": 0.0001,
|
426 |
+
"rewards/accuracies": 1.0,
|
427 |
+
"rewards/chosen": -1.1875,
|
428 |
+
"rewards/margins": 11.625,
|
429 |
+
"rewards/rejected": -12.8125,
|
430 |
+
"step": 260
|
431 |
+
},
|
432 |
+
{
|
433 |
+
"epoch": 2.0,
|
434 |
+
"eval_logits/chosen": -1.5,
|
435 |
+
"eval_logits/rejected": -1.484375,
|
436 |
+
"eval_logps/chosen": -149.0,
|
437 |
+
"eval_logps/rejected": -260.0,
|
438 |
+
"eval_loss": 6.90150263835676e-05,
|
439 |
+
"eval_rewards/accuracies": 1.0,
|
440 |
+
"eval_rewards/chosen": -1.0078125,
|
441 |
+
"eval_rewards/margins": 11.8125,
|
442 |
+
"eval_rewards/rejected": -12.8125,
|
443 |
+
"eval_runtime": 14.6298,
|
444 |
+
"eval_samples_per_second": 13.671,
|
445 |
+
"eval_steps_per_second": 0.478,
|
446 |
+
"step": 264
|
447 |
+
},
|
448 |
+
{
|
449 |
+
"epoch": 2.0454545454545454,
|
450 |
+
"grad_norm": 0.0013074998122167467,
|
451 |
+
"learning_rate": 1.7696629213483144e-07,
|
452 |
+
"logits/chosen": -1.546875,
|
453 |
+
"logits/rejected": -1.4609375,
|
454 |
+
"logps/chosen": -155.0,
|
455 |
+
"logps/rejected": -258.0,
|
456 |
+
"loss": 0.0001,
|
457 |
+
"rewards/accuracies": 1.0,
|
458 |
+
"rewards/chosen": -0.90625,
|
459 |
+
"rewards/margins": 11.875,
|
460 |
+
"rewards/rejected": -12.8125,
|
461 |
+
"step": 270
|
462 |
+
},
|
463 |
+
{
|
464 |
+
"epoch": 2.121212121212121,
|
465 |
+
"grad_norm": 0.018655034734646705,
|
466 |
+
"learning_rate": 1.6292134831460675e-07,
|
467 |
+
"logits/chosen": -1.59375,
|
468 |
+
"logits/rejected": -1.46875,
|
469 |
+
"logps/chosen": -166.0,
|
470 |
+
"logps/rejected": -258.0,
|
471 |
+
"loss": 0.0002,
|
472 |
+
"rewards/accuracies": 1.0,
|
473 |
+
"rewards/chosen": -1.0546875,
|
474 |
+
"rewards/margins": 12.125,
|
475 |
+
"rewards/rejected": -13.25,
|
476 |
+
"step": 280
|
477 |
+
},
|
478 |
+
{
|
479 |
+
"epoch": 2.196969696969697,
|
480 |
+
"grad_norm": 0.014607729180860774,
|
481 |
+
"learning_rate": 1.4887640449438203e-07,
|
482 |
+
"logits/chosen": -1.59375,
|
483 |
+
"logits/rejected": -1.484375,
|
484 |
+
"logps/chosen": -170.0,
|
485 |
+
"logps/rejected": -262.0,
|
486 |
+
"loss": 0.0001,
|
487 |
+
"rewards/accuracies": 1.0,
|
488 |
+
"rewards/chosen": -0.96875,
|
489 |
+
"rewards/margins": 11.9375,
|
490 |
+
"rewards/rejected": -12.9375,
|
491 |
+
"step": 290
|
492 |
+
},
|
493 |
+
{
|
494 |
+
"epoch": 2.2727272727272725,
|
495 |
+
"grad_norm": 0.009493204077863557,
|
496 |
+
"learning_rate": 1.3483146067415728e-07,
|
497 |
+
"logits/chosen": -1.609375,
|
498 |
+
"logits/rejected": -1.546875,
|
499 |
+
"logps/chosen": -160.0,
|
500 |
+
"logps/rejected": -260.0,
|
501 |
+
"loss": 0.0001,
|
502 |
+
"rewards/accuracies": 1.0,
|
503 |
+
"rewards/chosen": -0.9921875,
|
504 |
+
"rewards/margins": 12.125,
|
505 |
+
"rewards/rejected": -13.125,
|
506 |
+
"step": 300
|
507 |
+
},
|
508 |
+
{
|
509 |
+
"epoch": 2.3484848484848486,
|
510 |
+
"grad_norm": 0.003736203163504444,
|
511 |
+
"learning_rate": 1.2078651685393259e-07,
|
512 |
+
"logits/chosen": -1.578125,
|
513 |
+
"logits/rejected": -1.5390625,
|
514 |
+
"logps/chosen": -152.0,
|
515 |
+
"logps/rejected": -268.0,
|
516 |
+
"loss": 0.0002,
|
517 |
+
"rewards/accuracies": 1.0,
|
518 |
+
"rewards/chosen": -1.0234375,
|
519 |
+
"rewards/margins": 12.1875,
|
520 |
+
"rewards/rejected": -13.25,
|
521 |
+
"step": 310
|
522 |
+
},
|
523 |
+
{
|
524 |
+
"epoch": 2.4242424242424243,
|
525 |
+
"grad_norm": 0.0053623346535288585,
|
526 |
+
"learning_rate": 1.0674157303370785e-07,
|
527 |
+
"logits/chosen": -1.5546875,
|
528 |
+
"logits/rejected": -1.4453125,
|
529 |
+
"logps/chosen": -157.0,
|
530 |
+
"logps/rejected": -260.0,
|
531 |
+
"loss": 0.0001,
|
532 |
+
"rewards/accuracies": 1.0,
|
533 |
+
"rewards/chosen": -1.1015625,
|
534 |
+
"rewards/margins": 12.0,
|
535 |
+
"rewards/rejected": -13.125,
|
536 |
+
"step": 320
|
537 |
+
},
|
538 |
+
{
|
539 |
+
"epoch": 2.5,
|
540 |
+
"grad_norm": 0.001064339902935614,
|
541 |
+
"learning_rate": 9.269662921348314e-08,
|
542 |
+
"logits/chosen": -1.546875,
|
543 |
+
"logits/rejected": -1.515625,
|
544 |
+
"logps/chosen": -164.0,
|
545 |
+
"logps/rejected": -260.0,
|
546 |
+
"loss": 0.0001,
|
547 |
+
"rewards/accuracies": 1.0,
|
548 |
+
"rewards/chosen": -1.1953125,
|
549 |
+
"rewards/margins": 12.1875,
|
550 |
+
"rewards/rejected": -13.375,
|
551 |
+
"step": 330
|
552 |
+
},
|
553 |
+
{
|
554 |
+
"epoch": 2.5757575757575757,
|
555 |
+
"grad_norm": 0.04406263550084857,
|
556 |
+
"learning_rate": 7.865168539325842e-08,
|
557 |
+
"logits/chosen": -1.5390625,
|
558 |
+
"logits/rejected": -1.4921875,
|
559 |
+
"logps/chosen": -164.0,
|
560 |
+
"logps/rejected": -264.0,
|
561 |
+
"loss": 0.0001,
|
562 |
+
"rewards/accuracies": 1.0,
|
563 |
+
"rewards/chosen": -0.95703125,
|
564 |
+
"rewards/margins": 12.6875,
|
565 |
+
"rewards/rejected": -13.625,
|
566 |
+
"step": 340
|
567 |
+
},
|
568 |
+
{
|
569 |
+
"epoch": 2.6515151515151514,
|
570 |
+
"grad_norm": 0.002620164881663117,
|
571 |
+
"learning_rate": 6.460674157303371e-08,
|
572 |
+
"logits/chosen": -1.5078125,
|
573 |
+
"logits/rejected": -1.5078125,
|
574 |
+
"logps/chosen": -144.0,
|
575 |
+
"logps/rejected": -272.0,
|
576 |
+
"loss": 0.0001,
|
577 |
+
"rewards/accuracies": 1.0,
|
578 |
+
"rewards/chosen": -1.0390625,
|
579 |
+
"rewards/margins": 12.5,
|
580 |
+
"rewards/rejected": -13.5,
|
581 |
+
"step": 350
|
582 |
+
},
|
583 |
+
{
|
584 |
+
"epoch": 2.7272727272727275,
|
585 |
+
"grad_norm": 0.016885587735988555,
|
586 |
+
"learning_rate": 5.056179775280899e-08,
|
587 |
+
"logits/chosen": -1.5625,
|
588 |
+
"logits/rejected": -1.4765625,
|
589 |
+
"logps/chosen": -160.0,
|
590 |
+
"logps/rejected": -264.0,
|
591 |
+
"loss": 0.0001,
|
592 |
+
"rewards/accuracies": 1.0,
|
593 |
+
"rewards/chosen": -1.1484375,
|
594 |
+
"rewards/margins": 12.1875,
|
595 |
+
"rewards/rejected": -13.3125,
|
596 |
+
"step": 360
|
597 |
+
},
|
598 |
+
{
|
599 |
+
"epoch": 2.8030303030303028,
|
600 |
+
"grad_norm": 0.01685236462277552,
|
601 |
+
"learning_rate": 3.6516853932584266e-08,
|
602 |
+
"logits/chosen": -1.5078125,
|
603 |
+
"logits/rejected": -1.453125,
|
604 |
+
"logps/chosen": -137.0,
|
605 |
+
"logps/rejected": -262.0,
|
606 |
+
"loss": 0.0,
|
607 |
+
"rewards/accuracies": 1.0,
|
608 |
+
"rewards/chosen": -1.1015625,
|
609 |
+
"rewards/margins": 12.4375,
|
610 |
+
"rewards/rejected": -13.5,
|
611 |
+
"step": 370
|
612 |
+
},
|
613 |
+
{
|
614 |
+
"epoch": 2.878787878787879,
|
615 |
+
"grad_norm": 0.0035252409898577407,
|
616 |
+
"learning_rate": 2.2471910112359548e-08,
|
617 |
+
"logits/chosen": -1.515625,
|
618 |
+
"logits/rejected": -1.4609375,
|
619 |
+
"logps/chosen": -142.0,
|
620 |
+
"logps/rejected": -268.0,
|
621 |
+
"loss": 0.0002,
|
622 |
+
"rewards/accuracies": 1.0,
|
623 |
+
"rewards/chosen": -1.078125,
|
624 |
+
"rewards/margins": 12.625,
|
625 |
+
"rewards/rejected": -13.6875,
|
626 |
+
"step": 380
|
627 |
+
},
|
628 |
+
{
|
629 |
+
"epoch": 2.9545454545454546,
|
630 |
+
"grad_norm": 0.002976821998771009,
|
631 |
+
"learning_rate": 8.42696629213483e-09,
|
632 |
+
"logits/chosen": -1.546875,
|
633 |
+
"logits/rejected": -1.515625,
|
634 |
+
"logps/chosen": -158.0,
|
635 |
+
"logps/rejected": -268.0,
|
636 |
+
"loss": 0.0001,
|
637 |
+
"rewards/accuracies": 1.0,
|
638 |
+
"rewards/chosen": -1.1484375,
|
639 |
+
"rewards/margins": 12.5625,
|
640 |
+
"rewards/rejected": -13.6875,
|
641 |
+
"step": 390
|
642 |
+
},
|
643 |
+
{
|
644 |
+
"epoch": 3.0,
|
645 |
+
"eval_logits/chosen": -1.5,
|
646 |
+
"eval_logits/rejected": -1.4921875,
|
647 |
+
"eval_logps/chosen": -149.0,
|
648 |
+
"eval_logps/rejected": -264.0,
|
649 |
+
"eval_loss": 6.22963925707154e-05,
|
650 |
+
"eval_rewards/accuracies": 1.0,
|
651 |
+
"eval_rewards/chosen": -1.046875,
|
652 |
+
"eval_rewards/margins": 12.1875,
|
653 |
+
"eval_rewards/rejected": -13.25,
|
654 |
+
"eval_runtime": 14.9995,
|
655 |
+
"eval_samples_per_second": 13.334,
|
656 |
+
"eval_steps_per_second": 0.467,
|
657 |
+
"step": 396
|
658 |
+
},
|
659 |
+
{
|
660 |
+
"epoch": 3.0,
|
661 |
+
"step": 396,
|
662 |
+
"total_flos": 0.0,
|
663 |
+
"train_loss": 0.041059525631782084,
|
664 |
+
"train_runtime": 2403.0973,
|
665 |
+
"train_samples_per_second": 5.243,
|
666 |
+
"train_steps_per_second": 0.165
|
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 |
+
}
|