Trung Vu commited on
Commit
6796f4e
·
verified ·
1 Parent(s): f8d0bd3

Training in progress, step 95, checkpoint

Browse files
.gitattributes CHANGED
@@ -52,3 +52,4 @@ checkpoint-75/tokenizer.json filter=lfs diff=lfs merge=lfs -text
52
  checkpoint-80/tokenizer.json filter=lfs diff=lfs merge=lfs -text
53
  checkpoint-85/tokenizer.json filter=lfs diff=lfs merge=lfs -text
54
  checkpoint-90/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
52
  checkpoint-80/tokenizer.json filter=lfs diff=lfs merge=lfs -text
53
  checkpoint-85/tokenizer.json filter=lfs diff=lfs merge=lfs -text
54
  checkpoint-90/tokenizer.json filter=lfs diff=lfs merge=lfs -text
55
+ checkpoint-95/tokenizer.json filter=lfs diff=lfs merge=lfs -text
checkpoint-95/added_tokens.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</think>": 151668,
3
+ "</tool_call>": 151658,
4
+ "</tool_response>": 151666,
5
+ "<think>": 151667,
6
+ "<tool_call>": 151657,
7
+ "<tool_response>": 151665,
8
+ "<|box_end|>": 151649,
9
+ "<|box_start|>": 151648,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|image_pad|>": 151655,
19
+ "<|object_ref_end|>": 151647,
20
+ "<|object_ref_start|>": 151646,
21
+ "<|quad_end|>": 151651,
22
+ "<|quad_start|>": 151650,
23
+ "<|repo_name|>": 151663,
24
+ "<|video_pad|>": 151656,
25
+ "<|vision_end|>": 151653,
26
+ "<|vision_pad|>": 151654,
27
+ "<|vision_start|>": 151652
28
+ }
checkpoint-95/config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "eos_token_id": 151645,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 2048,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 6144,
14
+ "max_position_embeddings": 40960,
15
+ "max_window_layers": 28,
16
+ "model_type": "qwen3",
17
+ "num_attention_heads": 16,
18
+ "num_hidden_layers": 28,
19
+ "num_key_value_heads": 8,
20
+ "rms_norm_eps": 1e-06,
21
+ "rope_scaling": null,
22
+ "rope_theta": 1000000,
23
+ "sliding_window": null,
24
+ "tie_word_embeddings": true,
25
+ "torch_dtype": "bfloat16",
26
+ "transformers_version": "4.51.3",
27
+ "use_cache": false,
28
+ "use_sliding_window": false,
29
+ "vocab_size": 151936
30
+ }
checkpoint-95/generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "temperature": 0.6,
10
+ "top_k": 20,
11
+ "top_p": 0.95,
12
+ "transformers_version": "4.51.3"
13
+ }
checkpoint-95/global_step95/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f19695a0e344f8e5439ac7c1657e236518c202b64b5244c8379897ef34202c78
3
+ size 2949562736
checkpoint-95/global_step95/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af99565b1953eb069ae6a656f95e44cf0ad2fc686525cfba5a8c6422da34be07
3
+ size 2949565232
checkpoint-95/global_step95/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a74fd5125fd3f6970ae5656e4f2bb271e1196951b7f170c28f2ec8917dd4f4d
3
+ size 2949565936
checkpoint-95/global_step95/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3af388ac91faec34268fdb06a5a7121ebf50b6cb0c87ca6f7eac9be77c68a125
3
+ size 2949566064
checkpoint-95/global_step95/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb24bab227cbd1427cbc0e3e409928a77f317652c115db728ce8586fe9d77121
3
+ size 2949565808
checkpoint-95/global_step95/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f89034eb0ccd9f5312ac5a0bb44ef113bd98764144df24d0bfe58751a90298e
3
+ size 2949565936
checkpoint-95/global_step95/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51664d7fa9519493b9d7ef97bd42a1cedd3115cb5c9652749fffe868b5c909ec
3
+ size 2949565936
checkpoint-95/global_step95/mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a836bc2ed6fe32aa19909271a800b73e2f239376c0d23b39ee5e85209c4b856
3
+ size 3441239288
checkpoint-95/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step95
checkpoint-95/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-95/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5140d73b1e57dcb42f562d40e576b4d0e16f80475345601c6c6cb89a2fcc21ef
3
+ size 4063515640
checkpoint-95/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcbaded82e3003e400116c1b7c2149b7f621db376b8678c41ea2960f2fe7c893
3
+ size 15664
checkpoint-95/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ab8c553488476670847626ca0cd90a10a26aaada95055efb13560c976b864810
3
+ size 15728
checkpoint-95/rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22755f67648e4909f702fa30d6e8e9a31ff6fdbe5eb81f65743a9fcc4b6af22f
3
+ size 15728
checkpoint-95/rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f5d06df2b7664668e4b6e1901ce5b2f22fde390f8a0be5dd22b1f278e84a77c
3
+ size 15792
checkpoint-95/rng_state_4.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80d3f8775a096ab578258a2256310da955f77f14de94b0af1adb8a4c8483d5de
3
+ size 15728
checkpoint-95/rng_state_5.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e642e41a37b00d42af084c8c0561e9ef84e0844a350b48e7b45b9e93265d266e
3
+ size 15728
checkpoint-95/rng_state_6.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3546e4855436972ad46c20248d0199b1abcb2ef7abbb34b24c3e5d66336fe2df
3
+ size 15728
checkpoint-95/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3caba2b763c105d8c99e12fe5d18e730d3a0d9f6e6b4c883814817fcb947a4b9
3
+ size 1064
checkpoint-95/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
+ }
checkpoint-95/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67cc0080ffd7555f723f423c27cfef314e1ad9d335c8b79f465c5faba1ed478b
3
+ size 11422821
checkpoint-95/tokenizer_config.json ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\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 {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set content = message.content %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is defined and message.reasoning_content is not none %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in message.content %}\n {%- set content = message.content.split('</think>')[-1].lstrip('\\n') %}\n {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first 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 {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
231
+ "clean_up_tokenization_spaces": false,
232
+ "eos_token": "<|im_end|>",
233
+ "errors": "replace",
234
+ "extra_special_tokens": {},
235
+ "model_max_length": 131072,
236
+ "pad_token": "<|endoftext|>",
237
+ "split_special_tokens": false,
238
+ "tokenizer_class": "Qwen2Tokenizer",
239
+ "unk_token": null
240
+ }
checkpoint-95/trainer_state.json ADDED
@@ -0,0 +1,2314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 0.3767349636483807,
6
+ "eval_steps": 500,
7
+ "global_step": 95,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "clip_ratio/high_max": 0.0,
14
+ "clip_ratio/high_mean": 0.0,
15
+ "clip_ratio/low_mean": 0.0,
16
+ "clip_ratio/low_min": 0.0,
17
+ "clip_ratio/region_mean": 0.0,
18
+ "completions/clipped_ratio": 0.6785714285714286,
19
+ "completions/max_length": 5120.0,
20
+ "completions/max_terminated_length": 5080.0,
21
+ "completions/mean_length": 4529.693359375,
22
+ "completions/mean_terminated_length": 3283.49072265625,
23
+ "completions/min_length": 986.0,
24
+ "completions/min_terminated_length": 986.0,
25
+ "epoch": 0.0039656311962987445,
26
+ "grad_norm": 0.15875904262065887,
27
+ "learning_rate": 0.0,
28
+ "loss": 0.0215,
29
+ "num_tokens": 1587977.0,
30
+ "reward": 0.3303571343421936,
31
+ "reward_std": 0.19694826006889343,
32
+ "rewards/accuracy_reward/mean": 0.3303571343421936,
33
+ "rewards/accuracy_reward/std": 0.4710431694984436,
34
+ "step": 1
35
+ },
36
+ {
37
+ "clip_ratio/high_max": 0.0,
38
+ "clip_ratio/high_mean": 0.0,
39
+ "clip_ratio/low_mean": 0.0,
40
+ "clip_ratio/low_min": 0.0,
41
+ "clip_ratio/region_mean": 0.0,
42
+ "completions/clipped_ratio": 0.6904761904761905,
43
+ "completions/max_length": 5120.0,
44
+ "completions/max_terminated_length": 5117.0,
45
+ "completions/mean_length": 4590.5654296875,
46
+ "completions/mean_terminated_length": 3409.519287109375,
47
+ "completions/min_length": 460.0,
48
+ "completions/min_terminated_length": 460.0,
49
+ "epoch": 0.007931262392597489,
50
+ "grad_norm": 0.17138810455799103,
51
+ "learning_rate": 3.846153846153846e-08,
52
+ "loss": 0.0399,
53
+ "num_tokens": 3197661.0,
54
+ "reward": 0.3154762089252472,
55
+ "reward_std": 0.21732226014137268,
56
+ "rewards/accuracy_reward/mean": 0.3154761791229248,
57
+ "rewards/accuracy_reward/std": 0.4653983414173126,
58
+ "step": 2
59
+ },
60
+ {
61
+ "clip_ratio/high_max": 0.0,
62
+ "clip_ratio/high_mean": 0.0,
63
+ "clip_ratio/low_mean": 0.0,
64
+ "clip_ratio/low_min": 0.0,
65
+ "clip_ratio/region_mean": 0.0,
66
+ "completions/clipped_ratio": 0.6309523809523809,
67
+ "completions/max_length": 5120.0,
68
+ "completions/max_terminated_length": 5119.0,
69
+ "completions/mean_length": 4508.61328125,
70
+ "completions/mean_terminated_length": 3463.338623046875,
71
+ "completions/min_length": 889.0,
72
+ "completions/min_terminated_length": 889.0,
73
+ "epoch": 0.011896893588896233,
74
+ "grad_norm": 0.13771647214889526,
75
+ "learning_rate": 7.692307692307692e-08,
76
+ "loss": 0.0191,
77
+ "num_tokens": 4779191.0,
78
+ "reward": 0.4375,
79
+ "reward_std": 0.15370962023735046,
80
+ "rewards/accuracy_reward/mean": 0.4375,
81
+ "rewards/accuracy_reward/std": 0.4968182444572449,
82
+ "step": 3
83
+ },
84
+ {
85
+ "clip_ratio/high_max": 0.0,
86
+ "clip_ratio/high_mean": 0.0,
87
+ "clip_ratio/low_mean": 0.0,
88
+ "clip_ratio/low_min": 0.0,
89
+ "clip_ratio/region_mean": 0.0,
90
+ "completions/clipped_ratio": 0.6547619047619048,
91
+ "completions/max_length": 5120.0,
92
+ "completions/max_terminated_length": 5057.0,
93
+ "completions/mean_length": 4419.59814453125,
94
+ "completions/mean_terminated_length": 3091.25,
95
+ "completions/min_length": 513.0,
96
+ "completions/min_terminated_length": 513.0,
97
+ "epoch": 0.015862524785194978,
98
+ "grad_norm": 0.19674311578273773,
99
+ "learning_rate": 1.1538461538461539e-07,
100
+ "loss": 0.0414,
101
+ "num_tokens": 6334034.0,
102
+ "reward": 0.3541666865348816,
103
+ "reward_std": 0.24031147360801697,
104
+ "rewards/accuracy_reward/mean": 0.3541666567325592,
105
+ "rewards/accuracy_reward/std": 0.4789733290672302,
106
+ "step": 4
107
+ },
108
+ {
109
+ "clip_ratio/high_max": 0.0,
110
+ "clip_ratio/high_mean": 0.0,
111
+ "clip_ratio/low_mean": 0.0,
112
+ "clip_ratio/low_min": 0.0,
113
+ "clip_ratio/region_mean": 0.0,
114
+ "completions/clipped_ratio": 0.6845238095238095,
115
+ "completions/max_length": 5120.0,
116
+ "completions/max_terminated_length": 5106.0,
117
+ "completions/mean_length": 4470.1220703125,
118
+ "completions/mean_terminated_length": 3060.009521484375,
119
+ "completions/min_length": 521.0,
120
+ "completions/min_terminated_length": 521.0,
121
+ "epoch": 0.01982815598149372,
122
+ "grad_norm": 0.19068369269371033,
123
+ "learning_rate": 1.5384615384615385e-07,
124
+ "loss": 0.0247,
125
+ "num_tokens": 7905049.0,
126
+ "reward": 0.3452381193637848,
127
+ "reward_std": 0.19077685475349426,
128
+ "rewards/accuracy_reward/mean": 0.3452380895614624,
129
+ "rewards/accuracy_reward/std": 0.4761549234390259,
130
+ "step": 5
131
+ },
132
+ {
133
+ "clip_ratio/high_max": 0.0,
134
+ "clip_ratio/high_mean": 0.0,
135
+ "clip_ratio/low_mean": 0.0,
136
+ "clip_ratio/low_min": 0.0,
137
+ "clip_ratio/region_mean": 0.0,
138
+ "completions/clipped_ratio": 0.6785714285714286,
139
+ "completions/max_length": 5120.0,
140
+ "completions/max_terminated_length": 5057.0,
141
+ "completions/mean_length": 4508.5712890625,
142
+ "completions/mean_terminated_length": 3217.77783203125,
143
+ "completions/min_length": 806.0,
144
+ "completions/min_terminated_length": 806.0,
145
+ "epoch": 0.023793787177792465,
146
+ "grad_norm": 0.1556510627269745,
147
+ "learning_rate": 1.9230769230769231e-07,
148
+ "loss": 0.0215,
149
+ "num_tokens": 9490465.0,
150
+ "reward": 0.324404776096344,
151
+ "reward_std": 0.17464300990104675,
152
+ "rewards/accuracy_reward/mean": 0.324404776096344,
153
+ "rewards/accuracy_reward/std": 0.4688502550125122,
154
+ "step": 6
155
+ },
156
+ {
157
+ "clip_ratio/high_max": 0.0,
158
+ "clip_ratio/high_mean": 0.0,
159
+ "clip_ratio/low_mean": 0.0,
160
+ "clip_ratio/low_min": 0.0,
161
+ "clip_ratio/region_mean": 0.0,
162
+ "completions/clipped_ratio": 0.7113095238095238,
163
+ "completions/max_length": 5120.0,
164
+ "completions/max_terminated_length": 5108.0,
165
+ "completions/mean_length": 4571.119140625,
166
+ "completions/mean_terminated_length": 3218.721435546875,
167
+ "completions/min_length": 739.0,
168
+ "completions/min_terminated_length": 739.0,
169
+ "epoch": 0.02775941837409121,
170
+ "grad_norm": 0.17015115916728973,
171
+ "learning_rate": 2.3076923076923078e-07,
172
+ "loss": 0.033,
173
+ "num_tokens": 11093225.0,
174
+ "reward": 0.3273809850215912,
175
+ "reward_std": 0.15950332581996918,
176
+ "rewards/accuracy_reward/mean": 0.3273809552192688,
177
+ "rewards/accuracy_reward/std": 0.4699574410915375,
178
+ "step": 7
179
+ },
180
+ {
181
+ "clip_ratio/high_max": 0.0,
182
+ "clip_ratio/high_mean": 0.0,
183
+ "clip_ratio/low_mean": 0.0,
184
+ "clip_ratio/low_min": 0.0,
185
+ "clip_ratio/region_mean": 0.0,
186
+ "completions/clipped_ratio": 0.7351190476190477,
187
+ "completions/max_length": 5120.0,
188
+ "completions/max_terminated_length": 5112.0,
189
+ "completions/mean_length": 4626.4912109375,
190
+ "completions/mean_terminated_length": 3256.865234375,
191
+ "completions/min_length": 785.0,
192
+ "completions/min_terminated_length": 785.0,
193
+ "epoch": 0.031725049570389956,
194
+ "grad_norm": 0.14421533048152924,
195
+ "learning_rate": 2.692307692307692e-07,
196
+ "loss": 0.0034,
197
+ "num_tokens": 12715148.0,
198
+ "reward": 0.2678571343421936,
199
+ "reward_std": 0.16237163543701172,
200
+ "rewards/accuracy_reward/mean": 0.2678571343421936,
201
+ "rewards/accuracy_reward/std": 0.443503201007843,
202
+ "step": 8
203
+ },
204
+ {
205
+ "clip_ratio/high_max": 0.0,
206
+ "clip_ratio/high_mean": 0.0,
207
+ "clip_ratio/low_mean": 0.0,
208
+ "clip_ratio/low_min": 0.0,
209
+ "clip_ratio/region_mean": 0.0,
210
+ "completions/clipped_ratio": 0.6190476190476191,
211
+ "completions/max_length": 5120.0,
212
+ "completions/max_terminated_length": 5098.0,
213
+ "completions/mean_length": 4260.5654296875,
214
+ "completions/mean_terminated_length": 2863.984375,
215
+ "completions/min_length": 401.0,
216
+ "completions/min_terminated_length": 401.0,
217
+ "epoch": 0.0356906807666887,
218
+ "grad_norm": 0.1457386314868927,
219
+ "learning_rate": 3.076923076923077e-07,
220
+ "loss": 0.0147,
221
+ "num_tokens": 14213118.0,
222
+ "reward": 0.3988095223903656,
223
+ "reward_std": 0.17121532559394836,
224
+ "rewards/accuracy_reward/mean": 0.3988095223903656,
225
+ "rewards/accuracy_reward/std": 0.49038368463516235,
226
+ "step": 9
227
+ },
228
+ {
229
+ "clip_ratio/high_max": 0.0,
230
+ "clip_ratio/high_mean": 0.0,
231
+ "clip_ratio/low_mean": 0.0,
232
+ "clip_ratio/low_min": 0.0,
233
+ "clip_ratio/region_mean": 0.0,
234
+ "completions/clipped_ratio": 0.6011904761904762,
235
+ "completions/max_length": 5120.0,
236
+ "completions/max_terminated_length": 5039.0,
237
+ "completions/mean_length": 4433.375,
238
+ "completions/mean_terminated_length": 3398.313232421875,
239
+ "completions/min_length": 1047.0,
240
+ "completions/min_terminated_length": 1047.0,
241
+ "epoch": 0.03965631196298744,
242
+ "grad_norm": 0.15511175990104675,
243
+ "learning_rate": 3.461538461538461e-07,
244
+ "loss": 0.016,
245
+ "num_tokens": 15773184.0,
246
+ "reward": 0.4047619104385376,
247
+ "reward_std": 0.183305025100708,
248
+ "rewards/accuracy_reward/mean": 0.4047619104385376,
249
+ "rewards/accuracy_reward/std": 0.49157798290252686,
250
+ "step": 10
251
+ },
252
+ {
253
+ "clip_ratio/high_max": 0.0,
254
+ "clip_ratio/high_mean": 0.0,
255
+ "clip_ratio/low_mean": 0.0,
256
+ "clip_ratio/low_min": 0.0,
257
+ "clip_ratio/region_mean": 0.0,
258
+ "completions/clipped_ratio": 0.6607142857142857,
259
+ "completions/max_length": 5120.0,
260
+ "completions/max_terminated_length": 5068.0,
261
+ "completions/mean_length": 4363.806640625,
262
+ "completions/mean_terminated_length": 2891.21923828125,
263
+ "completions/min_length": 660.0,
264
+ "completions/min_terminated_length": 660.0,
265
+ "epoch": 0.043621943159286185,
266
+ "grad_norm": 0.15191057324409485,
267
+ "learning_rate": 3.8461538461538463e-07,
268
+ "loss": 0.0289,
269
+ "num_tokens": 17301943.0,
270
+ "reward": 0.3482142984867096,
271
+ "reward_std": 0.1535850614309311,
272
+ "rewards/accuracy_reward/mean": 0.3482142984867096,
273
+ "rewards/accuracy_reward/std": 0.47711488604545593,
274
+ "step": 11
275
+ },
276
+ {
277
+ "clip_ratio/high_max": 0.0,
278
+ "clip_ratio/high_mean": 0.0,
279
+ "clip_ratio/low_mean": 0.0,
280
+ "clip_ratio/low_min": 0.0,
281
+ "clip_ratio/region_mean": 0.0,
282
+ "completions/clipped_ratio": 0.7023809523809523,
283
+ "completions/max_length": 5120.0,
284
+ "completions/max_terminated_length": 5111.0,
285
+ "completions/mean_length": 4614.21435546875,
286
+ "completions/mean_terminated_length": 3420.559814453125,
287
+ "completions/min_length": 884.0,
288
+ "completions/min_terminated_length": 884.0,
289
+ "epoch": 0.04758757435558493,
290
+ "grad_norm": 0.15457122027873993,
291
+ "learning_rate": 4.2307692307692304e-07,
292
+ "loss": 0.0168,
293
+ "num_tokens": 18919753.0,
294
+ "reward": 0.3095238208770752,
295
+ "reward_std": 0.15950334072113037,
296
+ "rewards/accuracy_reward/mean": 0.3095238208770752,
297
+ "rewards/accuracy_reward/std": 0.4629868268966675,
298
+ "step": 12
299
+ },
300
+ {
301
+ "clip_ratio/high_max": 0.0,
302
+ "clip_ratio/high_mean": 0.0,
303
+ "clip_ratio/low_mean": 0.0,
304
+ "clip_ratio/low_min": 0.0,
305
+ "clip_ratio/region_mean": 0.0,
306
+ "completions/clipped_ratio": 0.8244047619047619,
307
+ "completions/max_length": 5120.0,
308
+ "completions/max_terminated_length": 5068.0,
309
+ "completions/mean_length": 4856.9794921875,
310
+ "completions/mean_terminated_length": 3622.11865234375,
311
+ "completions/min_length": 1378.0,
312
+ "completions/min_terminated_length": 1378.0,
313
+ "epoch": 0.051553205551883675,
314
+ "grad_norm": 0.14849524199962616,
315
+ "learning_rate": 4.6153846153846156e-07,
316
+ "loss": 0.0164,
317
+ "num_tokens": 20626224.0,
318
+ "reward": 0.1815476268529892,
319
+ "reward_std": 0.144363671541214,
320
+ "rewards/accuracy_reward/mean": 0.181547611951828,
321
+ "rewards/accuracy_reward/std": 0.3860461115837097,
322
+ "step": 13
323
+ },
324
+ {
325
+ "clip_ratio/high_max": 0.0,
326
+ "clip_ratio/high_mean": 0.0,
327
+ "clip_ratio/low_mean": 0.0,
328
+ "clip_ratio/low_min": 0.0,
329
+ "clip_ratio/region_mean": 0.0,
330
+ "completions/clipped_ratio": 0.6398809523809523,
331
+ "completions/max_length": 5120.0,
332
+ "completions/max_terminated_length": 5091.0,
333
+ "completions/mean_length": 4491.96142578125,
334
+ "completions/mean_terminated_length": 3376.024658203125,
335
+ "completions/min_length": 1230.0,
336
+ "completions/min_terminated_length": 1230.0,
337
+ "epoch": 0.05551883674818242,
338
+ "grad_norm": 0.1783030778169632,
339
+ "learning_rate": 5e-07,
340
+ "loss": 0.0229,
341
+ "num_tokens": 22203953.0,
342
+ "reward": 0.3839285671710968,
343
+ "reward_std": 0.22374281287193298,
344
+ "rewards/accuracy_reward/mean": 0.3839285671710968,
345
+ "rewards/accuracy_reward/std": 0.48706620931625366,
346
+ "step": 14
347
+ },
348
+ {
349
+ "clip_ratio/high_max": 0.0,
350
+ "clip_ratio/high_mean": 0.0,
351
+ "clip_ratio/low_mean": 0.0,
352
+ "clip_ratio/low_min": 0.0,
353
+ "clip_ratio/region_mean": 0.0,
354
+ "completions/clipped_ratio": 0.6309523809523809,
355
+ "completions/max_length": 5120.0,
356
+ "completions/max_terminated_length": 5107.0,
357
+ "completions/mean_length": 4464.40771484375,
358
+ "completions/mean_terminated_length": 3343.556396484375,
359
+ "completions/min_length": 1600.0,
360
+ "completions/min_terminated_length": 1600.0,
361
+ "epoch": 0.059484467944481166,
362
+ "grad_norm": 0.15186423063278198,
363
+ "learning_rate": 5.384615384615384e-07,
364
+ "loss": 0.0218,
365
+ "num_tokens": 23771476.0,
366
+ "reward": 0.386904776096344,
367
+ "reward_std": 0.17159302532672882,
368
+ "rewards/accuracy_reward/mean": 0.386904776096344,
369
+ "rewards/accuracy_reward/std": 0.4877679646015167,
370
+ "step": 15
371
+ },
372
+ {
373
+ "clip_ratio/high_max": 0.0,
374
+ "clip_ratio/high_mean": 0.0,
375
+ "clip_ratio/low_mean": 0.0,
376
+ "clip_ratio/low_min": 0.0,
377
+ "clip_ratio/region_mean": 0.0,
378
+ "completions/clipped_ratio": 0.6666666666666667,
379
+ "completions/max_length": 5120.0,
380
+ "completions/max_terminated_length": 5112.0,
381
+ "completions/mean_length": 4450.630859375,
382
+ "completions/mean_terminated_length": 3111.89306640625,
383
+ "completions/min_length": 753.0,
384
+ "completions/min_terminated_length": 753.0,
385
+ "epoch": 0.06345009914077991,
386
+ "grad_norm": 0.1414450705051422,
387
+ "learning_rate": 5.769230769230768e-07,
388
+ "loss": 0.0157,
389
+ "num_tokens": 25332360.0,
390
+ "reward": 0.386904776096344,
391
+ "reward_std": 0.16062207520008087,
392
+ "rewards/accuracy_reward/mean": 0.386904776096344,
393
+ "rewards/accuracy_reward/std": 0.48776793479919434,
394
+ "step": 16
395
+ },
396
+ {
397
+ "clip_ratio/high_max": 0.0,
398
+ "clip_ratio/high_mean": 0.0,
399
+ "clip_ratio/low_mean": 0.0,
400
+ "clip_ratio/low_min": 0.0,
401
+ "clip_ratio/region_mean": 0.0,
402
+ "completions/clipped_ratio": 0.6696428571428572,
403
+ "completions/max_length": 5120.0,
404
+ "completions/max_terminated_length": 5099.0,
405
+ "completions/mean_length": 4384.7529296875,
406
+ "completions/mean_terminated_length": 2894.387451171875,
407
+ "completions/min_length": 1048.0,
408
+ "completions/min_terminated_length": 1048.0,
409
+ "epoch": 0.06741573033707865,
410
+ "grad_norm": 0.13619941473007202,
411
+ "learning_rate": 6.153846153846154e-07,
412
+ "loss": 0.0175,
413
+ "num_tokens": 26878273.0,
414
+ "reward": 0.3273809552192688,
415
+ "reward_std": 0.13819226622581482,
416
+ "rewards/accuracy_reward/mean": 0.3273809552192688,
417
+ "rewards/accuracy_reward/std": 0.4699574410915375,
418
+ "step": 17
419
+ },
420
+ {
421
+ "clip_ratio/high_max": 0.0,
422
+ "clip_ratio/high_mean": 0.0,
423
+ "clip_ratio/low_mean": 0.0,
424
+ "clip_ratio/low_min": 0.0,
425
+ "clip_ratio/region_mean": 0.0,
426
+ "completions/clipped_ratio": 0.6815476190476191,
427
+ "completions/max_length": 5120.0,
428
+ "completions/max_terminated_length": 5099.0,
429
+ "completions/mean_length": 4545.28271484375,
430
+ "completions/mean_terminated_length": 3315.2802734375,
431
+ "completions/min_length": 839.0,
432
+ "completions/min_terminated_length": 839.0,
433
+ "epoch": 0.0713813615333774,
434
+ "grad_norm": 0.13691294193267822,
435
+ "learning_rate": 6.538461538461538e-07,
436
+ "loss": 0.0151,
437
+ "num_tokens": 28476366.0,
438
+ "reward": 0.348214328289032,
439
+ "reward_std": 0.17850549519062042,
440
+ "rewards/accuracy_reward/mean": 0.3482142984867096,
441
+ "rewards/accuracy_reward/std": 0.47711488604545593,
442
+ "step": 18
443
+ },
444
+ {
445
+ "clip_ratio/high_max": 0.0,
446
+ "clip_ratio/high_mean": 0.0,
447
+ "clip_ratio/low_mean": 0.0,
448
+ "clip_ratio/low_min": 0.0,
449
+ "clip_ratio/region_mean": 0.0,
450
+ "completions/clipped_ratio": 0.6696428571428572,
451
+ "completions/max_length": 5120.0,
452
+ "completions/max_terminated_length": 5079.0,
453
+ "completions/mean_length": 4489.875,
454
+ "completions/mean_terminated_length": 3212.5947265625,
455
+ "completions/min_length": 737.0,
456
+ "completions/min_terminated_length": 737.0,
457
+ "epoch": 0.07534699272967614,
458
+ "grad_norm": 0.16069504618644714,
459
+ "learning_rate": 6.923076923076922e-07,
460
+ "loss": 0.0153,
461
+ "num_tokens": 30051060.0,
462
+ "reward": 0.3035714328289032,
463
+ "reward_std": 0.2042384147644043,
464
+ "rewards/accuracy_reward/mean": 0.3035714328289032,
465
+ "rewards/accuracy_reward/std": 0.4604855179786682,
466
+ "step": 19
467
+ },
468
+ {
469
+ "clip_ratio/high_max": 0.0,
470
+ "clip_ratio/high_mean": 0.0,
471
+ "clip_ratio/low_mean": 0.0,
472
+ "clip_ratio/low_min": 0.0,
473
+ "clip_ratio/region_mean": 0.0,
474
+ "completions/clipped_ratio": 0.625,
475
+ "completions/max_length": 5120.0,
476
+ "completions/max_terminated_length": 5111.0,
477
+ "completions/mean_length": 4455.880859375,
478
+ "completions/mean_terminated_length": 3349.01611328125,
479
+ "completions/min_length": 926.0,
480
+ "completions/min_terminated_length": 926.0,
481
+ "epoch": 0.07931262392597488,
482
+ "grad_norm": 0.15025638043880463,
483
+ "learning_rate": 7.307692307692307e-07,
484
+ "loss": 0.0268,
485
+ "num_tokens": 31615238.0,
486
+ "reward": 0.3988095223903656,
487
+ "reward_std": 0.1662341058254242,
488
+ "rewards/accuracy_reward/mean": 0.3988095223903656,
489
+ "rewards/accuracy_reward/std": 0.49038371443748474,
490
+ "step": 20
491
+ },
492
+ {
493
+ "clip_ratio/high_max": 0.0,
494
+ "clip_ratio/high_mean": 0.0,
495
+ "clip_ratio/low_mean": 0.0,
496
+ "clip_ratio/low_min": 0.0,
497
+ "clip_ratio/region_mean": 0.0,
498
+ "completions/clipped_ratio": 0.8273809523809523,
499
+ "completions/max_length": 5120.0,
500
+ "completions/max_terminated_length": 5106.0,
501
+ "completions/mean_length": 4765.625,
502
+ "completions/mean_terminated_length": 3067.06884765625,
503
+ "completions/min_length": 720.0,
504
+ "completions/min_terminated_length": 720.0,
505
+ "epoch": 0.08327825512227363,
506
+ "grad_norm": 0.13238537311553955,
507
+ "learning_rate": 7.692307692307693e-07,
508
+ "loss": 0.0069,
509
+ "num_tokens": 33284558.0,
510
+ "reward": 0.1577381044626236,
511
+ "reward_std": 0.1326516568660736,
512
+ "rewards/accuracy_reward/mean": 0.1577380895614624,
513
+ "rewards/accuracy_reward/std": 0.3650388717651367,
514
+ "step": 21
515
+ },
516
+ {
517
+ "clip_ratio/high_max": 0.0,
518
+ "clip_ratio/high_mean": 0.0,
519
+ "clip_ratio/low_mean": 0.0,
520
+ "clip_ratio/low_min": 0.0,
521
+ "clip_ratio/region_mean": 0.0,
522
+ "completions/clipped_ratio": 0.6190476190476191,
523
+ "completions/max_length": 5120.0,
524
+ "completions/max_terminated_length": 5085.0,
525
+ "completions/mean_length": 4539.9345703125,
526
+ "completions/mean_terminated_length": 3597.328125,
527
+ "completions/min_length": 1152.0,
528
+ "completions/min_terminated_length": 1152.0,
529
+ "epoch": 0.08724388631857237,
530
+ "grad_norm": 0.1624104231595993,
531
+ "learning_rate": 8.076923076923077e-07,
532
+ "loss": 0.0234,
533
+ "num_tokens": 34875460.0,
534
+ "reward": 0.3958333432674408,
535
+ "reward_std": 0.16928410530090332,
536
+ "rewards/accuracy_reward/mean": 0.3958333432674408,
537
+ "rewards/accuracy_reward/std": 0.4897582530975342,
538
+ "step": 22
539
+ },
540
+ {
541
+ "clip_ratio/high_max": 0.0,
542
+ "clip_ratio/high_mean": 0.0,
543
+ "clip_ratio/low_mean": 0.0,
544
+ "clip_ratio/low_min": 0.0,
545
+ "clip_ratio/region_mean": 0.0,
546
+ "completions/clipped_ratio": 0.6398809523809523,
547
+ "completions/max_length": 5120.0,
548
+ "completions/max_terminated_length": 5091.0,
549
+ "completions/mean_length": 4520.8095703125,
550
+ "completions/mean_terminated_length": 3456.132080078125,
551
+ "completions/min_length": 1125.0,
552
+ "completions/min_terminated_length": 1125.0,
553
+ "epoch": 0.09120951751487112,
554
+ "grad_norm": 0.14350676536560059,
555
+ "learning_rate": 8.461538461538461e-07,
556
+ "loss": 0.0207,
557
+ "num_tokens": 36463128.0,
558
+ "reward": 0.3541666865348816,
559
+ "reward_std": 0.14336946606636047,
560
+ "rewards/accuracy_reward/mean": 0.3541666567325592,
561
+ "rewards/accuracy_reward/std": 0.4789733290672302,
562
+ "step": 23
563
+ },
564
+ {
565
+ "clip_ratio/high_max": 0.0,
566
+ "clip_ratio/high_mean": 0.0,
567
+ "clip_ratio/low_mean": 0.0,
568
+ "clip_ratio/low_min": 0.0,
569
+ "clip_ratio/region_mean": 0.0,
570
+ "completions/clipped_ratio": 0.6488095238095238,
571
+ "completions/max_length": 5120.0,
572
+ "completions/max_terminated_length": 5051.0,
573
+ "completions/mean_length": 4480.482421875,
574
+ "completions/mean_terminated_length": 3299.0,
575
+ "completions/min_length": 806.0,
576
+ "completions/min_terminated_length": 806.0,
577
+ "epoch": 0.09517514871116986,
578
+ "grad_norm": 0.16741891205310822,
579
+ "learning_rate": 8.846153846153846e-07,
580
+ "loss": 0.0353,
581
+ "num_tokens": 38034894.0,
582
+ "reward": 0.4047619104385376,
583
+ "reward_std": 0.20037592947483063,
584
+ "rewards/accuracy_reward/mean": 0.4047619104385376,
585
+ "rewards/accuracy_reward/std": 0.49157795310020447,
586
+ "step": 24
587
+ },
588
+ {
589
+ "clip_ratio/high_max": 0.0,
590
+ "clip_ratio/high_mean": 0.0,
591
+ "clip_ratio/low_mean": 0.0,
592
+ "clip_ratio/low_min": 0.0,
593
+ "clip_ratio/region_mean": 0.0,
594
+ "completions/clipped_ratio": 0.7202380952380952,
595
+ "completions/max_length": 5120.0,
596
+ "completions/max_terminated_length": 5061.0,
597
+ "completions/mean_length": 4567.5419921875,
598
+ "completions/mean_terminated_length": 3145.255126953125,
599
+ "completions/min_length": 1458.0,
600
+ "completions/min_terminated_length": 1458.0,
601
+ "epoch": 0.0991407799074686,
602
+ "grad_norm": 0.11739571392536163,
603
+ "learning_rate": 9.230769230769231e-07,
604
+ "loss": 0.0118,
605
+ "num_tokens": 39638744.0,
606
+ "reward": 0.306547611951828,
607
+ "reward_std": 0.12878917157649994,
608
+ "rewards/accuracy_reward/mean": 0.306547611951828,
609
+ "rewards/accuracy_reward/std": 0.46174749732017517,
610
+ "step": 25
611
+ },
612
+ {
613
+ "clip_ratio/high_max": 0.0,
614
+ "clip_ratio/high_mean": 0.0,
615
+ "clip_ratio/low_mean": 0.0,
616
+ "clip_ratio/low_min": 0.0,
617
+ "clip_ratio/region_mean": 0.0,
618
+ "completions/clipped_ratio": 0.6636904761904762,
619
+ "completions/max_length": 5120.0,
620
+ "completions/max_terminated_length": 5087.0,
621
+ "completions/mean_length": 4468.39013671875,
622
+ "completions/mean_terminated_length": 3182.468994140625,
623
+ "completions/min_length": 532.0,
624
+ "completions/min_terminated_length": 532.0,
625
+ "epoch": 0.10310641110376735,
626
+ "grad_norm": 0.143392875790596,
627
+ "learning_rate": 9.615384615384615e-07,
628
+ "loss": 0.0239,
629
+ "num_tokens": 41207245.0,
630
+ "reward": 0.380952388048172,
631
+ "reward_std": 0.1844237744808197,
632
+ "rewards/accuracy_reward/mean": 0.380952388048172,
633
+ "rewards/accuracy_reward/std": 0.48634520173072815,
634
+ "step": 26
635
+ },
636
+ {
637
+ "clip_ratio/high_max": 0.0,
638
+ "clip_ratio/high_mean": 0.0,
639
+ "clip_ratio/low_mean": 0.0,
640
+ "clip_ratio/low_min": 0.0,
641
+ "clip_ratio/region_mean": 0.0,
642
+ "completions/clipped_ratio": 0.6339285714285714,
643
+ "completions/max_length": 5120.0,
644
+ "completions/max_terminated_length": 5111.0,
645
+ "completions/mean_length": 4317.0654296875,
646
+ "completions/mean_terminated_length": 2926.61767578125,
647
+ "completions/min_length": 574.0,
648
+ "completions/min_terminated_length": 574.0,
649
+ "epoch": 0.10707204230006609,
650
+ "grad_norm": 0.18580368161201477,
651
+ "learning_rate": 1e-06,
652
+ "loss": 0.0182,
653
+ "num_tokens": 42723047.0,
654
+ "reward": 0.3630952537059784,
655
+ "reward_std": 0.22242805361747742,
656
+ "rewards/accuracy_reward/mean": 0.363095223903656,
657
+ "rewards/accuracy_reward/std": 0.48160919547080994,
658
+ "step": 27
659
+ },
660
+ {
661
+ "clip_ratio/high_max": 0.0,
662
+ "clip_ratio/high_mean": 0.0,
663
+ "clip_ratio/low_mean": 0.0,
664
+ "clip_ratio/low_min": 0.0,
665
+ "clip_ratio/region_mean": 0.0,
666
+ "completions/clipped_ratio": 0.6607142857142857,
667
+ "completions/max_length": 5120.0,
668
+ "completions/max_terminated_length": 5115.0,
669
+ "completions/mean_length": 4533.1337890625,
670
+ "completions/mean_terminated_length": 3390.28955078125,
671
+ "completions/min_length": 741.0,
672
+ "completions/min_terminated_length": 741.0,
673
+ "epoch": 0.11103767349636484,
674
+ "grad_norm": 0.1611405462026596,
675
+ "learning_rate": 9.95575221238938e-07,
676
+ "loss": 0.0383,
677
+ "num_tokens": 44312342.0,
678
+ "reward": 0.3392857313156128,
679
+ "reward_std": 0.22529634833335876,
680
+ "rewards/accuracy_reward/mean": 0.3392857015132904,
681
+ "rewards/accuracy_reward/std": 0.47417306900024414,
682
+ "step": 28
683
+ },
684
+ {
685
+ "clip_ratio/high_max": 0.0,
686
+ "clip_ratio/high_mean": 0.0,
687
+ "clip_ratio/low_mean": 0.0,
688
+ "clip_ratio/low_min": 0.0,
689
+ "clip_ratio/region_mean": 0.0,
690
+ "completions/clipped_ratio": 0.6339285714285714,
691
+ "completions/max_length": 5120.0,
692
+ "completions/max_terminated_length": 5068.0,
693
+ "completions/mean_length": 4274.41064453125,
694
+ "completions/mean_terminated_length": 2810.097412109375,
695
+ "completions/min_length": 790.0,
696
+ "completions/min_terminated_length": 790.0,
697
+ "epoch": 0.11500330469266358,
698
+ "grad_norm": 0.13915002346038818,
699
+ "learning_rate": 9.91150442477876e-07,
700
+ "loss": 0.0167,
701
+ "num_tokens": 45815672.0,
702
+ "reward": 0.3511904776096344,
703
+ "reward_std": 0.1395641267299652,
704
+ "rewards/accuracy_reward/mean": 0.3511904776096344,
705
+ "rewards/accuracy_reward/std": 0.4780542850494385,
706
+ "step": 29
707
+ },
708
+ {
709
+ "clip_ratio/high_max": 0.0,
710
+ "clip_ratio/high_mean": 0.0,
711
+ "clip_ratio/low_mean": 0.0,
712
+ "clip_ratio/low_min": 0.0,
713
+ "clip_ratio/region_mean": 0.0,
714
+ "completions/clipped_ratio": 0.5892857142857143,
715
+ "completions/max_length": 5120.0,
716
+ "completions/max_terminated_length": 5108.0,
717
+ "completions/mean_length": 4291.70849609375,
718
+ "completions/mean_terminated_length": 3103.289794921875,
719
+ "completions/min_length": 938.0,
720
+ "completions/min_terminated_length": 938.0,
721
+ "epoch": 0.11896893588896233,
722
+ "grad_norm": 0.18397149443626404,
723
+ "learning_rate": 9.867256637168142e-07,
724
+ "loss": 0.0263,
725
+ "num_tokens": 47322384.0,
726
+ "reward": 0.4226190447807312,
727
+ "reward_std": 0.22417759895324707,
728
+ "rewards/accuracy_reward/mean": 0.4226190447807312,
729
+ "rewards/accuracy_reward/std": 0.49471262097358704,
730
+ "step": 30
731
+ },
732
+ {
733
+ "clip_ratio/high_max": 0.0,
734
+ "clip_ratio/high_mean": 0.0,
735
+ "clip_ratio/low_mean": 0.0,
736
+ "clip_ratio/low_min": 0.0,
737
+ "clip_ratio/region_mean": 0.0,
738
+ "completions/clipped_ratio": 0.7380952380952381,
739
+ "completions/max_length": 5120.0,
740
+ "completions/max_terminated_length": 5099.0,
741
+ "completions/mean_length": 4753.0595703125,
742
+ "completions/mean_terminated_length": 3718.95458984375,
743
+ "completions/min_length": 1595.0,
744
+ "completions/min_terminated_length": 1595.0,
745
+ "epoch": 0.12293456708526107,
746
+ "grad_norm": 0.17866523563861847,
747
+ "learning_rate": 9.82300884955752e-07,
748
+ "loss": 0.0282,
749
+ "num_tokens": 48988364.0,
750
+ "reward": 0.3422619104385376,
751
+ "reward_std": 0.24853865802288055,
752
+ "rewards/accuracy_reward/mean": 0.3422619104385376,
753
+ "rewards/accuracy_reward/std": 0.4751743972301483,
754
+ "step": 31
755
+ },
756
+ {
757
+ "clip_ratio/high_max": 0.0,
758
+ "clip_ratio/high_mean": 0.0,
759
+ "clip_ratio/low_mean": 0.0,
760
+ "clip_ratio/low_min": 0.0,
761
+ "clip_ratio/region_mean": 0.0,
762
+ "completions/clipped_ratio": 0.6130952380952381,
763
+ "completions/max_length": 5120.0,
764
+ "completions/max_terminated_length": 5106.0,
765
+ "completions/mean_length": 4394.5654296875,
766
+ "completions/mean_terminated_length": 3245.03076171875,
767
+ "completions/min_length": 557.0,
768
+ "completions/min_terminated_length": 557.0,
769
+ "epoch": 0.12690019828155982,
770
+ "grad_norm": 0.1624467670917511,
771
+ "learning_rate": 9.778761061946902e-07,
772
+ "loss": 0.0359,
773
+ "num_tokens": 50531388.0,
774
+ "reward": 0.4017857313156128,
775
+ "reward_std": 0.18523626029491425,
776
+ "rewards/accuracy_reward/mean": 0.4017857015132904,
777
+ "rewards/accuracy_reward/std": 0.4909902513027191,
778
+ "step": 32
779
+ },
780
+ {
781
+ "clip_ratio/high_max": 0.0,
782
+ "clip_ratio/high_mean": 0.0,
783
+ "clip_ratio/low_mean": 0.0,
784
+ "clip_ratio/low_min": 0.0,
785
+ "clip_ratio/region_mean": 0.0,
786
+ "completions/clipped_ratio": 0.6547619047619048,
787
+ "completions/max_length": 5120.0,
788
+ "completions/max_terminated_length": 5109.0,
789
+ "completions/mean_length": 4470.70263671875,
790
+ "completions/mean_terminated_length": 3239.27587890625,
791
+ "completions/min_length": 473.0,
792
+ "completions/min_terminated_length": 473.0,
793
+ "epoch": 0.13086582947785855,
794
+ "grad_norm": 0.1461624801158905,
795
+ "learning_rate": 9.734513274336282e-07,
796
+ "loss": 0.0233,
797
+ "num_tokens": 52098884.0,
798
+ "reward": 0.3601190447807312,
799
+ "reward_std": 0.1533319354057312,
800
+ "rewards/accuracy_reward/mean": 0.3601190447807312,
801
+ "rewards/accuracy_reward/std": 0.4807506501674652,
802
+ "step": 33
803
+ },
804
+ {
805
+ "clip_ratio/high_max": 0.0,
806
+ "clip_ratio/high_mean": 0.0,
807
+ "clip_ratio/low_mean": 0.0,
808
+ "clip_ratio/low_min": 0.0,
809
+ "clip_ratio/region_mean": 0.0,
810
+ "completions/clipped_ratio": 0.6279761904761905,
811
+ "completions/max_length": 5120.0,
812
+ "completions/max_terminated_length": 5065.0,
813
+ "completions/mean_length": 4372.806640625,
814
+ "completions/mean_terminated_length": 3111.544189453125,
815
+ "completions/min_length": 620.0,
816
+ "completions/min_terminated_length": 620.0,
817
+ "epoch": 0.1348314606741573,
818
+ "grad_norm": 0.15794773399829865,
819
+ "learning_rate": 9.690265486725663e-07,
820
+ "loss": 0.022,
821
+ "num_tokens": 53640597.0,
822
+ "reward": 0.3571428656578064,
823
+ "reward_std": 0.21744683384895325,
824
+ "rewards/accuracy_reward/mean": 0.3571428656578064,
825
+ "rewards/accuracy_reward/std": 0.47987204790115356,
826
+ "step": 34
827
+ },
828
+ {
829
+ "clip_ratio/high_max": 0.0,
830
+ "clip_ratio/high_mean": 0.0,
831
+ "clip_ratio/low_mean": 0.0,
832
+ "clip_ratio/low_min": 0.0,
833
+ "clip_ratio/region_mean": 0.0,
834
+ "completions/clipped_ratio": 0.6696428571428572,
835
+ "completions/max_length": 5120.0,
836
+ "completions/max_terminated_length": 5044.0,
837
+ "completions/mean_length": 4431.982421875,
838
+ "completions/mean_terminated_length": 3037.351318359375,
839
+ "completions/min_length": 837.0,
840
+ "completions/min_terminated_length": 837.0,
841
+ "epoch": 0.13879709187045605,
842
+ "grad_norm": 0.23040273785591125,
843
+ "learning_rate": 9.646017699115042e-07,
844
+ "loss": 0.0174,
845
+ "num_tokens": 55195623.0,
846
+ "reward": 0.3571428656578064,
847
+ "reward_std": 0.16237162053585052,
848
+ "rewards/accuracy_reward/mean": 0.3571428656578064,
849
+ "rewards/accuracy_reward/std": 0.47987204790115356,
850
+ "step": 35
851
+ },
852
+ {
853
+ "clip_ratio/high_max": 0.0,
854
+ "clip_ratio/high_mean": 0.0,
855
+ "clip_ratio/low_mean": 0.0,
856
+ "clip_ratio/low_min": 0.0,
857
+ "clip_ratio/region_mean": 0.0,
858
+ "completions/clipped_ratio": 0.6517857142857143,
859
+ "completions/max_length": 5120.0,
860
+ "completions/max_terminated_length": 5069.0,
861
+ "completions/mean_length": 4549.818359375,
862
+ "completions/mean_terminated_length": 3482.5556640625,
863
+ "completions/min_length": 848.0,
864
+ "completions/min_terminated_length": 848.0,
865
+ "epoch": 0.1427627230667548,
866
+ "grad_norm": 0.15275774896144867,
867
+ "learning_rate": 9.601769911504426e-07,
868
+ "loss": 0.0147,
869
+ "num_tokens": 56794820.0,
870
+ "reward": 0.3720238208770752,
871
+ "reward_std": 0.18274565041065216,
872
+ "rewards/accuracy_reward/mean": 0.3720238208770752,
873
+ "rewards/accuracy_reward/std": 0.48406556248664856,
874
+ "step": 36
875
+ },
876
+ {
877
+ "clip_ratio/high_max": 0.0,
878
+ "clip_ratio/high_mean": 0.0,
879
+ "clip_ratio/low_mean": 0.0,
880
+ "clip_ratio/low_min": 0.0,
881
+ "clip_ratio/region_mean": 0.0,
882
+ "completions/clipped_ratio": 0.6785714285714286,
883
+ "completions/max_length": 5120.0,
884
+ "completions/max_terminated_length": 5108.0,
885
+ "completions/mean_length": 4404.52685546875,
886
+ "completions/mean_terminated_length": 2894.083251953125,
887
+ "completions/min_length": 820.0,
888
+ "completions/min_terminated_length": 820.0,
889
+ "epoch": 0.14672835426305353,
890
+ "grad_norm": 0.15565535426139832,
891
+ "learning_rate": 9.557522123893805e-07,
892
+ "loss": 0.0246,
893
+ "num_tokens": 58342355.0,
894
+ "reward": 0.2797619104385376,
895
+ "reward_std": 0.14916320145130157,
896
+ "rewards/accuracy_reward/mean": 0.2797619104385376,
897
+ "rewards/accuracy_reward/std": 0.44955164194107056,
898
+ "step": 37
899
+ },
900
+ {
901
+ "clip_ratio/high_max": 0.0,
902
+ "clip_ratio/high_mean": 0.0,
903
+ "clip_ratio/low_mean": 0.0,
904
+ "clip_ratio/low_min": 0.0,
905
+ "clip_ratio/region_mean": 0.0,
906
+ "completions/clipped_ratio": 0.6607142857142857,
907
+ "completions/max_length": 5120.0,
908
+ "completions/max_terminated_length": 5105.0,
909
+ "completions/mean_length": 4408.27685546875,
910
+ "completions/mean_terminated_length": 3022.28955078125,
911
+ "completions/min_length": 768.0,
912
+ "completions/min_terminated_length": 768.0,
913
+ "epoch": 0.15069398545935228,
914
+ "grad_norm": 0.15097402036190033,
915
+ "learning_rate": 9.513274336283185e-07,
916
+ "loss": 0.0153,
917
+ "num_tokens": 59888900.0,
918
+ "reward": 0.3392857313156128,
919
+ "reward_std": 0.176574245095253,
920
+ "rewards/accuracy_reward/mean": 0.3392857015132904,
921
+ "rewards/accuracy_reward/std": 0.47417306900024414,
922
+ "step": 38
923
+ },
924
+ {
925
+ "clip_ratio/high_max": 0.0,
926
+ "clip_ratio/high_mean": 0.0,
927
+ "clip_ratio/low_mean": 0.0,
928
+ "clip_ratio/low_min": 0.0,
929
+ "clip_ratio/region_mean": 0.0,
930
+ "completions/clipped_ratio": 0.6785714285714286,
931
+ "completions/max_length": 5120.0,
932
+ "completions/max_terminated_length": 5068.0,
933
+ "completions/mean_length": 4313.22900390625,
934
+ "completions/mean_terminated_length": 2610.04638671875,
935
+ "completions/min_length": 407.0,
936
+ "completions/min_terminated_length": 407.0,
937
+ "epoch": 0.15465961665565103,
938
+ "grad_norm": 0.12911847233772278,
939
+ "learning_rate": 9.469026548672566e-07,
940
+ "loss": 0.0222,
941
+ "num_tokens": 61408285.0,
942
+ "reward": 0.3601190745830536,
943
+ "reward_std": 0.11570531129837036,
944
+ "rewards/accuracy_reward/mean": 0.3601190447807312,
945
+ "rewards/accuracy_reward/std": 0.4807506501674652,
946
+ "step": 39
947
+ },
948
+ {
949
+ "clip_ratio/high_max": 0.0,
950
+ "clip_ratio/high_mean": 0.0,
951
+ "clip_ratio/low_mean": 0.0,
952
+ "clip_ratio/low_min": 0.0,
953
+ "clip_ratio/region_mean": 0.0,
954
+ "completions/clipped_ratio": 0.5416666666666667,
955
+ "completions/max_length": 5120.0,
956
+ "completions/max_terminated_length": 5072.0,
957
+ "completions/mean_length": 4226.119140625,
958
+ "completions/mean_terminated_length": 3169.71435546875,
959
+ "completions/min_length": 814.0,
960
+ "completions/min_terminated_length": 814.0,
961
+ "epoch": 0.15862524785194976,
962
+ "grad_norm": 0.1661224365234375,
963
+ "learning_rate": 9.424778761061947e-07,
964
+ "loss": 0.0308,
965
+ "num_tokens": 62893463.0,
966
+ "reward": 0.4970238208770752,
967
+ "reward_std": 0.17464299499988556,
968
+ "rewards/accuracy_reward/mean": 0.4970238208770752,
969
+ "rewards/accuracy_reward/std": 0.5007368326187134,
970
+ "step": 40
971
+ },
972
+ {
973
+ "clip_ratio/high_max": 0.0,
974
+ "clip_ratio/high_mean": 0.0,
975
+ "clip_ratio/low_mean": 0.0,
976
+ "clip_ratio/low_min": 0.0,
977
+ "clip_ratio/region_mean": 0.0,
978
+ "completions/clipped_ratio": 0.5535714285714286,
979
+ "completions/max_length": 5120.0,
980
+ "completions/max_terminated_length": 5114.0,
981
+ "completions/mean_length": 4209.2412109375,
982
+ "completions/mean_terminated_length": 3079.900146484375,
983
+ "completions/min_length": 662.0,
984
+ "completions/min_terminated_length": 662.0,
985
+ "epoch": 0.1625908790482485,
986
+ "grad_norm": 0.14029008150100708,
987
+ "learning_rate": 9.380530973451328e-07,
988
+ "loss": 0.0097,
989
+ "num_tokens": 64374356.0,
990
+ "reward": 0.4404762089252472,
991
+ "reward_std": 0.1558939814567566,
992
+ "rewards/accuracy_reward/mean": 0.4404761791229248,
993
+ "rewards/accuracy_reward/std": 0.497184693813324,
994
+ "step": 41
995
+ },
996
+ {
997
+ "clip_ratio/high_max": 0.0,
998
+ "clip_ratio/high_mean": 0.0,
999
+ "clip_ratio/low_mean": 0.0,
1000
+ "clip_ratio/low_min": 0.0,
1001
+ "clip_ratio/region_mean": 0.0,
1002
+ "completions/clipped_ratio": 0.7291666666666667,
1003
+ "completions/max_length": 5120.0,
1004
+ "completions/max_terminated_length": 5120.0,
1005
+ "completions/mean_length": 4692.96142578125,
1006
+ "completions/mean_terminated_length": 3543.241943359375,
1007
+ "completions/min_length": 683.0,
1008
+ "completions/min_terminated_length": 683.0,
1009
+ "epoch": 0.16655651024454726,
1010
+ "grad_norm": 0.14169327914714813,
1011
+ "learning_rate": 9.336283185840708e-07,
1012
+ "loss": 0.0194,
1013
+ "num_tokens": 66024259.0,
1014
+ "reward": 0.3125,
1015
+ "reward_std": 0.18772687017917633,
1016
+ "rewards/accuracy_reward/mean": 0.3125,
1017
+ "rewards/accuracy_reward/std": 0.46420371532440186,
1018
+ "step": 42
1019
+ },
1020
+ {
1021
+ "clip_ratio/high_max": 0.0,
1022
+ "clip_ratio/high_mean": 0.0,
1023
+ "clip_ratio/low_mean": 0.0,
1024
+ "clip_ratio/low_min": 0.0,
1025
+ "clip_ratio/region_mean": 0.0,
1026
+ "completions/clipped_ratio": 0.6934523809523809,
1027
+ "completions/max_length": 5120.0,
1028
+ "completions/max_terminated_length": 5097.0,
1029
+ "completions/mean_length": 4603.607421875,
1030
+ "completions/mean_terminated_length": 3435.456298828125,
1031
+ "completions/min_length": 1193.0,
1032
+ "completions/min_terminated_length": 1193.0,
1033
+ "epoch": 0.17052214144084601,
1034
+ "grad_norm": 0.127787783741951,
1035
+ "learning_rate": 9.292035398230088e-07,
1036
+ "loss": 0.0194,
1037
+ "num_tokens": 67639465.0,
1038
+ "reward": 0.324404776096344,
1039
+ "reward_std": 0.1418730616569519,
1040
+ "rewards/accuracy_reward/mean": 0.324404776096344,
1041
+ "rewards/accuracy_reward/std": 0.4688502550125122,
1042
+ "step": 43
1043
+ },
1044
+ {
1045
+ "clip_ratio/high_max": 0.0,
1046
+ "clip_ratio/high_mean": 0.0,
1047
+ "clip_ratio/low_mean": 0.0,
1048
+ "clip_ratio/low_min": 0.0,
1049
+ "clip_ratio/region_mean": 0.0,
1050
+ "completions/clipped_ratio": 0.5773809523809523,
1051
+ "completions/max_length": 5120.0,
1052
+ "completions/max_terminated_length": 5077.0,
1053
+ "completions/mean_length": 4377.84814453125,
1054
+ "completions/mean_terminated_length": 3363.92236328125,
1055
+ "completions/min_length": 855.0,
1056
+ "completions/min_terminated_length": 855.0,
1057
+ "epoch": 0.17448777263714474,
1058
+ "grad_norm": 0.1367839127779007,
1059
+ "learning_rate": 9.247787610619469e-07,
1060
+ "loss": 0.0085,
1061
+ "num_tokens": 69180496.0,
1062
+ "reward": 0.386904776096344,
1063
+ "reward_std": 0.1542689949274063,
1064
+ "rewards/accuracy_reward/mean": 0.386904776096344,
1065
+ "rewards/accuracy_reward/std": 0.48776793479919434,
1066
+ "step": 44
1067
+ },
1068
+ {
1069
+ "clip_ratio/high_max": 0.0,
1070
+ "clip_ratio/high_mean": 0.0,
1071
+ "clip_ratio/low_mean": 0.0,
1072
+ "clip_ratio/low_min": 0.0,
1073
+ "clip_ratio/region_mean": 0.0,
1074
+ "completions/clipped_ratio": 0.5952380952380952,
1075
+ "completions/max_length": 5120.0,
1076
+ "completions/max_terminated_length": 5114.0,
1077
+ "completions/mean_length": 4334.4462890625,
1078
+ "completions/mean_terminated_length": 3179.220703125,
1079
+ "completions/min_length": 705.0,
1080
+ "completions/min_terminated_length": 705.0,
1081
+ "epoch": 0.1784534038334435,
1082
+ "grad_norm": 0.16425253450870514,
1083
+ "learning_rate": 9.203539823008849e-07,
1084
+ "loss": 0.0325,
1085
+ "num_tokens": 70702426.0,
1086
+ "reward": 0.449404776096344,
1087
+ "reward_std": 0.19445765018463135,
1088
+ "rewards/accuracy_reward/mean": 0.449404776096344,
1089
+ "rewards/accuracy_reward/std": 0.49817541241645813,
1090
+ "step": 45
1091
+ },
1092
+ {
1093
+ "clip_ratio/high_max": 0.0,
1094
+ "clip_ratio/high_mean": 0.0,
1095
+ "clip_ratio/low_mean": 0.0,
1096
+ "clip_ratio/low_min": 0.0,
1097
+ "clip_ratio/region_mean": 0.0,
1098
+ "completions/clipped_ratio": 0.5863095238095238,
1099
+ "completions/max_length": 5120.0,
1100
+ "completions/max_terminated_length": 5071.0,
1101
+ "completions/mean_length": 4327.92578125,
1102
+ "completions/mean_terminated_length": 3205.345458984375,
1103
+ "completions/min_length": 478.0,
1104
+ "completions/min_terminated_length": 478.0,
1105
+ "epoch": 0.18241903502974224,
1106
+ "grad_norm": 0.17978708446025848,
1107
+ "learning_rate": 9.159292035398229e-07,
1108
+ "loss": 0.024,
1109
+ "num_tokens": 72223461.0,
1110
+ "reward": 0.3958333432674408,
1111
+ "reward_std": 0.24031147360801697,
1112
+ "rewards/accuracy_reward/mean": 0.3958333432674408,
1113
+ "rewards/accuracy_reward/std": 0.4897582530975342,
1114
+ "step": 46
1115
+ },
1116
+ {
1117
+ "clip_ratio/high_max": 0.0,
1118
+ "clip_ratio/high_mean": 0.0,
1119
+ "clip_ratio/low_mean": 0.0,
1120
+ "clip_ratio/low_min": 0.0,
1121
+ "clip_ratio/region_mean": 0.0,
1122
+ "completions/clipped_ratio": 0.6607142857142857,
1123
+ "completions/max_length": 5120.0,
1124
+ "completions/max_terminated_length": 5082.0,
1125
+ "completions/mean_length": 4581.931640625,
1126
+ "completions/mean_terminated_length": 3534.114013671875,
1127
+ "completions/min_length": 1192.0,
1128
+ "completions/min_terminated_length": 1192.0,
1129
+ "epoch": 0.18638466622604097,
1130
+ "grad_norm": 0.12531961500644684,
1131
+ "learning_rate": 9.11504424778761e-07,
1132
+ "loss": 0.0157,
1133
+ "num_tokens": 73829620.0,
1134
+ "reward": 0.392857164144516,
1135
+ "reward_std": 0.15028195083141327,
1136
+ "rewards/accuracy_reward/mean": 0.3928571343421936,
1137
+ "rewards/accuracy_reward/std": 0.4891138970851898,
1138
+ "step": 47
1139
+ },
1140
+ {
1141
+ "clip_ratio/high_max": 0.0,
1142
+ "clip_ratio/high_mean": 0.0,
1143
+ "clip_ratio/low_mean": 0.0,
1144
+ "clip_ratio/low_min": 0.0,
1145
+ "clip_ratio/region_mean": 0.0,
1146
+ "completions/clipped_ratio": 0.5952380952380952,
1147
+ "completions/max_length": 5120.0,
1148
+ "completions/max_terminated_length": 5106.0,
1149
+ "completions/mean_length": 4333.232421875,
1150
+ "completions/mean_terminated_length": 3176.220703125,
1151
+ "completions/min_length": 561.0,
1152
+ "completions/min_terminated_length": 561.0,
1153
+ "epoch": 0.19035029742233972,
1154
+ "grad_norm": 0.16320611536502838,
1155
+ "learning_rate": 9.07079646017699e-07,
1156
+ "loss": 0.0232,
1157
+ "num_tokens": 75351616.0,
1158
+ "reward": 0.455357164144516,
1159
+ "reward_std": 0.180001899600029,
1160
+ "rewards/accuracy_reward/mean": 0.4553571343421936,
1161
+ "rewards/accuracy_reward/std": 0.49874576926231384,
1162
+ "step": 48
1163
+ },
1164
+ {
1165
+ "clip_ratio/high_max": 0.0,
1166
+ "clip_ratio/high_mean": 0.0,
1167
+ "clip_ratio/low_mean": 0.0,
1168
+ "clip_ratio/low_min": 0.0,
1169
+ "clip_ratio/region_mean": 0.0,
1170
+ "completions/clipped_ratio": 0.7410714285714286,
1171
+ "completions/max_length": 5120.0,
1172
+ "completions/max_terminated_length": 5116.0,
1173
+ "completions/mean_length": 4707.73828125,
1174
+ "completions/mean_terminated_length": 3527.816162109375,
1175
+ "completions/min_length": 1823.0,
1176
+ "completions/min_terminated_length": 1823.0,
1177
+ "epoch": 0.19431592861863847,
1178
+ "grad_norm": 0.1277765929698944,
1179
+ "learning_rate": 9.026548672566371e-07,
1180
+ "loss": 0.0119,
1181
+ "num_tokens": 77003658.0,
1182
+ "reward": 0.2916666865348816,
1183
+ "reward_std": 0.1556408554315567,
1184
+ "rewards/accuracy_reward/mean": 0.2916666567325592,
1185
+ "rewards/accuracy_reward/std": 0.45520758628845215,
1186
+ "step": 49
1187
+ },
1188
+ {
1189
+ "clip_ratio/high_max": 0.0,
1190
+ "clip_ratio/high_mean": 0.0,
1191
+ "clip_ratio/low_mean": 0.0,
1192
+ "clip_ratio/low_min": 0.0,
1193
+ "clip_ratio/region_mean": 0.0,
1194
+ "completions/clipped_ratio": 0.6011904761904762,
1195
+ "completions/max_length": 5120.0,
1196
+ "completions/max_terminated_length": 5114.0,
1197
+ "completions/mean_length": 4386.875,
1198
+ "completions/mean_terminated_length": 3281.71630859375,
1199
+ "completions/min_length": 1135.0,
1200
+ "completions/min_terminated_length": 1135.0,
1201
+ "epoch": 0.1982815598149372,
1202
+ "grad_norm": 0.14270982146263123,
1203
+ "learning_rate": 8.982300884955752e-07,
1204
+ "loss": 0.0208,
1205
+ "num_tokens": 78546252.0,
1206
+ "reward": 0.3958333432674408,
1207
+ "reward_std": 0.15894398093223572,
1208
+ "rewards/accuracy_reward/mean": 0.3958333432674408,
1209
+ "rewards/accuracy_reward/std": 0.4897582530975342,
1210
+ "step": 50
1211
+ },
1212
+ {
1213
+ "clip_ratio/high_max": 0.0,
1214
+ "clip_ratio/high_mean": 0.0,
1215
+ "clip_ratio/low_mean": 0.0,
1216
+ "clip_ratio/low_min": 0.0,
1217
+ "clip_ratio/region_mean": 0.0,
1218
+ "completions/clipped_ratio": 0.6011904761904762,
1219
+ "completions/max_length": 5120.0,
1220
+ "completions/max_terminated_length": 5087.0,
1221
+ "completions/mean_length": 4292.96142578125,
1222
+ "completions/mean_terminated_length": 3046.231201171875,
1223
+ "completions/min_length": 996.0,
1224
+ "completions/min_terminated_length": 996.0,
1225
+ "epoch": 0.20224719101123595,
1226
+ "grad_norm": 0.12100622802972794,
1227
+ "learning_rate": 8.938053097345132e-07,
1228
+ "loss": 0.0128,
1229
+ "num_tokens": 80055173.0,
1230
+ "reward": 0.4345238208770752,
1231
+ "reward_std": 0.1268579363822937,
1232
+ "rewards/accuracy_reward/mean": 0.4345238208770752,
1233
+ "rewards/accuracy_reward/std": 0.49643364548683167,
1234
+ "step": 51
1235
+ },
1236
+ {
1237
+ "clip_ratio/high_max": 0.0,
1238
+ "clip_ratio/high_mean": 0.0,
1239
+ "clip_ratio/low_mean": 0.0,
1240
+ "clip_ratio/low_min": 0.0,
1241
+ "clip_ratio/region_mean": 0.0,
1242
+ "completions/clipped_ratio": 0.6309523809523809,
1243
+ "completions/max_length": 5120.0,
1244
+ "completions/max_terminated_length": 5117.0,
1245
+ "completions/mean_length": 4264.794921875,
1246
+ "completions/mean_terminated_length": 2802.669189453125,
1247
+ "completions/min_length": 344.0,
1248
+ "completions/min_terminated_length": 344.0,
1249
+ "epoch": 0.2062128222075347,
1250
+ "grad_norm": 0.14565984904766083,
1251
+ "learning_rate": 8.893805309734513e-07,
1252
+ "loss": 0.0132,
1253
+ "num_tokens": 81555452.0,
1254
+ "reward": 0.4226190447807312,
1255
+ "reward_std": 0.19077685475349426,
1256
+ "rewards/accuracy_reward/mean": 0.4226190447807312,
1257
+ "rewards/accuracy_reward/std": 0.49471262097358704,
1258
+ "step": 52
1259
+ },
1260
+ {
1261
+ "clip_ratio/high_max": 0.0,
1262
+ "clip_ratio/high_mean": 0.0,
1263
+ "clip_ratio/low_mean": 0.0,
1264
+ "clip_ratio/low_min": 0.0,
1265
+ "clip_ratio/region_mean": 0.0,
1266
+ "completions/clipped_ratio": 0.6696428571428572,
1267
+ "completions/max_length": 5120.0,
1268
+ "completions/max_terminated_length": 5107.0,
1269
+ "completions/mean_length": 4495.76513671875,
1270
+ "completions/mean_terminated_length": 3230.423583984375,
1271
+ "completions/min_length": 834.0,
1272
+ "completions/min_terminated_length": 834.0,
1273
+ "epoch": 0.21017845340383345,
1274
+ "grad_norm": 0.13897976279258728,
1275
+ "learning_rate": 8.849557522123894e-07,
1276
+ "loss": 0.0275,
1277
+ "num_tokens": 83133445.0,
1278
+ "reward": 0.324404776096344,
1279
+ "reward_std": 0.15645335614681244,
1280
+ "rewards/accuracy_reward/mean": 0.324404776096344,
1281
+ "rewards/accuracy_reward/std": 0.4688502252101898,
1282
+ "step": 53
1283
+ },
1284
+ {
1285
+ "clip_ratio/high_max": 0.0,
1286
+ "clip_ratio/high_mean": 0.0,
1287
+ "clip_ratio/low_mean": 0.0,
1288
+ "clip_ratio/low_min": 0.0,
1289
+ "clip_ratio/region_mean": 0.0,
1290
+ "completions/clipped_ratio": 0.5535714285714286,
1291
+ "completions/max_length": 5120.0,
1292
+ "completions/max_terminated_length": 5110.0,
1293
+ "completions/mean_length": 4314.41357421875,
1294
+ "completions/mean_terminated_length": 3315.48681640625,
1295
+ "completions/min_length": 1070.0,
1296
+ "completions/min_terminated_length": 1070.0,
1297
+ "epoch": 0.21414408460013218,
1298
+ "grad_norm": 0.17090049386024475,
1299
+ "learning_rate": 8.805309734513274e-07,
1300
+ "loss": 0.0261,
1301
+ "num_tokens": 84645452.0,
1302
+ "reward": 0.4375,
1303
+ "reward_std": 0.22074994444847107,
1304
+ "rewards/accuracy_reward/mean": 0.4375,
1305
+ "rewards/accuracy_reward/std": 0.4968182444572449,
1306
+ "step": 54
1307
+ },
1308
+ {
1309
+ "clip_ratio/high_max": 0.0,
1310
+ "clip_ratio/high_mean": 0.0,
1311
+ "clip_ratio/low_mean": 0.0,
1312
+ "clip_ratio/low_min": 0.0,
1313
+ "clip_ratio/region_mean": 0.0,
1314
+ "completions/clipped_ratio": 0.6130952380952381,
1315
+ "completions/max_length": 5120.0,
1316
+ "completions/max_terminated_length": 5099.0,
1317
+ "completions/mean_length": 4196.64306640625,
1318
+ "completions/mean_terminated_length": 2733.476806640625,
1319
+ "completions/min_length": 555.0,
1320
+ "completions/min_terminated_length": 555.0,
1321
+ "epoch": 0.21810971579643093,
1322
+ "grad_norm": 0.10867369920015335,
1323
+ "learning_rate": 8.761061946902655e-07,
1324
+ "loss": 0.0086,
1325
+ "num_tokens": 86127560.0,
1326
+ "reward": 0.380952388048172,
1327
+ "reward_std": 0.11327183246612549,
1328
+ "rewards/accuracy_reward/mean": 0.380952388048172,
1329
+ "rewards/accuracy_reward/std": 0.48634520173072815,
1330
+ "step": 55
1331
+ },
1332
+ {
1333
+ "clip_ratio/high_max": 0.0,
1334
+ "clip_ratio/high_mean": 0.0,
1335
+ "clip_ratio/low_mean": 0.0,
1336
+ "clip_ratio/low_min": 0.0,
1337
+ "clip_ratio/region_mean": 0.0,
1338
+ "completions/clipped_ratio": 0.6488095238095238,
1339
+ "completions/max_length": 5120.0,
1340
+ "completions/max_terminated_length": 5092.0,
1341
+ "completions/mean_length": 4437.10107421875,
1342
+ "completions/mean_terminated_length": 3175.474609375,
1343
+ "completions/min_length": 1082.0,
1344
+ "completions/min_terminated_length": 1082.0,
1345
+ "epoch": 0.22207534699272968,
1346
+ "grad_norm": 0.16882988810539246,
1347
+ "learning_rate": 8.716814159292035e-07,
1348
+ "loss": 0.0308,
1349
+ "num_tokens": 87688512.0,
1350
+ "reward": 0.386904776096344,
1351
+ "reward_std": 0.23202714323997498,
1352
+ "rewards/accuracy_reward/mean": 0.386904776096344,
1353
+ "rewards/accuracy_reward/std": 0.48776793479919434,
1354
+ "step": 56
1355
+ },
1356
+ {
1357
+ "clip_ratio/high_max": 0.0,
1358
+ "clip_ratio/high_mean": 0.0,
1359
+ "clip_ratio/low_mean": 0.0,
1360
+ "clip_ratio/low_min": 0.0,
1361
+ "clip_ratio/region_mean": 0.0,
1362
+ "completions/clipped_ratio": 0.5684523809523809,
1363
+ "completions/max_length": 5120.0,
1364
+ "completions/max_terminated_length": 5064.0,
1365
+ "completions/mean_length": 4294.3603515625,
1366
+ "completions/mean_terminated_length": 3206.793212890625,
1367
+ "completions/min_length": 1172.0,
1368
+ "completions/min_terminated_length": 1172.0,
1369
+ "epoch": 0.2260409781890284,
1370
+ "grad_norm": 0.1328190416097641,
1371
+ "learning_rate": 8.672566371681415e-07,
1372
+ "loss": 0.0188,
1373
+ "num_tokens": 89198407.0,
1374
+ "reward": 0.455357164144516,
1375
+ "reward_std": 0.15432612597942352,
1376
+ "rewards/accuracy_reward/mean": 0.4553571343421936,
1377
+ "rewards/accuracy_reward/std": 0.49874576926231384,
1378
+ "step": 57
1379
+ },
1380
+ {
1381
+ "clip_ratio/high_max": 0.0,
1382
+ "clip_ratio/high_mean": 0.0,
1383
+ "clip_ratio/low_mean": 0.0,
1384
+ "clip_ratio/low_min": 0.0,
1385
+ "clip_ratio/region_mean": 0.0,
1386
+ "completions/clipped_ratio": 0.5386904761904762,
1387
+ "completions/max_length": 5120.0,
1388
+ "completions/max_terminated_length": 5113.0,
1389
+ "completions/mean_length": 4218.33056640625,
1390
+ "completions/mean_terminated_length": 3165.412841796875,
1391
+ "completions/min_length": 560.0,
1392
+ "completions/min_terminated_length": 560.0,
1393
+ "epoch": 0.23000660938532716,
1394
+ "grad_norm": 0.1562289297580719,
1395
+ "learning_rate": 8.628318584070797e-07,
1396
+ "loss": 0.0262,
1397
+ "num_tokens": 90682978.0,
1398
+ "reward": 0.4315476417541504,
1399
+ "reward_std": 0.18772687017917633,
1400
+ "rewards/accuracy_reward/mean": 0.431547611951828,
1401
+ "rewards/accuracy_reward/std": 0.4960308074951172,
1402
+ "step": 58
1403
+ },
1404
+ {
1405
+ "clip_ratio/high_max": 0.0,
1406
+ "clip_ratio/high_mean": 0.0,
1407
+ "clip_ratio/low_mean": 0.0,
1408
+ "clip_ratio/low_min": 0.0,
1409
+ "clip_ratio/region_mean": 0.0,
1410
+ "completions/clipped_ratio": 0.6190476190476191,
1411
+ "completions/max_length": 5120.0,
1412
+ "completions/max_terminated_length": 5069.0,
1413
+ "completions/mean_length": 4421.03857421875,
1414
+ "completions/mean_terminated_length": 3285.2265625,
1415
+ "completions/min_length": 596.0,
1416
+ "completions/min_terminated_length": 596.0,
1417
+ "epoch": 0.2339722405816259,
1418
+ "grad_norm": 0.148189514875412,
1419
+ "learning_rate": 8.584070796460177e-07,
1420
+ "loss": 0.0319,
1421
+ "num_tokens": 92234375.0,
1422
+ "reward": 0.392857164144516,
1423
+ "reward_std": 0.20810091495513916,
1424
+ "rewards/accuracy_reward/mean": 0.3928571343421936,
1425
+ "rewards/accuracy_reward/std": 0.4891138970851898,
1426
+ "step": 59
1427
+ },
1428
+ {
1429
+ "clip_ratio/high_max": 0.0,
1430
+ "clip_ratio/high_mean": 0.0,
1431
+ "clip_ratio/low_mean": 0.0,
1432
+ "clip_ratio/low_min": 0.0,
1433
+ "clip_ratio/region_mean": 0.0,
1434
+ "completions/clipped_ratio": 0.6160714285714286,
1435
+ "completions/max_length": 5120.0,
1436
+ "completions/max_terminated_length": 5103.0,
1437
+ "completions/mean_length": 4161.0,
1438
+ "completions/mean_terminated_length": 2622.139404296875,
1439
+ "completions/min_length": 415.0,
1440
+ "completions/min_terminated_length": 415.0,
1441
+ "epoch": 0.23793787177792466,
1442
+ "grad_norm": 0.14123181998729706,
1443
+ "learning_rate": 8.539823008849557e-07,
1444
+ "loss": 0.0407,
1445
+ "num_tokens": 93702269.0,
1446
+ "reward": 0.3720238208770752,
1447
+ "reward_std": 0.18137377500534058,
1448
+ "rewards/accuracy_reward/mean": 0.3720238208770752,
1449
+ "rewards/accuracy_reward/std": 0.48406559228897095,
1450
+ "step": 60
1451
+ },
1452
+ {
1453
+ "clip_ratio/high_max": 0.0,
1454
+ "clip_ratio/high_mean": 0.0,
1455
+ "clip_ratio/low_mean": 0.0,
1456
+ "clip_ratio/low_min": 0.0,
1457
+ "clip_ratio/region_mean": 0.0,
1458
+ "completions/clipped_ratio": 0.6011904761904762,
1459
+ "completions/max_length": 5120.0,
1460
+ "completions/max_terminated_length": 5076.0,
1461
+ "completions/mean_length": 4358.625,
1462
+ "completions/mean_terminated_length": 3210.880615234375,
1463
+ "completions/min_length": 658.0,
1464
+ "completions/min_terminated_length": 658.0,
1465
+ "epoch": 0.2419035029742234,
1466
+ "grad_norm": 0.14963048696517944,
1467
+ "learning_rate": 8.495575221238938e-07,
1468
+ "loss": 0.0024,
1469
+ "num_tokens": 95235605.0,
1470
+ "reward": 0.3571428954601288,
1471
+ "reward_std": 0.1869143843650818,
1472
+ "rewards/accuracy_reward/mean": 0.3571428656578064,
1473
+ "rewards/accuracy_reward/std": 0.47987204790115356,
1474
+ "step": 61
1475
+ },
1476
+ {
1477
+ "clip_ratio/high_max": 0.0,
1478
+ "clip_ratio/high_mean": 0.0,
1479
+ "clip_ratio/low_mean": 0.0,
1480
+ "clip_ratio/low_min": 0.0,
1481
+ "clip_ratio/region_mean": 0.0,
1482
+ "completions/clipped_ratio": 0.4732142857142857,
1483
+ "completions/max_length": 5120.0,
1484
+ "completions/max_terminated_length": 5119.0,
1485
+ "completions/mean_length": 4099.69970703125,
1486
+ "completions/mean_terminated_length": 3183.158203125,
1487
+ "completions/min_length": 989.0,
1488
+ "completions/min_terminated_length": 989.0,
1489
+ "epoch": 0.24586913417052214,
1490
+ "grad_norm": 0.16955052316188812,
1491
+ "learning_rate": 8.451327433628318e-07,
1492
+ "loss": 0.0343,
1493
+ "num_tokens": 96683388.0,
1494
+ "reward": 0.5357142686843872,
1495
+ "reward_std": 0.19290408492088318,
1496
+ "rewards/accuracy_reward/mean": 0.5357142686843872,
1497
+ "rewards/accuracy_reward/std": 0.4994666576385498,
1498
+ "step": 62
1499
+ },
1500
+ {
1501
+ "clip_ratio/high_max": 0.0,
1502
+ "clip_ratio/high_mean": 0.0,
1503
+ "clip_ratio/low_mean": 0.0,
1504
+ "clip_ratio/low_min": 0.0,
1505
+ "clip_ratio/region_mean": 0.0,
1506
+ "completions/clipped_ratio": 0.5565476190476191,
1507
+ "completions/max_length": 5120.0,
1508
+ "completions/max_terminated_length": 5111.0,
1509
+ "completions/mean_length": 4184.46435546875,
1510
+ "completions/mean_terminated_length": 3010.335693359375,
1511
+ "completions/min_length": 621.0,
1512
+ "completions/min_terminated_length": 621.0,
1513
+ "epoch": 0.2498347653668209,
1514
+ "grad_norm": 0.14555992186069489,
1515
+ "learning_rate": 8.407079646017698e-07,
1516
+ "loss": 0.0175,
1517
+ "num_tokens": 98153430.0,
1518
+ "reward": 0.4672619104385376,
1519
+ "reward_std": 0.1731465756893158,
1520
+ "rewards/accuracy_reward/mean": 0.4672619104385376,
1521
+ "rewards/accuracy_reward/std": 0.49967116117477417,
1522
+ "step": 63
1523
+ },
1524
+ {
1525
+ "clip_ratio/high_max": 0.0,
1526
+ "clip_ratio/high_mean": 0.0,
1527
+ "clip_ratio/low_mean": 0.0,
1528
+ "clip_ratio/low_min": 0.0,
1529
+ "clip_ratio/region_mean": 0.0,
1530
+ "completions/clipped_ratio": 0.5625,
1531
+ "completions/max_length": 5120.0,
1532
+ "completions/max_terminated_length": 5046.0,
1533
+ "completions/mean_length": 4144.9287109375,
1534
+ "completions/mean_terminated_length": 2891.26513671875,
1535
+ "completions/min_length": 653.0,
1536
+ "completions/min_terminated_length": 653.0,
1537
+ "epoch": 0.25380039656311965,
1538
+ "grad_norm": 0.15088406205177307,
1539
+ "learning_rate": 8.362831858407079e-07,
1540
+ "loss": 0.0261,
1541
+ "num_tokens": 99614730.0,
1542
+ "reward": 0.455357164144516,
1543
+ "reward_std": 0.19694827497005463,
1544
+ "rewards/accuracy_reward/mean": 0.4553571343421936,
1545
+ "rewards/accuracy_reward/std": 0.49874576926231384,
1546
+ "step": 64
1547
+ },
1548
+ {
1549
+ "clip_ratio/high_max": 0.0,
1550
+ "clip_ratio/high_mean": 0.0,
1551
+ "clip_ratio/low_mean": 0.0,
1552
+ "clip_ratio/low_min": 0.0,
1553
+ "clip_ratio/region_mean": 0.0,
1554
+ "completions/clipped_ratio": 0.5238095238095238,
1555
+ "completions/max_length": 5120.0,
1556
+ "completions/max_terminated_length": 5110.0,
1557
+ "completions/mean_length": 4130.64892578125,
1558
+ "completions/mean_terminated_length": 3042.362548828125,
1559
+ "completions/min_length": 564.0,
1560
+ "completions/min_terminated_length": 564.0,
1561
+ "epoch": 0.25776602775941837,
1562
+ "grad_norm": 0.16884246468544006,
1563
+ "learning_rate": 8.318584070796459e-07,
1564
+ "loss": 0.0273,
1565
+ "num_tokens": 101069588.0,
1566
+ "reward": 0.4732142984867096,
1567
+ "reward_std": 0.2261088490486145,
1568
+ "rewards/accuracy_reward/mean": 0.4732142984867096,
1569
+ "rewards/accuracy_reward/std": 0.5000266432762146,
1570
+ "step": 65
1571
+ },
1572
+ {
1573
+ "clip_ratio/high_max": 0.0,
1574
+ "clip_ratio/high_mean": 0.0,
1575
+ "clip_ratio/low_mean": 0.0,
1576
+ "clip_ratio/low_min": 0.0,
1577
+ "clip_ratio/region_mean": 0.0,
1578
+ "completions/clipped_ratio": 0.5833333333333333,
1579
+ "completions/max_length": 5120.0,
1580
+ "completions/max_terminated_length": 5115.0,
1581
+ "completions/mean_length": 4317.08935546875,
1582
+ "completions/mean_terminated_length": 3193.014404296875,
1583
+ "completions/min_length": 826.0,
1584
+ "completions/min_terminated_length": 826.0,
1585
+ "epoch": 0.2617316589557171,
1586
+ "grad_norm": 0.14746442437171936,
1587
+ "learning_rate": 8.274336283185839e-07,
1588
+ "loss": 0.0208,
1589
+ "num_tokens": 102587822.0,
1590
+ "reward": 0.4583333432674408,
1591
+ "reward_std": 0.17906485497951508,
1592
+ "rewards/accuracy_reward/mean": 0.4583333432674408,
1593
+ "rewards/accuracy_reward/std": 0.49900397658348083,
1594
+ "step": 66
1595
+ },
1596
+ {
1597
+ "clip_ratio/high_max": 0.0,
1598
+ "clip_ratio/high_mean": 0.0,
1599
+ "clip_ratio/low_mean": 0.0,
1600
+ "clip_ratio/low_min": 0.0,
1601
+ "clip_ratio/region_mean": 0.0,
1602
+ "completions/clipped_ratio": 0.5982142857142857,
1603
+ "completions/max_length": 5120.0,
1604
+ "completions/max_terminated_length": 5097.0,
1605
+ "completions/mean_length": 4235.64306640625,
1606
+ "completions/mean_terminated_length": 2918.933349609375,
1607
+ "completions/min_length": 659.0,
1608
+ "completions/min_terminated_length": 659.0,
1609
+ "epoch": 0.2656972901520159,
1610
+ "grad_norm": 0.13867241144180298,
1611
+ "learning_rate": 8.230088495575221e-07,
1612
+ "loss": 0.0153,
1613
+ "num_tokens": 104079980.0,
1614
+ "reward": 0.392857164144516,
1615
+ "reward_std": 0.1869143843650818,
1616
+ "rewards/accuracy_reward/mean": 0.3928571343421936,
1617
+ "rewards/accuracy_reward/std": 0.4891138970851898,
1618
+ "step": 67
1619
+ },
1620
+ {
1621
+ "clip_ratio/high_max": 0.0,
1622
+ "clip_ratio/high_mean": 0.0,
1623
+ "clip_ratio/low_mean": 0.0,
1624
+ "clip_ratio/low_min": 0.0,
1625
+ "clip_ratio/region_mean": 0.0,
1626
+ "completions/clipped_ratio": 0.5386904761904762,
1627
+ "completions/max_length": 5120.0,
1628
+ "completions/max_terminated_length": 5087.0,
1629
+ "completions/mean_length": 4176.443359375,
1630
+ "completions/mean_terminated_length": 3074.61279296875,
1631
+ "completions/min_length": 661.0,
1632
+ "completions/min_terminated_length": 661.0,
1633
+ "epoch": 0.2696629213483146,
1634
+ "grad_norm": 0.17491590976715088,
1635
+ "learning_rate": 8.185840707964602e-07,
1636
+ "loss": 0.0416,
1637
+ "num_tokens": 105553423.0,
1638
+ "reward": 0.4464285671710968,
1639
+ "reward_std": 0.2120879590511322,
1640
+ "rewards/accuracy_reward/mean": 0.4464285671710968,
1641
+ "rewards/accuracy_reward/std": 0.4978632628917694,
1642
+ "step": 68
1643
+ },
1644
+ {
1645
+ "clip_ratio/high_max": 0.0,
1646
+ "clip_ratio/high_mean": 0.0,
1647
+ "clip_ratio/low_mean": 0.0,
1648
+ "clip_ratio/low_min": 0.0,
1649
+ "clip_ratio/region_mean": 0.0,
1650
+ "completions/clipped_ratio": 0.5505952380952381,
1651
+ "completions/max_length": 5120.0,
1652
+ "completions/max_terminated_length": 5106.0,
1653
+ "completions/mean_length": 4295.85107421875,
1654
+ "completions/mean_terminated_length": 3286.132568359375,
1655
+ "completions/min_length": 1242.0,
1656
+ "completions/min_terminated_length": 1242.0,
1657
+ "epoch": 0.2736285525446133,
1658
+ "grad_norm": 0.14897483587265015,
1659
+ "learning_rate": 8.141592920353983e-07,
1660
+ "loss": 0.0193,
1661
+ "num_tokens": 107066105.0,
1662
+ "reward": 0.4672619104385376,
1663
+ "reward_std": 0.20118845999240875,
1664
+ "rewards/accuracy_reward/mean": 0.4672619104385376,
1665
+ "rewards/accuracy_reward/std": 0.49967116117477417,
1666
+ "step": 69
1667
+ },
1668
+ {
1669
+ "clip_ratio/high_max": 0.0,
1670
+ "clip_ratio/high_mean": 0.0,
1671
+ "clip_ratio/low_mean": 0.0,
1672
+ "clip_ratio/low_min": 0.0,
1673
+ "clip_ratio/region_mean": 0.0,
1674
+ "completions/clipped_ratio": 0.5327380952380952,
1675
+ "completions/max_length": 5120.0,
1676
+ "completions/max_terminated_length": 5031.0,
1677
+ "completions/mean_length": 4196.72314453125,
1678
+ "completions/mean_terminated_length": 3144.070068359375,
1679
+ "completions/min_length": 1143.0,
1680
+ "completions/min_terminated_length": 1143.0,
1681
+ "epoch": 0.2775941837409121,
1682
+ "grad_norm": 0.129190132021904,
1683
+ "learning_rate": 8.097345132743363e-07,
1684
+ "loss": 0.0133,
1685
+ "num_tokens": 108538820.0,
1686
+ "reward": 0.4375,
1687
+ "reward_std": 0.1522131860256195,
1688
+ "rewards/accuracy_reward/mean": 0.4375,
1689
+ "rewards/accuracy_reward/std": 0.4968182444572449,
1690
+ "step": 70
1691
+ },
1692
+ {
1693
+ "clip_ratio/high_max": 0.0,
1694
+ "clip_ratio/high_mean": 0.0,
1695
+ "clip_ratio/low_mean": 0.0,
1696
+ "clip_ratio/low_min": 0.0,
1697
+ "clip_ratio/region_mean": 0.0,
1698
+ "completions/clipped_ratio": 0.5595238095238095,
1699
+ "completions/max_length": 5120.0,
1700
+ "completions/max_terminated_length": 5093.0,
1701
+ "completions/mean_length": 4183.77392578125,
1702
+ "completions/mean_terminated_length": 2994.513671875,
1703
+ "completions/min_length": 904.0,
1704
+ "completions/min_terminated_length": 904.0,
1705
+ "epoch": 0.28155981493721083,
1706
+ "grad_norm": 0.12832552194595337,
1707
+ "learning_rate": 8.053097345132743e-07,
1708
+ "loss": 0.0138,
1709
+ "num_tokens": 110013352.0,
1710
+ "reward": 0.4107142984867096,
1711
+ "reward_std": 0.13856995105743408,
1712
+ "rewards/accuracy_reward/mean": 0.4107142984867096,
1713
+ "rewards/accuracy_reward/std": 0.49269720911979675,
1714
+ "step": 71
1715
+ },
1716
+ {
1717
+ "clip_ratio/high_max": 0.0,
1718
+ "clip_ratio/high_mean": 0.0,
1719
+ "clip_ratio/low_mean": 0.0,
1720
+ "clip_ratio/low_min": 0.0,
1721
+ "clip_ratio/region_mean": 0.0,
1722
+ "completions/clipped_ratio": 0.6309523809523809,
1723
+ "completions/max_length": 5120.0,
1724
+ "completions/max_terminated_length": 5076.0,
1725
+ "completions/mean_length": 4328.02392578125,
1726
+ "completions/mean_terminated_length": 2974.0,
1727
+ "completions/min_length": 915.0,
1728
+ "completions/min_terminated_length": 915.0,
1729
+ "epoch": 0.2855254461335096,
1730
+ "grad_norm": 0.13086427748203278,
1731
+ "learning_rate": 8.008849557522124e-07,
1732
+ "loss": 0.019,
1733
+ "num_tokens": 111535848.0,
1734
+ "reward": 0.3392857313156128,
1735
+ "reward_std": 0.14741365611553192,
1736
+ "rewards/accuracy_reward/mean": 0.3392857015132904,
1737
+ "rewards/accuracy_reward/std": 0.47417306900024414,
1738
+ "step": 72
1739
+ },
1740
+ {
1741
+ "clip_ratio/high_max": 0.0,
1742
+ "clip_ratio/high_mean": 0.0,
1743
+ "clip_ratio/low_mean": 0.0,
1744
+ "clip_ratio/low_min": 0.0,
1745
+ "clip_ratio/region_mean": 0.0,
1746
+ "completions/clipped_ratio": 0.6130952380952381,
1747
+ "completions/max_length": 5120.0,
1748
+ "completions/max_terminated_length": 5081.0,
1749
+ "completions/mean_length": 4410.1220703125,
1750
+ "completions/mean_terminated_length": 3285.238525390625,
1751
+ "completions/min_length": 1054.0,
1752
+ "completions/min_terminated_length": 1054.0,
1753
+ "epoch": 0.28949107732980833,
1754
+ "grad_norm": 0.15406593680381775,
1755
+ "learning_rate": 7.964601769911504e-07,
1756
+ "loss": 0.0249,
1757
+ "num_tokens": 113081927.0,
1758
+ "reward": 0.4017857313156128,
1759
+ "reward_std": 0.15894395112991333,
1760
+ "rewards/accuracy_reward/mean": 0.4017857015132904,
1761
+ "rewards/accuracy_reward/std": 0.4909902513027191,
1762
+ "step": 73
1763
+ },
1764
+ {
1765
+ "clip_ratio/high_max": 0.0,
1766
+ "clip_ratio/high_mean": 0.0,
1767
+ "clip_ratio/low_mean": 0.0,
1768
+ "clip_ratio/low_min": 0.0,
1769
+ "clip_ratio/region_mean": 0.0,
1770
+ "completions/clipped_ratio": 0.6071428571428572,
1771
+ "completions/max_length": 5120.0,
1772
+ "completions/max_terminated_length": 5110.0,
1773
+ "completions/mean_length": 4256.94970703125,
1774
+ "completions/mean_terminated_length": 2923.14404296875,
1775
+ "completions/min_length": 415.0,
1776
+ "completions/min_terminated_length": 415.0,
1777
+ "epoch": 0.29345670852610706,
1778
+ "grad_norm": 0.1666187047958374,
1779
+ "learning_rate": 7.920353982300884e-07,
1780
+ "loss": 0.0374,
1781
+ "num_tokens": 114581910.0,
1782
+ "reward": 0.392857164144516,
1783
+ "reward_std": 0.18193314969539642,
1784
+ "rewards/accuracy_reward/mean": 0.3928571343421936,
1785
+ "rewards/accuracy_reward/std": 0.4891138970851898,
1786
+ "step": 74
1787
+ },
1788
+ {
1789
+ "clip_ratio/high_max": 0.0,
1790
+ "clip_ratio/high_mean": 0.0,
1791
+ "clip_ratio/low_mean": 0.0,
1792
+ "clip_ratio/low_min": 0.0,
1793
+ "clip_ratio/region_mean": 0.0,
1794
+ "completions/clipped_ratio": 0.5892857142857143,
1795
+ "completions/max_length": 5120.0,
1796
+ "completions/max_terminated_length": 5115.0,
1797
+ "completions/mean_length": 4196.20556640625,
1798
+ "completions/mean_terminated_length": 2870.760986328125,
1799
+ "completions/min_length": 660.0,
1800
+ "completions/min_terminated_length": 660.0,
1801
+ "epoch": 0.29742233972240584,
1802
+ "grad_norm": 0.2190464437007904,
1803
+ "learning_rate": 7.876106194690266e-07,
1804
+ "loss": 0.0129,
1805
+ "num_tokens": 116061381.0,
1806
+ "reward": 0.3898809552192688,
1807
+ "reward_std": 0.22361823916435242,
1808
+ "rewards/accuracy_reward/mean": 0.3898809552192688,
1809
+ "rewards/accuracy_reward/std": 0.4884504973888397,
1810
+ "step": 75
1811
+ },
1812
+ {
1813
+ "clip_ratio/high_max": 0.0,
1814
+ "clip_ratio/high_mean": 0.0,
1815
+ "clip_ratio/low_mean": 0.0,
1816
+ "clip_ratio/low_min": 0.0,
1817
+ "clip_ratio/region_mean": 0.0,
1818
+ "completions/clipped_ratio": 0.5863095238095238,
1819
+ "completions/max_length": 5120.0,
1820
+ "completions/max_terminated_length": 5119.0,
1821
+ "completions/mean_length": 4346.5478515625,
1822
+ "completions/mean_terminated_length": 3250.35986328125,
1823
+ "completions/min_length": 957.0,
1824
+ "completions/min_terminated_length": 957.0,
1825
+ "epoch": 0.30138797091870456,
1826
+ "grad_norm": 0.16212566196918488,
1827
+ "learning_rate": 7.831858407079646e-07,
1828
+ "loss": 0.0288,
1829
+ "num_tokens": 117593053.0,
1830
+ "reward": 0.3839285671710968,
1831
+ "reward_std": 0.2445516437292099,
1832
+ "rewards/accuracy_reward/mean": 0.3839285671710968,
1833
+ "rewards/accuracy_reward/std": 0.4870661795139313,
1834
+ "step": 76
1835
+ },
1836
+ {
1837
+ "clip_ratio/high_max": 0.0,
1838
+ "clip_ratio/high_mean": 0.0,
1839
+ "clip_ratio/low_mean": 0.0,
1840
+ "clip_ratio/low_min": 0.0,
1841
+ "clip_ratio/region_mean": 0.0,
1842
+ "completions/clipped_ratio": 0.47916666666666663,
1843
+ "completions/max_length": 5120.0,
1844
+ "completions/max_terminated_length": 5112.0,
1845
+ "completions/mean_length": 4076.761962890625,
1846
+ "completions/mean_terminated_length": 3116.98291015625,
1847
+ "completions/min_length": 550.0,
1848
+ "completions/min_terminated_length": 550.0,
1849
+ "epoch": 0.3053536021150033,
1850
+ "grad_norm": 0.1575162708759308,
1851
+ "learning_rate": 7.787610619469026e-07,
1852
+ "loss": 0.0344,
1853
+ "num_tokens": 119032235.0,
1854
+ "reward": 0.523809552192688,
1855
+ "reward_std": 0.2109692096710205,
1856
+ "rewards/accuracy_reward/mean": 0.523809552192688,
1857
+ "rewards/accuracy_reward/std": 0.5001776814460754,
1858
+ "step": 77
1859
+ },
1860
+ {
1861
+ "clip_ratio/high_max": 0.0,
1862
+ "clip_ratio/high_mean": 0.0,
1863
+ "clip_ratio/low_mean": 0.0,
1864
+ "clip_ratio/low_min": 0.0,
1865
+ "clip_ratio/region_mean": 0.0,
1866
+ "completions/clipped_ratio": 0.6041666666666667,
1867
+ "completions/max_length": 5120.0,
1868
+ "completions/max_terminated_length": 5111.0,
1869
+ "completions/mean_length": 4402.21728515625,
1870
+ "completions/mean_terminated_length": 3306.654296875,
1871
+ "completions/min_length": 1262.0,
1872
+ "completions/min_terminated_length": 1262.0,
1873
+ "epoch": 0.30931923331130207,
1874
+ "grad_norm": 0.1132589727640152,
1875
+ "learning_rate": 7.743362831858407e-07,
1876
+ "loss": 0.0181,
1877
+ "num_tokens": 120581874.0,
1878
+ "reward": 0.3452381193637848,
1879
+ "reward_std": 0.12536151707172394,
1880
+ "rewards/accuracy_reward/mean": 0.3452380895614624,
1881
+ "rewards/accuracy_reward/std": 0.47615495324134827,
1882
+ "step": 78
1883
+ },
1884
+ {
1885
+ "clip_ratio/high_max": 0.0,
1886
+ "clip_ratio/high_mean": 0.0,
1887
+ "clip_ratio/low_mean": 0.0,
1888
+ "clip_ratio/low_min": 0.0,
1889
+ "clip_ratio/region_mean": 0.0,
1890
+ "completions/clipped_ratio": 0.5,
1891
+ "completions/max_length": 5120.0,
1892
+ "completions/max_terminated_length": 5091.0,
1893
+ "completions/mean_length": 4005.196533203125,
1894
+ "completions/mean_terminated_length": 2890.392822265625,
1895
+ "completions/min_length": 665.0,
1896
+ "completions/min_terminated_length": 665.0,
1897
+ "epoch": 0.3132848645076008,
1898
+ "grad_norm": 0.15795782208442688,
1899
+ "learning_rate": 7.699115044247787e-07,
1900
+ "loss": 0.0294,
1901
+ "num_tokens": 121993464.0,
1902
+ "reward": 0.4910714328289032,
1903
+ "reward_std": 0.20903794467449188,
1904
+ "rewards/accuracy_reward/mean": 0.4910714328289032,
1905
+ "rewards/accuracy_reward/std": 0.5006658434867859,
1906
+ "step": 79
1907
+ },
1908
+ {
1909
+ "clip_ratio/high_max": 0.0,
1910
+ "clip_ratio/high_mean": 0.0,
1911
+ "clip_ratio/low_mean": 0.0,
1912
+ "clip_ratio/low_min": 0.0,
1913
+ "clip_ratio/region_mean": 0.0,
1914
+ "completions/clipped_ratio": 0.49404761904761907,
1915
+ "completions/max_length": 5120.0,
1916
+ "completions/max_terminated_length": 5079.0,
1917
+ "completions/mean_length": 4157.0029296875,
1918
+ "completions/mean_terminated_length": 3216.664794921875,
1919
+ "completions/min_length": 1245.0,
1920
+ "completions/min_terminated_length": 1245.0,
1921
+ "epoch": 0.3172504957038995,
1922
+ "grad_norm": 0.14931175112724304,
1923
+ "learning_rate": 7.654867256637167e-07,
1924
+ "loss": 0.0226,
1925
+ "num_tokens": 123457405.0,
1926
+ "reward": 0.5148809552192688,
1927
+ "reward_std": 0.17713361978530884,
1928
+ "rewards/accuracy_reward/mean": 0.5148809552192688,
1929
+ "rewards/accuracy_reward/std": 0.5005238652229309,
1930
+ "step": 80
1931
+ },
1932
+ {
1933
+ "clip_ratio/high_max": 0.0,
1934
+ "clip_ratio/high_mean": 0.0,
1935
+ "clip_ratio/low_mean": 0.0,
1936
+ "clip_ratio/low_min": 0.0,
1937
+ "clip_ratio/region_mean": 0.0,
1938
+ "completions/clipped_ratio": 0.5119047619047619,
1939
+ "completions/max_length": 5120.0,
1940
+ "completions/max_terminated_length": 5093.0,
1941
+ "completions/mean_length": 4194.931640625,
1942
+ "completions/mean_terminated_length": 3224.73779296875,
1943
+ "completions/min_length": 548.0,
1944
+ "completions/min_terminated_length": 548.0,
1945
+ "epoch": 0.3212161269001983,
1946
+ "grad_norm": 0.1550244241952896,
1947
+ "learning_rate": 7.610619469026548e-07,
1948
+ "loss": 0.0346,
1949
+ "num_tokens": 124935476.0,
1950
+ "reward": 0.4464285671710968,
1951
+ "reward_std": 0.17233407497406006,
1952
+ "rewards/accuracy_reward/mean": 0.4464285671710968,
1953
+ "rewards/accuracy_reward/std": 0.4978632628917694,
1954
+ "step": 81
1955
+ },
1956
+ {
1957
+ "clip_ratio/high_max": 0.0,
1958
+ "clip_ratio/high_mean": 0.0,
1959
+ "clip_ratio/low_mean": 0.0,
1960
+ "clip_ratio/low_min": 0.0,
1961
+ "clip_ratio/region_mean": 0.0,
1962
+ "completions/clipped_ratio": 0.5863095238095238,
1963
+ "completions/max_length": 5120.0,
1964
+ "completions/max_terminated_length": 5011.0,
1965
+ "completions/mean_length": 4212.47900390625,
1966
+ "completions/mean_terminated_length": 2926.28076171875,
1967
+ "completions/min_length": 844.0,
1968
+ "completions/min_terminated_length": 844.0,
1969
+ "epoch": 0.325181758096497,
1970
+ "grad_norm": 0.14946086704730988,
1971
+ "learning_rate": 7.566371681415928e-07,
1972
+ "loss": 0.0229,
1973
+ "num_tokens": 126419683.0,
1974
+ "reward": 0.4107142984867096,
1975
+ "reward_std": 0.1857956349849701,
1976
+ "rewards/accuracy_reward/mean": 0.4107142984867096,
1977
+ "rewards/accuracy_reward/std": 0.49269723892211914,
1978
+ "step": 82
1979
+ },
1980
+ {
1981
+ "clip_ratio/high_max": 0.0,
1982
+ "clip_ratio/high_mean": 0.0,
1983
+ "clip_ratio/low_mean": 0.0,
1984
+ "clip_ratio/low_min": 0.0,
1985
+ "clip_ratio/region_mean": 0.0,
1986
+ "completions/clipped_ratio": 0.5208333333333333,
1987
+ "completions/max_length": 5120.0,
1988
+ "completions/max_terminated_length": 5070.0,
1989
+ "completions/mean_length": 4200.857421875,
1990
+ "completions/mean_terminated_length": 3201.788818359375,
1991
+ "completions/min_length": 969.0,
1992
+ "completions/min_terminated_length": 969.0,
1993
+ "epoch": 0.32914738929279574,
1994
+ "grad_norm": 0.13284137845039368,
1995
+ "learning_rate": 7.522123893805308e-07,
1996
+ "loss": 0.0103,
1997
+ "num_tokens": 127899775.0,
1998
+ "reward": 0.4166666865348816,
1999
+ "reward_std": 0.17233408987522125,
2000
+ "rewards/accuracy_reward/mean": 0.4166666567325592,
2001
+ "rewards/accuracy_reward/std": 0.4937419593334198,
2002
+ "step": 83
2003
+ },
2004
+ {
2005
+ "clip_ratio/high_max": 0.0,
2006
+ "clip_ratio/high_mean": 0.0,
2007
+ "clip_ratio/low_mean": 0.0,
2008
+ "clip_ratio/low_min": 0.0,
2009
+ "clip_ratio/region_mean": 0.0,
2010
+ "completions/clipped_ratio": 0.5505952380952381,
2011
+ "completions/max_length": 5120.0,
2012
+ "completions/max_terminated_length": 5084.0,
2013
+ "completions/mean_length": 4249.08935546875,
2014
+ "completions/mean_terminated_length": 3182.079345703125,
2015
+ "completions/min_length": 827.0,
2016
+ "completions/min_terminated_length": 827.0,
2017
+ "epoch": 0.3331130204890945,
2018
+ "grad_norm": 0.13733071088790894,
2019
+ "learning_rate": 7.477876106194691e-07,
2020
+ "loss": 0.0273,
2021
+ "num_tokens": 129401689.0,
2022
+ "reward": 0.4702380895614624,
2023
+ "reward_std": 0.17507781088352203,
2024
+ "rewards/accuracy_reward/mean": 0.4702380895614624,
2025
+ "rewards/accuracy_reward/std": 0.4998578727245331,
2026
+ "step": 84
2027
+ },
2028
+ {
2029
+ "clip_ratio/high_max": 0.0,
2030
+ "clip_ratio/high_mean": 0.0,
2031
+ "clip_ratio/low_mean": 0.0,
2032
+ "clip_ratio/low_min": 0.0,
2033
+ "clip_ratio/region_mean": 0.0,
2034
+ "completions/clipped_ratio": 0.4910714285714286,
2035
+ "completions/max_length": 5120.0,
2036
+ "completions/max_terminated_length": 5106.0,
2037
+ "completions/mean_length": 4004.46435546875,
2038
+ "completions/mean_terminated_length": 2928.0703125,
2039
+ "completions/min_length": 1096.0,
2040
+ "completions/min_terminated_length": 1096.0,
2041
+ "epoch": 0.33707865168539325,
2042
+ "grad_norm": 0.15919451415538788,
2043
+ "learning_rate": 7.433628318584071e-07,
2044
+ "loss": 0.0298,
2045
+ "num_tokens": 130810045.0,
2046
+ "reward": 0.523809552192688,
2047
+ "reward_std": 0.2436145693063736,
2048
+ "rewards/accuracy_reward/mean": 0.523809552192688,
2049
+ "rewards/accuracy_reward/std": 0.5001776814460754,
2050
+ "step": 85
2051
+ },
2052
+ {
2053
+ "clip_ratio/high_max": 0.0,
2054
+ "clip_ratio/high_mean": 0.0,
2055
+ "clip_ratio/low_mean": 0.0,
2056
+ "clip_ratio/low_min": 0.0,
2057
+ "clip_ratio/region_mean": 0.0,
2058
+ "completions/clipped_ratio": 0.5029761904761905,
2059
+ "completions/max_length": 5120.0,
2060
+ "completions/max_terminated_length": 5080.0,
2061
+ "completions/mean_length": 4173.9970703125,
2062
+ "completions/mean_terminated_length": 3216.664794921875,
2063
+ "completions/min_length": 967.0,
2064
+ "completions/min_terminated_length": 967.0,
2065
+ "epoch": 0.34104428288169203,
2066
+ "grad_norm": 0.1184137687087059,
2067
+ "learning_rate": 7.389380530973452e-07,
2068
+ "loss": 0.0222,
2069
+ "num_tokens": 132278778.0,
2070
+ "reward": 0.4107142984867096,
2071
+ "reward_std": 0.13432978093624115,
2072
+ "rewards/accuracy_reward/mean": 0.4107142984867096,
2073
+ "rewards/accuracy_reward/std": 0.49269723892211914,
2074
+ "step": 86
2075
+ },
2076
+ {
2077
+ "clip_ratio/high_max": 0.0,
2078
+ "clip_ratio/high_mean": 0.0,
2079
+ "clip_ratio/low_mean": 0.0,
2080
+ "clip_ratio/low_min": 0.0,
2081
+ "clip_ratio/region_mean": 0.0,
2082
+ "completions/clipped_ratio": 0.5505952380952381,
2083
+ "completions/max_length": 5120.0,
2084
+ "completions/max_terminated_length": 5088.0,
2085
+ "completions/mean_length": 4156.34814453125,
2086
+ "completions/mean_terminated_length": 2975.71533203125,
2087
+ "completions/min_length": 756.0,
2088
+ "completions/min_terminated_length": 756.0,
2089
+ "epoch": 0.34500991407799075,
2090
+ "grad_norm": 0.14675813913345337,
2091
+ "learning_rate": 7.345132743362832e-07,
2092
+ "loss": 0.0169,
2093
+ "num_tokens": 133740399.0,
2094
+ "reward": 0.4196428656578064,
2095
+ "reward_std": 0.19171389937400818,
2096
+ "rewards/accuracy_reward/mean": 0.4196428656578064,
2097
+ "rewards/accuracy_reward/std": 0.4942364990711212,
2098
+ "step": 87
2099
+ },
2100
+ {
2101
+ "clip_ratio/high_max": 0.0,
2102
+ "clip_ratio/high_mean": 0.0,
2103
+ "clip_ratio/low_mean": 0.0,
2104
+ "clip_ratio/low_min": 0.0,
2105
+ "clip_ratio/region_mean": 0.0,
2106
+ "completions/clipped_ratio": 0.5625,
2107
+ "completions/max_length": 5120.0,
2108
+ "completions/max_terminated_length": 5083.0,
2109
+ "completions/mean_length": 4250.58935546875,
2110
+ "completions/mean_terminated_length": 3132.775390625,
2111
+ "completions/min_length": 747.0,
2112
+ "completions/min_terminated_length": 747.0,
2113
+ "epoch": 0.3489755452742895,
2114
+ "grad_norm": 0.14409150183200836,
2115
+ "learning_rate": 7.300884955752212e-07,
2116
+ "loss": 0.0216,
2117
+ "num_tokens": 135235611.0,
2118
+ "reward": 0.4375,
2119
+ "reward_std": 0.19557639956474304,
2120
+ "rewards/accuracy_reward/mean": 0.4375,
2121
+ "rewards/accuracy_reward/std": 0.4968182444572449,
2122
+ "step": 88
2123
+ },
2124
+ {
2125
+ "clip_ratio/high_max": 0.0,
2126
+ "clip_ratio/high_mean": 0.0,
2127
+ "clip_ratio/low_mean": 0.0,
2128
+ "clip_ratio/low_min": 0.0,
2129
+ "clip_ratio/region_mean": 0.0,
2130
+ "completions/clipped_ratio": 0.5625,
2131
+ "completions/max_length": 5120.0,
2132
+ "completions/max_terminated_length": 5116.0,
2133
+ "completions/mean_length": 4277.58056640625,
2134
+ "completions/mean_terminated_length": 3194.46923828125,
2135
+ "completions/min_length": 1027.0,
2136
+ "completions/min_terminated_length": 1027.0,
2137
+ "epoch": 0.35294117647058826,
2138
+ "grad_norm": 0.1559421569108963,
2139
+ "learning_rate": 7.256637168141593e-07,
2140
+ "loss": 0.028,
2141
+ "num_tokens": 136744128.0,
2142
+ "reward": 0.4672619104385376,
2143
+ "reward_std": 0.21165312826633453,
2144
+ "rewards/accuracy_reward/mean": 0.4672619104385376,
2145
+ "rewards/accuracy_reward/std": 0.49967116117477417,
2146
+ "step": 89
2147
+ },
2148
+ {
2149
+ "clip_ratio/high_max": 0.0,
2150
+ "clip_ratio/high_mean": 0.0,
2151
+ "clip_ratio/low_mean": 0.0,
2152
+ "clip_ratio/low_min": 0.0,
2153
+ "clip_ratio/region_mean": 0.0,
2154
+ "completions/clipped_ratio": 0.49404761904761907,
2155
+ "completions/max_length": 5120.0,
2156
+ "completions/max_terminated_length": 4992.0,
2157
+ "completions/mean_length": 4141.375,
2158
+ "completions/mean_terminated_length": 3185.776611328125,
2159
+ "completions/min_length": 1130.0,
2160
+ "completions/min_terminated_length": 1130.0,
2161
+ "epoch": 0.356906807666887,
2162
+ "grad_norm": 0.15738657116889954,
2163
+ "learning_rate": 7.212389380530973e-07,
2164
+ "loss": 0.0324,
2165
+ "num_tokens": 138202512.0,
2166
+ "reward": 0.523809552192688,
2167
+ "reward_std": 0.22242805361747742,
2168
+ "rewards/accuracy_reward/mean": 0.523809552192688,
2169
+ "rewards/accuracy_reward/std": 0.5001776814460754,
2170
+ "step": 90
2171
+ },
2172
+ {
2173
+ "clip_ratio/high_max": 0.0,
2174
+ "clip_ratio/high_mean": 0.0,
2175
+ "clip_ratio/low_mean": 0.0,
2176
+ "clip_ratio/low_min": 0.0,
2177
+ "clip_ratio/region_mean": 0.0,
2178
+ "completions/clipped_ratio": 0.4464285714285714,
2179
+ "completions/max_length": 5120.0,
2180
+ "completions/max_terminated_length": 5045.0,
2181
+ "completions/mean_length": 4064.4345703125,
2182
+ "completions/mean_terminated_length": 3213.172119140625,
2183
+ "completions/min_length": 1205.0,
2184
+ "completions/min_terminated_length": 1205.0,
2185
+ "epoch": 0.3608724388631857,
2186
+ "grad_norm": 0.14963069558143616,
2187
+ "learning_rate": 7.168141592920353e-07,
2188
+ "loss": 0.0308,
2189
+ "num_tokens": 139632914.0,
2190
+ "reward": 0.5476190447807312,
2191
+ "reward_std": 0.19925718009471893,
2192
+ "rewards/accuracy_reward/mean": 0.5476190447807312,
2193
+ "rewards/accuracy_reward/std": 0.49846959114074707,
2194
+ "step": 91
2195
+ },
2196
+ {
2197
+ "clip_ratio/high_max": 0.0,
2198
+ "clip_ratio/high_mean": 0.0,
2199
+ "clip_ratio/low_mean": 0.0,
2200
+ "clip_ratio/low_min": 0.0,
2201
+ "clip_ratio/region_mean": 0.0,
2202
+ "completions/clipped_ratio": 0.5148809523809523,
2203
+ "completions/max_length": 5120.0,
2204
+ "completions/max_terminated_length": 5093.0,
2205
+ "completions/mean_length": 4204.84228515625,
2206
+ "completions/mean_terminated_length": 3233.539794921875,
2207
+ "completions/min_length": 453.0,
2208
+ "completions/min_terminated_length": 453.0,
2209
+ "epoch": 0.3648380700594845,
2210
+ "grad_norm": 0.1522281914949417,
2211
+ "learning_rate": 7.123893805309734e-07,
2212
+ "loss": 0.0193,
2213
+ "num_tokens": 141112113.0,
2214
+ "reward": 0.4702380895614624,
2215
+ "reward_std": 0.19900403916835785,
2216
+ "rewards/accuracy_reward/mean": 0.4702380895614624,
2217
+ "rewards/accuracy_reward/std": 0.4998578727245331,
2218
+ "step": 92
2219
+ },
2220
+ {
2221
+ "clip_ratio/high_max": 0.0,
2222
+ "clip_ratio/high_mean": 0.0,
2223
+ "clip_ratio/low_mean": 0.0,
2224
+ "clip_ratio/low_min": 0.0,
2225
+ "clip_ratio/region_mean": 0.0,
2226
+ "completions/clipped_ratio": 0.6041666666666667,
2227
+ "completions/max_length": 5120.0,
2228
+ "completions/max_terminated_length": 5067.0,
2229
+ "completions/mean_length": 4348.01806640625,
2230
+ "completions/mean_terminated_length": 3169.7294921875,
2231
+ "completions/min_length": 1256.0,
2232
+ "completions/min_terminated_length": 1256.0,
2233
+ "epoch": 0.3688037012557832,
2234
+ "grad_norm": 0.13845135271549225,
2235
+ "learning_rate": 7.079646017699115e-07,
2236
+ "loss": 0.0263,
2237
+ "num_tokens": 142646997.0,
2238
+ "reward": 0.3541666865348816,
2239
+ "reward_std": 0.19956344366073608,
2240
+ "rewards/accuracy_reward/mean": 0.3541666567325592,
2241
+ "rewards/accuracy_reward/std": 0.4789733290672302,
2242
+ "step": 93
2243
+ },
2244
+ {
2245
+ "clip_ratio/high_max": 0.0,
2246
+ "clip_ratio/high_mean": 0.0,
2247
+ "clip_ratio/low_mean": 0.0,
2248
+ "clip_ratio/low_min": 0.0,
2249
+ "clip_ratio/region_mean": 0.0,
2250
+ "completions/clipped_ratio": 0.49702380952380953,
2251
+ "completions/max_length": 5120.0,
2252
+ "completions/max_terminated_length": 5071.0,
2253
+ "completions/mean_length": 3997.58642578125,
2254
+ "completions/mean_terminated_length": 2888.45556640625,
2255
+ "completions/min_length": 804.0,
2256
+ "completions/min_terminated_length": 804.0,
2257
+ "epoch": 0.37276933245208194,
2258
+ "grad_norm": 0.18246114253997803,
2259
+ "learning_rate": 7.035398230088495e-07,
2260
+ "loss": 0.0314,
2261
+ "num_tokens": 144056318.0,
2262
+ "reward": 0.4166666865348816,
2263
+ "reward_std": 0.257200688123703,
2264
+ "rewards/accuracy_reward/mean": 0.4166666567325592,
2265
+ "rewards/accuracy_reward/std": 0.4937419593334198,
2266
+ "step": 94
2267
+ },
2268
+ {
2269
+ "clip_ratio/high_max": 0.0,
2270
+ "clip_ratio/high_mean": 0.0,
2271
+ "clip_ratio/low_mean": 0.0,
2272
+ "clip_ratio/low_min": 0.0,
2273
+ "clip_ratio/region_mean": 0.0,
2274
+ "completions/clipped_ratio": 0.5059523809523809,
2275
+ "completions/max_length": 5120.0,
2276
+ "completions/max_terminated_length": 5114.0,
2277
+ "completions/mean_length": 3974.881103515625,
2278
+ "completions/mean_terminated_length": 2802.16845703125,
2279
+ "completions/min_length": 364.0,
2280
+ "completions/min_terminated_length": 364.0,
2281
+ "epoch": 0.3767349636483807,
2282
+ "grad_norm": 0.16523684561252594,
2283
+ "learning_rate": 6.991150442477876e-07,
2284
+ "loss": 0.0262,
2285
+ "num_tokens": 145457896.0,
2286
+ "reward": 0.4583333432674408,
2287
+ "reward_std": 0.19077686965465546,
2288
+ "rewards/accuracy_reward/mean": 0.4583333432674408,
2289
+ "rewards/accuracy_reward/std": 0.49900397658348083,
2290
+ "step": 95
2291
+ }
2292
+ ],
2293
+ "logging_steps": 1,
2294
+ "max_steps": 252,
2295
+ "num_input_tokens_seen": 145457896,
2296
+ "num_train_epochs": 1,
2297
+ "save_steps": 5,
2298
+ "stateful_callbacks": {
2299
+ "TrainerControl": {
2300
+ "args": {
2301
+ "should_epoch_stop": false,
2302
+ "should_evaluate": false,
2303
+ "should_log": false,
2304
+ "should_save": true,
2305
+ "should_training_stop": false
2306
+ },
2307
+ "attributes": {}
2308
+ }
2309
+ },
2310
+ "total_flos": 0.0,
2311
+ "train_batch_size": 8,
2312
+ "trial_name": null,
2313
+ "trial_params": null
2314
+ }
checkpoint-95/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18fe4c922e827abdfb06bcea04558c4590fdf389e4d33ba21d07d0f187bd54a5
3
+ size 7800
checkpoint-95/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-95/zero_to_fp32.py ADDED
@@ -0,0 +1,760 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+
3
+ # Copyright (c) Microsoft Corporation.
4
+ # SPDX-License-Identifier: Apache-2.0
5
+
6
+ # DeepSpeed Team
7
+
8
+ # This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
9
+ # copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
10
+ # the future. Once extracted, the weights don't require DeepSpeed and can be used in any
11
+ # application.
12
+ #
13
+ # example:
14
+ # python zero_to_fp32.py . output_dir/
15
+ # or
16
+ # python zero_to_fp32.py . output_dir/ --safe_serialization
17
+
18
+ import argparse
19
+ import torch
20
+ import glob
21
+ import math
22
+ import os
23
+ import re
24
+ import gc
25
+ import json
26
+ import numpy as np
27
+ from tqdm import tqdm
28
+ from collections import OrderedDict
29
+ from dataclasses import dataclass
30
+
31
+ # while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
32
+ # DeepSpeed data structures it has to be available in the current python environment.
33
+ from deepspeed.utils import logger
34
+ from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
35
+ FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
36
+ FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
37
+
38
+
39
+ @dataclass
40
+ class zero_model_state:
41
+ buffers: dict()
42
+ param_shapes: dict()
43
+ shared_params: list
44
+ ds_version: int
45
+ frozen_param_shapes: dict()
46
+ frozen_param_fragments: dict()
47
+
48
+
49
+ debug = 0
50
+
51
+ # load to cpu
52
+ device = torch.device('cpu')
53
+
54
+
55
+ def atoi(text):
56
+ return int(text) if text.isdigit() else text
57
+
58
+
59
+ def natural_keys(text):
60
+ '''
61
+ alist.sort(key=natural_keys) sorts in human order
62
+ http://nedbatchelder.com/blog/200712/human_sorting.html
63
+ (See Toothy's implementation in the comments)
64
+ '''
65
+ return [atoi(c) for c in re.split(r'(\d+)', text)]
66
+
67
+
68
+ def get_model_state_file(checkpoint_dir, zero_stage):
69
+ if not os.path.isdir(checkpoint_dir):
70
+ raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
71
+
72
+ # there should be only one file
73
+ if zero_stage <= 2:
74
+ file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
75
+ elif zero_stage == 3:
76
+ file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
77
+
78
+ if not os.path.exists(file):
79
+ raise FileNotFoundError(f"can't find model states file at '{file}'")
80
+
81
+ return file
82
+
83
+
84
+ def get_checkpoint_files(checkpoint_dir, glob_pattern):
85
+ # XXX: need to test that this simple glob rule works for multi-node setup too
86
+ ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
87
+
88
+ if len(ckpt_files) == 0:
89
+ raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
90
+
91
+ return ckpt_files
92
+
93
+
94
+ def get_optim_files(checkpoint_dir):
95
+ return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
96
+
97
+
98
+ def get_model_state_files(checkpoint_dir):
99
+ return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
100
+
101
+
102
+ def parse_model_states(files):
103
+ zero_model_states = []
104
+ for file in files:
105
+ state_dict = torch.load(file, map_location=device, weights_only=False)
106
+
107
+ if BUFFER_NAMES not in state_dict:
108
+ raise ValueError(f"{file} is not a model state checkpoint")
109
+ buffer_names = state_dict[BUFFER_NAMES]
110
+ if debug:
111
+ print("Found buffers:", buffer_names)
112
+
113
+ # recover just the buffers while restoring them to fp32 if they were saved in fp16
114
+ buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
115
+ param_shapes = state_dict[PARAM_SHAPES]
116
+
117
+ # collect parameters that are included in param_shapes
118
+ param_names = []
119
+ for s in param_shapes:
120
+ for name in s.keys():
121
+ param_names.append(name)
122
+
123
+ # update with frozen parameters
124
+ frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
125
+ if frozen_param_shapes is not None:
126
+ if debug:
127
+ print(f"Found frozen_param_shapes: {frozen_param_shapes}")
128
+ param_names += list(frozen_param_shapes.keys())
129
+
130
+ # handle shared params
131
+ shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
132
+
133
+ ds_version = state_dict.get(DS_VERSION, None)
134
+
135
+ frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
136
+
137
+ z_model_state = zero_model_state(buffers=buffers,
138
+ param_shapes=param_shapes,
139
+ shared_params=shared_params,
140
+ ds_version=ds_version,
141
+ frozen_param_shapes=frozen_param_shapes,
142
+ frozen_param_fragments=frozen_param_fragments)
143
+ zero_model_states.append(z_model_state)
144
+
145
+ return zero_model_states
146
+
147
+
148
+ def parse_optim_states(files, ds_checkpoint_dir):
149
+ total_files = len(files)
150
+ state_dicts = []
151
+ for f in tqdm(files, desc='Loading checkpoint shards'):
152
+ state_dict = torch.load(f, map_location=device, mmap=True, weights_only=False)
153
+ # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
154
+ # and also handle the case where it was already removed by another helper script
155
+ state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
156
+ state_dicts.append(state_dict)
157
+
158
+ if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
159
+ raise ValueError(f"{files[0]} is not a zero checkpoint")
160
+ zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
161
+ world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
162
+
163
+ # For ZeRO-2 each param group can have different partition_count as data parallelism for expert
164
+ # parameters can be different from data parallelism for non-expert parameters. So we can just
165
+ # use the max of the partition_count to get the dp world_size.
166
+
167
+ if type(world_size) is list:
168
+ world_size = max(world_size)
169
+
170
+ if world_size != total_files:
171
+ raise ValueError(
172
+ f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
173
+ "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
174
+ )
175
+
176
+ # the groups are named differently in each stage
177
+ if zero_stage <= 2:
178
+ fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
179
+ elif zero_stage == 3:
180
+ fp32_groups_key = FP32_FLAT_GROUPS
181
+ else:
182
+ raise ValueError(f"unknown zero stage {zero_stage}")
183
+
184
+ fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
185
+ return zero_stage, world_size, fp32_flat_groups
186
+
187
+
188
+ def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
189
+ """
190
+ Returns fp32 state_dict reconstructed from ds checkpoint
191
+
192
+ Args:
193
+ - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
194
+
195
+ """
196
+ print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
197
+
198
+ optim_files = get_optim_files(ds_checkpoint_dir)
199
+ zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
200
+ print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
201
+
202
+ model_files = get_model_state_files(ds_checkpoint_dir)
203
+
204
+ zero_model_states = parse_model_states(model_files)
205
+ print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
206
+
207
+ if zero_stage <= 2:
208
+ return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
209
+ exclude_frozen_parameters)
210
+ elif zero_stage == 3:
211
+ return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
212
+ exclude_frozen_parameters)
213
+
214
+
215
+ def _zero2_merge_frozen_params(state_dict, zero_model_states):
216
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
217
+ return
218
+
219
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
220
+ frozen_param_fragments = zero_model_states[0].frozen_param_fragments
221
+
222
+ if debug:
223
+ num_elem = sum(s.numel() for s in frozen_param_shapes.values())
224
+ print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
225
+
226
+ wanted_params = len(frozen_param_shapes)
227
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
228
+ avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
229
+ print(f'Frozen params: Have {avail_numel} numels to process.')
230
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
231
+
232
+ total_params = 0
233
+ total_numel = 0
234
+ for name, shape in frozen_param_shapes.items():
235
+ total_params += 1
236
+ unpartitioned_numel = shape.numel()
237
+ total_numel += unpartitioned_numel
238
+
239
+ state_dict[name] = frozen_param_fragments[name]
240
+
241
+ if debug:
242
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
243
+
244
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
245
+
246
+
247
+ def _has_callable(obj, fn):
248
+ attr = getattr(obj, fn, None)
249
+ return callable(attr)
250
+
251
+
252
+ def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
253
+ param_shapes = zero_model_states[0].param_shapes
254
+
255
+ # Reconstruction protocol:
256
+ #
257
+ # XXX: document this
258
+
259
+ if debug:
260
+ for i in range(world_size):
261
+ for j in range(len(fp32_flat_groups[0])):
262
+ print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
263
+
264
+ # XXX: memory usage doubles here (zero2)
265
+ num_param_groups = len(fp32_flat_groups[0])
266
+ merged_single_partition_of_fp32_groups = []
267
+ for i in range(num_param_groups):
268
+ merged_partitions = [sd[i] for sd in fp32_flat_groups]
269
+ full_single_fp32_vector = torch.cat(merged_partitions, 0)
270
+ merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
271
+ avail_numel = sum(
272
+ [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
273
+
274
+ if debug:
275
+ wanted_params = sum([len(shapes) for shapes in param_shapes])
276
+ wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
277
+ # not asserting if there is a mismatch due to possible padding
278
+ print(f"Have {avail_numel} numels to process.")
279
+ print(f"Need {wanted_numel} numels in {wanted_params} params.")
280
+
281
+ # params
282
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
283
+ # out-of-core computing solution
284
+ total_numel = 0
285
+ total_params = 0
286
+ for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
287
+ offset = 0
288
+ avail_numel = full_single_fp32_vector.numel()
289
+ for name, shape in shapes.items():
290
+
291
+ unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
292
+ total_numel += unpartitioned_numel
293
+ total_params += 1
294
+
295
+ if debug:
296
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
297
+ state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
298
+ offset += unpartitioned_numel
299
+
300
+ # Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
301
+ # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
302
+ # paddings performed in the code it's almost impossible to predict the exact numbers w/o the
303
+ # live optimizer object, so we are checking that the numbers are within the right range
304
+ align_to = 2 * world_size
305
+
306
+ def zero2_align(x):
307
+ return align_to * math.ceil(x / align_to)
308
+
309
+ if debug:
310
+ print(f"original offset={offset}, avail_numel={avail_numel}")
311
+
312
+ offset = zero2_align(offset)
313
+ avail_numel = zero2_align(avail_numel)
314
+
315
+ if debug:
316
+ print(f"aligned offset={offset}, avail_numel={avail_numel}")
317
+
318
+ # Sanity check
319
+ if offset != avail_numel:
320
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
321
+
322
+ print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
323
+
324
+
325
+ def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
326
+ exclude_frozen_parameters):
327
+ state_dict = OrderedDict()
328
+
329
+ # buffers
330
+ buffers = zero_model_states[0].buffers
331
+ state_dict.update(buffers)
332
+ if debug:
333
+ print(f"added {len(buffers)} buffers")
334
+
335
+ if not exclude_frozen_parameters:
336
+ _zero2_merge_frozen_params(state_dict, zero_model_states)
337
+
338
+ _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
339
+
340
+ # recover shared parameters
341
+ for pair in zero_model_states[0].shared_params:
342
+ if pair[1] in state_dict:
343
+ state_dict[pair[0]] = state_dict[pair[1]]
344
+
345
+ return state_dict
346
+
347
+
348
+ def zero3_partitioned_param_info(unpartitioned_numel, world_size):
349
+ remainder = unpartitioned_numel % world_size
350
+ padding_numel = (world_size - remainder) if remainder else 0
351
+ partitioned_numel = math.ceil(unpartitioned_numel / world_size)
352
+ return partitioned_numel, padding_numel
353
+
354
+
355
+ def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
356
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
357
+ return
358
+
359
+ if debug:
360
+ for i in range(world_size):
361
+ num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
362
+ print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
363
+
364
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
365
+ wanted_params = len(frozen_param_shapes)
366
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
367
+ avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
368
+ print(f'Frozen params: Have {avail_numel} numels to process.')
369
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
370
+
371
+ total_params = 0
372
+ total_numel = 0
373
+ for name, shape in zero_model_states[0].frozen_param_shapes.items():
374
+ total_params += 1
375
+ unpartitioned_numel = shape.numel()
376
+ total_numel += unpartitioned_numel
377
+
378
+ param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
379
+ state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
380
+
381
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
382
+
383
+ if debug:
384
+ print(
385
+ f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
386
+ )
387
+
388
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
389
+
390
+
391
+ class GatheredTensor:
392
+ """
393
+ A pseudo tensor that collects partitioned weights.
394
+ It is more memory efficient when there are multiple groups.
395
+ """
396
+
397
+ def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape):
398
+ self.flat_groups = flat_groups
399
+ self.flat_groups_offset = flat_groups_offset
400
+ self.offset = offset
401
+ self.partitioned_numel = partitioned_numel
402
+ self.shape = shape
403
+ self.dtype = self.flat_groups[0][0].dtype
404
+
405
+ def contiguous(self):
406
+ """
407
+ Merge partitioned weights from flat_groups into a single tensor.
408
+ """
409
+ end_idx = self.offset + self.partitioned_numel
410
+ world_size = len(self.flat_groups)
411
+ pad_flat_param_chunks = []
412
+
413
+ for rank_i in range(world_size):
414
+ # for each rank, we need to collect weights from related group/groups
415
+ flat_groups_at_rank_i = self.flat_groups[rank_i]
416
+ start_group_id = None
417
+ end_group_id = None
418
+ for group_id in range(len(self.flat_groups_offset)):
419
+ if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]:
420
+ start_group_id = group_id
421
+ if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]:
422
+ end_group_id = group_id
423
+ break
424
+ # collect weights from related group/groups
425
+ for group_id in range(start_group_id, end_group_id + 1):
426
+ flat_tensor = flat_groups_at_rank_i[group_id]
427
+ start_offset = self.offset - self.flat_groups_offset[group_id]
428
+ end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id]
429
+ pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
430
+
431
+ # collect weights from all ranks
432
+ pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0)
433
+ param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous()
434
+ return param
435
+
436
+
437
+ def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
438
+ param_shapes = zero_model_states[0].param_shapes
439
+ avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
440
+
441
+ # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
442
+ # param, re-consolidating each param, while dealing with padding if any
443
+
444
+ # merge list of dicts, preserving order
445
+ param_shapes = {k: v for d in param_shapes for k, v in d.items()}
446
+
447
+ if debug:
448
+ for i in range(world_size):
449
+ print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
450
+
451
+ wanted_params = len(param_shapes)
452
+ wanted_numel = sum(shape.numel() for shape in param_shapes.values())
453
+ # not asserting if there is a mismatch due to possible padding
454
+ avail_numel = fp32_flat_groups[0].numel() * world_size
455
+ print(f"Trainable params: Have {avail_numel} numels to process.")
456
+ print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
457
+
458
+ # params
459
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
460
+ # out-of-core computing solution
461
+ offset = 0
462
+ total_numel = 0
463
+ total_params = 0
464
+ flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]]))
465
+ for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'):
466
+ unpartitioned_numel = shape.numel()
467
+ total_numel += unpartitioned_numel
468
+ total_params += 1
469
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
470
+
471
+ if debug:
472
+ print(
473
+ f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
474
+ )
475
+
476
+ # memory efficient tensor
477
+ tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape)
478
+ state_dict[name] = tensor
479
+ offset += partitioned_numel
480
+
481
+ offset *= world_size
482
+
483
+ # Sanity check
484
+ if offset != avail_numel:
485
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
486
+
487
+ print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
488
+
489
+
490
+ def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
491
+ exclude_frozen_parameters):
492
+ state_dict = OrderedDict()
493
+
494
+ # buffers
495
+ buffers = zero_model_states[0].buffers
496
+ state_dict.update(buffers)
497
+ if debug:
498
+ print(f"added {len(buffers)} buffers")
499
+
500
+ if not exclude_frozen_parameters:
501
+ _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
502
+
503
+ _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
504
+
505
+ # recover shared parameters
506
+ for pair in zero_model_states[0].shared_params:
507
+ if pair[1] in state_dict:
508
+ state_dict[pair[0]] = state_dict[pair[1]]
509
+
510
+ return state_dict
511
+
512
+
513
+ def to_torch_tensor(state_dict, return_empty_tensor=False):
514
+ """
515
+ Convert state_dict of GatheredTensor to torch tensor
516
+ """
517
+ torch_state_dict = {}
518
+ converted_tensors = {}
519
+ for name, tensor in state_dict.items():
520
+ tensor_id = id(tensor)
521
+ if tensor_id in converted_tensors: # shared tensors
522
+ shared_tensor = torch_state_dict[converted_tensors[tensor_id]]
523
+ torch_state_dict[name] = shared_tensor
524
+ else:
525
+ converted_tensors[tensor_id] = name
526
+ if return_empty_tensor:
527
+ torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype)
528
+ else:
529
+ torch_state_dict[name] = tensor.contiguous()
530
+ return torch_state_dict
531
+
532
+
533
+ def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
534
+ tag=None,
535
+ exclude_frozen_parameters=False,
536
+ lazy_mode=False):
537
+ """
538
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
539
+ ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
540
+ via a model hub.
541
+
542
+ Args:
543
+ - ``checkpoint_dir``: path to the desired checkpoint folder
544
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14``
545
+ - ``exclude_frozen_parameters``: exclude frozen parameters
546
+ - ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient.
547
+ Convert the pesduo tensor to torch tensor by ``.contiguous()``
548
+
549
+ Returns:
550
+ - pytorch ``state_dict``
551
+
552
+ A typical usage might be ::
553
+
554
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
555
+ # do the training and checkpoint saving
556
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
557
+ model = model.cpu() # move to cpu
558
+ model.load_state_dict(state_dict)
559
+ # submit to model hub or save the model to share with others
560
+
561
+ In this example the ``model`` will no longer be usable in the deepspeed context of the same
562
+ application. i.e. you will need to re-initialize the deepspeed engine, since
563
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
564
+
565
+ If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
566
+
567
+ Note: the above usage may not work if your application doesn't have sufficient free CPU memory.
568
+ You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
569
+ the checkpoint. Or you can load state_dict in lazy mode ::
570
+
571
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
572
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu
573
+ for name, lazy_tensor in state_dict.item():
574
+ tensor = lazy_tensor.contiguous() # to cpu
575
+ print(name, tensor)
576
+ # del tensor to release memory if it no longer in use
577
+ """
578
+ if tag is None:
579
+ latest_path = os.path.join(checkpoint_dir, 'latest')
580
+ if os.path.isfile(latest_path):
581
+ with open(latest_path, 'r') as fd:
582
+ tag = fd.read().strip()
583
+ else:
584
+ raise ValueError(f"Unable to find 'latest' file at {latest_path}")
585
+
586
+ ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
587
+
588
+ if not os.path.isdir(ds_checkpoint_dir):
589
+ raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
590
+
591
+ state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
592
+ if lazy_mode:
593
+ return state_dict
594
+ else:
595
+ return to_torch_tensor(state_dict)
596
+
597
+
598
+ def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
599
+ output_dir,
600
+ max_shard_size="5GB",
601
+ safe_serialization=False,
602
+ tag=None,
603
+ exclude_frozen_parameters=False):
604
+ """
605
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
606
+ loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
607
+
608
+ Args:
609
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
610
+ - ``output_dir``: directory to the pytorch fp32 state_dict output files
611
+ - ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
612
+ - ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
613
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
614
+ - ``exclude_frozen_parameters``: exclude frozen parameters
615
+ """
616
+
617
+ # Dependency pre-check
618
+ if safe_serialization:
619
+ try:
620
+ from safetensors.torch import save_file
621
+ except ImportError:
622
+ print('If you want to use `safe_serialization`, please `pip install safetensors`')
623
+ raise
624
+ if max_shard_size is not None:
625
+ try:
626
+ from huggingface_hub import split_torch_state_dict_into_shards
627
+ except ImportError:
628
+ print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
629
+ raise
630
+
631
+ # Convert zero checkpoint to state_dict
632
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
633
+ tag,
634
+ exclude_frozen_parameters,
635
+ lazy_mode=True)
636
+
637
+ # Shard the model if it is too big.
638
+ weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
639
+ if max_shard_size is not None:
640
+ filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
641
+ # an memory-efficient approach for sharding
642
+ empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True)
643
+ state_dict_split = split_torch_state_dict_into_shards(empty_state_dict,
644
+ filename_pattern=filename_pattern,
645
+ max_shard_size=max_shard_size)
646
+ else:
647
+ from collections import namedtuple
648
+ StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
649
+ state_dict_split = StateDictSplit(is_sharded=False,
650
+ filename_to_tensors={weights_name: list(state_dict.keys())})
651
+
652
+ # Save the model by shard
653
+ os.makedirs(output_dir, exist_ok=True)
654
+ filename_to_tensors = state_dict_split.filename_to_tensors.items()
655
+ for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
656
+ shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors}
657
+ shard_state_dict = to_torch_tensor(shard_state_dict)
658
+ output_path = os.path.join(output_dir, shard_file)
659
+ if safe_serialization:
660
+ save_file(shard_state_dict, output_path, metadata={"format": "pt"})
661
+ else:
662
+ torch.save(shard_state_dict, output_path)
663
+ # release the memory of current shard
664
+ for tensor_name in list(shard_state_dict.keys()):
665
+ del state_dict[tensor_name]
666
+ del shard_state_dict[tensor_name]
667
+ del shard_state_dict
668
+ gc.collect()
669
+
670
+ # Save index if sharded
671
+ if state_dict_split.is_sharded:
672
+ index = {
673
+ "metadata": state_dict_split.metadata,
674
+ "weight_map": state_dict_split.tensor_to_filename,
675
+ }
676
+ save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
677
+ save_index_file = os.path.join(output_dir, save_index_file)
678
+ with open(save_index_file, "w", encoding="utf-8") as f:
679
+ content = json.dumps(index, indent=2, sort_keys=True) + "\n"
680
+ f.write(content)
681
+
682
+
683
+ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
684
+ """
685
+ 1. Put the provided model to cpu
686
+ 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
687
+ 3. Load it into the provided model
688
+
689
+ Args:
690
+ - ``model``: the model object to update
691
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
692
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
693
+
694
+ Returns:
695
+ - ``model`: modified model
696
+
697
+ Make sure you have plenty of CPU memory available before you call this function. If you don't
698
+ have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
699
+ conveniently placed for you in the checkpoint folder.
700
+
701
+ A typical usage might be ::
702
+
703
+ from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
704
+ model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
705
+ # submit to model hub or save the model to share with others
706
+
707
+ Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
708
+ of the same application. i.e. you will need to re-initialize the deepspeed engine, since
709
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
710
+
711
+ """
712
+ logger.info(f"Extracting fp32 weights")
713
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
714
+
715
+ logger.info(f"Overwriting model with fp32 weights")
716
+ model = model.cpu()
717
+ model.load_state_dict(state_dict, strict=False)
718
+
719
+ return model
720
+
721
+
722
+ if __name__ == "__main__":
723
+ parser = argparse.ArgumentParser()
724
+ parser.add_argument("checkpoint_dir",
725
+ type=str,
726
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
727
+ parser.add_argument("output_dir",
728
+ type=str,
729
+ help="directory to the pytorch fp32 state_dict output files"
730
+ "(e.g. path/checkpoint-12-output/)")
731
+ parser.add_argument(
732
+ "--max_shard_size",
733
+ type=str,
734
+ default="5GB",
735
+ help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
736
+ "lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
737
+ "We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
738
+ "without CPU OOM issues.")
739
+ parser.add_argument(
740
+ "--safe_serialization",
741
+ default=False,
742
+ action='store_true',
743
+ help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
744
+ parser.add_argument("-t",
745
+ "--tag",
746
+ type=str,
747
+ default=None,
748
+ help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
749
+ parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
750
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
751
+ args = parser.parse_args()
752
+
753
+ debug = args.debug
754
+
755
+ convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
756
+ args.output_dir,
757
+ max_shard_size=args.max_shard_size,
758
+ safe_serialization=args.safe_serialization,
759
+ tag=args.tag,
760
+ exclude_frozen_parameters=args.exclude_frozen_parameters)