Model save
Browse files- .gitattributes +1 -0
- README.md +67 -0
- added_tokens.json +26 -0
- all_results.json +8 -0
- config.json +29 -0
- generation_config.json +14 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- special_tokens_map.json +31 -0
- tokenizer.json +3 -0
- tokenizer_config.json +225 -0
- train_results.json +8 -0
- trainer_state.json +259 -0
- training_args.bin +3 -0
- vocab.json +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
model_name: Tim
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
- trl
|
7 |
+
- grpo
|
8 |
+
licence: license
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Card for Tim
|
12 |
+
|
13 |
+
This model is a fine-tuned version of [None](https://huggingface.co/None).
|
14 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
15 |
+
|
16 |
+
## Quick start
|
17 |
+
|
18 |
+
```python
|
19 |
+
from transformers import pipeline
|
20 |
+
|
21 |
+
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?"
|
22 |
+
generator = pipeline("text-generation", model="luohy/Tim", device="cuda")
|
23 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
24 |
+
print(output["generated_text"])
|
25 |
+
```
|
26 |
+
|
27 |
+
## Training procedure
|
28 |
+
|
29 |
+
[<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/autonomous-nlp/huggingface/runs/4if8qrvd)
|
30 |
+
|
31 |
+
|
32 |
+
This model was trained with GRPO, a method introduced in [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://huggingface.co/papers/2402.03300).
|
33 |
+
|
34 |
+
### Framework versions
|
35 |
+
|
36 |
+
- TRL: 0.15.0.dev0
|
37 |
+
- Transformers: 4.49.0.dev0
|
38 |
+
- Pytorch: 2.5.1
|
39 |
+
- Datasets: 3.1.0
|
40 |
+
- Tokenizers: 0.21.0
|
41 |
+
|
42 |
+
## Citations
|
43 |
+
|
44 |
+
Cite GRPO as:
|
45 |
+
|
46 |
+
```bibtex
|
47 |
+
@article{zhihong2024deepseekmath,
|
48 |
+
title = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}},
|
49 |
+
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},
|
50 |
+
year = 2024,
|
51 |
+
eprint = {arXiv:2402.03300},
|
52 |
+
}
|
53 |
+
|
54 |
+
```
|
55 |
+
|
56 |
+
Cite TRL as:
|
57 |
+
|
58 |
+
```bibtex
|
59 |
+
@misc{vonwerra2022trl,
|
60 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
61 |
+
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},
|
62 |
+
year = 2020,
|
63 |
+
journal = {GitHub repository},
|
64 |
+
publisher = {GitHub},
|
65 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
66 |
+
}
|
67 |
+
```
|
added_tokens.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</Thought>": 151666,
|
3 |
+
"</tool_call>": 151658,
|
4 |
+
"<Thought>": 151665,
|
5 |
+
"<tool_call>": 151657,
|
6 |
+
"<|box_end|>": 151649,
|
7 |
+
"<|box_start|>": 151648,
|
8 |
+
"<|endoftext|>": 151643,
|
9 |
+
"<|file_sep|>": 151664,
|
10 |
+
"<|fim_middle|>": 151660,
|
11 |
+
"<|fim_pad|>": 151662,
|
12 |
+
"<|fim_prefix|>": 151659,
|
13 |
+
"<|fim_suffix|>": 151661,
|
14 |
+
"<|im_end|>": 151645,
|
15 |
+
"<|im_start|>": 151644,
|
16 |
+
"<|image_pad|>": 151655,
|
17 |
+
"<|object_ref_end|>": 151647,
|
18 |
+
"<|object_ref_start|>": 151646,
|
19 |
+
"<|quad_end|>": 151651,
|
20 |
+
"<|quad_start|>": 151650,
|
21 |
+
"<|repo_name|>": 151663,
|
22 |
+
"<|video_pad|>": 151656,
|
23 |
+
"<|vision_end|>": 151653,
|
24 |
+
"<|vision_pad|>": 151654,
|
25 |
+
"<|vision_start|>": 151652
|
26 |
+
}
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"total_flos": 0.0,
|
3 |
+
"train_loss": 0.0001987359993598567,
|
4 |
+
"train_runtime": 7692.2558,
|
5 |
+
"train_samples": 7500,
|
6 |
+
"train_samples_per_second": 0.975,
|
7 |
+
"train_steps_per_second": 0.01
|
8 |
+
}
|
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/home/hongyin/LLaMA-Factory/saves/thread_model/sft_exp",
|
3 |
+
"architectures": [
|
4 |
+
"Qwen2ForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 151643,
|
8 |
+
"eos_token_id": 151645,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 1536,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 8960,
|
13 |
+
"max_position_embeddings": 32768,
|
14 |
+
"max_window_layers": 21,
|
15 |
+
"model_type": "qwen2",
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"num_hidden_layers": 28,
|
18 |
+
"num_key_value_heads": 2,
|
19 |
+
"rms_norm_eps": 1e-06,
|
20 |
+
"rope_scaling": null,
|
21 |
+
"rope_theta": 1000000.0,
|
22 |
+
"sliding_window": null,
|
23 |
+
"tie_word_embeddings": true,
|
24 |
+
"torch_dtype": "bfloat16",
|
25 |
+
"transformers_version": "4.49.0.dev0",
|
26 |
+
"use_cache": false,
|
27 |
+
"use_sliding_window": false,
|
28 |
+
"vocab_size": 151936
|
29 |
+
}
|
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.1,
|
10 |
+
"temperature": 0.7,
|
11 |
+
"top_k": 20,
|
12 |
+
"top_p": 0.8,
|
13 |
+
"transformers_version": "4.49.0.dev0"
|
14 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:20dacd751d781773cde1a674ef4ac9dd979a59cba07cd0593e780a5a81689d56
|
3 |
+
size 3554214752
|
special_tokens_map.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>",
|
5 |
+
"<|object_ref_start|>",
|
6 |
+
"<|object_ref_end|>",
|
7 |
+
"<|box_start|>",
|
8 |
+
"<|box_end|>",
|
9 |
+
"<|quad_start|>",
|
10 |
+
"<|quad_end|>",
|
11 |
+
"<|vision_start|>",
|
12 |
+
"<|vision_end|>",
|
13 |
+
"<|vision_pad|>",
|
14 |
+
"<|image_pad|>",
|
15 |
+
"<|video_pad|>"
|
16 |
+
],
|
17 |
+
"eos_token": {
|
18 |
+
"content": "<|im_end|>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
},
|
24 |
+
"pad_token": {
|
25 |
+
"content": "<|endoftext|>",
|
26 |
+
"lstrip": false,
|
27 |
+
"normalized": false,
|
28 |
+
"rstrip": false,
|
29 |
+
"single_word": false
|
30 |
+
}
|
31 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_prefix_space": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"151643": {
|
6 |
+
"content": "<|endoftext|>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"151644": {
|
14 |
+
"content": "<|im_start|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"151645": {
|
22 |
+
"content": "<|im_end|>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"151646": {
|
30 |
+
"content": "<|object_ref_start|>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"151647": {
|
38 |
+
"content": "<|object_ref_end|>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"151648": {
|
46 |
+
"content": "<|box_start|>",
|
47 |
+
"lstrip": false,
|
48 |
+
"normalized": false,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false,
|
51 |
+
"special": true
|
52 |
+
},
|
53 |
+
"151649": {
|
54 |
+
"content": "<|box_end|>",
|
55 |
+
"lstrip": false,
|
56 |
+
"normalized": false,
|
57 |
+
"rstrip": false,
|
58 |
+
"single_word": false,
|
59 |
+
"special": true
|
60 |
+
},
|
61 |
+
"151650": {
|
62 |
+
"content": "<|quad_start|>",
|
63 |
+
"lstrip": false,
|
64 |
+
"normalized": false,
|
65 |
+
"rstrip": false,
|
66 |
+
"single_word": false,
|
67 |
+
"special": true
|
68 |
+
},
|
69 |
+
"151651": {
|
70 |
+
"content": "<|quad_end|>",
|
71 |
+
"lstrip": false,
|
72 |
+
"normalized": false,
|
73 |
+
"rstrip": false,
|
74 |
+
"single_word": false,
|
75 |
+
"special": true
|
76 |
+
},
|
77 |
+
"151652": {
|
78 |
+
"content": "<|vision_start|>",
|
79 |
+
"lstrip": false,
|
80 |
+
"normalized": false,
|
81 |
+
"rstrip": false,
|
82 |
+
"single_word": false,
|
83 |
+
"special": true
|
84 |
+
},
|
85 |
+
"151653": {
|
86 |
+
"content": "<|vision_end|>",
|
87 |
+
"lstrip": false,
|
88 |
+
"normalized": false,
|
89 |
+
"rstrip": false,
|
90 |
+
"single_word": false,
|
91 |
+
"special": true
|
92 |
+
},
|
93 |
+
"151654": {
|
94 |
+
"content": "<|vision_pad|>",
|
95 |
+
"lstrip": false,
|
96 |
+
"normalized": false,
|
97 |
+
"rstrip": false,
|
98 |
+
"single_word": false,
|
99 |
+
"special": true
|
100 |
+
},
|
101 |
+
"151655": {
|
102 |
+
"content": "<|image_pad|>",
|
103 |
+
"lstrip": false,
|
104 |
+
"normalized": false,
|
105 |
+
"rstrip": false,
|
106 |
+
"single_word": false,
|
107 |
+
"special": true
|
108 |
+
},
|
109 |
+
"151656": {
|
110 |
+
"content": "<|video_pad|>",
|
111 |
+
"lstrip": false,
|
112 |
+
"normalized": false,
|
113 |
+
"rstrip": false,
|
114 |
+
"single_word": false,
|
115 |
+
"special": true
|
116 |
+
},
|
117 |
+
"151657": {
|
118 |
+
"content": "<tool_call>",
|
119 |
+
"lstrip": false,
|
120 |
+
"normalized": false,
|
121 |
+
"rstrip": false,
|
122 |
+
"single_word": false,
|
123 |
+
"special": false
|
124 |
+
},
|
125 |
+
"151658": {
|
126 |
+
"content": "</tool_call>",
|
127 |
+
"lstrip": false,
|
128 |
+
"normalized": false,
|
129 |
+
"rstrip": false,
|
130 |
+
"single_word": false,
|
131 |
+
"special": false
|
132 |
+
},
|
133 |
+
"151659": {
|
134 |
+
"content": "<|fim_prefix|>",
|
135 |
+
"lstrip": false,
|
136 |
+
"normalized": false,
|
137 |
+
"rstrip": false,
|
138 |
+
"single_word": false,
|
139 |
+
"special": false
|
140 |
+
},
|
141 |
+
"151660": {
|
142 |
+
"content": "<|fim_middle|>",
|
143 |
+
"lstrip": false,
|
144 |
+
"normalized": false,
|
145 |
+
"rstrip": false,
|
146 |
+
"single_word": false,
|
147 |
+
"special": false
|
148 |
+
},
|
149 |
+
"151661": {
|
150 |
+
"content": "<|fim_suffix|>",
|
151 |
+
"lstrip": false,
|
152 |
+
"normalized": false,
|
153 |
+
"rstrip": false,
|
154 |
+
"single_word": false,
|
155 |
+
"special": false
|
156 |
+
},
|
157 |
+
"151662": {
|
158 |
+
"content": "<|fim_pad|>",
|
159 |
+
"lstrip": false,
|
160 |
+
"normalized": false,
|
161 |
+
"rstrip": false,
|
162 |
+
"single_word": false,
|
163 |
+
"special": false
|
164 |
+
},
|
165 |
+
"151663": {
|
166 |
+
"content": "<|repo_name|>",
|
167 |
+
"lstrip": false,
|
168 |
+
"normalized": false,
|
169 |
+
"rstrip": false,
|
170 |
+
"single_word": false,
|
171 |
+
"special": false
|
172 |
+
},
|
173 |
+
"151664": {
|
174 |
+
"content": "<|file_sep|>",
|
175 |
+
"lstrip": false,
|
176 |
+
"normalized": false,
|
177 |
+
"rstrip": false,
|
178 |
+
"single_word": false,
|
179 |
+
"special": false
|
180 |
+
},
|
181 |
+
"151665": {
|
182 |
+
"content": "<Thought>",
|
183 |
+
"lstrip": false,
|
184 |
+
"normalized": true,
|
185 |
+
"rstrip": false,
|
186 |
+
"single_word": false,
|
187 |
+
"special": false
|
188 |
+
},
|
189 |
+
"151666": {
|
190 |
+
"content": "</Thought>",
|
191 |
+
"lstrip": false,
|
192 |
+
"normalized": true,
|
193 |
+
"rstrip": false,
|
194 |
+
"single_word": false,
|
195 |
+
"special": false
|
196 |
+
}
|
197 |
+
},
|
198 |
+
"additional_special_tokens": [
|
199 |
+
"<|im_start|>",
|
200 |
+
"<|im_end|>",
|
201 |
+
"<|object_ref_start|>",
|
202 |
+
"<|object_ref_end|>",
|
203 |
+
"<|box_start|>",
|
204 |
+
"<|box_end|>",
|
205 |
+
"<|quad_start|>",
|
206 |
+
"<|quad_end|>",
|
207 |
+
"<|vision_start|>",
|
208 |
+
"<|vision_end|>",
|
209 |
+
"<|vision_pad|>",
|
210 |
+
"<|image_pad|>",
|
211 |
+
"<|video_pad|>"
|
212 |
+
],
|
213 |
+
"bos_token": null,
|
214 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
215 |
+
"clean_up_tokenization_spaces": false,
|
216 |
+
"eos_token": "<|im_end|>",
|
217 |
+
"errors": "replace",
|
218 |
+
"extra_special_tokens": {},
|
219 |
+
"model_max_length": 2048,
|
220 |
+
"pad_token": "<|endoftext|>",
|
221 |
+
"padding_side": "left",
|
222 |
+
"split_special_tokens": false,
|
223 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
224 |
+
"unk_token": null
|
225 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"total_flos": 0.0,
|
3 |
+
"train_loss": 0.0001987359993598567,
|
4 |
+
"train_runtime": 7692.2558,
|
5 |
+
"train_samples": 7500,
|
6 |
+
"train_samples_per_second": 0.975,
|
7 |
+
"train_steps_per_second": 0.01
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,259 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.9984,
|
5 |
+
"eval_steps": 10000,
|
6 |
+
"global_step": 78,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"advantage": 2.050441083312035,
|
13 |
+
"completion_length": 549.2318519592285,
|
14 |
+
"epoch": 0.064,
|
15 |
+
"grad_norm": 0.3377276062965393,
|
16 |
+
"kl": 0.00016334056854248047,
|
17 |
+
"learning_rate": 1.875e-06,
|
18 |
+
"loss": 0.0,
|
19 |
+
"reward": 1.4327381163835526,
|
20 |
+
"reward_std": 0.2913255948573351,
|
21 |
+
"rewards/accuracy_reward": 0.43273810148239134,
|
22 |
+
"rewards/format_reward": 1.0,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"advantage": 1.8731657922267915,
|
27 |
+
"completion_length": 535.2622138977051,
|
28 |
+
"epoch": 0.128,
|
29 |
+
"grad_norm": 0.2055761218070984,
|
30 |
+
"kl": 0.001010751724243164,
|
31 |
+
"learning_rate": 2.993961440992859e-06,
|
32 |
+
"loss": 0.0,
|
33 |
+
"reward": 1.500892886519432,
|
34 |
+
"reward_std": 0.25598252601921556,
|
35 |
+
"rewards/accuracy_reward": 0.5008928671479225,
|
36 |
+
"rewards/format_reward": 1.0,
|
37 |
+
"step": 10
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"advantage": 1.8132987678050996,
|
41 |
+
"completion_length": 546.9449508666992,
|
42 |
+
"epoch": 0.192,
|
43 |
+
"grad_norm": 0.22043277323246002,
|
44 |
+
"kl": 0.00526275634765625,
|
45 |
+
"learning_rate": 2.9265847744427307e-06,
|
46 |
+
"loss": 0.0002,
|
47 |
+
"reward": 1.535119077563286,
|
48 |
+
"reward_std": 0.23049755450338125,
|
49 |
+
"rewards/accuracy_reward": 0.5351190570741892,
|
50 |
+
"rewards/format_reward": 1.0,
|
51 |
+
"step": 15
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"advantage": 1.9496307998895646,
|
55 |
+
"completion_length": 559.6901908874512,
|
56 |
+
"epoch": 0.256,
|
57 |
+
"grad_norm": 0.18047218024730682,
|
58 |
+
"kl": 0.006356048583984375,
|
59 |
+
"learning_rate": 2.7876731904027993e-06,
|
60 |
+
"loss": 0.0003,
|
61 |
+
"reward": 1.5279762238264083,
|
62 |
+
"reward_std": 0.21949078943580388,
|
63 |
+
"rewards/accuracy_reward": 0.5279762007296085,
|
64 |
+
"rewards/format_reward": 1.0,
|
65 |
+
"step": 20
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"advantage": 1.9445811256766319,
|
69 |
+
"completion_length": 561.3247123718262,
|
70 |
+
"epoch": 0.32,
|
71 |
+
"grad_norm": 0.17815344035625458,
|
72 |
+
"kl": 0.00570068359375,
|
73 |
+
"learning_rate": 2.584192295741087e-06,
|
74 |
+
"loss": 0.0002,
|
75 |
+
"reward": 1.5446428924798965,
|
76 |
+
"reward_std": 0.23059090217575431,
|
77 |
+
"rewards/accuracy_reward": 0.5446428753435612,
|
78 |
+
"rewards/format_reward": 1.0,
|
79 |
+
"step": 25
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"advantage": 1.7600619524717331,
|
83 |
+
"completion_length": 547.6345359802247,
|
84 |
+
"epoch": 0.384,
|
85 |
+
"grad_norm": 0.18666820228099823,
|
86 |
+
"kl": 0.00573883056640625,
|
87 |
+
"learning_rate": 2.3263454721781537e-06,
|
88 |
+
"loss": 0.0002,
|
89 |
+
"reward": 1.5431547909975052,
|
90 |
+
"reward_std": 0.21657919492572547,
|
91 |
+
"rewards/accuracy_reward": 0.5431547746062279,
|
92 |
+
"rewards/format_reward": 1.0,
|
93 |
+
"step": 30
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"advantage": 1.7993007361888886,
|
97 |
+
"completion_length": 546.9157859802247,
|
98 |
+
"epoch": 0.448,
|
99 |
+
"grad_norm": 0.1700781136751175,
|
100 |
+
"kl": 0.00593109130859375,
|
101 |
+
"learning_rate": 2.027062236122014e-06,
|
102 |
+
"loss": 0.0002,
|
103 |
+
"reward": 1.5273809880018234,
|
104 |
+
"reward_std": 0.2096662785857916,
|
105 |
+
"rewards/accuracy_reward": 0.5273809637874365,
|
106 |
+
"rewards/format_reward": 1.0,
|
107 |
+
"step": 35
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"advantage": 1.896444058418274,
|
111 |
+
"completion_length": 552.3208389282227,
|
112 |
+
"epoch": 0.512,
|
113 |
+
"grad_norm": 0.1920849233865738,
|
114 |
+
"kl": 0.005233001708984375,
|
115 |
+
"learning_rate": 1.7013498987264833e-06,
|
116 |
+
"loss": 0.0002,
|
117 |
+
"reward": 1.5434524178504945,
|
118 |
+
"reward_std": 0.22238524220883846,
|
119 |
+
"rewards/accuracy_reward": 0.5434523917734623,
|
120 |
+
"rewards/format_reward": 1.0,
|
121 |
+
"step": 40
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"advantage": 1.870384192466736,
|
125 |
+
"completion_length": 558.927098083496,
|
126 |
+
"epoch": 0.576,
|
127 |
+
"grad_norm": 0.18718139827251434,
|
128 |
+
"kl": 0.0053081512451171875,
|
129 |
+
"learning_rate": 1.3655410366448499e-06,
|
130 |
+
"loss": 0.0002,
|
131 |
+
"reward": 1.5154762089252471,
|
132 |
+
"reward_std": 0.21234574727714062,
|
133 |
+
"rewards/accuracy_reward": 0.5154761992394924,
|
134 |
+
"rewards/format_reward": 1.0,
|
135 |
+
"step": 45
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"advantage": 1.9293582290410995,
|
139 |
+
"completion_length": 554.5389984130859,
|
140 |
+
"epoch": 0.64,
|
141 |
+
"grad_norm": 0.2384500652551651,
|
142 |
+
"kl": 0.0057861328125,
|
143 |
+
"learning_rate": 1.036474508437579e-06,
|
144 |
+
"loss": 0.0002,
|
145 |
+
"reward": 1.5339285999536514,
|
146 |
+
"reward_std": 0.2257133638486266,
|
147 |
+
"rewards/accuracy_reward": 0.5339285805821419,
|
148 |
+
"rewards/format_reward": 1.0,
|
149 |
+
"step": 50
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"advantage": 1.9427187949419022,
|
153 |
+
"completion_length": 556.450008392334,
|
154 |
+
"epoch": 0.704,
|
155 |
+
"grad_norm": 0.19755816459655762,
|
156 |
+
"kl": 0.005307769775390625,
|
157 |
+
"learning_rate": 7.30651083891141e-07,
|
158 |
+
"loss": 0.0002,
|
159 |
+
"reward": 1.5452381312847137,
|
160 |
+
"reward_std": 0.2197699649259448,
|
161 |
+
"rewards/accuracy_reward": 0.545238108932972,
|
162 |
+
"rewards/format_reward": 1.0,
|
163 |
+
"step": 55
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"advantage": 1.8897637754678727,
|
167 |
+
"completion_length": 560.4640045166016,
|
168 |
+
"epoch": 0.768,
|
169 |
+
"grad_norm": 0.24272561073303223,
|
170 |
+
"kl": 0.005287933349609375,
|
171 |
+
"learning_rate": 4.63406026519703e-07,
|
172 |
+
"loss": 0.0002,
|
173 |
+
"reward": 1.525297647714615,
|
174 |
+
"reward_std": 0.24526160284876825,
|
175 |
+
"rewards/accuracy_reward": 0.5252976305782795,
|
176 |
+
"rewards/format_reward": 1.0,
|
177 |
+
"step": 60
|
178 |
+
},
|
179 |
+
{
|
180 |
+
"advantage": 1.9503421396017075,
|
181 |
+
"completion_length": 557.6199478149414,
|
182 |
+
"epoch": 0.832,
|
183 |
+
"grad_norm": 0.18535475432872772,
|
184 |
+
"kl": 0.005422210693359375,
|
185 |
+
"learning_rate": 2.48140119418046e-07,
|
186 |
+
"loss": 0.0002,
|
187 |
+
"reward": 1.517559552192688,
|
188 |
+
"reward_std": 0.21927062328904867,
|
189 |
+
"rewards/accuracy_reward": 0.5175595372915268,
|
190 |
+
"rewards/format_reward": 1.0,
|
191 |
+
"step": 65
|
192 |
+
},
|
193 |
+
{
|
194 |
+
"advantage": 1.9777270182967186,
|
195 |
+
"completion_length": 550.9339363098145,
|
196 |
+
"epoch": 0.896,
|
197 |
+
"grad_norm": 0.23573845624923706,
|
198 |
+
"kl": 0.00623931884765625,
|
199 |
+
"learning_rate": 9.564769404039419e-08,
|
200 |
+
"loss": 0.0002,
|
201 |
+
"reward": 1.5324405014514924,
|
202 |
+
"reward_std": 0.22246364038437605,
|
203 |
+
"rewards/accuracy_reward": 0.5324404895305633,
|
204 |
+
"rewards/format_reward": 1.0,
|
205 |
+
"step": 70
|
206 |
+
},
|
207 |
+
{
|
208 |
+
"advantage": 1.8454515248537064,
|
209 |
+
"completion_length": 566.992268371582,
|
210 |
+
"epoch": 0.96,
|
211 |
+
"grad_norm": 0.18028907477855682,
|
212 |
+
"kl": 0.00513458251953125,
|
213 |
+
"learning_rate": 1.357535734809795e-08,
|
214 |
+
"loss": 0.0002,
|
215 |
+
"reward": 1.515476217865944,
|
216 |
+
"reward_std": 0.22508260188624263,
|
217 |
+
"rewards/accuracy_reward": 0.5154761977493763,
|
218 |
+
"rewards/format_reward": 1.0,
|
219 |
+
"step": 75
|
220 |
+
},
|
221 |
+
{
|
222 |
+
"advantage": 2.0446028262376785,
|
223 |
+
"completion_length": 550.128978729248,
|
224 |
+
"epoch": 0.9984,
|
225 |
+
"kl": 0.005794525146484375,
|
226 |
+
"reward": 1.536210338274638,
|
227 |
+
"reward_std": 0.22843041829764843,
|
228 |
+
"rewards/accuracy_reward": 0.5362103283405304,
|
229 |
+
"rewards/format_reward": 1.0,
|
230 |
+
"step": 78,
|
231 |
+
"total_flos": 0.0,
|
232 |
+
"train_loss": 0.0001987359993598567,
|
233 |
+
"train_runtime": 7692.2558,
|
234 |
+
"train_samples_per_second": 0.975,
|
235 |
+
"train_steps_per_second": 0.01
|
236 |
+
}
|
237 |
+
],
|
238 |
+
"logging_steps": 5,
|
239 |
+
"max_steps": 78,
|
240 |
+
"num_input_tokens_seen": 0,
|
241 |
+
"num_train_epochs": 1,
|
242 |
+
"save_steps": 500,
|
243 |
+
"stateful_callbacks": {
|
244 |
+
"TrainerControl": {
|
245 |
+
"args": {
|
246 |
+
"should_epoch_stop": false,
|
247 |
+
"should_evaluate": false,
|
248 |
+
"should_log": false,
|
249 |
+
"should_save": false,
|
250 |
+
"should_training_stop": false
|
251 |
+
},
|
252 |
+
"attributes": {}
|
253 |
+
}
|
254 |
+
},
|
255 |
+
"total_flos": 0.0,
|
256 |
+
"train_batch_size": 4,
|
257 |
+
"trial_name": null,
|
258 |
+
"trial_params": null
|
259 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34634245ce5f9d48b7d43206a578590dbebe2cf55f6bcef09d862ed523bc452b
|
3 |
+
size 7160
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|