suehyunpark
commited on
Commit
•
bee05cd
1
Parent(s):
c3a80cb
Model save
Browse files- README.md +57 -0
- all_results.json +9 -0
- generation_config.json +12 -0
- train_results.json +9 -0
- trainer_state.json +192 -0
README.md
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: barc0/Llama-3.1-ARC-Potpourri-Induction-8B
|
3 |
+
library_name: transformers
|
4 |
+
model_name: potpourri-8b-inst-fft-induction-bc-trajectory-max1-per-task-tool-token
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
- trl
|
8 |
+
- sft
|
9 |
+
licence: license
|
10 |
+
---
|
11 |
+
|
12 |
+
# Model Card for potpourri-8b-inst-fft-induction-bc-trajectory-max1-per-task-tool-token
|
13 |
+
|
14 |
+
This model is a fine-tuned version of [barc0/Llama-3.1-ARC-Potpourri-Induction-8B](https://huggingface.co/barc0/Llama-3.1-ARC-Potpourri-Induction-8B).
|
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="suehyunpark/potpourri-8b-inst-fft-induction-bc-trajectory-max1-per-task-tool-token", 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/suehyun/arc-improve/runs/mjw7ottr)
|
31 |
+
|
32 |
+
This model was trained with SFT.
|
33 |
+
|
34 |
+
### Framework versions
|
35 |
+
|
36 |
+
- TRL: 0.12.1
|
37 |
+
- Transformers: 4.46.2
|
38 |
+
- Pytorch: 2.5.1
|
39 |
+
- Datasets: 3.1.0
|
40 |
+
- Tokenizers: 0.20.3
|
41 |
+
|
42 |
+
## Citations
|
43 |
+
|
44 |
+
|
45 |
+
|
46 |
+
Cite TRL as:
|
47 |
+
|
48 |
+
```bibtex
|
49 |
+
@misc{vonwerra2022trl,
|
50 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
51 |
+
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},
|
52 |
+
year = 2020,
|
53 |
+
journal = {GitHub repository},
|
54 |
+
publisher = {GitHub},
|
55 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
56 |
+
}
|
57 |
+
```
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"total_flos": 3943670415360.0,
|
4 |
+
"train_loss": 0.554683489104112,
|
5 |
+
"train_runtime": 936.1096,
|
6 |
+
"train_samples": 169,
|
7 |
+
"train_samples_per_second": 0.542,
|
8 |
+
"train_steps_per_second": 0.019
|
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 |
+
128008,
|
7 |
+
128009
|
8 |
+
],
|
9 |
+
"temperature": 0.6,
|
10 |
+
"top_p": 0.9,
|
11 |
+
"transformers_version": "4.46.2"
|
12 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"total_flos": 3943670415360.0,
|
4 |
+
"train_loss": 0.554683489104112,
|
5 |
+
"train_runtime": 936.1096,
|
6 |
+
"train_samples": 169,
|
7 |
+
"train_samples_per_second": 0.542,
|
8 |
+
"train_steps_per_second": 0.019
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 18,
|
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.16666666666666666,
|
13 |
+
"grad_norm": 222.38610696531117,
|
14 |
+
"learning_rate": 5e-06,
|
15 |
+
"loss": 2.468,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.3333333333333333,
|
20 |
+
"grad_norm": 190.69596234052602,
|
21 |
+
"learning_rate": 1e-05,
|
22 |
+
"loss": 2.1111,
|
23 |
+
"step": 2
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.5,
|
27 |
+
"grad_norm": 44.09680989725686,
|
28 |
+
"learning_rate": 9.903926402016153e-06,
|
29 |
+
"loss": 1.0182,
|
30 |
+
"step": 3
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.6666666666666666,
|
34 |
+
"grad_norm": 14.51788378110566,
|
35 |
+
"learning_rate": 9.619397662556434e-06,
|
36 |
+
"loss": 0.7501,
|
37 |
+
"step": 4
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.8333333333333334,
|
41 |
+
"grad_norm": 7.591929306936709,
|
42 |
+
"learning_rate": 9.157348061512728e-06,
|
43 |
+
"loss": 0.4674,
|
44 |
+
"step": 5
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 1.0,
|
48 |
+
"grad_norm": 26.48229333375104,
|
49 |
+
"learning_rate": 8.535533905932739e-06,
|
50 |
+
"loss": 0.473,
|
51 |
+
"step": 6
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 1.0,
|
55 |
+
"eval_loss": 0.3578263819217682,
|
56 |
+
"eval_runtime": 1.1002,
|
57 |
+
"eval_samples_per_second": 8.18,
|
58 |
+
"eval_steps_per_second": 2.727,
|
59 |
+
"step": 6
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 1.1666666666666667,
|
63 |
+
"grad_norm": 3.9448221983664067,
|
64 |
+
"learning_rate": 7.777851165098012e-06,
|
65 |
+
"loss": 0.2849,
|
66 |
+
"step": 7
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"epoch": 1.3333333333333333,
|
70 |
+
"grad_norm": 3.165522164346078,
|
71 |
+
"learning_rate": 6.913417161825449e-06,
|
72 |
+
"loss": 0.2647,
|
73 |
+
"step": 8
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"epoch": 1.5,
|
77 |
+
"grad_norm": 1.54216157189327,
|
78 |
+
"learning_rate": 5.975451610080643e-06,
|
79 |
+
"loss": 0.2519,
|
80 |
+
"step": 9
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 1.6666666666666665,
|
84 |
+
"grad_norm": 3.9980031503763436,
|
85 |
+
"learning_rate": 5e-06,
|
86 |
+
"loss": 0.2502,
|
87 |
+
"step": 10
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 1.8333333333333335,
|
91 |
+
"grad_norm": 1.88646524715919,
|
92 |
+
"learning_rate": 4.02454838991936e-06,
|
93 |
+
"loss": 0.2379,
|
94 |
+
"step": 11
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"epoch": 2.0,
|
98 |
+
"grad_norm": 1.9307742582721177,
|
99 |
+
"learning_rate": 3.0865828381745515e-06,
|
100 |
+
"loss": 0.2043,
|
101 |
+
"step": 12
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"epoch": 2.0,
|
105 |
+
"eval_loss": 0.27517953515052795,
|
106 |
+
"eval_runtime": 0.9915,
|
107 |
+
"eval_samples_per_second": 9.078,
|
108 |
+
"eval_steps_per_second": 3.026,
|
109 |
+
"step": 12
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"epoch": 2.1666666666666665,
|
113 |
+
"grad_norm": 1.4947040279267452,
|
114 |
+
"learning_rate": 2.2221488349019903e-06,
|
115 |
+
"loss": 0.1995,
|
116 |
+
"step": 13
|
117 |
+
},
|
118 |
+
{
|
119 |
+
"epoch": 2.3333333333333335,
|
120 |
+
"grad_norm": 1.0110680641273413,
|
121 |
+
"learning_rate": 1.4644660940672628e-06,
|
122 |
+
"loss": 0.1832,
|
123 |
+
"step": 14
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 2.5,
|
127 |
+
"grad_norm": 0.8856807961821124,
|
128 |
+
"learning_rate": 8.426519384872733e-07,
|
129 |
+
"loss": 0.2052,
|
130 |
+
"step": 15
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"epoch": 2.6666666666666665,
|
134 |
+
"grad_norm": 1.0710608285659757,
|
135 |
+
"learning_rate": 3.8060233744356634e-07,
|
136 |
+
"loss": 0.2218,
|
137 |
+
"step": 16
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"epoch": 2.8333333333333335,
|
141 |
+
"grad_norm": 0.9251900139099846,
|
142 |
+
"learning_rate": 9.607359798384785e-08,
|
143 |
+
"loss": 0.1858,
|
144 |
+
"step": 17
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 3.0,
|
148 |
+
"grad_norm": 0.8991283485990265,
|
149 |
+
"learning_rate": 0.0,
|
150 |
+
"loss": 0.2071,
|
151 |
+
"step": 18
|
152 |
+
},
|
153 |
+
{
|
154 |
+
"epoch": 3.0,
|
155 |
+
"eval_loss": 0.2581753432750702,
|
156 |
+
"eval_runtime": 1.0062,
|
157 |
+
"eval_samples_per_second": 8.944,
|
158 |
+
"eval_steps_per_second": 2.981,
|
159 |
+
"step": 18
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 3.0,
|
163 |
+
"step": 18,
|
164 |
+
"total_flos": 3943670415360.0,
|
165 |
+
"train_loss": 0.554683489104112,
|
166 |
+
"train_runtime": 936.1096,
|
167 |
+
"train_samples_per_second": 0.542,
|
168 |
+
"train_steps_per_second": 0.019
|
169 |
+
}
|
170 |
+
],
|
171 |
+
"logging_steps": 1,
|
172 |
+
"max_steps": 18,
|
173 |
+
"num_input_tokens_seen": 0,
|
174 |
+
"num_train_epochs": 3,
|
175 |
+
"save_steps": 500,
|
176 |
+
"stateful_callbacks": {
|
177 |
+
"TrainerControl": {
|
178 |
+
"args": {
|
179 |
+
"should_epoch_stop": false,
|
180 |
+
"should_evaluate": false,
|
181 |
+
"should_log": false,
|
182 |
+
"should_save": true,
|
183 |
+
"should_training_stop": true
|
184 |
+
},
|
185 |
+
"attributes": {}
|
186 |
+
}
|
187 |
+
},
|
188 |
+
"total_flos": 3943670415360.0,
|
189 |
+
"train_batch_size": 8,
|
190 |
+
"trial_name": null,
|
191 |
+
"trial_params": null
|
192 |
+
}
|