Model save
Browse files- README.md +68 -0
- all_results.json +8 -0
- generation_config.json +6 -0
- train_results.json +8 -0
- trainer_state.json +189 -0
README.md
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: GSAI-ML/LLaDA-8B-Instruct
|
3 |
+
library_name: transformers
|
4 |
+
model_name: LLaDA-8B-Instruct-DLPO
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
- trl
|
8 |
+
- dlpo
|
9 |
+
licence: license
|
10 |
+
---
|
11 |
+
|
12 |
+
# Model Card for LLaDA-8B-Instruct-DLPO
|
13 |
+
|
14 |
+
This model is a fine-tuned version of [GSAI-ML/LLaDA-8B-Instruct](https://huggingface.co/GSAI-ML/LLaDA-8B-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="howey/LLaDA-8B-Instruct-DLPO", 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/hhy-tue/huggingface/runs/auoqt4fz)
|
31 |
+
|
32 |
+
|
33 |
+
This model was trained with DLPO, a method introduced in [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://huggingface.co/papers/2402.03300).
|
34 |
+
|
35 |
+
### Framework versions
|
36 |
+
|
37 |
+
- TRL: 0.16.0.dev0
|
38 |
+
- Transformers: 4.49.0
|
39 |
+
- Pytorch: 2.5.1
|
40 |
+
- Datasets: 3.3.2
|
41 |
+
- Tokenizers: 0.21.0
|
42 |
+
|
43 |
+
## Citations
|
44 |
+
|
45 |
+
Cite DLPO as:
|
46 |
+
|
47 |
+
```bibtex
|
48 |
+
@article{zhihong2024deepseekmath,
|
49 |
+
title = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}},
|
50 |
+
author = {Zhihong Shao and Peiyi Wang and Qihao Zhu and Runxin Xu and Junxiao Song and Mingchuan Zhang and Y. K. Li and Y. Wu and Daya Guo},
|
51 |
+
year = 2024,
|
52 |
+
eprint = {arXiv:2402.03300},
|
53 |
+
}
|
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,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"total_flos": 0.0,
|
3 |
+
"train_loss": -0.004999998807907104,
|
4 |
+
"train_runtime": 1556.2446,
|
5 |
+
"train_samples": 93733,
|
6 |
+
"train_samples_per_second": 0.074,
|
7 |
+
"train_steps_per_second": 0.016
|
8 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 126080,
|
4 |
+
"eos_token_id": 126081,
|
5 |
+
"transformers_version": "4.49.0"
|
6 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"total_flos": 0.0,
|
3 |
+
"train_loss": -0.004999998807907104,
|
4 |
+
"train_runtime": 1556.2446,
|
5 |
+
"train_samples": 93733,
|
6 |
+
"train_samples_per_second": 0.074,
|
7 |
+
"train_steps_per_second": 0.016
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 4.869565217391305,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 25,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"clip_ratio": 0.0,
|
13 |
+
"completion_length": 218.75,
|
14 |
+
"epoch": 0.17391304347826086,
|
15 |
+
"grad_norm": 2422.725830078125,
|
16 |
+
"learning_rate": 6.666666666666666e-07,
|
17 |
+
"loss": 0.0,
|
18 |
+
"reward": 0.25,
|
19 |
+
"rewards/accuracy_reward": 0.25,
|
20 |
+
"step": 1
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"clip_ratio": 0.0,
|
24 |
+
"completion_length": 376.25,
|
25 |
+
"epoch": 0.34782608695652173,
|
26 |
+
"grad_norm": 321.9919738769531,
|
27 |
+
"learning_rate": 1.3333333333333332e-06,
|
28 |
+
"loss": -0.25,
|
29 |
+
"reward": 0.25,
|
30 |
+
"rewards/accuracy_reward": 0.25,
|
31 |
+
"step": 2
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"clip_ratio": 0.0,
|
35 |
+
"completion_length": 347.125,
|
36 |
+
"epoch": 0.6956521739130435,
|
37 |
+
"grad_norm": 527.0032958984375,
|
38 |
+
"learning_rate": 1.9898214418809326e-06,
|
39 |
+
"loss": -0.125,
|
40 |
+
"reward": 0.125,
|
41 |
+
"rewards/accuracy_reward": 0.125,
|
42 |
+
"step": 4
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"clip_ratio": 0.0,
|
46 |
+
"completion_length": 307.0,
|
47 |
+
"epoch": 1.1739130434782608,
|
48 |
+
"grad_norm": 0.0,
|
49 |
+
"learning_rate": 1.9096319953545185e-06,
|
50 |
+
"loss": 0.0625,
|
51 |
+
"reward": 0.0,
|
52 |
+
"rewards/accuracy_reward": 0.0,
|
53 |
+
"step": 6
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"clip_ratio": 0.0,
|
57 |
+
"completion_length": 383.625,
|
58 |
+
"epoch": 1.5217391304347827,
|
59 |
+
"grad_norm": 8402.4208984375,
|
60 |
+
"learning_rate": 1.7557495743542582e-06,
|
61 |
+
"loss": 0.125,
|
62 |
+
"reward": 0.0,
|
63 |
+
"rewards/accuracy_reward": 0.0,
|
64 |
+
"step": 8
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"clip_ratio": 0.0,
|
68 |
+
"completion_length": 270.125,
|
69 |
+
"epoch": 1.8695652173913042,
|
70 |
+
"grad_norm": 255.75051879882812,
|
71 |
+
"learning_rate": 1.5406408174555977e-06,
|
72 |
+
"loss": 0.0,
|
73 |
+
"reward": 0.125,
|
74 |
+
"rewards/accuracy_reward": 0.125,
|
75 |
+
"step": 10
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"clip_ratio": 0.0,
|
79 |
+
"completion_length": 250.875,
|
80 |
+
"epoch": 2.3478260869565215,
|
81 |
+
"grad_norm": 0.0,
|
82 |
+
"learning_rate": 1.2817325568414297e-06,
|
83 |
+
"loss": 0.0,
|
84 |
+
"reward": 0.0,
|
85 |
+
"rewards/accuracy_reward": 0.0,
|
86 |
+
"step": 12
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"clip_ratio": 0.0,
|
90 |
+
"completion_length": 270.0,
|
91 |
+
"epoch": 2.6956521739130435,
|
92 |
+
"grad_norm": 0.0,
|
93 |
+
"learning_rate": 1e-06,
|
94 |
+
"loss": 0.125,
|
95 |
+
"reward": 0.125,
|
96 |
+
"rewards/accuracy_reward": 0.125,
|
97 |
+
"step": 14
|
98 |
+
},
|
99 |
+
{
|
100 |
+
"clip_ratio": 0.0,
|
101 |
+
"completion_length": 157.25,
|
102 |
+
"epoch": 3.1739130434782608,
|
103 |
+
"grad_norm": 0.0,
|
104 |
+
"learning_rate": 7.182674431585702e-07,
|
105 |
+
"loss": 0.0,
|
106 |
+
"reward": 0.0,
|
107 |
+
"rewards/accuracy_reward": 0.0,
|
108 |
+
"step": 16
|
109 |
+
},
|
110 |
+
{
|
111 |
+
"clip_ratio": 0.0,
|
112 |
+
"completion_length": 232.75,
|
113 |
+
"epoch": 3.5217391304347827,
|
114 |
+
"grad_norm": 0.0,
|
115 |
+
"learning_rate": 4.5935918254440274e-07,
|
116 |
+
"loss": 0.0,
|
117 |
+
"reward": 0.125,
|
118 |
+
"rewards/accuracy_reward": 0.125,
|
119 |
+
"step": 18
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"clip_ratio": 0.0,
|
123 |
+
"completion_length": 253.5,
|
124 |
+
"epoch": 3.869565217391304,
|
125 |
+
"grad_norm": 1907.75390625,
|
126 |
+
"learning_rate": 2.4425042564574185e-07,
|
127 |
+
"loss": -0.1875,
|
128 |
+
"reward": 0.125,
|
129 |
+
"rewards/accuracy_reward": 0.125,
|
130 |
+
"step": 20
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"clip_ratio": 0.0,
|
134 |
+
"completion_length": 327.5,
|
135 |
+
"epoch": 4.3478260869565215,
|
136 |
+
"grad_norm": 6329.58837890625,
|
137 |
+
"learning_rate": 9.036800464548156e-08,
|
138 |
+
"loss": 0.0625,
|
139 |
+
"reward": 0.125,
|
140 |
+
"rewards/accuracy_reward": 0.125,
|
141 |
+
"step": 22
|
142 |
+
},
|
143 |
+
{
|
144 |
+
"clip_ratio": 0.0,
|
145 |
+
"completion_length": 242.5,
|
146 |
+
"epoch": 4.695652173913043,
|
147 |
+
"grad_norm": 0.0,
|
148 |
+
"learning_rate": 1.0178558119067315e-08,
|
149 |
+
"loss": -0.125,
|
150 |
+
"reward": 0.125,
|
151 |
+
"rewards/accuracy_reward": 0.125,
|
152 |
+
"step": 24
|
153 |
+
},
|
154 |
+
{
|
155 |
+
"clip_ratio": 0.0,
|
156 |
+
"completion_length": 277.0,
|
157 |
+
"epoch": 4.869565217391305,
|
158 |
+
"reward": 0.0,
|
159 |
+
"rewards/accuracy_reward": 0.0,
|
160 |
+
"step": 25,
|
161 |
+
"total_flos": 0.0,
|
162 |
+
"train_loss": -0.004999998807907104,
|
163 |
+
"train_runtime": 1556.2446,
|
164 |
+
"train_samples_per_second": 0.074,
|
165 |
+
"train_steps_per_second": 0.016
|
166 |
+
}
|
167 |
+
],
|
168 |
+
"logging_steps": 2,
|
169 |
+
"max_steps": 25,
|
170 |
+
"num_input_tokens_seen": 0,
|
171 |
+
"num_train_epochs": 5,
|
172 |
+
"save_steps": 500,
|
173 |
+
"stateful_callbacks": {
|
174 |
+
"TrainerControl": {
|
175 |
+
"args": {
|
176 |
+
"should_epoch_stop": false,
|
177 |
+
"should_evaluate": false,
|
178 |
+
"should_log": false,
|
179 |
+
"should_save": true,
|
180 |
+
"should_training_stop": true
|
181 |
+
},
|
182 |
+
"attributes": {}
|
183 |
+
}
|
184 |
+
},
|
185 |
+
"total_flos": 0.0,
|
186 |
+
"train_batch_size": 1,
|
187 |
+
"trial_name": null,
|
188 |
+
"trial_params": null
|
189 |
+
}
|