Model save
Browse files- README.md +58 -0
- all_results.json +8 -0
- generation_config.json +14 -0
- train_results.json +8 -0
- trainer_state.json +232 -0
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: Qwen/Qwen2.5-7B-Instruct
|
3 |
+
library_name: transformers
|
4 |
+
model_name: Agentic-Qwen2.5-7B-e7-lr4-b128
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
- trl
|
8 |
+
- sft
|
9 |
+
licence: license
|
10 |
+
---
|
11 |
+
|
12 |
+
# Model Card for Agentic-Qwen2.5-7B-e7-lr4-b128
|
13 |
+
|
14 |
+
This model is a fine-tuned version of [Qwen/Qwen2.5-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct).
|
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="akseljoonas/Agentic-Qwen2.5-7B-e7-lr4-b128", 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/akseljoonas-university-of-groningen/huggingface/runs/93j8ktis)
|
31 |
+
|
32 |
+
|
33 |
+
This model was trained with SFT.
|
34 |
+
|
35 |
+
### Framework versions
|
36 |
+
|
37 |
+
- TRL: 0.16.0
|
38 |
+
- Transformers: 4.52.4
|
39 |
+
- Pytorch: 2.6.0
|
40 |
+
- Datasets: 3.6.0
|
41 |
+
- Tokenizers: 0.21.1
|
42 |
+
|
43 |
+
## Citations
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
Cite TRL as:
|
48 |
+
|
49 |
+
```bibtex
|
50 |
+
@misc{vonwerra2022trl,
|
51 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
52 |
+
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},
|
53 |
+
year = 2020,
|
54 |
+
journal = {GitHub repository},
|
55 |
+
publisher = {GitHub},
|
56 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
57 |
+
}
|
58 |
+
```
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"total_flos": 118916339728384.0,
|
3 |
+
"train_loss": 0.30892997412454515,
|
4 |
+
"train_runtime": 2364.0625,
|
5 |
+
"train_samples": 1845,
|
6 |
+
"train_samples_per_second": 5.463,
|
7 |
+
"train_steps_per_second": 0.044
|
8 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 151643,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": [
|
5 |
+
151645,
|
6 |
+
151643
|
7 |
+
],
|
8 |
+
"pad_token_id": 151643,
|
9 |
+
"repetition_penalty": 1.05,
|
10 |
+
"temperature": 0.7,
|
11 |
+
"top_k": 20,
|
12 |
+
"top_p": 0.8,
|
13 |
+
"transformers_version": "4.52.4"
|
14 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"total_flos": 118916339728384.0,
|
3 |
+
"train_loss": 0.30892997412454515,
|
4 |
+
"train_runtime": 2364.0625,
|
5 |
+
"train_samples": 1845,
|
6 |
+
"train_samples_per_second": 5.463,
|
7 |
+
"train_steps_per_second": 0.044
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,232 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_global_step": null,
|
3 |
+
"best_metric": null,
|
4 |
+
"best_model_checkpoint": null,
|
5 |
+
"epoch": 7.0,
|
6 |
+
"eval_steps": 500,
|
7 |
+
"global_step": 105,
|
8 |
+
"is_hyper_param_search": false,
|
9 |
+
"is_local_process_zero": true,
|
10 |
+
"is_world_process_zero": true,
|
11 |
+
"log_history": [
|
12 |
+
{
|
13 |
+
"epoch": 0.3463203463203463,
|
14 |
+
"grad_norm": 3.356698954098007,
|
15 |
+
"learning_rate": 1.4545454545454546e-05,
|
16 |
+
"loss": 1.4502,
|
17 |
+
"mean_token_accuracy": 0.6923722721636295,
|
18 |
+
"num_tokens": 2984558.0,
|
19 |
+
"step": 5
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"epoch": 0.6926406926406926,
|
23 |
+
"grad_norm": 0.7869434955246543,
|
24 |
+
"learning_rate": 3.272727272727273e-05,
|
25 |
+
"loss": 0.6935,
|
26 |
+
"mean_token_accuracy": 0.8403377622365952,
|
27 |
+
"num_tokens": 5908318.0,
|
28 |
+
"step": 10
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"epoch": 1.0,
|
32 |
+
"grad_norm": 0.5449819364186583,
|
33 |
+
"learning_rate": 3.989955630177008e-05,
|
34 |
+
"loss": 0.4721,
|
35 |
+
"mean_token_accuracy": 0.8874844220322622,
|
36 |
+
"num_tokens": 8399102.0,
|
37 |
+
"step": 15
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 1.3463203463203464,
|
41 |
+
"grad_norm": 0.38310826279857896,
|
42 |
+
"learning_rate": 3.928938350108754e-05,
|
43 |
+
"loss": 0.4267,
|
44 |
+
"mean_token_accuracy": 0.8977124772965908,
|
45 |
+
"num_tokens": 11312902.0,
|
46 |
+
"step": 20
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 1.6926406926406927,
|
50 |
+
"grad_norm": 0.283651423977486,
|
51 |
+
"learning_rate": 3.814181827468682e-05,
|
52 |
+
"loss": 0.3804,
|
53 |
+
"mean_token_accuracy": 0.9084703259170055,
|
54 |
+
"num_tokens": 14259671.0,
|
55 |
+
"step": 25
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"epoch": 2.0,
|
59 |
+
"grad_norm": 0.27159379807338113,
|
60 |
+
"learning_rate": 3.648883120683521e-05,
|
61 |
+
"loss": 0.402,
|
62 |
+
"mean_token_accuracy": 0.9044604771573779,
|
63 |
+
"num_tokens": 16800284.0,
|
64 |
+
"step": 30
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"epoch": 2.346320346320346,
|
68 |
+
"grad_norm": 0.2751139574183109,
|
69 |
+
"learning_rate": 3.437647367755859e-05,
|
70 |
+
"loss": 0.2988,
|
71 |
+
"mean_token_accuracy": 0.9237421527504921,
|
72 |
+
"num_tokens": 19728099.0,
|
73 |
+
"step": 35
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"epoch": 2.6926406926406927,
|
77 |
+
"grad_norm": 0.2547670225220758,
|
78 |
+
"learning_rate": 3.1863594894587106e-05,
|
79 |
+
"loss": 0.308,
|
80 |
+
"mean_token_accuracy": 0.9243180431425572,
|
81 |
+
"num_tokens": 22686649.0,
|
82 |
+
"step": 40
|
83 |
+
},
|
84 |
+
{
|
85 |
+
"epoch": 3.0,
|
86 |
+
"grad_norm": 0.39680747081805184,
|
87 |
+
"learning_rate": 2.902020238432204e-05,
|
88 |
+
"loss": 0.2915,
|
89 |
+
"mean_token_accuracy": 0.9284181259047817,
|
90 |
+
"num_tokens": 25201452.0,
|
91 |
+
"step": 45
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"epoch": 3.346320346320346,
|
95 |
+
"grad_norm": 0.33218800979120455,
|
96 |
+
"learning_rate": 2.5925511617712683e-05,
|
97 |
+
"loss": 0.2312,
|
98 |
+
"mean_token_accuracy": 0.944035292416811,
|
99 |
+
"num_tokens": 28025121.0,
|
100 |
+
"step": 50
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 3.6926406926406927,
|
104 |
+
"grad_norm": 0.2514166470880345,
|
105 |
+
"learning_rate": 2.266573910747558e-05,
|
106 |
+
"loss": 0.2185,
|
107 |
+
"mean_token_accuracy": 0.9434206277132035,
|
108 |
+
"num_tokens": 31045393.0,
|
109 |
+
"step": 55
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"epoch": 4.0,
|
113 |
+
"grad_norm": 0.2300407572600298,
|
114 |
+
"learning_rate": 1.9331700459846516e-05,
|
115 |
+
"loss": 0.2019,
|
116 |
+
"mean_token_accuracy": 0.9477579996619426,
|
117 |
+
"num_tokens": 33595239.0,
|
118 |
+
"step": 60
|
119 |
+
},
|
120 |
+
{
|
121 |
+
"epoch": 4.346320346320346,
|
122 |
+
"grad_norm": 0.36445728494112956,
|
123 |
+
"learning_rate": 1.6016280297923283e-05,
|
124 |
+
"loss": 0.1821,
|
125 |
+
"mean_token_accuracy": 0.9552276775240898,
|
126 |
+
"num_tokens": 36607286.0,
|
127 |
+
"step": 65
|
128 |
+
},
|
129 |
+
{
|
130 |
+
"epoch": 4.692640692640692,
|
131 |
+
"grad_norm": 0.2547718942883701,
|
132 |
+
"learning_rate": 1.2811844543249748e-05,
|
133 |
+
"loss": 0.1568,
|
134 |
+
"mean_token_accuracy": 0.9603340215981007,
|
135 |
+
"num_tokens": 39636669.0,
|
136 |
+
"step": 70
|
137 |
+
},
|
138 |
+
{
|
139 |
+
"epoch": 5.0,
|
140 |
+
"grad_norm": 0.3453082642717046,
|
141 |
+
"learning_rate": 9.80766714816165e-06,
|
142 |
+
"loss": 0.1305,
|
143 |
+
"mean_token_accuracy": 0.9647752541891286,
|
144 |
+
"num_tokens": 42016856.0,
|
145 |
+
"step": 75
|
146 |
+
},
|
147 |
+
{
|
148 |
+
"epoch": 5.346320346320346,
|
149 |
+
"grad_norm": 0.26611010742813296,
|
150 |
+
"learning_rate": 7.087442968823952e-06,
|
151 |
+
"loss": 0.1289,
|
152 |
+
"mean_token_accuracy": 0.9687022201716899,
|
153 |
+
"num_tokens": 44947028.0,
|
154 |
+
"step": 80
|
155 |
+
},
|
156 |
+
{
|
157 |
+
"epoch": 5.692640692640692,
|
158 |
+
"grad_norm": 0.18515997467625686,
|
159 |
+
"learning_rate": 4.726956069053361e-06,
|
160 |
+
"loss": 0.116,
|
161 |
+
"mean_token_accuracy": 0.971262700855732,
|
162 |
+
"num_tokens": 47918431.0,
|
163 |
+
"step": 85
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 6.0,
|
167 |
+
"grad_norm": 0.210651883285062,
|
168 |
+
"learning_rate": 2.791968414797217e-06,
|
169 |
+
"loss": 0.1026,
|
170 |
+
"mean_token_accuracy": 0.9734408847043212,
|
171 |
+
"num_tokens": 50428344.0,
|
172 |
+
"step": 90
|
173 |
+
},
|
174 |
+
{
|
175 |
+
"epoch": 6.346320346320346,
|
176 |
+
"grad_norm": 0.21043503456714216,
|
177 |
+
"learning_rate": 1.3363877791679491e-06,
|
178 |
+
"loss": 0.1035,
|
179 |
+
"mean_token_accuracy": 0.9747236475348473,
|
180 |
+
"num_tokens": 53450457.0,
|
181 |
+
"step": 95
|
182 |
+
},
|
183 |
+
{
|
184 |
+
"epoch": 6.692640692640692,
|
185 |
+
"grad_norm": 0.17481666195188897,
|
186 |
+
"learning_rate": 4.0076589926826503e-07,
|
187 |
+
"loss": 0.0988,
|
188 |
+
"mean_token_accuracy": 0.9767022430896759,
|
189 |
+
"num_tokens": 56378770.0,
|
190 |
+
"step": 100
|
191 |
+
},
|
192 |
+
{
|
193 |
+
"epoch": 7.0,
|
194 |
+
"grad_norm": 0.29213254221999246,
|
195 |
+
"learning_rate": 1.1168725394907764e-08,
|
196 |
+
"loss": 0.0934,
|
197 |
+
"mean_token_accuracy": 0.9772444921480098,
|
198 |
+
"num_tokens": 58830536.0,
|
199 |
+
"step": 105
|
200 |
+
},
|
201 |
+
{
|
202 |
+
"epoch": 7.0,
|
203 |
+
"step": 105,
|
204 |
+
"total_flos": 118916339728384.0,
|
205 |
+
"train_loss": 0.30892997412454515,
|
206 |
+
"train_runtime": 2364.0625,
|
207 |
+
"train_samples_per_second": 5.463,
|
208 |
+
"train_steps_per_second": 0.044
|
209 |
+
}
|
210 |
+
],
|
211 |
+
"logging_steps": 5,
|
212 |
+
"max_steps": 105,
|
213 |
+
"num_input_tokens_seen": 0,
|
214 |
+
"num_train_epochs": 7,
|
215 |
+
"save_steps": 500,
|
216 |
+
"stateful_callbacks": {
|
217 |
+
"TrainerControl": {
|
218 |
+
"args": {
|
219 |
+
"should_epoch_stop": false,
|
220 |
+
"should_evaluate": false,
|
221 |
+
"should_log": false,
|
222 |
+
"should_save": true,
|
223 |
+
"should_training_stop": true
|
224 |
+
},
|
225 |
+
"attributes": {}
|
226 |
+
}
|
227 |
+
},
|
228 |
+
"total_flos": 118916339728384.0,
|
229 |
+
"train_batch_size": 1,
|
230 |
+
"trial_name": null,
|
231 |
+
"trial_params": null
|
232 |
+
}
|