LLucass commited on
Commit
fa3d8d4
·
verified ·
1 Parent(s): 45c4939

Training in progress, step 100, checkpoint

Browse files
.gitattributes CHANGED
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
  checkpoint-50/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
  checkpoint-50/tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
+ checkpoint-100/tokenizer.json filter=lfs diff=lfs merge=lfs -text
checkpoint-100/config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2ForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 151643,
7
+ "eos_token_id": 151643,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 1536,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 8960,
12
+ "max_position_embeddings": 131072,
13
+ "max_window_layers": 21,
14
+ "model_type": "qwen2",
15
+ "num_attention_heads": 12,
16
+ "num_hidden_layers": 28,
17
+ "num_key_value_heads": 2,
18
+ "rms_norm_eps": 1e-06,
19
+ "rope_scaling": null,
20
+ "rope_theta": 10000,
21
+ "sliding_window": 4096,
22
+ "tie_word_embeddings": false,
23
+ "torch_dtype": "bfloat16",
24
+ "transformers_version": "4.51.3",
25
+ "use_cache": false,
26
+ "use_mrope": false,
27
+ "use_sliding_window": false,
28
+ "vocab_size": 151936
29
+ }
checkpoint-100/generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 151646,
4
+ "do_sample": true,
5
+ "eos_token_id": 151643,
6
+ "temperature": 0.6,
7
+ "top_p": 0.95,
8
+ "transformers_version": "4.51.3"
9
+ }
checkpoint-100/global_step100/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:1670bd21d8cc03f32d0058e1f42c4a5042ff3bdfcb1cf5e9d6d27621ae550fbe
3
+ size 5331274140
checkpoint-100/global_step100/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:908a404bdf130542c101e1f908abd30cb1b205cd63e2ba4650f0c58d1179e4e8
3
+ size 5331276572
checkpoint-100/global_step100/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:b12153d3157f6bbce7e6fbf3d7f4bdb411db9a5493bb62f824042b10d1772e34
3
+ size 5331276892
checkpoint-100/global_step100/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:d1679bd7d909fa935484b80b16539d66bc89c72dc3c17b2cd6fbaf02f9b7dc01
3
+ size 5331273884
checkpoint-100/global_step100/mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69cbbae55733876e37fecae86b20bf7b09bbe36a1e60c1708f1f836c5e9028c6
3
+ size 3554267640
checkpoint-100/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step100
checkpoint-100/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4f456ef2898256a47b964478edbfa835c00a4c9ab5104dc3179ee0449604108
3
+ size 3554214752
checkpoint-100/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:888608037c15bb3968f3025caaa4aa0e62181f5e9f09e04aa188115c28fe8715
3
+ size 14960
checkpoint-100/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1f522d913077fd1366054cca2b40f4be35b08b338ddadab1cc1c30dd1820b71
3
+ size 14960
checkpoint-100/rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4744dca907a85a988cea74e47c179f1da08ca763ef98870d63ecddbd95a9b97e
3
+ size 14960
checkpoint-100/rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51ab4ed88c6dddf307cba8f9522e122811b83d254bff673bb15ccbfbeed289be
3
+ size 14960
checkpoint-100/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b0d6ed3e119807e165d53a18d2ec22befd359c1465f6aeaa69d1d7eb1452246
3
+ size 1064
checkpoint-100/special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|begin▁of▁sentence|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|end▁of▁sentence|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|end▁of▁sentence|>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
checkpoint-100/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4256422650d141f228fe954acee98679da412984c29a569877eefd3af69315a
3
+ size 11422959
checkpoint-100/tokenizer_config.json ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "151643": {
7
+ "content": "<|end▁of▁sentence|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "151644": {
15
+ "content": "<|User|>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": false
21
+ },
22
+ "151645": {
23
+ "content": "<|Assistant|>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": false
29
+ },
30
+ "151646": {
31
+ "content": "<|begin▁of▁sentence|>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ },
38
+ "151647": {
39
+ "content": "<|EOT|>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": false
45
+ },
46
+ "151648": {
47
+ "content": "<think>",
48
+ "lstrip": false,
49
+ "normalized": false,
50
+ "rstrip": false,
51
+ "single_word": false,
52
+ "special": false
53
+ },
54
+ "151649": {
55
+ "content": "</think>",
56
+ "lstrip": false,
57
+ "normalized": false,
58
+ "rstrip": false,
59
+ "single_word": false,
60
+ "special": false
61
+ },
62
+ "151650": {
63
+ "content": "<|quad_start|>",
64
+ "lstrip": false,
65
+ "normalized": false,
66
+ "rstrip": false,
67
+ "single_word": false,
68
+ "special": true
69
+ },
70
+ "151651": {
71
+ "content": "<|quad_end|>",
72
+ "lstrip": false,
73
+ "normalized": false,
74
+ "rstrip": false,
75
+ "single_word": false,
76
+ "special": true
77
+ },
78
+ "151652": {
79
+ "content": "<|vision_start|>",
80
+ "lstrip": false,
81
+ "normalized": false,
82
+ "rstrip": false,
83
+ "single_word": false,
84
+ "special": true
85
+ },
86
+ "151653": {
87
+ "content": "<|vision_end|>",
88
+ "lstrip": false,
89
+ "normalized": false,
90
+ "rstrip": false,
91
+ "single_word": false,
92
+ "special": true
93
+ },
94
+ "151654": {
95
+ "content": "<|vision_pad|>",
96
+ "lstrip": false,
97
+ "normalized": false,
98
+ "rstrip": false,
99
+ "single_word": false,
100
+ "special": true
101
+ },
102
+ "151655": {
103
+ "content": "<|image_pad|>",
104
+ "lstrip": false,
105
+ "normalized": false,
106
+ "rstrip": false,
107
+ "single_word": false,
108
+ "special": true
109
+ },
110
+ "151656": {
111
+ "content": "<|video_pad|>",
112
+ "lstrip": false,
113
+ "normalized": false,
114
+ "rstrip": false,
115
+ "single_word": false,
116
+ "special": true
117
+ },
118
+ "151657": {
119
+ "content": "<tool_call>",
120
+ "lstrip": false,
121
+ "normalized": false,
122
+ "rstrip": false,
123
+ "single_word": false,
124
+ "special": false
125
+ },
126
+ "151658": {
127
+ "content": "</tool_call>",
128
+ "lstrip": false,
129
+ "normalized": false,
130
+ "rstrip": false,
131
+ "single_word": false,
132
+ "special": false
133
+ },
134
+ "151659": {
135
+ "content": "<|fim_prefix|>",
136
+ "lstrip": false,
137
+ "normalized": false,
138
+ "rstrip": false,
139
+ "single_word": false,
140
+ "special": false
141
+ },
142
+ "151660": {
143
+ "content": "<|fim_middle|>",
144
+ "lstrip": false,
145
+ "normalized": false,
146
+ "rstrip": false,
147
+ "single_word": false,
148
+ "special": false
149
+ },
150
+ "151661": {
151
+ "content": "<|fim_suffix|>",
152
+ "lstrip": false,
153
+ "normalized": false,
154
+ "rstrip": false,
155
+ "single_word": false,
156
+ "special": false
157
+ },
158
+ "151662": {
159
+ "content": "<|fim_pad|>",
160
+ "lstrip": false,
161
+ "normalized": false,
162
+ "rstrip": false,
163
+ "single_word": false,
164
+ "special": false
165
+ },
166
+ "151663": {
167
+ "content": "<|repo_name|>",
168
+ "lstrip": false,
169
+ "normalized": false,
170
+ "rstrip": false,
171
+ "single_word": false,
172
+ "special": false
173
+ },
174
+ "151664": {
175
+ "content": "<|file_sep|>",
176
+ "lstrip": false,
177
+ "normalized": false,
178
+ "rstrip": false,
179
+ "single_word": false,
180
+ "special": false
181
+ }
182
+ },
183
+ "bos_token": "<|begin▁of▁sentence|>",
184
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set ns = namespace(is_first=false, is_tool=false, is_output_first=true, system_prompt='') %}{%- for message in messages %}{%- if message['role'] == 'system' %}{% set ns.system_prompt = message['content'] %}{%- endif %}{%- endfor %}{{bos_token}}{{ns.system_prompt}}{%- for message in messages %}{%- if message['role'] == 'user' %}{%- set ns.is_tool = false -%}{{'<|User|>' + message['content']}}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is none %}{%- set ns.is_tool = false -%}{%- for tool in message['tool_calls']%}{%- if not ns.is_first %}{{'<|Assistant|><|tool▁calls▁begin|><|tool▁call▁begin��>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\\n' + '```json' + '\\n' + tool['function']['arguments'] + '\\n' + '```' + '<|tool▁call▁end|>'}}{%- set ns.is_first = true -%}{%- else %}{{'\\n' + '<|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\\n' + '```json' + '\\n' + tool['function']['arguments'] + '\\n' + '```' + '<|tool▁call▁end|>'}}{{'<|tool▁calls▁end|><|end▁of▁sentence|>'}}{%- endif %}{%- endfor %}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is not none %}{%- if ns.is_tool %}{{'<|tool▁outputs▁end|>' + message['content'] + '<|end▁of▁sentence|>'}}{%- set ns.is_tool = false -%}{%- else %}{% set content = message['content'] %}{% if '</think>' in content %}{% set content = content.split('</think>')[-1] %}{% endif %}{{'<|Assistant|>' + content + '<|end▁of▁sentence|>'}}{%- endif %}{%- endif %}{%- if message['role'] == 'tool' %}{%- set ns.is_tool = true -%}{%- if ns.is_output_first %}{{'<|tool▁outputs▁begin|><|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- set ns.is_output_first = false %}{%- else %}{{'\\n<|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- endif %}{%- endif %}{%- endfor -%}{% if ns.is_tool %}{{'<|tool▁outputs▁end|>'}}{% endif %}{% if add_generation_prompt and not ns.is_tool %}{{'<|Assistant|><think>\\n'}}{% endif %}",
185
+ "clean_up_tokenization_spaces": false,
186
+ "eos_token": "<|end▁of▁sentence|>",
187
+ "extra_special_tokens": {},
188
+ "legacy": true,
189
+ "model_max_length": 16384,
190
+ "pad_token": "<|end▁of▁sentence|>",
191
+ "sp_model_kwargs": {},
192
+ "tokenizer_class": "LlamaTokenizerFast",
193
+ "unk_token": null,
194
+ "use_default_system_prompt": false
195
+ }
checkpoint-100/trainer_state.json ADDED
@@ -0,0 +1,2534 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 0.11428571428571428,
6
+ "eval_steps": 500,
7
+ "global_step": 100,
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.671875,
19
+ "completions/max_length": 2048.0,
20
+ "completions/max_terminated_length": 1734.0,
21
+ "completions/mean_length": 1702.03125,
22
+ "completions/mean_terminated_length": 993.6190795898438,
23
+ "completions/min_length": 483.0,
24
+ "completions/min_terminated_length": 483.0,
25
+ "epoch": 0.001142857142857143,
26
+ "frac_reward_zero_std": 0.0,
27
+ "grad_norm": 0.28377610445022583,
28
+ "learning_rate": 0.0,
29
+ "loss": -0.0,
30
+ "num_tokens": 118418.0,
31
+ "reward": -0.09800112247467041,
32
+ "reward_std": 0.3028089702129364,
33
+ "rewards/cosine_scaled_reward/mean": -0.09800112992525101,
34
+ "rewards/cosine_scaled_reward/std": 0.37953105568885803,
35
+ "step": 1
36
+ },
37
+ {
38
+ "clip_ratio/high_max": 0.0,
39
+ "clip_ratio/high_mean": 0.0,
40
+ "clip_ratio/low_mean": 0.0,
41
+ "clip_ratio/low_min": 0.0,
42
+ "clip_ratio/region_mean": 0.0,
43
+ "completions/clipped_ratio": 0.71875,
44
+ "completions/max_length": 2048.0,
45
+ "completions/max_terminated_length": 1894.0,
46
+ "completions/mean_length": 1738.90625,
47
+ "completions/mean_terminated_length": 949.0,
48
+ "completions/min_length": 435.0,
49
+ "completions/min_terminated_length": 435.0,
50
+ "epoch": 0.002285714285714286,
51
+ "frac_reward_zero_std": 0.0,
52
+ "grad_norm": 0.24221572279930115,
53
+ "learning_rate": 2e-08,
54
+ "loss": -0.0,
55
+ "num_tokens": 239748.0,
56
+ "reward": 0.020556632429361343,
57
+ "reward_std": 0.3545936942100525,
58
+ "rewards/cosine_scaled_reward/mean": 0.020556632429361343,
59
+ "rewards/cosine_scaled_reward/std": 0.4492928683757782,
60
+ "step": 2
61
+ },
62
+ {
63
+ "clip_ratio/high_max": 0.0,
64
+ "clip_ratio/high_mean": 0.0,
65
+ "clip_ratio/low_mean": 0.0,
66
+ "clip_ratio/low_min": 0.0,
67
+ "clip_ratio/region_mean": 0.0,
68
+ "completions/clipped_ratio": 0.921875,
69
+ "completions/max_length": 2048.0,
70
+ "completions/max_terminated_length": 1542.0,
71
+ "completions/mean_length": 1964.078125,
72
+ "completions/mean_terminated_length": 973.7999877929688,
73
+ "completions/min_length": 733.0,
74
+ "completions/min_terminated_length": 733.0,
75
+ "epoch": 0.0034285714285714284,
76
+ "frac_reward_zero_std": 0.0,
77
+ "grad_norm": 0.2472974807024002,
78
+ "learning_rate": 4e-08,
79
+ "loss": 0.0,
80
+ "num_tokens": 375921.0,
81
+ "reward": -0.20954538881778717,
82
+ "reward_std": 0.13813795149326324,
83
+ "rewards/cosine_scaled_reward/mean": -0.20954540371894836,
84
+ "rewards/cosine_scaled_reward/std": 0.16814909875392914,
85
+ "step": 3
86
+ },
87
+ {
88
+ "clip_ratio/high_max": 0.0,
89
+ "clip_ratio/high_mean": 0.0,
90
+ "clip_ratio/low_mean": 0.0,
91
+ "clip_ratio/low_min": 0.0,
92
+ "clip_ratio/region_mean": 0.0,
93
+ "completions/clipped_ratio": 0.484375,
94
+ "completions/max_length": 2048.0,
95
+ "completions/max_terminated_length": 2010.0,
96
+ "completions/mean_length": 1555.6875,
97
+ "completions/mean_terminated_length": 1093.212158203125,
98
+ "completions/min_length": 502.0,
99
+ "completions/min_terminated_length": 502.0,
100
+ "epoch": 0.004571428571428572,
101
+ "frac_reward_zero_std": 0.0,
102
+ "grad_norm": 0.2868657112121582,
103
+ "learning_rate": 6e-08,
104
+ "loss": -0.0,
105
+ "num_tokens": 485293.0,
106
+ "reward": -0.12192361056804657,
107
+ "reward_std": 0.31710442900657654,
108
+ "rewards/cosine_scaled_reward/mean": -0.12192361056804657,
109
+ "rewards/cosine_scaled_reward/std": 0.35428565740585327,
110
+ "step": 4
111
+ },
112
+ {
113
+ "clip_ratio/high_max": 0.0,
114
+ "clip_ratio/high_mean": 0.0,
115
+ "clip_ratio/low_mean": 0.0,
116
+ "clip_ratio/low_min": 0.0,
117
+ "clip_ratio/region_mean": 0.0,
118
+ "completions/clipped_ratio": 0.875,
119
+ "completions/max_length": 2048.0,
120
+ "completions/max_terminated_length": 1758.0,
121
+ "completions/mean_length": 1958.5625,
122
+ "completions/mean_terminated_length": 1332.5,
123
+ "completions/min_length": 932.0,
124
+ "completions/min_terminated_length": 932.0,
125
+ "epoch": 0.005714285714285714,
126
+ "frac_reward_zero_std": 0.0,
127
+ "grad_norm": 0.2460148185491562,
128
+ "learning_rate": 8e-08,
129
+ "loss": -0.0,
130
+ "num_tokens": 621457.0,
131
+ "reward": -0.21145480871200562,
132
+ "reward_std": 0.14890719950199127,
133
+ "rewards/cosine_scaled_reward/mean": -0.21145479381084442,
134
+ "rewards/cosine_scaled_reward/std": 0.20399661362171173,
135
+ "step": 5
136
+ },
137
+ {
138
+ "clip_ratio/high_max": 0.0,
139
+ "clip_ratio/high_mean": 0.0,
140
+ "clip_ratio/low_mean": 0.0,
141
+ "clip_ratio/low_min": 0.0,
142
+ "clip_ratio/region_mean": 0.0,
143
+ "completions/clipped_ratio": 0.875,
144
+ "completions/max_length": 2048.0,
145
+ "completions/max_terminated_length": 1670.0,
146
+ "completions/mean_length": 1908.375,
147
+ "completions/mean_terminated_length": 931.0,
148
+ "completions/min_length": 593.0,
149
+ "completions/min_terminated_length": 593.0,
150
+ "epoch": 0.006857142857142857,
151
+ "frac_reward_zero_std": 0.0,
152
+ "grad_norm": 0.26549720764160156,
153
+ "learning_rate": 1e-07,
154
+ "loss": -0.0,
155
+ "num_tokens": 755241.0,
156
+ "reward": -0.2408866286277771,
157
+ "reward_std": 0.16572487354278564,
158
+ "rewards/cosine_scaled_reward/mean": -0.2408866286277771,
159
+ "rewards/cosine_scaled_reward/std": 0.17492830753326416,
160
+ "step": 6
161
+ },
162
+ {
163
+ "clip_ratio/high_max": 0.0,
164
+ "clip_ratio/high_mean": 0.0,
165
+ "clip_ratio/low_mean": 0.0,
166
+ "clip_ratio/low_min": 0.0,
167
+ "clip_ratio/region_mean": 0.0,
168
+ "completions/clipped_ratio": 0.8125,
169
+ "completions/max_length": 2048.0,
170
+ "completions/max_terminated_length": 1955.0,
171
+ "completions/mean_length": 1889.296875,
172
+ "completions/mean_terminated_length": 1201.5833740234375,
173
+ "completions/min_length": 396.0,
174
+ "completions/min_terminated_length": 396.0,
175
+ "epoch": 0.008,
176
+ "frac_reward_zero_std": 0.0,
177
+ "grad_norm": 0.23518230020999908,
178
+ "learning_rate": 1.2e-07,
179
+ "loss": 0.0,
180
+ "num_tokens": 886564.0,
181
+ "reward": -0.16087877750396729,
182
+ "reward_std": 0.24579641222953796,
183
+ "rewards/cosine_scaled_reward/mean": -0.16087877750396729,
184
+ "rewards/cosine_scaled_reward/std": 0.37339961528778076,
185
+ "step": 7
186
+ },
187
+ {
188
+ "clip_ratio/high_max": 0.0,
189
+ "clip_ratio/high_mean": 0.0,
190
+ "clip_ratio/low_mean": 0.0,
191
+ "clip_ratio/low_min": 0.0,
192
+ "clip_ratio/region_mean": 0.0,
193
+ "completions/clipped_ratio": 0.71875,
194
+ "completions/max_length": 2048.0,
195
+ "completions/max_terminated_length": 1920.0,
196
+ "completions/mean_length": 1751.578125,
197
+ "completions/mean_terminated_length": 994.0555419921875,
198
+ "completions/min_length": 330.0,
199
+ "completions/min_terminated_length": 330.0,
200
+ "epoch": 0.009142857142857144,
201
+ "frac_reward_zero_std": 0.0,
202
+ "grad_norm": 0.2354528158903122,
203
+ "learning_rate": 1.4e-07,
204
+ "loss": 0.0,
205
+ "num_tokens": 1009081.0,
206
+ "reward": -0.023812226951122284,
207
+ "reward_std": 0.2823081314563751,
208
+ "rewards/cosine_scaled_reward/mean": -0.02381223440170288,
209
+ "rewards/cosine_scaled_reward/std": 0.4484662115573883,
210
+ "step": 8
211
+ },
212
+ {
213
+ "clip_ratio/high_max": 0.0,
214
+ "clip_ratio/high_mean": 0.0,
215
+ "clip_ratio/low_mean": 0.0,
216
+ "clip_ratio/low_min": 0.0,
217
+ "clip_ratio/region_mean": 0.0,
218
+ "completions/clipped_ratio": 0.9375,
219
+ "completions/max_length": 2048.0,
220
+ "completions/max_terminated_length": 1889.0,
221
+ "completions/mean_length": 2000.59375,
222
+ "completions/mean_terminated_length": 1289.5,
223
+ "completions/min_length": 903.0,
224
+ "completions/min_terminated_length": 903.0,
225
+ "epoch": 0.010285714285714285,
226
+ "frac_reward_zero_std": 0.0,
227
+ "grad_norm": 0.24302220344543457,
228
+ "learning_rate": 1.6e-07,
229
+ "loss": 0.0,
230
+ "num_tokens": 1148575.0,
231
+ "reward": -0.2453702688217163,
232
+ "reward_std": 0.18811637163162231,
233
+ "rewards/cosine_scaled_reward/mean": -0.2453702688217163,
234
+ "rewards/cosine_scaled_reward/std": 0.22203005850315094,
235
+ "step": 9
236
+ },
237
+ {
238
+ "clip_ratio/high_max": 0.0,
239
+ "clip_ratio/high_mean": 0.0,
240
+ "clip_ratio/low_mean": 0.0,
241
+ "clip_ratio/low_min": 0.0,
242
+ "clip_ratio/region_mean": 0.0,
243
+ "completions/clipped_ratio": 0.703125,
244
+ "completions/max_length": 2048.0,
245
+ "completions/max_terminated_length": 1739.0,
246
+ "completions/mean_length": 1701.140625,
247
+ "completions/mean_terminated_length": 879.631591796875,
248
+ "completions/min_length": 484.0,
249
+ "completions/min_terminated_length": 484.0,
250
+ "epoch": 0.011428571428571429,
251
+ "frac_reward_zero_std": 0.0,
252
+ "grad_norm": 0.25642141699790955,
253
+ "learning_rate": 1.8e-07,
254
+ "loss": -0.0,
255
+ "num_tokens": 1268280.0,
256
+ "reward": -0.15177705883979797,
257
+ "reward_std": 0.2125300019979477,
258
+ "rewards/cosine_scaled_reward/mean": -0.15177705883979797,
259
+ "rewards/cosine_scaled_reward/std": 0.3240113854408264,
260
+ "step": 10
261
+ },
262
+ {
263
+ "clip_ratio/high_max": 0.0,
264
+ "clip_ratio/high_mean": 0.0,
265
+ "clip_ratio/low_mean": 0.0,
266
+ "clip_ratio/low_min": 0.0,
267
+ "clip_ratio/region_mean": 0.0,
268
+ "completions/clipped_ratio": 0.890625,
269
+ "completions/max_length": 2048.0,
270
+ "completions/max_terminated_length": 1683.0,
271
+ "completions/mean_length": 1950.609375,
272
+ "completions/mean_terminated_length": 1157.571533203125,
273
+ "completions/min_length": 584.0,
274
+ "completions/min_terminated_length": 584.0,
275
+ "epoch": 0.012571428571428572,
276
+ "frac_reward_zero_std": 0.0,
277
+ "grad_norm": 0.24372951686382294,
278
+ "learning_rate": 2e-07,
279
+ "loss": 0.0,
280
+ "num_tokens": 1404791.0,
281
+ "reward": -0.23502977192401886,
282
+ "reward_std": 0.18896539509296417,
283
+ "rewards/cosine_scaled_reward/mean": -0.23502977192401886,
284
+ "rewards/cosine_scaled_reward/std": 0.24224351346492767,
285
+ "step": 11
286
+ },
287
+ {
288
+ "clip_ratio/high_max": 0.0,
289
+ "clip_ratio/high_mean": 0.0,
290
+ "clip_ratio/low_mean": 0.0,
291
+ "clip_ratio/low_min": 0.0,
292
+ "clip_ratio/region_mean": 0.0,
293
+ "completions/clipped_ratio": 0.640625,
294
+ "completions/max_length": 2048.0,
295
+ "completions/max_terminated_length": 1944.0,
296
+ "completions/mean_length": 1751.03125,
297
+ "completions/mean_terminated_length": 1221.6522216796875,
298
+ "completions/min_length": 489.0,
299
+ "completions/min_terminated_length": 489.0,
300
+ "epoch": 0.013714285714285714,
301
+ "frac_reward_zero_std": 0.0,
302
+ "grad_norm": 0.28422027826309204,
303
+ "learning_rate": 2.1999999999999998e-07,
304
+ "loss": -0.0,
305
+ "num_tokens": 1527801.0,
306
+ "reward": -0.14280016720294952,
307
+ "reward_std": 0.32843896746635437,
308
+ "rewards/cosine_scaled_reward/mean": -0.14280015230178833,
309
+ "rewards/cosine_scaled_reward/std": 0.41895967721939087,
310
+ "step": 12
311
+ },
312
+ {
313
+ "clip_ratio/high_max": 0.0,
314
+ "clip_ratio/high_mean": 0.0,
315
+ "clip_ratio/low_mean": 0.0,
316
+ "clip_ratio/low_min": 0.0,
317
+ "clip_ratio/region_mean": 0.0,
318
+ "completions/clipped_ratio": 0.75,
319
+ "completions/max_length": 2048.0,
320
+ "completions/max_terminated_length": 1793.0,
321
+ "completions/mean_length": 1834.453125,
322
+ "completions/mean_terminated_length": 1193.8125,
323
+ "completions/min_length": 783.0,
324
+ "completions/min_terminated_length": 783.0,
325
+ "epoch": 0.014857142857142857,
326
+ "frac_reward_zero_std": 0.0,
327
+ "grad_norm": 0.24033738672733307,
328
+ "learning_rate": 2.4e-07,
329
+ "loss": 0.0,
330
+ "num_tokens": 1656246.0,
331
+ "reward": -0.17057427763938904,
332
+ "reward_std": 0.24429668486118317,
333
+ "rewards/cosine_scaled_reward/mean": -0.17057427763938904,
334
+ "rewards/cosine_scaled_reward/std": 0.27816399931907654,
335
+ "step": 13
336
+ },
337
+ {
338
+ "clip_ratio/high_max": 0.0,
339
+ "clip_ratio/high_mean": 0.0,
340
+ "clip_ratio/low_mean": 0.0,
341
+ "clip_ratio/low_min": 0.0,
342
+ "clip_ratio/region_mean": 0.0,
343
+ "completions/clipped_ratio": 0.734375,
344
+ "completions/max_length": 2048.0,
345
+ "completions/max_terminated_length": 1474.0,
346
+ "completions/mean_length": 1800.65625,
347
+ "completions/mean_terminated_length": 1116.823486328125,
348
+ "completions/min_length": 495.0,
349
+ "completions/min_terminated_length": 495.0,
350
+ "epoch": 0.016,
351
+ "frac_reward_zero_std": 0.0,
352
+ "grad_norm": 0.2312558889389038,
353
+ "learning_rate": 2.6e-07,
354
+ "loss": 0.0,
355
+ "num_tokens": 1782096.0,
356
+ "reward": -0.11817245185375214,
357
+ "reward_std": 0.24491220712661743,
358
+ "rewards/cosine_scaled_reward/mean": -0.11817245930433273,
359
+ "rewards/cosine_scaled_reward/std": 0.3942086696624756,
360
+ "step": 14
361
+ },
362
+ {
363
+ "clip_ratio/high_max": 0.0,
364
+ "clip_ratio/high_mean": 0.0,
365
+ "clip_ratio/low_mean": 0.0,
366
+ "clip_ratio/low_min": 0.0,
367
+ "clip_ratio/region_mean": 0.0,
368
+ "completions/clipped_ratio": 0.71875,
369
+ "completions/max_length": 2048.0,
370
+ "completions/max_terminated_length": 1636.0,
371
+ "completions/mean_length": 1692.828125,
372
+ "completions/mean_terminated_length": 785.1666870117188,
373
+ "completions/min_length": 438.0,
374
+ "completions/min_terminated_length": 438.0,
375
+ "epoch": 0.017142857142857144,
376
+ "frac_reward_zero_std": 0.0,
377
+ "grad_norm": 0.2563658654689789,
378
+ "learning_rate": 2.8e-07,
379
+ "loss": -0.0,
380
+ "num_tokens": 1901357.0,
381
+ "reward": -0.027107469737529755,
382
+ "reward_std": 0.1853453516960144,
383
+ "rewards/cosine_scaled_reward/mean": -0.027107462286949158,
384
+ "rewards/cosine_scaled_reward/std": 0.4734213352203369,
385
+ "step": 15
386
+ },
387
+ {
388
+ "clip_ratio/high_max": 0.0,
389
+ "clip_ratio/high_mean": 0.0,
390
+ "clip_ratio/low_mean": 0.0,
391
+ "clip_ratio/low_min": 0.0,
392
+ "clip_ratio/region_mean": 0.0,
393
+ "completions/clipped_ratio": 1.0,
394
+ "completions/max_length": 2048.0,
395
+ "completions/max_terminated_length": 0.0,
396
+ "completions/mean_length": 2048.0,
397
+ "completions/mean_terminated_length": 0.0,
398
+ "completions/min_length": 2048.0,
399
+ "completions/min_terminated_length": 0.0,
400
+ "epoch": 0.018285714285714287,
401
+ "frac_reward_zero_std": 0.0,
402
+ "grad_norm": 0.24149107933044434,
403
+ "learning_rate": 3e-07,
404
+ "loss": -0.0,
405
+ "num_tokens": 2042869.0,
406
+ "reward": -0.2542623281478882,
407
+ "reward_std": 0.14302438497543335,
408
+ "rewards/cosine_scaled_reward/mean": -0.2542623281478882,
409
+ "rewards/cosine_scaled_reward/std": 0.160969540476799,
410
+ "step": 16
411
+ },
412
+ {
413
+ "clip_ratio/high_max": 0.0,
414
+ "clip_ratio/high_mean": 0.0,
415
+ "clip_ratio/low_mean": 0.0,
416
+ "clip_ratio/low_min": 0.0,
417
+ "clip_ratio/region_mean": 0.0,
418
+ "completions/clipped_ratio": 0.578125,
419
+ "completions/max_length": 2048.0,
420
+ "completions/max_terminated_length": 1827.0,
421
+ "completions/mean_length": 1548.75,
422
+ "completions/mean_terminated_length": 864.5925903320312,
423
+ "completions/min_length": 357.0,
424
+ "completions/min_terminated_length": 357.0,
425
+ "epoch": 0.019428571428571427,
426
+ "frac_reward_zero_std": 0.0,
427
+ "grad_norm": 0.31088724732398987,
428
+ "learning_rate": 3.2e-07,
429
+ "loss": 0.0,
430
+ "num_tokens": 2152509.0,
431
+ "reward": -0.12113451957702637,
432
+ "reward_std": 0.284165620803833,
433
+ "rewards/cosine_scaled_reward/mean": -0.12113452702760696,
434
+ "rewards/cosine_scaled_reward/std": 0.4259316623210907,
435
+ "step": 17
436
+ },
437
+ {
438
+ "clip_ratio/high_max": 0.0,
439
+ "clip_ratio/high_mean": 0.0,
440
+ "clip_ratio/low_mean": 0.0,
441
+ "clip_ratio/low_min": 0.0,
442
+ "clip_ratio/region_mean": 0.0,
443
+ "completions/clipped_ratio": 0.75,
444
+ "completions/max_length": 2048.0,
445
+ "completions/max_terminated_length": 1899.0,
446
+ "completions/mean_length": 1793.03125,
447
+ "completions/mean_terminated_length": 1028.125,
448
+ "completions/min_length": 531.0,
449
+ "completions/min_terminated_length": 531.0,
450
+ "epoch": 0.02057142857142857,
451
+ "frac_reward_zero_std": 0.0,
452
+ "grad_norm": 0.2451843023300171,
453
+ "learning_rate": 3.4000000000000003e-07,
454
+ "loss": 0.0,
455
+ "num_tokens": 2277639.0,
456
+ "reward": -0.18317042291164398,
457
+ "reward_std": 0.20634235441684723,
458
+ "rewards/cosine_scaled_reward/mean": -0.18317043781280518,
459
+ "rewards/cosine_scaled_reward/std": 0.27781662344932556,
460
+ "step": 18
461
+ },
462
+ {
463
+ "clip_ratio/high_max": 0.0,
464
+ "clip_ratio/high_mean": 0.0,
465
+ "clip_ratio/low_mean": 0.0,
466
+ "clip_ratio/low_min": 0.0,
467
+ "clip_ratio/region_mean": 0.0,
468
+ "completions/clipped_ratio": 0.703125,
469
+ "completions/max_length": 2048.0,
470
+ "completions/max_terminated_length": 1633.0,
471
+ "completions/mean_length": 1735.984375,
472
+ "completions/mean_terminated_length": 997.0,
473
+ "completions/min_length": 462.0,
474
+ "completions/min_terminated_length": 462.0,
475
+ "epoch": 0.021714285714285714,
476
+ "frac_reward_zero_std": 0.0,
477
+ "grad_norm": 0.24677637219429016,
478
+ "learning_rate": 3.6e-07,
479
+ "loss": 0.0,
480
+ "num_tokens": 2399998.0,
481
+ "reward": -0.04996331408619881,
482
+ "reward_std": 0.2841629385948181,
483
+ "rewards/cosine_scaled_reward/mean": -0.04996330291032791,
484
+ "rewards/cosine_scaled_reward/std": 0.4186851680278778,
485
+ "step": 19
486
+ },
487
+ {
488
+ "clip_ratio/high_max": 0.0,
489
+ "clip_ratio/high_mean": 0.0,
490
+ "clip_ratio/low_mean": 0.0,
491
+ "clip_ratio/low_min": 0.0,
492
+ "clip_ratio/region_mean": 0.0,
493
+ "completions/clipped_ratio": 0.640625,
494
+ "completions/max_length": 2048.0,
495
+ "completions/max_terminated_length": 1643.0,
496
+ "completions/mean_length": 1614.890625,
497
+ "completions/mean_terminated_length": 842.8261108398438,
498
+ "completions/min_length": 411.0,
499
+ "completions/min_terminated_length": 411.0,
500
+ "epoch": 0.022857142857142857,
501
+ "frac_reward_zero_std": 0.0,
502
+ "grad_norm": 0.2543003559112549,
503
+ "learning_rate": 3.7999999999999996e-07,
504
+ "loss": -0.0,
505
+ "num_tokens": 2514703.0,
506
+ "reward": -0.09282197058200836,
507
+ "reward_std": 0.2568933367729187,
508
+ "rewards/cosine_scaled_reward/mean": -0.09282197058200836,
509
+ "rewards/cosine_scaled_reward/std": 0.4104878604412079,
510
+ "step": 20
511
+ },
512
+ {
513
+ "clip_ratio/high_max": 0.0,
514
+ "clip_ratio/high_mean": 0.0,
515
+ "clip_ratio/low_mean": 0.0,
516
+ "clip_ratio/low_min": 0.0,
517
+ "clip_ratio/region_mean": 0.0,
518
+ "completions/clipped_ratio": 0.71875,
519
+ "completions/max_length": 2048.0,
520
+ "completions/max_terminated_length": 1988.0,
521
+ "completions/mean_length": 1786.734375,
522
+ "completions/mean_terminated_length": 1119.0555419921875,
523
+ "completions/min_length": 348.0,
524
+ "completions/min_terminated_length": 348.0,
525
+ "epoch": 0.024,
526
+ "frac_reward_zero_std": 0.0,
527
+ "grad_norm": 0.3147278130054474,
528
+ "learning_rate": 4e-07,
529
+ "loss": 0.0,
530
+ "num_tokens": 2639862.0,
531
+ "reward": -0.16029146313667297,
532
+ "reward_std": 0.2322564721107483,
533
+ "rewards/cosine_scaled_reward/mean": -0.16029146313667297,
534
+ "rewards/cosine_scaled_reward/std": 0.36191171407699585,
535
+ "step": 21
536
+ },
537
+ {
538
+ "clip_ratio/high_max": 0.0,
539
+ "clip_ratio/high_mean": 0.0,
540
+ "clip_ratio/low_mean": 0.0,
541
+ "clip_ratio/low_min": 0.0,
542
+ "clip_ratio/region_mean": 0.0,
543
+ "completions/clipped_ratio": 0.40625,
544
+ "completions/max_length": 2048.0,
545
+ "completions/max_terminated_length": 1833.0,
546
+ "completions/mean_length": 1300.484375,
547
+ "completions/mean_terminated_length": 789.0263061523438,
548
+ "completions/min_length": 287.0,
549
+ "completions/min_terminated_length": 287.0,
550
+ "epoch": 0.025142857142857144,
551
+ "frac_reward_zero_std": 0.0,
552
+ "grad_norm": 0.32522445917129517,
553
+ "learning_rate": 4.1999999999999995e-07,
554
+ "loss": 0.0,
555
+ "num_tokens": 2732109.0,
556
+ "reward": 0.0033364146947860718,
557
+ "reward_std": 0.18878400325775146,
558
+ "rewards/cosine_scaled_reward/mean": 0.0033364109694957733,
559
+ "rewards/cosine_scaled_reward/std": 0.45390966534614563,
560
+ "step": 22
561
+ },
562
+ {
563
+ "clip_ratio/high_max": 0.0,
564
+ "clip_ratio/high_mean": 0.0,
565
+ "clip_ratio/low_mean": 0.0,
566
+ "clip_ratio/low_min": 0.0,
567
+ "clip_ratio/region_mean": 0.0,
568
+ "completions/clipped_ratio": 0.59375,
569
+ "completions/max_length": 2048.0,
570
+ "completions/max_terminated_length": 1920.0,
571
+ "completions/mean_length": 1641.03125,
572
+ "completions/mean_terminated_length": 1046.2308349609375,
573
+ "completions/min_length": 422.0,
574
+ "completions/min_terminated_length": 422.0,
575
+ "epoch": 0.026285714285714287,
576
+ "frac_reward_zero_std": 0.0,
577
+ "grad_norm": 0.28244850039482117,
578
+ "learning_rate": 4.3999999999999997e-07,
579
+ "loss": 0.0,
580
+ "num_tokens": 2847927.0,
581
+ "reward": -0.21077856421470642,
582
+ "reward_std": 0.24399788677692413,
583
+ "rewards/cosine_scaled_reward/mean": -0.21077856421470642,
584
+ "rewards/cosine_scaled_reward/std": 0.2925592362880707,
585
+ "step": 23
586
+ },
587
+ {
588
+ "clip_ratio/high_max": 0.0,
589
+ "clip_ratio/high_mean": 0.0,
590
+ "clip_ratio/low_mean": 0.0,
591
+ "clip_ratio/low_min": 0.0,
592
+ "clip_ratio/region_mean": 0.0,
593
+ "completions/clipped_ratio": 0.71875,
594
+ "completions/max_length": 2048.0,
595
+ "completions/max_terminated_length": 1965.0,
596
+ "completions/mean_length": 1789.59375,
597
+ "completions/mean_terminated_length": 1129.2222900390625,
598
+ "completions/min_length": 560.0,
599
+ "completions/min_terminated_length": 560.0,
600
+ "epoch": 0.027428571428571427,
601
+ "frac_reward_zero_std": 0.0,
602
+ "grad_norm": 0.24896308779716492,
603
+ "learning_rate": 4.6e-07,
604
+ "loss": -0.0,
605
+ "num_tokens": 2973389.0,
606
+ "reward": -0.1665852814912796,
607
+ "reward_std": 0.307574987411499,
608
+ "rewards/cosine_scaled_reward/mean": -0.1665852665901184,
609
+ "rewards/cosine_scaled_reward/std": 0.4072873294353485,
610
+ "step": 24
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.65625,
619
+ "completions/max_length": 2048.0,
620
+ "completions/max_terminated_length": 1851.0,
621
+ "completions/mean_length": 1696.40625,
622
+ "completions/mean_terminated_length": 1025.181884765625,
623
+ "completions/min_length": 434.0,
624
+ "completions/min_terminated_length": 434.0,
625
+ "epoch": 0.02857142857142857,
626
+ "frac_reward_zero_std": 0.0,
627
+ "grad_norm": 0.262716144323349,
628
+ "learning_rate": 4.8e-07,
629
+ "loss": 0.0,
630
+ "num_tokens": 3092255.0,
631
+ "reward": -0.14361324906349182,
632
+ "reward_std": 0.3466429114341736,
633
+ "rewards/cosine_scaled_reward/mean": -0.14361326396465302,
634
+ "rewards/cosine_scaled_reward/std": 0.3933021128177643,
635
+ "step": 25
636
+ },
637
+ {
638
+ "clip_ratio/high_max": 0.0,
639
+ "clip_ratio/high_mean": 0.0,
640
+ "clip_ratio/low_mean": 0.0,
641
+ "clip_ratio/low_min": 0.0,
642
+ "clip_ratio/region_mean": 0.0,
643
+ "completions/clipped_ratio": 0.875,
644
+ "completions/max_length": 2048.0,
645
+ "completions/max_terminated_length": 1975.0,
646
+ "completions/mean_length": 1973.046875,
647
+ "completions/mean_terminated_length": 1448.375,
648
+ "completions/min_length": 1035.0,
649
+ "completions/min_terminated_length": 1035.0,
650
+ "epoch": 0.029714285714285714,
651
+ "frac_reward_zero_std": 0.0,
652
+ "grad_norm": 0.2365841567516327,
653
+ "learning_rate": 5e-07,
654
+ "loss": -0.0,
655
+ "num_tokens": 3229162.0,
656
+ "reward": -0.050574399530887604,
657
+ "reward_std": 0.22459164261817932,
658
+ "rewards/cosine_scaled_reward/mean": -0.050574399530887604,
659
+ "rewards/cosine_scaled_reward/std": 0.37290775775909424,
660
+ "step": 26
661
+ },
662
+ {
663
+ "clip_ratio/high_max": 0.0,
664
+ "clip_ratio/high_mean": 0.0,
665
+ "clip_ratio/low_mean": 0.0,
666
+ "clip_ratio/low_min": 0.0,
667
+ "clip_ratio/region_mean": 0.0,
668
+ "completions/clipped_ratio": 0.796875,
669
+ "completions/max_length": 2048.0,
670
+ "completions/max_terminated_length": 1982.0,
671
+ "completions/mean_length": 1878.53125,
672
+ "completions/mean_terminated_length": 1213.6923828125,
673
+ "completions/min_length": 498.0,
674
+ "completions/min_terminated_length": 498.0,
675
+ "epoch": 0.030857142857142857,
676
+ "frac_reward_zero_std": 0.0,
677
+ "grad_norm": 0.2821083068847656,
678
+ "learning_rate": 5.2e-07,
679
+ "loss": 0.0,
680
+ "num_tokens": 3359676.0,
681
+ "reward": -0.13096781075000763,
682
+ "reward_std": 0.26249831914901733,
683
+ "rewards/cosine_scaled_reward/mean": -0.13096781075000763,
684
+ "rewards/cosine_scaled_reward/std": 0.3478032350540161,
685
+ "step": 27
686
+ },
687
+ {
688
+ "clip_ratio/high_max": 0.0,
689
+ "clip_ratio/high_mean": 0.0,
690
+ "clip_ratio/low_mean": 0.0,
691
+ "clip_ratio/low_min": 0.0,
692
+ "clip_ratio/region_mean": 0.0,
693
+ "completions/clipped_ratio": 0.78125,
694
+ "completions/max_length": 2048.0,
695
+ "completions/max_terminated_length": 1933.0,
696
+ "completions/mean_length": 1827.453125,
697
+ "completions/mean_terminated_length": 1039.7857666015625,
698
+ "completions/min_length": 419.0,
699
+ "completions/min_terminated_length": 419.0,
700
+ "epoch": 0.032,
701
+ "frac_reward_zero_std": 0.0,
702
+ "grad_norm": 0.2539210915565491,
703
+ "learning_rate": 5.4e-07,
704
+ "loss": 0.0,
705
+ "num_tokens": 3486969.0,
706
+ "reward": -0.11822876334190369,
707
+ "reward_std": 0.2370690554380417,
708
+ "rewards/cosine_scaled_reward/mean": -0.11822875589132309,
709
+ "rewards/cosine_scaled_reward/std": 0.4236762225627899,
710
+ "step": 28
711
+ },
712
+ {
713
+ "clip_ratio/high_max": 0.0,
714
+ "clip_ratio/high_mean": 0.0,
715
+ "clip_ratio/low_mean": 0.0,
716
+ "clip_ratio/low_min": 0.0,
717
+ "clip_ratio/region_mean": 0.0,
718
+ "completions/clipped_ratio": 0.9375,
719
+ "completions/max_length": 2048.0,
720
+ "completions/max_terminated_length": 2047.0,
721
+ "completions/mean_length": 2020.5,
722
+ "completions/mean_terminated_length": 1608.0,
723
+ "completions/min_length": 887.0,
724
+ "completions/min_terminated_length": 887.0,
725
+ "epoch": 0.03314285714285714,
726
+ "frac_reward_zero_std": 0.0,
727
+ "grad_norm": 0.23259545862674713,
728
+ "learning_rate": 5.6e-07,
729
+ "loss": -0.0,
730
+ "num_tokens": 3626753.0,
731
+ "reward": -0.20220182836055756,
732
+ "reward_std": 0.15910759568214417,
733
+ "rewards/cosine_scaled_reward/mean": -0.20220182836055756,
734
+ "rewards/cosine_scaled_reward/std": 0.20781411230564117,
735
+ "step": 29
736
+ },
737
+ {
738
+ "clip_ratio/high_max": 0.0,
739
+ "clip_ratio/high_mean": 0.0,
740
+ "clip_ratio/low_mean": 0.0,
741
+ "clip_ratio/low_min": 0.0,
742
+ "clip_ratio/region_mean": 0.0,
743
+ "completions/clipped_ratio": 0.828125,
744
+ "completions/max_length": 2048.0,
745
+ "completions/max_terminated_length": 1662.0,
746
+ "completions/mean_length": 1903.703125,
747
+ "completions/mean_terminated_length": 1208.45458984375,
748
+ "completions/min_length": 961.0,
749
+ "completions/min_terminated_length": 961.0,
750
+ "epoch": 0.03428571428571429,
751
+ "frac_reward_zero_std": 0.0,
752
+ "grad_norm": 0.24027252197265625,
753
+ "learning_rate": 5.8e-07,
754
+ "loss": 0.0,
755
+ "num_tokens": 3759126.0,
756
+ "reward": -0.19193249940872192,
757
+ "reward_std": 0.24584847688674927,
758
+ "rewards/cosine_scaled_reward/mean": -0.19193249940872192,
759
+ "rewards/cosine_scaled_reward/std": 0.28378522396087646,
760
+ "step": 30
761
+ },
762
+ {
763
+ "clip_ratio/high_max": 0.0,
764
+ "clip_ratio/high_mean": 0.0,
765
+ "clip_ratio/low_mean": 0.0,
766
+ "clip_ratio/low_min": 0.0,
767
+ "clip_ratio/region_mean": 0.0,
768
+ "completions/clipped_ratio": 0.796875,
769
+ "completions/max_length": 2048.0,
770
+ "completions/max_terminated_length": 1922.0,
771
+ "completions/mean_length": 1847.34375,
772
+ "completions/mean_terminated_length": 1060.1539306640625,
773
+ "completions/min_length": 311.0,
774
+ "completions/min_terminated_length": 311.0,
775
+ "epoch": 0.03542857142857143,
776
+ "frac_reward_zero_std": 0.0,
777
+ "grad_norm": 0.2703397274017334,
778
+ "learning_rate": 6e-07,
779
+ "loss": -0.0,
780
+ "num_tokens": 3887852.0,
781
+ "reward": -0.25379180908203125,
782
+ "reward_std": 0.24661941826343536,
783
+ "rewards/cosine_scaled_reward/mean": -0.25379180908203125,
784
+ "rewards/cosine_scaled_reward/std": 0.29188498854637146,
785
+ "step": 31
786
+ },
787
+ {
788
+ "clip_ratio/high_max": 0.0,
789
+ "clip_ratio/high_mean": 0.0,
790
+ "clip_ratio/low_mean": 0.0,
791
+ "clip_ratio/low_min": 0.0,
792
+ "clip_ratio/region_mean": 0.0,
793
+ "completions/clipped_ratio": 0.828125,
794
+ "completions/max_length": 2048.0,
795
+ "completions/max_terminated_length": 1995.0,
796
+ "completions/mean_length": 1950.3125,
797
+ "completions/mean_terminated_length": 1479.6363525390625,
798
+ "completions/min_length": 766.0,
799
+ "completions/min_terminated_length": 766.0,
800
+ "epoch": 0.036571428571428574,
801
+ "frac_reward_zero_std": 0.0,
802
+ "grad_norm": 0.21763876080513,
803
+ "learning_rate": 6.2e-07,
804
+ "loss": -0.0,
805
+ "num_tokens": 4023024.0,
806
+ "reward": -0.16017228364944458,
807
+ "reward_std": 0.2255343496799469,
808
+ "rewards/cosine_scaled_reward/mean": -0.16017228364944458,
809
+ "rewards/cosine_scaled_reward/std": 0.3709539771080017,
810
+ "step": 32
811
+ },
812
+ {
813
+ "clip_ratio/high_max": 0.0,
814
+ "clip_ratio/high_mean": 0.0,
815
+ "clip_ratio/low_mean": 0.0,
816
+ "clip_ratio/low_min": 0.0,
817
+ "clip_ratio/region_mean": 0.0,
818
+ "completions/clipped_ratio": 0.875,
819
+ "completions/max_length": 2048.0,
820
+ "completions/max_terminated_length": 1957.0,
821
+ "completions/mean_length": 1996.28125,
822
+ "completions/mean_terminated_length": 1634.25,
823
+ "completions/min_length": 1237.0,
824
+ "completions/min_terminated_length": 1237.0,
825
+ "epoch": 0.037714285714285714,
826
+ "frac_reward_zero_std": 0.0,
827
+ "grad_norm": 0.22758260369300842,
828
+ "learning_rate": 6.4e-07,
829
+ "loss": -0.0,
830
+ "num_tokens": 4162002.0,
831
+ "reward": -0.20318198204040527,
832
+ "reward_std": 0.18396919965744019,
833
+ "rewards/cosine_scaled_reward/mean": -0.20318198204040527,
834
+ "rewards/cosine_scaled_reward/std": 0.34913352131843567,
835
+ "step": 33
836
+ },
837
+ {
838
+ "clip_ratio/high_max": 0.0,
839
+ "clip_ratio/high_mean": 0.0,
840
+ "clip_ratio/low_mean": 0.0,
841
+ "clip_ratio/low_min": 0.0,
842
+ "clip_ratio/region_mean": 0.0,
843
+ "completions/clipped_ratio": 0.578125,
844
+ "completions/max_length": 2048.0,
845
+ "completions/max_terminated_length": 1850.0,
846
+ "completions/mean_length": 1703.265625,
847
+ "completions/mean_terminated_length": 1230.851806640625,
848
+ "completions/min_length": 651.0,
849
+ "completions/min_terminated_length": 651.0,
850
+ "epoch": 0.038857142857142854,
851
+ "frac_reward_zero_std": 0.0,
852
+ "grad_norm": 0.31658875942230225,
853
+ "learning_rate": 6.6e-07,
854
+ "loss": -0.0,
855
+ "num_tokens": 4280563.0,
856
+ "reward": -0.05977274850010872,
857
+ "reward_std": 0.30437377095222473,
858
+ "rewards/cosine_scaled_reward/mean": -0.059772733598947525,
859
+ "rewards/cosine_scaled_reward/std": 0.4424094259738922,
860
+ "step": 34
861
+ },
862
+ {
863
+ "clip_ratio/high_max": 0.0,
864
+ "clip_ratio/high_mean": 0.0,
865
+ "clip_ratio/low_mean": 0.0,
866
+ "clip_ratio/low_min": 0.0,
867
+ "clip_ratio/region_mean": 0.0,
868
+ "completions/clipped_ratio": 0.8125,
869
+ "completions/max_length": 2048.0,
870
+ "completions/max_terminated_length": 1846.0,
871
+ "completions/mean_length": 1807.546875,
872
+ "completions/mean_terminated_length": 765.5833740234375,
873
+ "completions/min_length": 419.0,
874
+ "completions/min_terminated_length": 419.0,
875
+ "epoch": 0.04,
876
+ "frac_reward_zero_std": 0.0,
877
+ "grad_norm": 0.2792847156524658,
878
+ "learning_rate": 6.800000000000001e-07,
879
+ "loss": -0.0,
880
+ "num_tokens": 4407742.0,
881
+ "reward": -0.18658886849880219,
882
+ "reward_std": 0.2910658121109009,
883
+ "rewards/cosine_scaled_reward/mean": -0.18658888339996338,
884
+ "rewards/cosine_scaled_reward/std": 0.34802255034446716,
885
+ "step": 35
886
+ },
887
+ {
888
+ "clip_ratio/high_max": 0.0,
889
+ "clip_ratio/high_mean": 0.0,
890
+ "clip_ratio/low_mean": 0.0,
891
+ "clip_ratio/low_min": 0.0,
892
+ "clip_ratio/region_mean": 0.0,
893
+ "completions/clipped_ratio": 0.921875,
894
+ "completions/max_length": 2048.0,
895
+ "completions/max_terminated_length": 1912.0,
896
+ "completions/mean_length": 1995.65625,
897
+ "completions/mean_terminated_length": 1378.0,
898
+ "completions/min_length": 1090.0,
899
+ "completions/min_terminated_length": 1090.0,
900
+ "epoch": 0.04114285714285714,
901
+ "frac_reward_zero_std": 0.0,
902
+ "grad_norm": 0.23547738790512085,
903
+ "learning_rate": 7e-07,
904
+ "loss": 0.0,
905
+ "num_tokens": 4546576.0,
906
+ "reward": -0.23918019235134125,
907
+ "reward_std": 0.19598917663097382,
908
+ "rewards/cosine_scaled_reward/mean": -0.23918019235134125,
909
+ "rewards/cosine_scaled_reward/std": 0.2425125539302826,
910
+ "step": 36
911
+ },
912
+ {
913
+ "clip_ratio/high_max": 0.0,
914
+ "clip_ratio/high_mean": 0.0,
915
+ "clip_ratio/low_mean": 0.0,
916
+ "clip_ratio/low_min": 0.0,
917
+ "clip_ratio/region_mean": 0.0,
918
+ "completions/clipped_ratio": 0.90625,
919
+ "completions/max_length": 2048.0,
920
+ "completions/max_terminated_length": 2015.0,
921
+ "completions/mean_length": 1994.75,
922
+ "completions/mean_terminated_length": 1480.0,
923
+ "completions/min_length": 545.0,
924
+ "completions/min_terminated_length": 545.0,
925
+ "epoch": 0.04228571428571429,
926
+ "frac_reward_zero_std": 0.0,
927
+ "grad_norm": 0.22962674498558044,
928
+ "learning_rate": 7.2e-07,
929
+ "loss": -0.0,
930
+ "num_tokens": 4685264.0,
931
+ "reward": -0.25335729122161865,
932
+ "reward_std": 0.15323391556739807,
933
+ "rewards/cosine_scaled_reward/mean": -0.25335729122161865,
934
+ "rewards/cosine_scaled_reward/std": 0.17556406557559967,
935
+ "step": 37
936
+ },
937
+ {
938
+ "clip_ratio/high_max": 0.0,
939
+ "clip_ratio/high_mean": 0.0,
940
+ "clip_ratio/low_mean": 0.0,
941
+ "clip_ratio/low_min": 0.0,
942
+ "clip_ratio/region_mean": 0.0,
943
+ "completions/clipped_ratio": 0.890625,
944
+ "completions/max_length": 2048.0,
945
+ "completions/max_terminated_length": 1934.0,
946
+ "completions/mean_length": 1957.484375,
947
+ "completions/mean_terminated_length": 1220.4285888671875,
948
+ "completions/min_length": 965.0,
949
+ "completions/min_terminated_length": 965.0,
950
+ "epoch": 0.04342857142857143,
951
+ "frac_reward_zero_std": 0.0,
952
+ "grad_norm": 0.24781912565231323,
953
+ "learning_rate": 7.4e-07,
954
+ "loss": -0.0,
955
+ "num_tokens": 4822255.0,
956
+ "reward": -0.13536512851715088,
957
+ "reward_std": 0.19208545982837677,
958
+ "rewards/cosine_scaled_reward/mean": -0.13536511361598969,
959
+ "rewards/cosine_scaled_reward/std": 0.30052343010902405,
960
+ "step": 38
961
+ },
962
+ {
963
+ "clip_ratio/high_max": 0.0,
964
+ "clip_ratio/high_mean": 0.0,
965
+ "clip_ratio/low_mean": 0.0,
966
+ "clip_ratio/low_min": 0.0,
967
+ "clip_ratio/region_mean": 0.0,
968
+ "completions/clipped_ratio": 0.75,
969
+ "completions/max_length": 2048.0,
970
+ "completions/max_terminated_length": 1824.0,
971
+ "completions/mean_length": 1744.421875,
972
+ "completions/mean_terminated_length": 833.6875,
973
+ "completions/min_length": 317.0,
974
+ "completions/min_terminated_length": 317.0,
975
+ "epoch": 0.044571428571428574,
976
+ "frac_reward_zero_std": 0.0,
977
+ "grad_norm": 0.2562144994735718,
978
+ "learning_rate": 7.599999999999999e-07,
979
+ "loss": -0.0,
980
+ "num_tokens": 4944682.0,
981
+ "reward": -0.041110455989837646,
982
+ "reward_std": 0.21381449699401855,
983
+ "rewards/cosine_scaled_reward/mean": -0.04111045226454735,
984
+ "rewards/cosine_scaled_reward/std": 0.35980772972106934,
985
+ "step": 39
986
+ },
987
+ {
988
+ "clip_ratio/high_max": 0.0,
989
+ "clip_ratio/high_mean": 0.0,
990
+ "clip_ratio/low_mean": 0.0,
991
+ "clip_ratio/low_min": 0.0,
992
+ "clip_ratio/region_mean": 0.0,
993
+ "completions/clipped_ratio": 0.734375,
994
+ "completions/max_length": 2048.0,
995
+ "completions/max_terminated_length": 2043.0,
996
+ "completions/mean_length": 1774.359375,
997
+ "completions/mean_terminated_length": 1017.8235473632812,
998
+ "completions/min_length": 445.0,
999
+ "completions/min_terminated_length": 445.0,
1000
+ "epoch": 0.045714285714285714,
1001
+ "frac_reward_zero_std": 0.0,
1002
+ "grad_norm": 0.25478634238243103,
1003
+ "learning_rate": 7.799999999999999e-07,
1004
+ "loss": 0.0,
1005
+ "num_tokens": 5068313.0,
1006
+ "reward": -0.12165145576000214,
1007
+ "reward_std": 0.17204006016254425,
1008
+ "rewards/cosine_scaled_reward/mean": -0.12165144830942154,
1009
+ "rewards/cosine_scaled_reward/std": 0.4099982678890228,
1010
+ "step": 40
1011
+ },
1012
+ {
1013
+ "clip_ratio/high_max": 0.0,
1014
+ "clip_ratio/high_mean": 0.0,
1015
+ "clip_ratio/low_mean": 0.0,
1016
+ "clip_ratio/low_min": 0.0,
1017
+ "clip_ratio/region_mean": 0.0,
1018
+ "completions/clipped_ratio": 0.640625,
1019
+ "completions/max_length": 2048.0,
1020
+ "completions/max_terminated_length": 1991.0,
1021
+ "completions/mean_length": 1814.375,
1022
+ "completions/mean_terminated_length": 1397.9130859375,
1023
+ "completions/min_length": 968.0,
1024
+ "completions/min_terminated_length": 968.0,
1025
+ "epoch": 0.046857142857142854,
1026
+ "frac_reward_zero_std": 0.0,
1027
+ "grad_norm": 0.21750310063362122,
1028
+ "learning_rate": 8e-07,
1029
+ "loss": 0.0,
1030
+ "num_tokens": 5195585.0,
1031
+ "reward": -0.25668060779571533,
1032
+ "reward_std": 0.2832298278808594,
1033
+ "rewards/cosine_scaled_reward/mean": -0.25668060779571533,
1034
+ "rewards/cosine_scaled_reward/std": 0.3347759544849396,
1035
+ "step": 41
1036
+ },
1037
+ {
1038
+ "clip_ratio/high_max": 0.0,
1039
+ "clip_ratio/high_mean": 0.0,
1040
+ "clip_ratio/low_mean": 0.0,
1041
+ "clip_ratio/low_min": 0.0,
1042
+ "clip_ratio/region_mean": 0.0,
1043
+ "completions/clipped_ratio": 0.765625,
1044
+ "completions/max_length": 2048.0,
1045
+ "completions/max_terminated_length": 1764.0,
1046
+ "completions/mean_length": 1714.59375,
1047
+ "completions/mean_terminated_length": 625.4666748046875,
1048
+ "completions/min_length": 186.0,
1049
+ "completions/min_terminated_length": 186.0,
1050
+ "epoch": 0.048,
1051
+ "frac_reward_zero_std": 0.0,
1052
+ "grad_norm": 0.34486907720565796,
1053
+ "learning_rate": 8.199999999999999e-07,
1054
+ "loss": -0.0,
1055
+ "num_tokens": 5315679.0,
1056
+ "reward": -0.2253742218017578,
1057
+ "reward_std": 0.1778060495853424,
1058
+ "rewards/cosine_scaled_reward/mean": -0.22537420690059662,
1059
+ "rewards/cosine_scaled_reward/std": 0.19647939503192902,
1060
+ "step": 42
1061
+ },
1062
+ {
1063
+ "clip_ratio/high_max": 0.0,
1064
+ "clip_ratio/high_mean": 0.0,
1065
+ "clip_ratio/low_mean": 0.0,
1066
+ "clip_ratio/low_min": 0.0,
1067
+ "clip_ratio/region_mean": 0.0,
1068
+ "completions/clipped_ratio": 0.828125,
1069
+ "completions/max_length": 2048.0,
1070
+ "completions/max_terminated_length": 1638.0,
1071
+ "completions/mean_length": 1863.78125,
1072
+ "completions/mean_terminated_length": 976.1818237304688,
1073
+ "completions/min_length": 669.0,
1074
+ "completions/min_terminated_length": 669.0,
1075
+ "epoch": 0.04914285714285714,
1076
+ "frac_reward_zero_std": 0.0,
1077
+ "grad_norm": 0.23907455801963806,
1078
+ "learning_rate": 8.399999999999999e-07,
1079
+ "loss": 0.0,
1080
+ "num_tokens": 5446577.0,
1081
+ "reward": -0.1142776757478714,
1082
+ "reward_std": 0.21804723143577576,
1083
+ "rewards/cosine_scaled_reward/mean": -0.1142776757478714,
1084
+ "rewards/cosine_scaled_reward/std": 0.3637608587741852,
1085
+ "step": 43
1086
+ },
1087
+ {
1088
+ "clip_ratio/high_max": 0.0,
1089
+ "clip_ratio/high_mean": 0.0,
1090
+ "clip_ratio/low_mean": 0.0,
1091
+ "clip_ratio/low_min": 0.0,
1092
+ "clip_ratio/region_mean": 0.0,
1093
+ "completions/clipped_ratio": 0.75,
1094
+ "completions/max_length": 2048.0,
1095
+ "completions/max_terminated_length": 1920.0,
1096
+ "completions/mean_length": 1771.125,
1097
+ "completions/mean_terminated_length": 940.5,
1098
+ "completions/min_length": 344.0,
1099
+ "completions/min_terminated_length": 344.0,
1100
+ "epoch": 0.05028571428571429,
1101
+ "frac_reward_zero_std": 0.0,
1102
+ "grad_norm": 0.2888188362121582,
1103
+ "learning_rate": 8.599999999999999e-07,
1104
+ "loss": 0.0,
1105
+ "num_tokens": 5570625.0,
1106
+ "reward": -0.11845305562019348,
1107
+ "reward_std": 0.2729855477809906,
1108
+ "rewards/cosine_scaled_reward/mean": -0.11845306307077408,
1109
+ "rewards/cosine_scaled_reward/std": 0.4279690086841583,
1110
+ "step": 44
1111
+ },
1112
+ {
1113
+ "clip_ratio/high_max": 0.0,
1114
+ "clip_ratio/high_mean": 0.0,
1115
+ "clip_ratio/low_mean": 0.0,
1116
+ "clip_ratio/low_min": 0.0,
1117
+ "clip_ratio/region_mean": 0.0,
1118
+ "completions/clipped_ratio": 0.96875,
1119
+ "completions/max_length": 2048.0,
1120
+ "completions/max_terminated_length": 1296.0,
1121
+ "completions/mean_length": 2020.859375,
1122
+ "completions/mean_terminated_length": 1179.5,
1123
+ "completions/min_length": 1063.0,
1124
+ "completions/min_terminated_length": 1063.0,
1125
+ "epoch": 0.05142857142857143,
1126
+ "frac_reward_zero_std": 0.0,
1127
+ "grad_norm": 0.2232045829296112,
1128
+ "learning_rate": 8.799999999999999e-07,
1129
+ "loss": 0.0,
1130
+ "num_tokens": 5711616.0,
1131
+ "reward": -0.1830526441335678,
1132
+ "reward_std": 0.20074567198753357,
1133
+ "rewards/cosine_scaled_reward/mean": -0.1830526441335678,
1134
+ "rewards/cosine_scaled_reward/std": 0.3221423327922821,
1135
+ "step": 45
1136
+ },
1137
+ {
1138
+ "clip_ratio/high_max": 0.0,
1139
+ "clip_ratio/high_mean": 0.0,
1140
+ "clip_ratio/low_mean": 0.0,
1141
+ "clip_ratio/low_min": 0.0,
1142
+ "clip_ratio/region_mean": 0.0,
1143
+ "completions/clipped_ratio": 0.828125,
1144
+ "completions/max_length": 2048.0,
1145
+ "completions/max_terminated_length": 1121.0,
1146
+ "completions/mean_length": 1843.328125,
1147
+ "completions/mean_terminated_length": 857.1818237304688,
1148
+ "completions/min_length": 608.0,
1149
+ "completions/min_terminated_length": 608.0,
1150
+ "epoch": 0.052571428571428575,
1151
+ "frac_reward_zero_std": 0.0,
1152
+ "grad_norm": 0.2569328844547272,
1153
+ "learning_rate": 9e-07,
1154
+ "loss": 0.0,
1155
+ "num_tokens": 5840757.0,
1156
+ "reward": -0.21247822046279907,
1157
+ "reward_std": 0.17188501358032227,
1158
+ "rewards/cosine_scaled_reward/mean": -0.21247822046279907,
1159
+ "rewards/cosine_scaled_reward/std": 0.183182492852211,
1160
+ "step": 46
1161
+ },
1162
+ {
1163
+ "clip_ratio/high_max": 0.0,
1164
+ "clip_ratio/high_mean": 0.0,
1165
+ "clip_ratio/low_mean": 0.0,
1166
+ "clip_ratio/low_min": 0.0,
1167
+ "clip_ratio/region_mean": 0.0,
1168
+ "completions/clipped_ratio": 0.734375,
1169
+ "completions/max_length": 2048.0,
1170
+ "completions/max_terminated_length": 2047.0,
1171
+ "completions/mean_length": 1772.984375,
1172
+ "completions/mean_terminated_length": 1012.6470336914062,
1173
+ "completions/min_length": 461.0,
1174
+ "completions/min_terminated_length": 461.0,
1175
+ "epoch": 0.053714285714285714,
1176
+ "frac_reward_zero_std": 0.0,
1177
+ "grad_norm": 0.2800576090812683,
1178
+ "learning_rate": 9.2e-07,
1179
+ "loss": -0.0,
1180
+ "num_tokens": 5964628.0,
1181
+ "reward": -0.1755329668521881,
1182
+ "reward_std": 0.19662824273109436,
1183
+ "rewards/cosine_scaled_reward/mean": -0.1755329668521881,
1184
+ "rewards/cosine_scaled_reward/std": 0.3987559974193573,
1185
+ "step": 47
1186
+ },
1187
+ {
1188
+ "clip_ratio/high_max": 0.0,
1189
+ "clip_ratio/high_mean": 0.0,
1190
+ "clip_ratio/low_mean": 0.0,
1191
+ "clip_ratio/low_min": 0.0,
1192
+ "clip_ratio/region_mean": 0.0,
1193
+ "completions/clipped_ratio": 0.71875,
1194
+ "completions/max_length": 2048.0,
1195
+ "completions/max_terminated_length": 1949.0,
1196
+ "completions/mean_length": 1787.046875,
1197
+ "completions/mean_terminated_length": 1120.1666259765625,
1198
+ "completions/min_length": 630.0,
1199
+ "completions/min_terminated_length": 630.0,
1200
+ "epoch": 0.054857142857142854,
1201
+ "frac_reward_zero_std": 0.0,
1202
+ "grad_norm": 0.2499135434627533,
1203
+ "learning_rate": 9.399999999999999e-07,
1204
+ "loss": -0.0,
1205
+ "num_tokens": 6089543.0,
1206
+ "reward": -0.07469595968723297,
1207
+ "reward_std": 0.2802818715572357,
1208
+ "rewards/cosine_scaled_reward/mean": -0.07469595968723297,
1209
+ "rewards/cosine_scaled_reward/std": 0.39331451058387756,
1210
+ "step": 48
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.578125,
1219
+ "completions/max_length": 2048.0,
1220
+ "completions/max_terminated_length": 1818.0,
1221
+ "completions/mean_length": 1611.65625,
1222
+ "completions/mean_terminated_length": 1013.7037353515625,
1223
+ "completions/min_length": 298.0,
1224
+ "completions/min_terminated_length": 298.0,
1225
+ "epoch": 0.056,
1226
+ "frac_reward_zero_std": 0.0,
1227
+ "grad_norm": 0.2976716160774231,
1228
+ "learning_rate": 9.6e-07,
1229
+ "loss": -0.0,
1230
+ "num_tokens": 6202753.0,
1231
+ "reward": -0.14219576120376587,
1232
+ "reward_std": 0.3252427875995636,
1233
+ "rewards/cosine_scaled_reward/mean": -0.14219576120376587,
1234
+ "rewards/cosine_scaled_reward/std": 0.41946855187416077,
1235
+ "step": 49
1236
+ },
1237
+ {
1238
+ "clip_ratio/high_max": 0.0,
1239
+ "clip_ratio/high_mean": 0.0,
1240
+ "clip_ratio/low_mean": 0.0,
1241
+ "clip_ratio/low_min": 0.0,
1242
+ "clip_ratio/region_mean": 0.0,
1243
+ "completions/clipped_ratio": 0.828125,
1244
+ "completions/max_length": 2048.0,
1245
+ "completions/max_terminated_length": 1916.0,
1246
+ "completions/mean_length": 1826.90625,
1247
+ "completions/mean_terminated_length": 761.6364135742188,
1248
+ "completions/min_length": 341.0,
1249
+ "completions/min_terminated_length": 341.0,
1250
+ "epoch": 0.05714285714285714,
1251
+ "frac_reward_zero_std": 0.0,
1252
+ "grad_norm": 0.2344626933336258,
1253
+ "learning_rate": 9.8e-07,
1254
+ "loss": -0.0,
1255
+ "num_tokens": 6330491.0,
1256
+ "reward": -0.098542720079422,
1257
+ "reward_std": 0.20483215153217316,
1258
+ "rewards/cosine_scaled_reward/mean": -0.0985427126288414,
1259
+ "rewards/cosine_scaled_reward/std": 0.396296888589859,
1260
+ "step": 50
1261
+ },
1262
+ {
1263
+ "clip_ratio/high_max": 0.0,
1264
+ "clip_ratio/high_mean": 0.0,
1265
+ "clip_ratio/low_mean": 0.0,
1266
+ "clip_ratio/low_min": 0.0,
1267
+ "clip_ratio/region_mean": 0.0,
1268
+ "completions/clipped_ratio": 0.53125,
1269
+ "completions/max_length": 2048.0,
1270
+ "completions/max_terminated_length": 2034.0,
1271
+ "completions/mean_length": 1520.1875,
1272
+ "completions/mean_terminated_length": 922.0000610351562,
1273
+ "completions/min_length": 450.0,
1274
+ "completions/min_terminated_length": 450.0,
1275
+ "epoch": 0.05828571428571429,
1276
+ "frac_reward_zero_std": 0.0,
1277
+ "grad_norm": 0.30348992347717285,
1278
+ "learning_rate": 1e-06,
1279
+ "loss": 0.0,
1280
+ "num_tokens": 6437991.0,
1281
+ "reward": -0.12996003031730652,
1282
+ "reward_std": 0.2803010940551758,
1283
+ "rewards/cosine_scaled_reward/mean": -0.12996003031730652,
1284
+ "rewards/cosine_scaled_reward/std": 0.3464147746562958,
1285
+ "step": 51
1286
+ },
1287
+ {
1288
+ "clip_ratio/high_max": 0.0,
1289
+ "clip_ratio/high_mean": 0.0,
1290
+ "clip_ratio/low_mean": 0.0,
1291
+ "clip_ratio/low_min": 0.0,
1292
+ "clip_ratio/region_mean": 0.0,
1293
+ "completions/clipped_ratio": 0.734375,
1294
+ "completions/max_length": 2048.0,
1295
+ "completions/max_terminated_length": 1930.0,
1296
+ "completions/mean_length": 1726.71875,
1297
+ "completions/mean_terminated_length": 838.4705810546875,
1298
+ "completions/min_length": 315.0,
1299
+ "completions/min_terminated_length": 315.0,
1300
+ "epoch": 0.05942857142857143,
1301
+ "frac_reward_zero_std": 0.0,
1302
+ "grad_norm": 0.2905585765838623,
1303
+ "learning_rate": 9.999890338174275e-07,
1304
+ "loss": -0.0,
1305
+ "num_tokens": 6559853.0,
1306
+ "reward": -0.2443142831325531,
1307
+ "reward_std": 0.21010473370552063,
1308
+ "rewards/cosine_scaled_reward/mean": -0.2443142831325531,
1309
+ "rewards/cosine_scaled_reward/std": 0.32864055037498474,
1310
+ "step": 52
1311
+ },
1312
+ {
1313
+ "clip_ratio/high_max": 0.0,
1314
+ "clip_ratio/high_mean": 0.0,
1315
+ "clip_ratio/low_mean": 0.0,
1316
+ "clip_ratio/low_min": 0.0,
1317
+ "clip_ratio/region_mean": 0.0,
1318
+ "completions/clipped_ratio": 0.734375,
1319
+ "completions/max_length": 2048.0,
1320
+ "completions/max_terminated_length": 1585.0,
1321
+ "completions/mean_length": 1757.015625,
1322
+ "completions/mean_terminated_length": 952.5294189453125,
1323
+ "completions/min_length": 463.0,
1324
+ "completions/min_terminated_length": 463.0,
1325
+ "epoch": 0.060571428571428575,
1326
+ "frac_reward_zero_std": 0.0,
1327
+ "grad_norm": 0.2699633538722992,
1328
+ "learning_rate": 9.999561358041868e-07,
1329
+ "loss": 0.0,
1330
+ "num_tokens": 6683134.0,
1331
+ "reward": -0.18116676807403564,
1332
+ "reward_std": 0.2308851182460785,
1333
+ "rewards/cosine_scaled_reward/mean": -0.18116676807403564,
1334
+ "rewards/cosine_scaled_reward/std": 0.27486056089401245,
1335
+ "step": 53
1336
+ },
1337
+ {
1338
+ "clip_ratio/high_max": 0.0,
1339
+ "clip_ratio/high_mean": 0.0,
1340
+ "clip_ratio/low_mean": 0.0,
1341
+ "clip_ratio/low_min": 0.0,
1342
+ "clip_ratio/region_mean": 0.0,
1343
+ "completions/clipped_ratio": 0.765625,
1344
+ "completions/max_length": 2048.0,
1345
+ "completions/max_terminated_length": 2018.0,
1346
+ "completions/mean_length": 1850.65625,
1347
+ "completions/mean_terminated_length": 1206.0001220703125,
1348
+ "completions/min_length": 695.0,
1349
+ "completions/min_terminated_length": 695.0,
1350
+ "epoch": 0.061714285714285715,
1351
+ "frac_reward_zero_std": 0.0,
1352
+ "grad_norm": 0.23383355140686035,
1353
+ "learning_rate": 9.999013075636804e-07,
1354
+ "loss": -0.0,
1355
+ "num_tokens": 6812720.0,
1356
+ "reward": -0.14257444441318512,
1357
+ "reward_std": 0.29668545722961426,
1358
+ "rewards/cosine_scaled_reward/mean": -0.14257442951202393,
1359
+ "rewards/cosine_scaled_reward/std": 0.4257228672504425,
1360
+ "step": 54
1361
+ },
1362
+ {
1363
+ "clip_ratio/high_max": 0.0,
1364
+ "clip_ratio/high_mean": 0.0,
1365
+ "clip_ratio/low_mean": 0.0,
1366
+ "clip_ratio/low_min": 0.0,
1367
+ "clip_ratio/region_mean": 0.0,
1368
+ "completions/clipped_ratio": 0.75,
1369
+ "completions/max_length": 2048.0,
1370
+ "completions/max_terminated_length": 1449.0,
1371
+ "completions/mean_length": 1754.640625,
1372
+ "completions/mean_terminated_length": 874.5625,
1373
+ "completions/min_length": 581.0,
1374
+ "completions/min_terminated_length": 581.0,
1375
+ "epoch": 0.06285714285714286,
1376
+ "frac_reward_zero_std": 0.0,
1377
+ "grad_norm": 0.23320119082927704,
1378
+ "learning_rate": 9.998245517681593e-07,
1379
+ "loss": -0.0,
1380
+ "num_tokens": 6935305.0,
1381
+ "reward": -0.14078931510448456,
1382
+ "reward_std": 0.17466726899147034,
1383
+ "rewards/cosine_scaled_reward/mean": -0.14078931510448456,
1384
+ "rewards/cosine_scaled_reward/std": 0.3331747353076935,
1385
+ "step": 55
1386
+ },
1387
+ {
1388
+ "clip_ratio/high_max": 0.0,
1389
+ "clip_ratio/high_mean": 0.0,
1390
+ "clip_ratio/low_mean": 0.0,
1391
+ "clip_ratio/low_min": 0.0,
1392
+ "clip_ratio/region_mean": 0.0,
1393
+ "completions/clipped_ratio": 0.828125,
1394
+ "completions/max_length": 2048.0,
1395
+ "completions/max_terminated_length": 1918.0,
1396
+ "completions/mean_length": 1853.78125,
1397
+ "completions/mean_terminated_length": 918.0,
1398
+ "completions/min_length": 571.0,
1399
+ "completions/min_terminated_length": 571.0,
1400
+ "epoch": 0.064,
1401
+ "frac_reward_zero_std": 0.0,
1402
+ "grad_norm": 0.23405365645885468,
1403
+ "learning_rate": 9.997258721585931e-07,
1404
+ "loss": -0.0,
1405
+ "num_tokens": 7064907.0,
1406
+ "reward": -0.11611534655094147,
1407
+ "reward_std": 0.19285616278648376,
1408
+ "rewards/cosine_scaled_reward/mean": -0.11611534655094147,
1409
+ "rewards/cosine_scaled_reward/std": 0.47406119108200073,
1410
+ "step": 56
1411
+ },
1412
+ {
1413
+ "clip_ratio/high_max": 0.0,
1414
+ "clip_ratio/high_mean": 0.0,
1415
+ "clip_ratio/low_mean": 0.0,
1416
+ "clip_ratio/low_min": 0.0,
1417
+ "clip_ratio/region_mean": 0.0,
1418
+ "completions/clipped_ratio": 0.875,
1419
+ "completions/max_length": 2048.0,
1420
+ "completions/max_terminated_length": 1851.0,
1421
+ "completions/mean_length": 1971.640625,
1422
+ "completions/mean_terminated_length": 1437.125,
1423
+ "completions/min_length": 1009.0,
1424
+ "completions/min_terminated_length": 1009.0,
1425
+ "epoch": 0.06514285714285714,
1426
+ "frac_reward_zero_std": 0.0,
1427
+ "grad_norm": 0.20449356734752655,
1428
+ "learning_rate": 9.996052735444862e-07,
1429
+ "loss": 0.0,
1430
+ "num_tokens": 7202660.0,
1431
+ "reward": -0.27627938985824585,
1432
+ "reward_std": 0.2080146074295044,
1433
+ "rewards/cosine_scaled_reward/mean": -0.27627938985824585,
1434
+ "rewards/cosine_scaled_reward/std": 0.2397139072418213,
1435
+ "step": 57
1436
+ },
1437
+ {
1438
+ "clip_ratio/high_max": 0.0,
1439
+ "clip_ratio/high_mean": 0.0,
1440
+ "clip_ratio/low_mean": 0.0,
1441
+ "clip_ratio/low_min": 0.0,
1442
+ "clip_ratio/region_mean": 0.0,
1443
+ "completions/clipped_ratio": 0.65625,
1444
+ "completions/max_length": 2048.0,
1445
+ "completions/max_terminated_length": 1813.0,
1446
+ "completions/mean_length": 1678.09375,
1447
+ "completions/mean_terminated_length": 971.9091186523438,
1448
+ "completions/min_length": 540.0,
1449
+ "completions/min_terminated_length": 540.0,
1450
+ "epoch": 0.06628571428571428,
1451
+ "frac_reward_zero_std": 0.0,
1452
+ "grad_norm": 0.251164048910141,
1453
+ "learning_rate": 9.994627618036452e-07,
1454
+ "loss": -0.0,
1455
+ "num_tokens": 7320154.0,
1456
+ "reward": -0.1333095282316208,
1457
+ "reward_std": 0.27265745401382446,
1458
+ "rewards/cosine_scaled_reward/mean": -0.1333095282316208,
1459
+ "rewards/cosine_scaled_reward/std": 0.3821713328361511,
1460
+ "step": 58
1461
+ },
1462
+ {
1463
+ "clip_ratio/high_max": 0.0,
1464
+ "clip_ratio/high_mean": 0.0,
1465
+ "clip_ratio/low_mean": 0.0,
1466
+ "clip_ratio/low_min": 0.0,
1467
+ "clip_ratio/region_mean": 0.0,
1468
+ "completions/clipped_ratio": 0.734375,
1469
+ "completions/max_length": 2048.0,
1470
+ "completions/max_terminated_length": 1453.0,
1471
+ "completions/mean_length": 1732.171875,
1472
+ "completions/mean_terminated_length": 859.0,
1473
+ "completions/min_length": 531.0,
1474
+ "completions/min_terminated_length": 531.0,
1475
+ "epoch": 0.06742857142857143,
1476
+ "frac_reward_zero_std": 0.0,
1477
+ "grad_norm": 0.22478283941745758,
1478
+ "learning_rate": 9.992983438818915e-07,
1479
+ "loss": -0.0,
1480
+ "num_tokens": 7441477.0,
1481
+ "reward": -0.18278491497039795,
1482
+ "reward_std": 0.2154037207365036,
1483
+ "rewards/cosine_scaled_reward/mean": -0.18278491497039795,
1484
+ "rewards/cosine_scaled_reward/std": 0.3414745628833771,
1485
+ "step": 59
1486
+ },
1487
+ {
1488
+ "clip_ratio/high_max": 0.0,
1489
+ "clip_ratio/high_mean": 0.0,
1490
+ "clip_ratio/low_mean": 0.0,
1491
+ "clip_ratio/low_min": 0.0,
1492
+ "clip_ratio/region_mean": 0.0,
1493
+ "completions/clipped_ratio": 0.765625,
1494
+ "completions/max_length": 2048.0,
1495
+ "completions/max_terminated_length": 1935.0,
1496
+ "completions/mean_length": 1798.375,
1497
+ "completions/mean_terminated_length": 982.9334106445312,
1498
+ "completions/min_length": 613.0,
1499
+ "completions/min_terminated_length": 613.0,
1500
+ "epoch": 0.06857142857142857,
1501
+ "frac_reward_zero_std": 0.0,
1502
+ "grad_norm": 0.22602440416812897,
1503
+ "learning_rate": 9.991120277927223e-07,
1504
+ "loss": -0.0,
1505
+ "num_tokens": 7567461.0,
1506
+ "reward": -0.265900194644928,
1507
+ "reward_std": 0.1530904918909073,
1508
+ "rewards/cosine_scaled_reward/mean": -0.265900194644928,
1509
+ "rewards/cosine_scaled_reward/std": 0.18254056572914124,
1510
+ "step": 60
1511
+ },
1512
+ {
1513
+ "clip_ratio/high_max": 0.0,
1514
+ "clip_ratio/high_mean": 0.0,
1515
+ "clip_ratio/low_mean": 0.0,
1516
+ "clip_ratio/low_min": 0.0,
1517
+ "clip_ratio/region_mean": 0.0,
1518
+ "completions/clipped_ratio": 0.84375,
1519
+ "completions/max_length": 2048.0,
1520
+ "completions/max_terminated_length": 1974.0,
1521
+ "completions/mean_length": 1950.578125,
1522
+ "completions/mean_terminated_length": 1424.5,
1523
+ "completions/min_length": 808.0,
1524
+ "completions/min_terminated_length": 808.0,
1525
+ "epoch": 0.06971428571428571,
1526
+ "frac_reward_zero_std": 0.0,
1527
+ "grad_norm": 0.22684067487716675,
1528
+ "learning_rate": 9.989038226169207e-07,
1529
+ "loss": -0.0,
1530
+ "num_tokens": 7703818.0,
1531
+ "reward": -0.05269922316074371,
1532
+ "reward_std": 0.3038993775844574,
1533
+ "rewards/cosine_scaled_reward/mean": -0.052699219435453415,
1534
+ "rewards/cosine_scaled_reward/std": 0.36445698142051697,
1535
+ "step": 61
1536
+ },
1537
+ {
1538
+ "clip_ratio/high_max": 0.0,
1539
+ "clip_ratio/high_mean": 0.0,
1540
+ "clip_ratio/low_mean": 0.0,
1541
+ "clip_ratio/low_min": 0.0,
1542
+ "clip_ratio/region_mean": 0.0,
1543
+ "completions/clipped_ratio": 0.671875,
1544
+ "completions/max_length": 2048.0,
1545
+ "completions/max_terminated_length": 1987.0,
1546
+ "completions/mean_length": 1717.703125,
1547
+ "completions/mean_terminated_length": 1041.3809814453125,
1548
+ "completions/min_length": 432.0,
1549
+ "completions/min_terminated_length": 432.0,
1550
+ "epoch": 0.07085714285714285,
1551
+ "frac_reward_zero_std": 0.0,
1552
+ "grad_norm": 0.23552638292312622,
1553
+ "learning_rate": 9.98673738502114e-07,
1554
+ "loss": 0.0,
1555
+ "num_tokens": 7823983.0,
1556
+ "reward": -0.07779724895954132,
1557
+ "reward_std": 0.2913648784160614,
1558
+ "rewards/cosine_scaled_reward/mean": -0.07779725641012192,
1559
+ "rewards/cosine_scaled_reward/std": 0.4099881649017334,
1560
+ "step": 62
1561
+ },
1562
+ {
1563
+ "clip_ratio/high_max": 0.0,
1564
+ "clip_ratio/high_mean": 0.0,
1565
+ "clip_ratio/low_mean": 0.0,
1566
+ "clip_ratio/low_min": 0.0,
1567
+ "clip_ratio/region_mean": 0.0,
1568
+ "completions/clipped_ratio": 0.484375,
1569
+ "completions/max_length": 2048.0,
1570
+ "completions/max_terminated_length": 1751.0,
1571
+ "completions/mean_length": 1600.625,
1572
+ "completions/mean_terminated_length": 1180.3636474609375,
1573
+ "completions/min_length": 420.0,
1574
+ "completions/min_terminated_length": 420.0,
1575
+ "epoch": 0.072,
1576
+ "frac_reward_zero_std": 0.0,
1577
+ "grad_norm": 0.28230276703834534,
1578
+ "learning_rate": 9.98421786662277e-07,
1579
+ "loss": 0.0,
1580
+ "num_tokens": 7936679.0,
1581
+ "reward": -0.02632874622941017,
1582
+ "reward_std": 0.25066205859184265,
1583
+ "rewards/cosine_scaled_reward/mean": -0.02632874995470047,
1584
+ "rewards/cosine_scaled_reward/std": 0.4263686537742615,
1585
+ "step": 63
1586
+ },
1587
+ {
1588
+ "clip_ratio/high_max": 0.0,
1589
+ "clip_ratio/high_mean": 0.0,
1590
+ "clip_ratio/low_mean": 0.0,
1591
+ "clip_ratio/low_min": 0.0,
1592
+ "clip_ratio/region_mean": 0.0,
1593
+ "completions/clipped_ratio": 0.6875,
1594
+ "completions/max_length": 2048.0,
1595
+ "completions/max_terminated_length": 2047.0,
1596
+ "completions/mean_length": 1743.578125,
1597
+ "completions/mean_terminated_length": 1073.8499755859375,
1598
+ "completions/min_length": 496.0,
1599
+ "completions/min_terminated_length": 496.0,
1600
+ "epoch": 0.07314285714285715,
1601
+ "frac_reward_zero_std": 0.0,
1602
+ "grad_norm": 0.266590416431427,
1603
+ "learning_rate": 9.981479793771866e-07,
1604
+ "loss": 0.0,
1605
+ "num_tokens": 8059220.0,
1606
+ "reward": -0.10920079052448273,
1607
+ "reward_std": 0.3089619576931,
1608
+ "rewards/cosine_scaled_reward/mean": -0.10920079052448273,
1609
+ "rewards/cosine_scaled_reward/std": 0.43342384696006775,
1610
+ "step": 64
1611
+ },
1612
+ {
1613
+ "clip_ratio/high_max": 0.0,
1614
+ "clip_ratio/high_mean": 0.0,
1615
+ "clip_ratio/low_mean": 0.0,
1616
+ "clip_ratio/low_min": 0.0,
1617
+ "clip_ratio/region_mean": 0.0,
1618
+ "completions/clipped_ratio": 0.75,
1619
+ "completions/max_length": 2048.0,
1620
+ "completions/max_terminated_length": 1127.0,
1621
+ "completions/mean_length": 1690.609375,
1622
+ "completions/mean_terminated_length": 618.4375,
1623
+ "completions/min_length": 331.0,
1624
+ "completions/min_terminated_length": 331.0,
1625
+ "epoch": 0.07428571428571429,
1626
+ "frac_reward_zero_std": 0.0,
1627
+ "grad_norm": 0.2891872525215149,
1628
+ "learning_rate": 9.97852329991824e-07,
1629
+ "loss": 0.0,
1630
+ "num_tokens": 8178123.0,
1631
+ "reward": -0.2091352641582489,
1632
+ "reward_std": 0.18792679905891418,
1633
+ "rewards/cosine_scaled_reward/mean": -0.2091352641582489,
1634
+ "rewards/cosine_scaled_reward/std": 0.40636762976646423,
1635
+ "step": 65
1636
+ },
1637
+ {
1638
+ "clip_ratio/high_max": 0.0,
1639
+ "clip_ratio/high_mean": 0.0,
1640
+ "clip_ratio/low_mean": 0.0,
1641
+ "clip_ratio/low_min": 0.0,
1642
+ "clip_ratio/region_mean": 0.0,
1643
+ "completions/clipped_ratio": 0.46875,
1644
+ "completions/max_length": 2048.0,
1645
+ "completions/max_terminated_length": 1529.0,
1646
+ "completions/mean_length": 1320.453125,
1647
+ "completions/mean_terminated_length": 678.5,
1648
+ "completions/min_length": 219.0,
1649
+ "completions/min_terminated_length": 219.0,
1650
+ "epoch": 0.07542857142857143,
1651
+ "frac_reward_zero_std": 0.0,
1652
+ "grad_norm": 0.30139341950416565,
1653
+ "learning_rate": 9.975348529157229e-07,
1654
+ "loss": -0.0,
1655
+ "num_tokens": 8272864.0,
1656
+ "reward": -0.012375831604003906,
1657
+ "reward_std": 0.2539718747138977,
1658
+ "rewards/cosine_scaled_reward/mean": -0.01237582415342331,
1659
+ "rewards/cosine_scaled_reward/std": 0.45652061700820923,
1660
+ "step": 66
1661
+ },
1662
+ {
1663
+ "clip_ratio/high_max": 0.0,
1664
+ "clip_ratio/high_mean": 0.0,
1665
+ "clip_ratio/low_mean": 0.0,
1666
+ "clip_ratio/low_min": 0.0,
1667
+ "clip_ratio/region_mean": 0.0,
1668
+ "completions/clipped_ratio": 0.953125,
1669
+ "completions/max_length": 2048.0,
1670
+ "completions/max_terminated_length": 1368.0,
1671
+ "completions/mean_length": 2001.21875,
1672
+ "completions/mean_terminated_length": 1050.0,
1673
+ "completions/min_length": 817.0,
1674
+ "completions/min_terminated_length": 817.0,
1675
+ "epoch": 0.07657142857142857,
1676
+ "frac_reward_zero_std": 0.0,
1677
+ "grad_norm": 0.21435414254665375,
1678
+ "learning_rate": 9.971955636222684e-07,
1679
+ "loss": 0.0,
1680
+ "num_tokens": 8411678.0,
1681
+ "reward": -0.27966073155403137,
1682
+ "reward_std": 0.14496129751205444,
1683
+ "rewards/cosine_scaled_reward/mean": -0.27966073155403137,
1684
+ "rewards/cosine_scaled_reward/std": 0.1733873188495636,
1685
+ "step": 67
1686
+ },
1687
+ {
1688
+ "clip_ratio/high_max": 0.0,
1689
+ "clip_ratio/high_mean": 0.0,
1690
+ "clip_ratio/low_mean": 0.0,
1691
+ "clip_ratio/low_min": 0.0,
1692
+ "clip_ratio/region_mean": 0.0,
1693
+ "completions/clipped_ratio": 0.453125,
1694
+ "completions/max_length": 2048.0,
1695
+ "completions/max_terminated_length": 1963.0,
1696
+ "completions/mean_length": 1359.65625,
1697
+ "completions/mean_terminated_length": 789.3142700195312,
1698
+ "completions/min_length": 347.0,
1699
+ "completions/min_terminated_length": 347.0,
1700
+ "epoch": 0.07771428571428571,
1701
+ "frac_reward_zero_std": 0.0,
1702
+ "grad_norm": 0.3244759440422058,
1703
+ "learning_rate": 9.968344786479415e-07,
1704
+ "loss": -0.0,
1705
+ "num_tokens": 8507952.0,
1706
+ "reward": -0.06231251358985901,
1707
+ "reward_std": 0.31347835063934326,
1708
+ "rewards/cosine_scaled_reward/mean": -0.062312521040439606,
1709
+ "rewards/cosine_scaled_reward/std": 0.40184450149536133,
1710
+ "step": 68
1711
+ },
1712
+ {
1713
+ "clip_ratio/high_max": 0.0,
1714
+ "clip_ratio/high_mean": 0.0,
1715
+ "clip_ratio/low_mean": 0.0,
1716
+ "clip_ratio/low_min": 0.0,
1717
+ "clip_ratio/region_mean": 0.0,
1718
+ "completions/clipped_ratio": 0.609375,
1719
+ "completions/max_length": 2048.0,
1720
+ "completions/max_terminated_length": 1859.0,
1721
+ "completions/mean_length": 1572.78125,
1722
+ "completions/mean_terminated_length": 831.4400024414062,
1723
+ "completions/min_length": 358.0,
1724
+ "completions/min_terminated_length": 358.0,
1725
+ "epoch": 0.07885714285714286,
1726
+ "frac_reward_zero_std": 0.0,
1727
+ "grad_norm": 0.3429071605205536,
1728
+ "learning_rate": 9.964516155915151e-07,
1729
+ "loss": 0.0,
1730
+ "num_tokens": 8618954.0,
1731
+ "reward": -0.24097035825252533,
1732
+ "reward_std": 0.22784993052482605,
1733
+ "rewards/cosine_scaled_reward/mean": -0.24097035825252533,
1734
+ "rewards/cosine_scaled_reward/std": 0.2594495415687561,
1735
+ "step": 69
1736
+ },
1737
+ {
1738
+ "clip_ratio/high_max": 0.0,
1739
+ "clip_ratio/high_mean": 0.0,
1740
+ "clip_ratio/low_mean": 0.0,
1741
+ "clip_ratio/low_min": 0.0,
1742
+ "clip_ratio/region_mean": 0.0,
1743
+ "completions/clipped_ratio": 0.828125,
1744
+ "completions/max_length": 2048.0,
1745
+ "completions/max_terminated_length": 1921.0,
1746
+ "completions/mean_length": 1859.578125,
1747
+ "completions/mean_terminated_length": 951.727294921875,
1748
+ "completions/min_length": 532.0,
1749
+ "completions/min_terminated_length": 532.0,
1750
+ "epoch": 0.08,
1751
+ "frac_reward_zero_std": 0.0,
1752
+ "grad_norm": 0.221941277384758,
1753
+ "learning_rate": 9.960469931131936e-07,
1754
+ "loss": -0.0,
1755
+ "num_tokens": 8749423.0,
1756
+ "reward": -0.27105003595352173,
1757
+ "reward_std": 0.16835230588912964,
1758
+ "rewards/cosine_scaled_reward/mean": -0.27105003595352173,
1759
+ "rewards/cosine_scaled_reward/std": 0.21196867525577545,
1760
+ "step": 70
1761
+ },
1762
+ {
1763
+ "clip_ratio/high_max": 0.0,
1764
+ "clip_ratio/high_mean": 0.0,
1765
+ "clip_ratio/low_mean": 0.0,
1766
+ "clip_ratio/low_min": 0.0,
1767
+ "clip_ratio/region_mean": 0.0,
1768
+ "completions/clipped_ratio": 0.6875,
1769
+ "completions/max_length": 2048.0,
1770
+ "completions/max_terminated_length": 1629.0,
1771
+ "completions/mean_length": 1668.265625,
1772
+ "completions/mean_terminated_length": 832.8500366210938,
1773
+ "completions/min_length": 489.0,
1774
+ "completions/min_terminated_length": 489.0,
1775
+ "epoch": 0.08114285714285714,
1776
+ "frac_reward_zero_std": 0.0,
1777
+ "grad_norm": 0.2909034192562103,
1778
+ "learning_rate": 9.956206309337066e-07,
1779
+ "loss": -0.0,
1780
+ "num_tokens": 8866912.0,
1781
+ "reward": -0.09497882425785065,
1782
+ "reward_std": 0.2813299000263214,
1783
+ "rewards/cosine_scaled_reward/mean": -0.09497880935668945,
1784
+ "rewards/cosine_scaled_reward/std": 0.4832696318626404,
1785
+ "step": 71
1786
+ },
1787
+ {
1788
+ "clip_ratio/high_max": 0.0,
1789
+ "clip_ratio/high_mean": 0.0,
1790
+ "clip_ratio/low_mean": 0.0,
1791
+ "clip_ratio/low_min": 0.0,
1792
+ "clip_ratio/region_mean": 0.0,
1793
+ "completions/clipped_ratio": 0.6875,
1794
+ "completions/max_length": 2048.0,
1795
+ "completions/max_terminated_length": 1903.0,
1796
+ "completions/mean_length": 1697.671875,
1797
+ "completions/mean_terminated_length": 926.9500122070312,
1798
+ "completions/min_length": 275.0,
1799
+ "completions/min_terminated_length": 275.0,
1800
+ "epoch": 0.08228571428571428,
1801
+ "frac_reward_zero_std": 0.0,
1802
+ "grad_norm": 0.3016415238380432,
1803
+ "learning_rate": 9.951725498333448e-07,
1804
+ "loss": -0.0,
1805
+ "num_tokens": 8985915.0,
1806
+ "reward": -0.22967606782913208,
1807
+ "reward_std": 0.18875859677791595,
1808
+ "rewards/cosine_scaled_reward/mean": -0.2296760529279709,
1809
+ "rewards/cosine_scaled_reward/std": 0.22012120485305786,
1810
+ "step": 72
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.953125,
1819
+ "completions/max_length": 2048.0,
1820
+ "completions/max_terminated_length": 1957.0,
1821
+ "completions/mean_length": 2020.703125,
1822
+ "completions/mean_terminated_length": 1465.666748046875,
1823
+ "completions/min_length": 1143.0,
1824
+ "completions/min_terminated_length": 1143.0,
1825
+ "epoch": 0.08342857142857144,
1826
+ "frac_reward_zero_std": 0.0,
1827
+ "grad_norm": 0.21586637198925018,
1828
+ "learning_rate": 9.947027716509488e-07,
1829
+ "loss": 0.0,
1830
+ "num_tokens": 9125968.0,
1831
+ "reward": -0.24284613132476807,
1832
+ "reward_std": 0.22862236201763153,
1833
+ "rewards/cosine_scaled_reward/mean": -0.24284613132476807,
1834
+ "rewards/cosine_scaled_reward/std": 0.24740919470787048,
1835
+ "step": 73
1836
+ },
1837
+ {
1838
+ "clip_ratio/high_max": 0.0,
1839
+ "clip_ratio/high_mean": 0.0,
1840
+ "clip_ratio/low_mean": 0.0,
1841
+ "clip_ratio/low_min": 0.0,
1842
+ "clip_ratio/region_mean": 0.0,
1843
+ "completions/clipped_ratio": 0.890625,
1844
+ "completions/max_length": 2048.0,
1845
+ "completions/max_terminated_length": 1955.0,
1846
+ "completions/mean_length": 1975.09375,
1847
+ "completions/mean_terminated_length": 1381.4285888671875,
1848
+ "completions/min_length": 532.0,
1849
+ "completions/min_terminated_length": 532.0,
1850
+ "epoch": 0.08457142857142858,
1851
+ "frac_reward_zero_std": 0.0,
1852
+ "grad_norm": 0.21680164337158203,
1853
+ "learning_rate": 9.942113192828444e-07,
1854
+ "loss": 0.0,
1855
+ "num_tokens": 9262302.0,
1856
+ "reward": -0.1543380469083786,
1857
+ "reward_std": 0.24083258211612701,
1858
+ "rewards/cosine_scaled_reward/mean": -0.1543380618095398,
1859
+ "rewards/cosine_scaled_reward/std": 0.3356986939907074,
1860
+ "step": 74
1861
+ },
1862
+ {
1863
+ "clip_ratio/high_max": 0.0,
1864
+ "clip_ratio/high_mean": 0.0,
1865
+ "clip_ratio/low_mean": 0.0,
1866
+ "clip_ratio/low_min": 0.0,
1867
+ "clip_ratio/region_mean": 0.0,
1868
+ "completions/clipped_ratio": 0.71875,
1869
+ "completions/max_length": 2048.0,
1870
+ "completions/max_terminated_length": 2038.0,
1871
+ "completions/mean_length": 1836.3125,
1872
+ "completions/mean_terminated_length": 1295.3333740234375,
1873
+ "completions/min_length": 653.0,
1874
+ "completions/min_terminated_length": 653.0,
1875
+ "epoch": 0.08571428571428572,
1876
+ "frac_reward_zero_std": 0.125,
1877
+ "grad_norm": 0.1845395565032959,
1878
+ "learning_rate": 9.93698216681727e-07,
1879
+ "loss": 0.0,
1880
+ "num_tokens": 9390786.0,
1881
+ "reward": -0.12792138755321503,
1882
+ "reward_std": 0.10224759578704834,
1883
+ "rewards/cosine_scaled_reward/mean": -0.12792138755321503,
1884
+ "rewards/cosine_scaled_reward/std": 0.4530969560146332,
1885
+ "step": 75
1886
+ },
1887
+ {
1888
+ "clip_ratio/high_max": 0.0,
1889
+ "clip_ratio/high_mean": 0.0,
1890
+ "clip_ratio/low_mean": 0.0,
1891
+ "clip_ratio/low_min": 0.0,
1892
+ "clip_ratio/region_mean": 0.0,
1893
+ "completions/clipped_ratio": 0.765625,
1894
+ "completions/max_length": 2048.0,
1895
+ "completions/max_terminated_length": 1422.0,
1896
+ "completions/mean_length": 1764.109375,
1897
+ "completions/mean_terminated_length": 836.7333984375,
1898
+ "completions/min_length": 320.0,
1899
+ "completions/min_terminated_length": 320.0,
1900
+ "epoch": 0.08685714285714285,
1901
+ "frac_reward_zero_std": 0.0,
1902
+ "grad_norm": 0.26535236835479736,
1903
+ "learning_rate": 9.931634888554935e-07,
1904
+ "loss": -0.0,
1905
+ "num_tokens": 9514089.0,
1906
+ "reward": -0.27717918157577515,
1907
+ "reward_std": 0.19932743906974792,
1908
+ "rewards/cosine_scaled_reward/mean": -0.27717918157577515,
1909
+ "rewards/cosine_scaled_reward/std": 0.20844916999340057,
1910
+ "step": 76
1911
+ },
1912
+ {
1913
+ "clip_ratio/high_max": 0.0,
1914
+ "clip_ratio/high_mean": 0.0,
1915
+ "clip_ratio/low_mean": 0.0,
1916
+ "clip_ratio/low_min": 0.0,
1917
+ "clip_ratio/region_mean": 0.0,
1918
+ "completions/clipped_ratio": 0.875,
1919
+ "completions/max_length": 2048.0,
1920
+ "completions/max_terminated_length": 1864.0,
1921
+ "completions/mean_length": 1945.109375,
1922
+ "completions/mean_terminated_length": 1224.875,
1923
+ "completions/min_length": 702.0,
1924
+ "completions/min_terminated_length": 702.0,
1925
+ "epoch": 0.088,
1926
+ "frac_reward_zero_std": 0.0,
1927
+ "grad_norm": 0.2047174870967865,
1928
+ "learning_rate": 9.926071618660237e-07,
1929
+ "loss": -0.0,
1930
+ "num_tokens": 9650152.0,
1931
+ "reward": -0.09873012453317642,
1932
+ "reward_std": 0.22244854271411896,
1933
+ "rewards/cosine_scaled_reward/mean": -0.09873010218143463,
1934
+ "rewards/cosine_scaled_reward/std": 0.34491515159606934,
1935
+ "step": 77
1936
+ },
1937
+ {
1938
+ "clip_ratio/high_max": 0.0,
1939
+ "clip_ratio/high_mean": 0.0,
1940
+ "clip_ratio/low_mean": 0.0,
1941
+ "clip_ratio/low_min": 0.0,
1942
+ "clip_ratio/region_mean": 0.0,
1943
+ "completions/clipped_ratio": 0.859375,
1944
+ "completions/max_length": 2048.0,
1945
+ "completions/max_terminated_length": 1976.0,
1946
+ "completions/mean_length": 1928.703125,
1947
+ "completions/mean_terminated_length": 1199.6666259765625,
1948
+ "completions/min_length": 722.0,
1949
+ "completions/min_terminated_length": 722.0,
1950
+ "epoch": 0.08914285714285715,
1951
+ "frac_reward_zero_std": 0.0,
1952
+ "grad_norm": 0.22559019923210144,
1953
+ "learning_rate": 9.9202926282791e-07,
1954
+ "loss": 0.0,
1955
+ "num_tokens": 9784309.0,
1956
+ "reward": -0.09572747349739075,
1957
+ "reward_std": 0.23068635165691376,
1958
+ "rewards/cosine_scaled_reward/mean": -0.09572747349739075,
1959
+ "rewards/cosine_scaled_reward/std": 0.38660773634910583,
1960
+ "step": 78
1961
+ },
1962
+ {
1963
+ "clip_ratio/high_max": 0.0,
1964
+ "clip_ratio/high_mean": 0.0,
1965
+ "clip_ratio/low_mean": 0.0,
1966
+ "clip_ratio/low_min": 0.0,
1967
+ "clip_ratio/region_mean": 0.0,
1968
+ "completions/clipped_ratio": 0.5625,
1969
+ "completions/max_length": 2048.0,
1970
+ "completions/max_terminated_length": 1864.0,
1971
+ "completions/mean_length": 1508.40625,
1972
+ "completions/mean_terminated_length": 814.6428833007812,
1973
+ "completions/min_length": 339.0,
1974
+ "completions/min_terminated_length": 339.0,
1975
+ "epoch": 0.09028571428571429,
1976
+ "frac_reward_zero_std": 0.0,
1977
+ "grad_norm": 0.24668477475643158,
1978
+ "learning_rate": 9.91429819907136e-07,
1979
+ "loss": 0.0,
1980
+ "num_tokens": 9890943.0,
1981
+ "reward": -0.1618795394897461,
1982
+ "reward_std": 0.22540031373500824,
1983
+ "rewards/cosine_scaled_reward/mean": -0.1618795245885849,
1984
+ "rewards/cosine_scaled_reward/std": 0.3233039081096649,
1985
+ "step": 79
1986
+ },
1987
+ {
1988
+ "clip_ratio/high_max": 0.0,
1989
+ "clip_ratio/high_mean": 0.0,
1990
+ "clip_ratio/low_mean": 0.0,
1991
+ "clip_ratio/low_min": 0.0,
1992
+ "clip_ratio/region_mean": 0.0,
1993
+ "completions/clipped_ratio": 0.890625,
1994
+ "completions/max_length": 2048.0,
1995
+ "completions/max_terminated_length": 1996.0,
1996
+ "completions/mean_length": 2012.671875,
1997
+ "completions/mean_terminated_length": 1725.0001220703125,
1998
+ "completions/min_length": 1283.0,
1999
+ "completions/min_terminated_length": 1283.0,
2000
+ "epoch": 0.09142857142857143,
2001
+ "frac_reward_zero_std": 0.0,
2002
+ "grad_norm": 0.24282054603099823,
2003
+ "learning_rate": 9.908088623197048e-07,
2004
+ "loss": -0.0,
2005
+ "num_tokens": 10030146.0,
2006
+ "reward": -0.25591158866882324,
2007
+ "reward_std": 0.15104801952838898,
2008
+ "rewards/cosine_scaled_reward/mean": -0.25591158866882324,
2009
+ "rewards/cosine_scaled_reward/std": 0.18741995096206665,
2010
+ "step": 80
2011
+ },
2012
+ {
2013
+ "clip_ratio/high_max": 0.0,
2014
+ "clip_ratio/high_mean": 0.0,
2015
+ "clip_ratio/low_mean": 0.0,
2016
+ "clip_ratio/low_min": 0.0,
2017
+ "clip_ratio/region_mean": 0.0,
2018
+ "completions/clipped_ratio": 0.796875,
2019
+ "completions/max_length": 2048.0,
2020
+ "completions/max_terminated_length": 1878.0,
2021
+ "completions/mean_length": 1821.921875,
2022
+ "completions/mean_terminated_length": 935.0000610351562,
2023
+ "completions/min_length": 580.0,
2024
+ "completions/min_terminated_length": 580.0,
2025
+ "epoch": 0.09257142857142857,
2026
+ "frac_reward_zero_std": 0.0,
2027
+ "grad_norm": 0.3027254641056061,
2028
+ "learning_rate": 9.901664203302124e-07,
2029
+ "loss": 0.0,
2030
+ "num_tokens": 10158021.0,
2031
+ "reward": -0.15331333875656128,
2032
+ "reward_std": 0.18424856662750244,
2033
+ "rewards/cosine_scaled_reward/mean": -0.15331333875656128,
2034
+ "rewards/cosine_scaled_reward/std": 0.24023762345314026,
2035
+ "step": 81
2036
+ },
2037
+ {
2038
+ "clip_ratio/high_max": 0.0,
2039
+ "clip_ratio/high_mean": 0.0,
2040
+ "clip_ratio/low_mean": 0.0,
2041
+ "clip_ratio/low_min": 0.0,
2042
+ "clip_ratio/region_mean": 0.0,
2043
+ "completions/clipped_ratio": 0.703125,
2044
+ "completions/max_length": 2048.0,
2045
+ "completions/max_terminated_length": 1852.0,
2046
+ "completions/mean_length": 1734.28125,
2047
+ "completions/mean_terminated_length": 991.26318359375,
2048
+ "completions/min_length": 477.0,
2049
+ "completions/min_terminated_length": 477.0,
2050
+ "epoch": 0.09371428571428571,
2051
+ "frac_reward_zero_std": 0.0,
2052
+ "grad_norm": 0.2466808557510376,
2053
+ "learning_rate": 9.895025252503755e-07,
2054
+ "loss": -0.0,
2055
+ "num_tokens": 10279343.0,
2056
+ "reward": -0.07192108780145645,
2057
+ "reward_std": 0.2587333917617798,
2058
+ "rewards/cosine_scaled_reward/mean": -0.07192108780145645,
2059
+ "rewards/cosine_scaled_reward/std": 0.46087121963500977,
2060
+ "step": 82
2061
+ },
2062
+ {
2063
+ "clip_ratio/high_max": 0.0,
2064
+ "clip_ratio/high_mean": 0.0,
2065
+ "clip_ratio/low_mean": 0.0,
2066
+ "clip_ratio/low_min": 0.0,
2067
+ "clip_ratio/region_mean": 0.0,
2068
+ "completions/clipped_ratio": 0.671875,
2069
+ "completions/max_length": 2048.0,
2070
+ "completions/max_terminated_length": 1571.0,
2071
+ "completions/mean_length": 1688.78125,
2072
+ "completions/mean_terminated_length": 953.2380981445312,
2073
+ "completions/min_length": 495.0,
2074
+ "completions/min_terminated_length": 495.0,
2075
+ "epoch": 0.09485714285714286,
2076
+ "frac_reward_zero_std": 0.0,
2077
+ "grad_norm": 0.2600877285003662,
2078
+ "learning_rate": 9.888172094375033e-07,
2079
+ "loss": 0.0,
2080
+ "num_tokens": 10398513.0,
2081
+ "reward": -0.1718086451292038,
2082
+ "reward_std": 0.2223512828350067,
2083
+ "rewards/cosine_scaled_reward/mean": -0.1718086451292038,
2084
+ "rewards/cosine_scaled_reward/std": 0.2828122675418854,
2085
+ "step": 83
2086
+ },
2087
+ {
2088
+ "clip_ratio/high_max": 0.0,
2089
+ "clip_ratio/high_mean": 0.0,
2090
+ "clip_ratio/low_mean": 0.0,
2091
+ "clip_ratio/low_min": 0.0,
2092
+ "clip_ratio/region_mean": 0.0,
2093
+ "completions/clipped_ratio": 0.84375,
2094
+ "completions/max_length": 2048.0,
2095
+ "completions/max_terminated_length": 1666.0,
2096
+ "completions/mean_length": 1838.203125,
2097
+ "completions/mean_terminated_length": 705.2999877929688,
2098
+ "completions/min_length": 435.0,
2099
+ "completions/min_terminated_length": 435.0,
2100
+ "epoch": 0.096,
2101
+ "frac_reward_zero_std": 0.0,
2102
+ "grad_norm": 0.22531215846538544,
2103
+ "learning_rate": 9.881105062929221e-07,
2104
+ "loss": 0.0,
2105
+ "num_tokens": 10526854.0,
2106
+ "reward": -0.2154863476753235,
2107
+ "reward_std": 0.261901319026947,
2108
+ "rewards/cosine_scaled_reward/mean": -0.2154863476753235,
2109
+ "rewards/cosine_scaled_reward/std": 0.29268571734428406,
2110
+ "step": 84
2111
+ },
2112
+ {
2113
+ "clip_ratio/high_max": 0.0,
2114
+ "clip_ratio/high_mean": 0.0,
2115
+ "clip_ratio/low_mean": 0.0,
2116
+ "clip_ratio/low_min": 0.0,
2117
+ "clip_ratio/region_mean": 0.0,
2118
+ "completions/clipped_ratio": 0.8125,
2119
+ "completions/max_length": 2048.0,
2120
+ "completions/max_terminated_length": 2026.0,
2121
+ "completions/mean_length": 1926.34375,
2122
+ "completions/mean_terminated_length": 1399.166748046875,
2123
+ "completions/min_length": 880.0,
2124
+ "completions/min_terminated_length": 880.0,
2125
+ "epoch": 0.09714285714285714,
2126
+ "frac_reward_zero_std": 0.0,
2127
+ "grad_norm": 0.19031891226768494,
2128
+ "learning_rate": 9.873824502603459e-07,
2129
+ "loss": -0.0,
2130
+ "num_tokens": 10660460.0,
2131
+ "reward": -0.21009978652000427,
2132
+ "reward_std": 0.19575349986553192,
2133
+ "rewards/cosine_scaled_reward/mean": -0.21009978652000427,
2134
+ "rewards/cosine_scaled_reward/std": 0.2456056773662567,
2135
+ "step": 85
2136
+ },
2137
+ {
2138
+ "clip_ratio/high_max": 0.0,
2139
+ "clip_ratio/high_mean": 0.0,
2140
+ "clip_ratio/low_mean": 0.0,
2141
+ "clip_ratio/low_min": 0.0,
2142
+ "clip_ratio/region_mean": 0.0,
2143
+ "completions/clipped_ratio": 0.734375,
2144
+ "completions/max_length": 2048.0,
2145
+ "completions/max_terminated_length": 1920.0,
2146
+ "completions/mean_length": 1713.21875,
2147
+ "completions/mean_terminated_length": 787.6470336914062,
2148
+ "completions/min_length": 547.0,
2149
+ "completions/min_terminated_length": 547.0,
2150
+ "epoch": 0.09828571428571428,
2151
+ "frac_reward_zero_std": 0.0,
2152
+ "grad_norm": 0.258359432220459,
2153
+ "learning_rate": 9.866330768241983e-07,
2154
+ "loss": -0.0,
2155
+ "num_tokens": 10780962.0,
2156
+ "reward": -0.1955144852399826,
2157
+ "reward_std": 0.24323132634162903,
2158
+ "rewards/cosine_scaled_reward/mean": -0.1955144852399826,
2159
+ "rewards/cosine_scaled_reward/std": 0.3071554899215698,
2160
+ "step": 86
2161
+ },
2162
+ {
2163
+ "clip_ratio/high_max": 0.0,
2164
+ "clip_ratio/high_mean": 0.0,
2165
+ "clip_ratio/low_mean": 0.0,
2166
+ "clip_ratio/low_min": 0.0,
2167
+ "clip_ratio/region_mean": 0.0,
2168
+ "completions/clipped_ratio": 0.625,
2169
+ "completions/max_length": 2048.0,
2170
+ "completions/max_terminated_length": 1815.0,
2171
+ "completions/mean_length": 1656.0,
2172
+ "completions/mean_terminated_length": 1002.6666870117188,
2173
+ "completions/min_length": 532.0,
2174
+ "completions/min_terminated_length": 532.0,
2175
+ "epoch": 0.09942857142857142,
2176
+ "frac_reward_zero_std": 0.0,
2177
+ "grad_norm": 0.2636864185333252,
2178
+ "learning_rate": 9.85862422507884e-07,
2179
+ "loss": 0.0,
2180
+ "num_tokens": 10897066.0,
2181
+ "reward": -0.1988150179386139,
2182
+ "reward_std": 0.24088150262832642,
2183
+ "rewards/cosine_scaled_reward/mean": -0.1988150179386139,
2184
+ "rewards/cosine_scaled_reward/std": 0.2925129532814026,
2185
+ "step": 87
2186
+ },
2187
+ {
2188
+ "clip_ratio/high_max": 0.0,
2189
+ "clip_ratio/high_mean": 0.0,
2190
+ "clip_ratio/low_mean": 0.0,
2191
+ "clip_ratio/low_min": 0.0,
2192
+ "clip_ratio/region_mean": 0.0,
2193
+ "completions/clipped_ratio": 0.703125,
2194
+ "completions/max_length": 2048.0,
2195
+ "completions/max_terminated_length": 1802.0,
2196
+ "completions/mean_length": 1755.234375,
2197
+ "completions/mean_terminated_length": 1061.8421630859375,
2198
+ "completions/min_length": 500.0,
2199
+ "completions/min_terminated_length": 500.0,
2200
+ "epoch": 0.10057142857142858,
2201
+ "frac_reward_zero_std": 0.0,
2202
+ "grad_norm": 0.29112017154693604,
2203
+ "learning_rate": 9.850705248720068e-07,
2204
+ "loss": 0.0,
2205
+ "num_tokens": 11019913.0,
2206
+ "reward": -0.02967459335923195,
2207
+ "reward_std": 0.3240855932235718,
2208
+ "rewards/cosine_scaled_reward/mean": -0.029674597084522247,
2209
+ "rewards/cosine_scaled_reward/std": 0.3718070983886719,
2210
+ "step": 88
2211
+ },
2212
+ {
2213
+ "clip_ratio/high_max": 0.0,
2214
+ "clip_ratio/high_mean": 0.0,
2215
+ "clip_ratio/low_mean": 0.0,
2216
+ "clip_ratio/low_min": 0.0,
2217
+ "clip_ratio/region_mean": 0.0,
2218
+ "completions/clipped_ratio": 0.671875,
2219
+ "completions/max_length": 2048.0,
2220
+ "completions/max_terminated_length": 1768.0,
2221
+ "completions/mean_length": 1752.78125,
2222
+ "completions/mean_terminated_length": 1148.2857666015625,
2223
+ "completions/min_length": 619.0,
2224
+ "completions/min_terminated_length": 619.0,
2225
+ "epoch": 0.10171428571428572,
2226
+ "frac_reward_zero_std": 0.0,
2227
+ "grad_norm": 0.2357943207025528,
2228
+ "learning_rate": 9.8425742251254e-07,
2229
+ "loss": -0.0,
2230
+ "num_tokens": 11143091.0,
2231
+ "reward": -0.1188301220536232,
2232
+ "reward_std": 0.296513170003891,
2233
+ "rewards/cosine_scaled_reward/mean": -0.1188301220536232,
2234
+ "rewards/cosine_scaled_reward/std": 0.3878798484802246,
2235
+ "step": 89
2236
+ },
2237
+ {
2238
+ "clip_ratio/high_max": 0.0,
2239
+ "clip_ratio/high_mean": 0.0,
2240
+ "clip_ratio/low_mean": 0.0,
2241
+ "clip_ratio/low_min": 0.0,
2242
+ "clip_ratio/region_mean": 0.0,
2243
+ "completions/clipped_ratio": 0.5625,
2244
+ "completions/max_length": 2048.0,
2245
+ "completions/max_terminated_length": 1693.0,
2246
+ "completions/mean_length": 1633.84375,
2247
+ "completions/mean_terminated_length": 1101.357177734375,
2248
+ "completions/min_length": 568.0,
2249
+ "completions/min_terminated_length": 568.0,
2250
+ "epoch": 0.10285714285714286,
2251
+ "frac_reward_zero_std": 0.0,
2252
+ "grad_norm": 0.32384219765663147,
2253
+ "learning_rate": 9.83423155058946e-07,
2254
+ "loss": -0.0,
2255
+ "num_tokens": 11257657.0,
2256
+ "reward": -0.22837099432945251,
2257
+ "reward_std": 0.18625205755233765,
2258
+ "rewards/cosine_scaled_reward/mean": -0.22837099432945251,
2259
+ "rewards/cosine_scaled_reward/std": 0.23636196553707123,
2260
+ "step": 90
2261
+ },
2262
+ {
2263
+ "clip_ratio/high_max": 0.0,
2264
+ "clip_ratio/high_mean": 0.0,
2265
+ "clip_ratio/low_mean": 0.0,
2266
+ "clip_ratio/low_min": 0.0,
2267
+ "clip_ratio/region_mean": 0.0,
2268
+ "completions/clipped_ratio": 0.75,
2269
+ "completions/max_length": 2048.0,
2270
+ "completions/max_terminated_length": 1833.0,
2271
+ "completions/mean_length": 1847.21875,
2272
+ "completions/mean_terminated_length": 1244.875,
2273
+ "completions/min_length": 716.0,
2274
+ "completions/min_terminated_length": 716.0,
2275
+ "epoch": 0.104,
2276
+ "frac_reward_zero_std": 0.0,
2277
+ "grad_norm": 0.24563109874725342,
2278
+ "learning_rate": 9.825677631722435e-07,
2279
+ "loss": -0.0,
2280
+ "num_tokens": 11386447.0,
2281
+ "reward": -0.11780542880296707,
2282
+ "reward_std": 0.3100074827671051,
2283
+ "rewards/cosine_scaled_reward/mean": -0.11780542135238647,
2284
+ "rewards/cosine_scaled_reward/std": 0.39149248600006104,
2285
+ "step": 91
2286
+ },
2287
+ {
2288
+ "clip_ratio/high_max": 0.0,
2289
+ "clip_ratio/high_mean": 0.0,
2290
+ "clip_ratio/low_mean": 0.0,
2291
+ "clip_ratio/low_min": 0.0,
2292
+ "clip_ratio/region_mean": 0.0,
2293
+ "completions/clipped_ratio": 0.609375,
2294
+ "completions/max_length": 2048.0,
2295
+ "completions/max_terminated_length": 1462.0,
2296
+ "completions/mean_length": 1595.125,
2297
+ "completions/mean_terminated_length": 888.6399536132812,
2298
+ "completions/min_length": 464.0,
2299
+ "completions/min_terminated_length": 464.0,
2300
+ "epoch": 0.10514285714285715,
2301
+ "frac_reward_zero_std": 0.0,
2302
+ "grad_norm": 0.2472057044506073,
2303
+ "learning_rate": 9.816912885430258e-07,
2304
+ "loss": -0.0,
2305
+ "num_tokens": 11498527.0,
2306
+ "reward": -0.2128506749868393,
2307
+ "reward_std": 0.20926561951637268,
2308
+ "rewards/cosine_scaled_reward/mean": -0.2128506898880005,
2309
+ "rewards/cosine_scaled_reward/std": 0.23348061740398407,
2310
+ "step": 92
2311
+ },
2312
+ {
2313
+ "clip_ratio/high_max": 0.0,
2314
+ "clip_ratio/high_mean": 0.0,
2315
+ "clip_ratio/low_mean": 0.0,
2316
+ "clip_ratio/low_min": 0.0,
2317
+ "clip_ratio/region_mean": 0.0,
2318
+ "completions/clipped_ratio": 0.9375,
2319
+ "completions/max_length": 2048.0,
2320
+ "completions/max_terminated_length": 1221.0,
2321
+ "completions/mean_length": 1979.953125,
2322
+ "completions/mean_terminated_length": 959.25,
2323
+ "completions/min_length": 822.0,
2324
+ "completions/min_terminated_length": 822.0,
2325
+ "epoch": 0.10628571428571429,
2326
+ "frac_reward_zero_std": 0.0,
2327
+ "grad_norm": 0.2550150454044342,
2328
+ "learning_rate": 9.807937738894303e-07,
2329
+ "loss": -0.0,
2330
+ "num_tokens": 11636588.0,
2331
+ "reward": -0.2922024428844452,
2332
+ "reward_std": 0.1515069603919983,
2333
+ "rewards/cosine_scaled_reward/mean": -0.2922024726867676,
2334
+ "rewards/cosine_scaled_reward/std": 0.18899379670619965,
2335
+ "step": 93
2336
+ },
2337
+ {
2338
+ "clip_ratio/high_max": 0.0,
2339
+ "clip_ratio/high_mean": 0.0,
2340
+ "clip_ratio/low_mean": 0.0,
2341
+ "clip_ratio/low_min": 0.0,
2342
+ "clip_ratio/region_mean": 0.0,
2343
+ "completions/clipped_ratio": 0.796875,
2344
+ "completions/max_length": 2048.0,
2345
+ "completions/max_terminated_length": 1544.0,
2346
+ "completions/mean_length": 1830.609375,
2347
+ "completions/mean_terminated_length": 977.769287109375,
2348
+ "completions/min_length": 533.0,
2349
+ "completions/min_terminated_length": 533.0,
2350
+ "epoch": 0.10742857142857143,
2351
+ "frac_reward_zero_std": 0.0,
2352
+ "grad_norm": 0.27164825797080994,
2353
+ "learning_rate": 9.798752629550546e-07,
2354
+ "loss": -0.0,
2355
+ "num_tokens": 11763515.0,
2356
+ "reward": -0.18001651763916016,
2357
+ "reward_std": 0.18973413109779358,
2358
+ "rewards/cosine_scaled_reward/mean": -0.18001650273799896,
2359
+ "rewards/cosine_scaled_reward/std": 0.4316568076610565,
2360
+ "step": 94
2361
+ },
2362
+ {
2363
+ "clip_ratio/high_max": 0.0,
2364
+ "clip_ratio/high_mean": 0.0,
2365
+ "clip_ratio/low_mean": 0.0,
2366
+ "clip_ratio/low_min": 0.0,
2367
+ "clip_ratio/region_mean": 0.0,
2368
+ "completions/clipped_ratio": 0.921875,
2369
+ "completions/max_length": 2048.0,
2370
+ "completions/max_terminated_length": 2034.0,
2371
+ "completions/mean_length": 2004.671875,
2372
+ "completions/mean_terminated_length": 1493.4000244140625,
2373
+ "completions/min_length": 960.0,
2374
+ "completions/min_terminated_length": 960.0,
2375
+ "epoch": 0.10857142857142857,
2376
+ "frac_reward_zero_std": 0.0,
2377
+ "grad_norm": 0.20861269533634186,
2378
+ "learning_rate": 9.78935800506826e-07,
2379
+ "loss": -0.0,
2380
+ "num_tokens": 11902342.0,
2381
+ "reward": -0.24148261547088623,
2382
+ "reward_std": 0.18629083037376404,
2383
+ "rewards/cosine_scaled_reward/mean": -0.24148263037204742,
2384
+ "rewards/cosine_scaled_reward/std": 0.23122739791870117,
2385
+ "step": 95
2386
+ },
2387
+ {
2388
+ "clip_ratio/high_max": 0.0,
2389
+ "clip_ratio/high_mean": 0.0,
2390
+ "clip_ratio/low_mean": 0.0,
2391
+ "clip_ratio/low_min": 0.0,
2392
+ "clip_ratio/region_mean": 0.0,
2393
+ "completions/clipped_ratio": 0.6875,
2394
+ "completions/max_length": 2048.0,
2395
+ "completions/max_terminated_length": 1298.0,
2396
+ "completions/mean_length": 1703.359375,
2397
+ "completions/mean_terminated_length": 945.1500244140625,
2398
+ "completions/min_length": 455.0,
2399
+ "completions/min_terminated_length": 455.0,
2400
+ "epoch": 0.10971428571428571,
2401
+ "frac_reward_zero_std": 0.0,
2402
+ "grad_norm": 0.2585296928882599,
2403
+ "learning_rate": 9.779754323328192e-07,
2404
+ "loss": 0.0,
2405
+ "num_tokens": 12022493.0,
2406
+ "reward": -0.11465626955032349,
2407
+ "reward_std": 0.24939197301864624,
2408
+ "rewards/cosine_scaled_reward/mean": -0.11465626955032349,
2409
+ "rewards/cosine_scaled_reward/std": 0.4384477138519287,
2410
+ "step": 96
2411
+ },
2412
+ {
2413
+ "clip_ratio/high_max": 0.0,
2414
+ "clip_ratio/high_mean": 0.0,
2415
+ "clip_ratio/low_mean": 0.0,
2416
+ "clip_ratio/low_min": 0.0,
2417
+ "clip_ratio/region_mean": 0.0,
2418
+ "completions/clipped_ratio": 0.75,
2419
+ "completions/max_length": 2048.0,
2420
+ "completions/max_terminated_length": 1809.0,
2421
+ "completions/mean_length": 1819.921875,
2422
+ "completions/mean_terminated_length": 1135.6875,
2423
+ "completions/min_length": 425.0,
2424
+ "completions/min_terminated_length": 425.0,
2425
+ "epoch": 0.11085714285714286,
2426
+ "frac_reward_zero_std": 0.0,
2427
+ "grad_norm": 0.3019813299179077,
2428
+ "learning_rate": 9.769942052400235e-07,
2429
+ "loss": 0.0,
2430
+ "num_tokens": 12149232.0,
2431
+ "reward": -0.18846748769283295,
2432
+ "reward_std": 0.2666187584400177,
2433
+ "rewards/cosine_scaled_reward/mean": -0.18846750259399414,
2434
+ "rewards/cosine_scaled_reward/std": 0.3043021559715271,
2435
+ "step": 97
2436
+ },
2437
+ {
2438
+ "clip_ratio/high_max": 0.0,
2439
+ "clip_ratio/high_mean": 0.0,
2440
+ "clip_ratio/low_mean": 0.0,
2441
+ "clip_ratio/low_min": 0.0,
2442
+ "clip_ratio/region_mean": 0.0,
2443
+ "completions/clipped_ratio": 0.609375,
2444
+ "completions/max_length": 2048.0,
2445
+ "completions/max_terminated_length": 2003.0,
2446
+ "completions/mean_length": 1677.296875,
2447
+ "completions/mean_terminated_length": 1099.0,
2448
+ "completions/min_length": 315.0,
2449
+ "completions/min_terminated_length": 315.0,
2450
+ "epoch": 0.112,
2451
+ "frac_reward_zero_std": 0.0,
2452
+ "grad_norm": 0.2722402513027191,
2453
+ "learning_rate": 9.759921670520634e-07,
2454
+ "loss": 0.0,
2455
+ "num_tokens": 12267643.0,
2456
+ "reward": -0.09557384252548218,
2457
+ "reward_std": 0.2643275558948517,
2458
+ "rewards/cosine_scaled_reward/mean": -0.09557383507490158,
2459
+ "rewards/cosine_scaled_reward/std": 0.3361329138278961,
2460
+ "step": 98
2461
+ },
2462
+ {
2463
+ "clip_ratio/high_max": 0.0,
2464
+ "clip_ratio/high_mean": 0.0,
2465
+ "clip_ratio/low_mean": 0.0,
2466
+ "clip_ratio/low_min": 0.0,
2467
+ "clip_ratio/region_mean": 0.0,
2468
+ "completions/clipped_ratio": 0.765625,
2469
+ "completions/max_length": 2048.0,
2470
+ "completions/max_terminated_length": 1141.0,
2471
+ "completions/mean_length": 1716.59375,
2472
+ "completions/mean_terminated_length": 634.0000610351562,
2473
+ "completions/min_length": 393.0,
2474
+ "completions/min_terminated_length": 393.0,
2475
+ "epoch": 0.11314285714285714,
2476
+ "frac_reward_zero_std": 0.0,
2477
+ "grad_norm": 0.2789485454559326,
2478
+ "learning_rate": 9.749693666068663e-07,
2479
+ "loss": -0.0,
2480
+ "num_tokens": 12388673.0,
2481
+ "reward": -0.11132554709911346,
2482
+ "reward_std": 0.1736970841884613,
2483
+ "rewards/cosine_scaled_reward/mean": -0.11132554709911346,
2484
+ "rewards/cosine_scaled_reward/std": 0.38663193583488464,
2485
+ "step": 99
2486
+ },
2487
+ {
2488
+ "clip_ratio/high_max": 0.0,
2489
+ "clip_ratio/high_mean": 0.0,
2490
+ "clip_ratio/low_mean": 0.0,
2491
+ "clip_ratio/low_min": 0.0,
2492
+ "clip_ratio/region_mean": 0.0,
2493
+ "completions/clipped_ratio": 0.625,
2494
+ "completions/max_length": 2048.0,
2495
+ "completions/max_terminated_length": 1906.0,
2496
+ "completions/mean_length": 1627.78125,
2497
+ "completions/mean_terminated_length": 927.4166870117188,
2498
+ "completions/min_length": 426.0,
2499
+ "completions/min_terminated_length": 426.0,
2500
+ "epoch": 0.11428571428571428,
2501
+ "frac_reward_zero_std": 0.0,
2502
+ "grad_norm": 0.2479974329471588,
2503
+ "learning_rate": 9.739258537542835e-07,
2504
+ "loss": 0.0,
2505
+ "num_tokens": 12502563.0,
2506
+ "reward": 0.05247430503368378,
2507
+ "reward_std": 0.2633323669433594,
2508
+ "rewards/cosine_scaled_reward/mean": 0.05247429758310318,
2509
+ "rewards/cosine_scaled_reward/std": 0.44700634479522705,
2510
+ "step": 100
2511
+ }
2512
+ ],
2513
+ "logging_steps": 1,
2514
+ "max_steps": 500,
2515
+ "num_input_tokens_seen": 12502563,
2516
+ "num_train_epochs": 1,
2517
+ "save_steps": 50,
2518
+ "stateful_callbacks": {
2519
+ "TrainerControl": {
2520
+ "args": {
2521
+ "should_epoch_stop": false,
2522
+ "should_evaluate": false,
2523
+ "should_log": false,
2524
+ "should_save": true,
2525
+ "should_training_stop": false
2526
+ },
2527
+ "attributes": {}
2528
+ }
2529
+ },
2530
+ "total_flos": 0.0,
2531
+ "train_batch_size": 4,
2532
+ "trial_name": null,
2533
+ "trial_params": null
2534
+ }
checkpoint-100/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef86752cf6cf52e796d735b4903ab569bc33d2865692788b12aadf084a12139e
3
+ size 8824
checkpoint-100/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)