yl4300 commited on
Commit
6a593c2
·
verified ·
1 Parent(s): 1ab2086

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
added_tokens.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</think>": 151668,
3
+ "</tool_call>": 151658,
4
+ "</tool_response>": 151666,
5
+ "<think>": 151667,
6
+ "<tool_call>": 151657,
7
+ "<tool_response>": 151665,
8
+ "<|box_end|>": 151649,
9
+ "<|box_start|>": 151648,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|image_pad|>": 151655,
19
+ "<|object_ref_end|>": 151647,
20
+ "<|object_ref_start|>": 151646,
21
+ "<|quad_end|>": 151651,
22
+ "<|quad_start|>": 151650,
23
+ "<|repo_name|>": 151663,
24
+ "<|video_pad|>": 151656,
25
+ "<|vision_end|>": 151653,
26
+ "<|vision_pad|>": 151654,
27
+ "<|vision_start|>": 151652
28
+ }
chat_template.jinja ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {%- if messages[0].content is string %}
5
+ {{- messages[0].content }}
6
+ {%- else %}
7
+ {%- for content in messages[0].content %}
8
+ {%- if 'text' in content %}
9
+ {{- content.text }}
10
+ {%- endif %}
11
+ {%- endfor %}
12
+ {%- endif %}
13
+ {{- '\n\n' }}
14
+ {%- endif %}
15
+ {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
16
+ {%- for tool in tools %}
17
+ {{- "\n" }}
18
+ {{- tool | tojson }}
19
+ {%- endfor %}
20
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
21
+ {%- else %}
22
+ {%- if messages[0].role == 'system' %}
23
+ {{- '<|im_start|>system\n' }}
24
+ {%- if messages[0].content is string %}
25
+ {{- messages[0].content }}
26
+ {%- else %}
27
+ {%- for content in messages[0].content %}
28
+ {%- if 'text' in content %}
29
+ {{- content.text }}
30
+ {%- endif %}
31
+ {%- endfor %}
32
+ {%- endif %}
33
+ {{- '<|im_end|>\n' }}
34
+ {%- endif %}
35
+ {%- endif %}
36
+ {%- set image_count = namespace(value=0) %}
37
+ {%- set video_count = namespace(value=0) %}
38
+ {%- for message in messages %}
39
+ {%- if message.role == "user" %}
40
+ {{- '<|im_start|>' + message.role + '\n' }}
41
+ {%- if message.content is string %}
42
+ {{- message.content }}
43
+ {%- else %}
44
+ {%- for content in message.content %}
45
+ {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
46
+ {%- set image_count.value = image_count.value + 1 %}
47
+ {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
48
+ <|vision_start|><|image_pad|><|vision_end|>
49
+ {%- elif content.type == 'video' or 'video' in content %}
50
+ {%- set video_count.value = video_count.value + 1 %}
51
+ {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
52
+ <|vision_start|><|video_pad|><|vision_end|>
53
+ {%- elif 'text' in content %}
54
+ {{- content.text }}
55
+ {%- endif %}
56
+ {%- endfor %}
57
+ {%- endif %}
58
+ {{- '<|im_end|>\n' }}
59
+ {%- elif message.role == "assistant" %}
60
+ {{- '<|im_start|>' + message.role + '\n' }}
61
+ {%- if message.content is string %}
62
+ {{- message.content }}
63
+ {%- else %}
64
+ {%- for content_item in message.content %}
65
+ {%- if 'text' in content_item %}
66
+ {{- content_item.text }}
67
+ {%- endif %}
68
+ {%- endfor %}
69
+ {%- endif %}
70
+ {%- if message.tool_calls %}
71
+ {%- for tool_call in message.tool_calls %}
72
+ {%- if (loop.first and message.content) or (not loop.first) %}
73
+ {{- '\n' }}
74
+ {%- endif %}
75
+ {%- if tool_call.function %}
76
+ {%- set tool_call = tool_call.function %}
77
+ {%- endif %}
78
+ {{- '<tool_call>\n{"name": "' }}
79
+ {{- tool_call.name }}
80
+ {{- '", "arguments": ' }}
81
+ {%- if tool_call.arguments is string %}
82
+ {{- tool_call.arguments }}
83
+ {%- else %}
84
+ {{- tool_call.arguments | tojson }}
85
+ {%- endif %}
86
+ {{- '}\n</tool_call>' }}
87
+ {%- endfor %}
88
+ {%- endif %}
89
+ {{- '<|im_end|>\n' }}
90
+ {%- elif message.role == "tool" %}
91
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
92
+ {{- '<|im_start|>user' }}
93
+ {%- endif %}
94
+ {{- '\n<tool_response>\n' }}
95
+ {%- if message.content is string %}
96
+ {{- message.content }}
97
+ {%- else %}
98
+ {%- for content in message.content %}
99
+ {%- if content.type == 'image' or 'image' in content or 'image_url' in content %}
100
+ {%- set image_count.value = image_count.value + 1 %}
101
+ {%- if add_vision_id %}Picture {{ image_count.value }}: {% endif -%}
102
+ <|vision_start|><|image_pad|><|vision_end|>
103
+ {%- elif content.type == 'video' or 'video' in content %}
104
+ {%- set video_count.value = video_count.value + 1 %}
105
+ {%- if add_vision_id %}Video {{ video_count.value }}: {% endif -%}
106
+ <|vision_start|><|video_pad|><|vision_end|>
107
+ {%- elif 'text' in content %}
108
+ {{- content.text }}
109
+ {%- endif %}
110
+ {%- endfor %}
111
+ {%- endif %}
112
+ {{- '\n</tool_response>' }}
113
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
114
+ {{- '<|im_end|>\n' }}
115
+ {%- endif %}
116
+ {%- endif %}
117
+ {%- endfor %}
118
+ {%- if add_generation_prompt %}
119
+ {{- '<|im_start|>assistant\n' }}
120
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3VLForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "eos_token_id": 151645,
7
+ "image_token_id": 151655,
8
+ "model_type": "qwen3_vl",
9
+ "pad_token_id": 151643,
10
+ "text_config": {
11
+ "attention_bias": false,
12
+ "attention_dropout": 0.0,
13
+ "bos_token_id": 151643,
14
+ "dtype": "bfloat16",
15
+ "eos_token_id": 151645,
16
+ "head_dim": 128,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 2048,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 6144,
21
+ "max_position_embeddings": 262144,
22
+ "model_type": "qwen3_vl_text",
23
+ "num_attention_heads": 16,
24
+ "num_hidden_layers": 28,
25
+ "num_key_value_heads": 8,
26
+ "rms_norm_eps": 1e-06,
27
+ "rope_scaling": {
28
+ "mrope_interleaved": true,
29
+ "mrope_section": [
30
+ 24,
31
+ 20,
32
+ 20
33
+ ],
34
+ "rope_type": "default"
35
+ },
36
+ "rope_theta": 5000000,
37
+ "tie_word_embeddings": true,
38
+ "use_cache": true,
39
+ "vocab_size": 151936
40
+ },
41
+ "tie_word_embeddings": true,
42
+ "transformers_version": "4.57.3",
43
+ "use_cache": false,
44
+ "video_token_id": 151656,
45
+ "vision_config": {
46
+ "deepstack_visual_indexes": [
47
+ 5,
48
+ 11,
49
+ 17
50
+ ],
51
+ "depth": 24,
52
+ "dtype": "bfloat16",
53
+ "hidden_act": "gelu_pytorch_tanh",
54
+ "hidden_size": 1024,
55
+ "in_channels": 3,
56
+ "initializer_range": 0.02,
57
+ "intermediate_size": 4096,
58
+ "model_type": "qwen3_vl",
59
+ "num_heads": 16,
60
+ "num_position_embeddings": 2304,
61
+ "out_hidden_size": 2048,
62
+ "patch_size": 16,
63
+ "spatial_merge_size": 2,
64
+ "temporal_patch_size": 2
65
+ },
66
+ "vision_end_token_id": 151653,
67
+ "vision_start_token_id": 151652
68
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_sample": true,
3
+ "eos_token_id": [
4
+ 151645,
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "top_k": 20,
10
+ "top_p": 0.9,
11
+ "transformers_version": "4.57.3"
12
+ }
global_step76/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:569bdc35496565bdc5f676cc5f48a322ea822dbe0129ff76fc01e7ed28d8ba0a
3
+ size 12765197525
global_step76/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:c429858b6694dd6ab147efd6d9e51001064d3453aa4eabe46d70c4eb1d5db47b
3
+ size 12765197525
global_step76/zero_pp_rank_0_mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:791720740e8d26d51af2242cab96288bc32397537dd000f9e514a8b38bb85f39
3
+ size 324550
global_step76/zero_pp_rank_1_mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a658ef394ec4ccfc43bedffe5e9075dcf4e656ecb628e3b1bb0a6e743af8501
3
+ size 324486
latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step76
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b779c1c44b83ff988938552f58e58c94517bd7bc4ef812e49f2f75c4b4fa30ba
3
+ size 4255140312
preprocessor_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": true,
5
+ "device": null,
6
+ "disable_grouping": null,
7
+ "do_center_crop": null,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_pad": null,
11
+ "do_rescale": true,
12
+ "do_resize": false,
13
+ "image_mean": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "image_processor_type": "Qwen2VLImageProcessorFast",
19
+ "image_std": [
20
+ 0.5,
21
+ 0.5,
22
+ 0.5
23
+ ],
24
+ "input_data_format": null,
25
+ "max_pixels": null,
26
+ "merge_size": 2,
27
+ "min_pixels": null,
28
+ "pad_size": null,
29
+ "patch_size": 16,
30
+ "processor_class": "Qwen3VLProcessor",
31
+ "resample": 3,
32
+ "rescale_factor": 0.00392156862745098,
33
+ "return_tensors": null,
34
+ "size": {
35
+ "longest_edge": 16777216,
36
+ "shortest_edge": 65536
37
+ },
38
+ "temporal_patch_size": 2
39
+ }
rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82b224e97d8d0135b61bca335d64ebf98c6f2be0754f8f3ab300ae85b55af3a6
3
+ size 14917
rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0cddf327ed5065d8d64ea91d8b2566dec0b03bfb705e674d7ecdd7fbd1113ee
3
+ size 14917
special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67cc0080ffd7555f723f423c27cfef314e1ad9d335c8b79f465c5faba1ed478b
3
+ size 11422821
tokenizer_config.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "clean_up_tokenization_spaces": false,
231
+ "eos_token": "<|im_end|>",
232
+ "errors": "replace",
233
+ "extra_special_tokens": {},
234
+ "model_max_length": 262144,
235
+ "pad_token": "<|endoftext|>",
236
+ "padding_side": "left",
237
+ "processor_class": "Qwen3VLProcessor",
238
+ "split_special_tokens": false,
239
+ "tokenizer_class": "Qwen2Tokenizer",
240
+ "unk_token": null,
241
+ "use_fast": true
242
+ }
trainer_state.json ADDED
@@ -0,0 +1,2010 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.0133333333333334,
6
+ "eval_steps": 500,
7
+ "global_step": 76,
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.0,
19
+ "completions/max_length": 2.0,
20
+ "completions/max_terminated_length": 2.0,
21
+ "completions/mean_length": 2.0,
22
+ "completions/mean_terminated_length": 2.0,
23
+ "completions/min_length": 2.0,
24
+ "completions/min_terminated_length": 2.0,
25
+ "entropy": 0.1675567626953125,
26
+ "epoch": 0.013333333333333334,
27
+ "frac_reward_zero_std": 0.75,
28
+ "grad_norm": 27.889081954956055,
29
+ "learning_rate": 0.0,
30
+ "loss": -0.0,
31
+ "num_tokens": 57308.0,
32
+ "reward": 0.671875,
33
+ "reward_std": 0.28125,
34
+ "rewards/category_reward_func/mean": 0.671875,
35
+ "rewards/category_reward_func/std": 1.273835301399231,
36
+ "step": 1
37
+ },
38
+ {
39
+ "clip_ratio/high_max": 0.0,
40
+ "clip_ratio/high_mean": 0.0,
41
+ "clip_ratio/low_mean": 0.0,
42
+ "clip_ratio/low_min": 0.0,
43
+ "clip_ratio/region_mean": 0.0,
44
+ "completions/clipped_ratio": 0.0,
45
+ "completions/max_length": 2.0,
46
+ "completions/max_terminated_length": 2.0,
47
+ "completions/mean_length": 2.0,
48
+ "completions/mean_terminated_length": 2.0,
49
+ "completions/min_length": 2.0,
50
+ "completions/min_terminated_length": 2.0,
51
+ "entropy": 0.1007843017578125,
52
+ "epoch": 0.02666666666666667,
53
+ "frac_reward_zero_std": 0.75,
54
+ "grad_norm": 19.59115982055664,
55
+ "learning_rate": 2.153382790366965e-07,
56
+ "loss": -0.0,
57
+ "num_tokens": 99008.0,
58
+ "reward": 0.671875,
59
+ "reward_std": 0.28125,
60
+ "rewards/category_reward_func/mean": 0.671875,
61
+ "rewards/category_reward_func/std": 1.273835301399231,
62
+ "step": 2
63
+ },
64
+ {
65
+ "clip_ratio/high_max": 0.0,
66
+ "clip_ratio/high_mean": 0.0,
67
+ "clip_ratio/low_mean": 0.0,
68
+ "clip_ratio/low_min": 0.0,
69
+ "clip_ratio/region_mean": 0.0,
70
+ "completions/clipped_ratio": 0.0,
71
+ "completions/max_length": 2.0,
72
+ "completions/max_terminated_length": 2.0,
73
+ "completions/mean_length": 2.0,
74
+ "completions/mean_terminated_length": 2.0,
75
+ "completions/min_length": 2.0,
76
+ "completions/min_terminated_length": 2.0,
77
+ "entropy": 0.2137451171875,
78
+ "epoch": 0.04,
79
+ "frac_reward_zero_std": 0.75,
80
+ "grad_norm": 15.223323822021484,
81
+ "learning_rate": 3.4130309724299266e-07,
82
+ "loss": -0.0,
83
+ "num_tokens": 124196.0,
84
+ "reward": 1.359375,
85
+ "reward_std": 0.28125,
86
+ "rewards/category_reward_func/mean": 1.359375,
87
+ "rewards/category_reward_func/std": 0.5625,
88
+ "step": 3
89
+ },
90
+ {
91
+ "clip_ratio/high_max": 0.0,
92
+ "clip_ratio/high_mean": 0.0,
93
+ "clip_ratio/low_mean": 0.0,
94
+ "clip_ratio/low_min": 0.0,
95
+ "clip_ratio/region_mean": 0.0,
96
+ "completions/clipped_ratio": 0.0,
97
+ "completions/max_length": 2.0,
98
+ "completions/max_terminated_length": 2.0,
99
+ "completions/mean_length": 2.0,
100
+ "completions/mean_terminated_length": 2.0,
101
+ "completions/min_length": 2.0,
102
+ "completions/min_terminated_length": 2.0,
103
+ "entropy": 0.1277008056640625,
104
+ "epoch": 0.05333333333333334,
105
+ "frac_reward_zero_std": 0.75,
106
+ "grad_norm": 17.724227905273438,
107
+ "learning_rate": 4.30676558073393e-07,
108
+ "loss": -0.0,
109
+ "num_tokens": 165020.0,
110
+ "reward": 1.359375,
111
+ "reward_std": 0.28125,
112
+ "rewards/category_reward_func/mean": 1.359375,
113
+ "rewards/category_reward_func/std": 0.5625,
114
+ "step": 4
115
+ },
116
+ {
117
+ "clip_ratio/high_max": 0.0,
118
+ "clip_ratio/high_mean": 0.0,
119
+ "clip_ratio/low_mean": 0.0,
120
+ "clip_ratio/low_min": 0.0,
121
+ "clip_ratio/region_mean": 0.0,
122
+ "completions/clipped_ratio": 0.0,
123
+ "completions/max_length": 2.0,
124
+ "completions/max_terminated_length": 2.0,
125
+ "completions/mean_length": 2.0,
126
+ "completions/mean_terminated_length": 2.0,
127
+ "completions/min_length": 2.0,
128
+ "completions/min_terminated_length": 2.0,
129
+ "entropy": 0.198822021484375,
130
+ "epoch": 0.06666666666666667,
131
+ "frac_reward_zero_std": 1.0,
132
+ "grad_norm": 0.0,
133
+ "learning_rate": 5e-07,
134
+ "loss": 0.0,
135
+ "num_tokens": 241172.0,
136
+ "reward": 1.5,
137
+ "reward_std": 0.0,
138
+ "rewards/category_reward_func/mean": 1.5,
139
+ "rewards/category_reward_func/std": 0.0,
140
+ "step": 5
141
+ },
142
+ {
143
+ "clip_ratio/high_max": 0.0,
144
+ "clip_ratio/high_mean": 0.0,
145
+ "clip_ratio/low_mean": 0.0,
146
+ "clip_ratio/low_min": 0.0,
147
+ "clip_ratio/region_mean": 0.0,
148
+ "completions/clipped_ratio": 0.0,
149
+ "completions/max_length": 2.0,
150
+ "completions/max_terminated_length": 2.0,
151
+ "completions/mean_length": 2.0,
152
+ "completions/mean_terminated_length": 2.0,
153
+ "completions/min_length": 2.0,
154
+ "completions/min_terminated_length": 2.0,
155
+ "entropy": 0.175628662109375,
156
+ "epoch": 0.08,
157
+ "frac_reward_zero_std": 0.75,
158
+ "grad_norm": 19.26618003845215,
159
+ "learning_rate": 5.566413762796892e-07,
160
+ "loss": 0.0,
161
+ "num_tokens": 293140.0,
162
+ "reward": 0.421875,
163
+ "reward_std": 0.34375,
164
+ "rewards/category_reward_func/mean": 0.421875,
165
+ "rewards/category_reward_func/std": 1.273835301399231,
166
+ "step": 6
167
+ },
168
+ {
169
+ "clip_ratio/high_max": 0.0,
170
+ "clip_ratio/high_mean": 0.0,
171
+ "clip_ratio/low_mean": 0.0,
172
+ "clip_ratio/low_min": 0.0,
173
+ "clip_ratio/region_mean": 0.0,
174
+ "completions/clipped_ratio": 0.0,
175
+ "completions/max_length": 2.0,
176
+ "completions/max_terminated_length": 2.0,
177
+ "completions/mean_length": 2.0,
178
+ "completions/mean_terminated_length": 2.0,
179
+ "completions/min_length": 2.0,
180
+ "completions/min_terminated_length": 2.0,
181
+ "entropy": 0.175262451171875,
182
+ "epoch": 0.09333333333333334,
183
+ "frac_reward_zero_std": 0.75,
184
+ "grad_norm": 16.38401985168457,
185
+ "learning_rate": 6.045309775610838e-07,
186
+ "loss": 0.0,
187
+ "num_tokens": 352196.0,
188
+ "reward": 1.21875,
189
+ "reward_std": 0.32475951313972473,
190
+ "rewards/category_reward_func/mean": 1.21875,
191
+ "rewards/category_reward_func/std": 0.7685213088989258,
192
+ "step": 7
193
+ },
194
+ {
195
+ "clip_ratio/high_max": 0.0,
196
+ "clip_ratio/high_mean": 0.0,
197
+ "clip_ratio/low_mean": 0.0,
198
+ "clip_ratio/low_min": 0.0,
199
+ "clip_ratio/region_mean": 0.0,
200
+ "completions/clipped_ratio": 0.0,
201
+ "completions/max_length": 2.0,
202
+ "completions/max_terminated_length": 2.0,
203
+ "completions/mean_length": 2.0,
204
+ "completions/mean_terminated_length": 2.0,
205
+ "completions/min_length": 2.0,
206
+ "completions/min_terminated_length": 2.0,
207
+ "entropy": 0.221466064453125,
208
+ "epoch": 0.10666666666666667,
209
+ "frac_reward_zero_std": 0.75,
210
+ "grad_norm": 21.485958099365234,
211
+ "learning_rate": 6.460148371100895e-07,
212
+ "loss": 0.0,
213
+ "num_tokens": 396284.0,
214
+ "reward": 1.21875,
215
+ "reward_std": 0.32475951313972473,
216
+ "rewards/category_reward_func/mean": 1.21875,
217
+ "rewards/category_reward_func/std": 0.7685213088989258,
218
+ "step": 8
219
+ },
220
+ {
221
+ "clip_ratio/high_max": 0.0,
222
+ "clip_ratio/high_mean": 0.0,
223
+ "clip_ratio/low_mean": 0.0,
224
+ "clip_ratio/low_min": 0.0,
225
+ "clip_ratio/region_mean": 0.0,
226
+ "completions/clipped_ratio": 0.0,
227
+ "completions/max_length": 2.0,
228
+ "completions/max_terminated_length": 2.0,
229
+ "completions/mean_length": 2.0,
230
+ "completions/mean_terminated_length": 2.0,
231
+ "completions/min_length": 2.0,
232
+ "completions/min_terminated_length": 2.0,
233
+ "entropy": 0.14752197265625,
234
+ "epoch": 0.12,
235
+ "frac_reward_zero_std": 0.5,
236
+ "grad_norm": 38.9441032409668,
237
+ "learning_rate": 6.826061944859853e-07,
238
+ "loss": -0.0,
239
+ "num_tokens": 430332.0,
240
+ "reward": 1.1875,
241
+ "reward_std": 0.625,
242
+ "rewards/category_reward_func/mean": 1.1875,
243
+ "rewards/category_reward_func/std": 0.8587782382965088,
244
+ "step": 9
245
+ },
246
+ {
247
+ "clip_ratio/high_max": 0.0,
248
+ "clip_ratio/high_mean": 0.0,
249
+ "clip_ratio/low_mean": 0.0,
250
+ "clip_ratio/low_min": 0.0,
251
+ "clip_ratio/region_mean": 0.0,
252
+ "completions/clipped_ratio": 0.0,
253
+ "completions/max_length": 2.0,
254
+ "completions/max_terminated_length": 2.0,
255
+ "completions/mean_length": 2.0,
256
+ "completions/mean_terminated_length": 2.0,
257
+ "completions/min_length": 2.0,
258
+ "completions/min_terminated_length": 2.0,
259
+ "entropy": 0.26763916015625,
260
+ "epoch": 0.13333333333333333,
261
+ "frac_reward_zero_std": 0.25,
262
+ "grad_norm": 48.07648849487305,
263
+ "learning_rate": 7.153382790366966e-07,
264
+ "loss": 0.0,
265
+ "num_tokens": 468928.0,
266
+ "reward": 0.328125,
267
+ "reward_std": 0.65625,
268
+ "rewards/category_reward_func/mean": 0.328125,
269
+ "rewards/category_reward_func/std": 1.2237876653671265,
270
+ "step": 10
271
+ },
272
+ {
273
+ "clip_ratio/high_max": 0.0,
274
+ "clip_ratio/high_mean": 0.0,
275
+ "clip_ratio/low_mean": 0.0,
276
+ "clip_ratio/low_min": 0.0,
277
+ "clip_ratio/region_mean": 0.0,
278
+ "completions/clipped_ratio": 0.0,
279
+ "completions/max_length": 2.0,
280
+ "completions/max_terminated_length": 2.0,
281
+ "completions/mean_length": 2.0,
282
+ "completions/mean_terminated_length": 2.0,
283
+ "completions/min_length": 2.0,
284
+ "completions/min_terminated_length": 2.0,
285
+ "entropy": 0.091400146484375,
286
+ "epoch": 0.14666666666666667,
287
+ "frac_reward_zero_std": 0.5,
288
+ "grad_norm": 63.72185516357422,
289
+ "learning_rate": 7.449480512024891e-07,
290
+ "loss": 0.0,
291
+ "num_tokens": 499832.0,
292
+ "reward": 0.65625,
293
+ "reward_std": 0.5625,
294
+ "rewards/category_reward_func/mean": 0.65625,
295
+ "rewards/category_reward_func/std": 1.125,
296
+ "step": 11
297
+ },
298
+ {
299
+ "clip_ratio/high_max": 0.0,
300
+ "clip_ratio/high_mean": 0.0,
301
+ "clip_ratio/low_mean": 0.0,
302
+ "clip_ratio/low_min": 0.0,
303
+ "clip_ratio/region_mean": 0.0,
304
+ "completions/clipped_ratio": 0.0,
305
+ "completions/max_length": 2.0,
306
+ "completions/max_terminated_length": 2.0,
307
+ "completions/mean_length": 2.0,
308
+ "completions/mean_terminated_length": 2.0,
309
+ "completions/min_length": 2.0,
310
+ "completions/min_terminated_length": 2.0,
311
+ "entropy": 0.2340087890625,
312
+ "epoch": 0.16,
313
+ "frac_reward_zero_std": 1.0,
314
+ "grad_norm": 0.0,
315
+ "learning_rate": 7.719796553163857e-07,
316
+ "loss": 0.0,
317
+ "num_tokens": 550096.0,
318
+ "reward": 1.5,
319
+ "reward_std": 0.0,
320
+ "rewards/category_reward_func/mean": 1.5,
321
+ "rewards/category_reward_func/std": 0.0,
322
+ "step": 12
323
+ },
324
+ {
325
+ "clip_ratio/high_max": 0.0,
326
+ "clip_ratio/high_mean": 0.0,
327
+ "clip_ratio/low_mean": 0.0,
328
+ "clip_ratio/low_min": 0.0,
329
+ "clip_ratio/region_mean": 0.0,
330
+ "completions/clipped_ratio": 0.0,
331
+ "completions/max_length": 2.0,
332
+ "completions/max_terminated_length": 2.0,
333
+ "completions/mean_length": 2.0,
334
+ "completions/mean_terminated_length": 2.0,
335
+ "completions/min_length": 2.0,
336
+ "completions/min_terminated_length": 2.0,
337
+ "entropy": 0.1494903564453125,
338
+ "epoch": 0.17333333333333334,
339
+ "frac_reward_zero_std": 0.25,
340
+ "grad_norm": 49.42058563232422,
341
+ "learning_rate": 7.968463205835412e-07,
342
+ "loss": 0.0,
343
+ "num_tokens": 589668.0,
344
+ "reward": 0.46875,
345
+ "reward_std": 0.9925506114959717,
346
+ "rewards/category_reward_func/mean": 0.46875,
347
+ "rewards/category_reward_func/std": 1.2209115028381348,
348
+ "step": 13
349
+ },
350
+ {
351
+ "clip_ratio/high_max": 0.0,
352
+ "clip_ratio/high_mean": 0.0,
353
+ "clip_ratio/low_mean": 0.0,
354
+ "clip_ratio/low_min": 0.0,
355
+ "clip_ratio/region_mean": 0.0,
356
+ "completions/clipped_ratio": 0.0,
357
+ "completions/max_length": 2.0,
358
+ "completions/max_terminated_length": 2.0,
359
+ "completions/mean_length": 2.0,
360
+ "completions/mean_terminated_length": 2.0,
361
+ "completions/min_length": 2.0,
362
+ "completions/min_terminated_length": 2.0,
363
+ "entropy": 0.169189453125,
364
+ "epoch": 0.18666666666666668,
365
+ "frac_reward_zero_std": 0.25,
366
+ "grad_norm": 48.9026985168457,
367
+ "learning_rate": 8.198692565977803e-07,
368
+ "loss": 0.0,
369
+ "num_tokens": 619500.0,
370
+ "reward": 0.515625,
371
+ "reward_std": 0.9307689666748047,
372
+ "rewards/category_reward_func/mean": 0.515625,
373
+ "rewards/category_reward_func/std": 1.1527819633483887,
374
+ "step": 14
375
+ },
376
+ {
377
+ "clip_ratio/high_max": 0.0,
378
+ "clip_ratio/high_mean": 0.0,
379
+ "clip_ratio/low_mean": 0.0,
380
+ "clip_ratio/low_min": 0.0,
381
+ "clip_ratio/region_mean": 0.0,
382
+ "completions/clipped_ratio": 0.0,
383
+ "completions/max_length": 2.0,
384
+ "completions/max_terminated_length": 2.0,
385
+ "completions/mean_length": 2.0,
386
+ "completions/mean_terminated_length": 2.0,
387
+ "completions/min_length": 2.0,
388
+ "completions/min_terminated_length": 2.0,
389
+ "entropy": 0.201019287109375,
390
+ "epoch": 0.2,
391
+ "frac_reward_zero_std": 0.75,
392
+ "grad_norm": 44.559425354003906,
393
+ "learning_rate": 8.413030972429927e-07,
394
+ "loss": 0.0,
395
+ "num_tokens": 665544.0,
396
+ "reward": -0.046875,
397
+ "reward_std": 0.28125,
398
+ "rewards/category_reward_func/mean": -0.046875,
399
+ "rewards/category_reward_func/std": 1.0771055221557617,
400
+ "step": 15
401
+ },
402
+ {
403
+ "clip_ratio/high_max": 0.0,
404
+ "clip_ratio/high_mean": 0.0,
405
+ "clip_ratio/low_mean": 0.0,
406
+ "clip_ratio/low_min": 0.0,
407
+ "clip_ratio/region_mean": 0.0,
408
+ "completions/clipped_ratio": 0.0,
409
+ "completions/max_length": 2.0,
410
+ "completions/max_terminated_length": 2.0,
411
+ "completions/mean_length": 2.0,
412
+ "completions/mean_terminated_length": 2.0,
413
+ "completions/min_length": 2.0,
414
+ "completions/min_terminated_length": 2.0,
415
+ "entropy": 0.22216796875,
416
+ "epoch": 0.21333333333333335,
417
+ "frac_reward_zero_std": 1.0,
418
+ "grad_norm": 0.0,
419
+ "learning_rate": 8.61353116146786e-07,
420
+ "loss": 0.0,
421
+ "num_tokens": 711584.0,
422
+ "reward": 1.5,
423
+ "reward_std": 0.0,
424
+ "rewards/category_reward_func/mean": 1.5,
425
+ "rewards/category_reward_func/std": 0.0,
426
+ "step": 16
427
+ },
428
+ {
429
+ "clip_ratio/high_max": 0.0,
430
+ "clip_ratio/high_mean": 0.0,
431
+ "clip_ratio/low_mean": 0.0,
432
+ "clip_ratio/low_min": 0.0,
433
+ "clip_ratio/region_mean": 0.0,
434
+ "completions/clipped_ratio": 0.0,
435
+ "completions/max_length": 2.0,
436
+ "completions/max_terminated_length": 2.0,
437
+ "completions/mean_length": 2.0,
438
+ "completions/mean_terminated_length": 2.0,
439
+ "completions/min_length": 2.0,
440
+ "completions/min_terminated_length": 2.0,
441
+ "entropy": 0.0984649658203125,
442
+ "epoch": 0.22666666666666666,
443
+ "frac_reward_zero_std": 1.0,
444
+ "grad_norm": 0.0,
445
+ "learning_rate": 8.801872138612941e-07,
446
+ "loss": 0.0,
447
+ "num_tokens": 761108.0,
448
+ "reward": 0.9375,
449
+ "reward_std": 0.0,
450
+ "rewards/category_reward_func/mean": 0.9375,
451
+ "rewards/category_reward_func/std": 1.0062305927276611,
452
+ "step": 17
453
+ },
454
+ {
455
+ "clip_ratio/high_max": 0.0,
456
+ "clip_ratio/high_mean": 0.0,
457
+ "clip_ratio/low_mean": 0.0,
458
+ "clip_ratio/low_min": 0.0,
459
+ "clip_ratio/region_mean": 0.0,
460
+ "completions/clipped_ratio": 0.0,
461
+ "completions/max_length": 2.0,
462
+ "completions/max_terminated_length": 2.0,
463
+ "completions/mean_length": 2.0,
464
+ "completions/mean_terminated_length": 2.0,
465
+ "completions/min_length": 2.0,
466
+ "completions/min_terminated_length": 2.0,
467
+ "entropy": 0.23809814453125,
468
+ "epoch": 0.24,
469
+ "frac_reward_zero_std": 0.75,
470
+ "grad_norm": 29.925472259521484,
471
+ "learning_rate": 8.979444735226818e-07,
472
+ "loss": 0.0,
473
+ "num_tokens": 800464.0,
474
+ "reward": 1.21875,
475
+ "reward_std": 0.32475951313972473,
476
+ "rewards/category_reward_func/mean": 1.21875,
477
+ "rewards/category_reward_func/std": 0.7685213088989258,
478
+ "step": 18
479
+ },
480
+ {
481
+ "clip_ratio/high_max": 0.0,
482
+ "clip_ratio/high_mean": 0.0,
483
+ "clip_ratio/low_mean": 0.0,
484
+ "clip_ratio/low_min": 0.0,
485
+ "clip_ratio/region_mean": 0.0,
486
+ "completions/clipped_ratio": 0.0,
487
+ "completions/max_length": 2.0,
488
+ "completions/max_terminated_length": 2.0,
489
+ "completions/mean_length": 2.0,
490
+ "completions/mean_terminated_length": 2.0,
491
+ "completions/min_length": 2.0,
492
+ "completions/min_terminated_length": 2.0,
493
+ "entropy": 0.1519927978515625,
494
+ "epoch": 0.25333333333333335,
495
+ "frac_reward_zero_std": 1.0,
496
+ "grad_norm": 0.0,
497
+ "learning_rate": 9.147414002175752e-07,
498
+ "loss": 0.0,
499
+ "num_tokens": 858768.0,
500
+ "reward": 1.5,
501
+ "reward_std": 0.0,
502
+ "rewards/category_reward_func/mean": 1.5,
503
+ "rewards/category_reward_func/std": 0.0,
504
+ "step": 19
505
+ },
506
+ {
507
+ "clip_ratio/high_max": 0.0,
508
+ "clip_ratio/high_mean": 0.0,
509
+ "clip_ratio/low_mean": 0.0,
510
+ "clip_ratio/low_min": 0.0,
511
+ "clip_ratio/region_mean": 0.0,
512
+ "completions/clipped_ratio": 0.0,
513
+ "completions/max_length": 2.0,
514
+ "completions/max_terminated_length": 2.0,
515
+ "completions/mean_length": 2.0,
516
+ "completions/mean_terminated_length": 2.0,
517
+ "completions/min_length": 2.0,
518
+ "completions/min_terminated_length": 2.0,
519
+ "entropy": 0.2058868408203125,
520
+ "epoch": 0.26666666666666666,
521
+ "frac_reward_zero_std": 0.75,
522
+ "grad_norm": 23.14743423461914,
523
+ "learning_rate": 9.306765580733931e-07,
524
+ "loss": 0.0,
525
+ "num_tokens": 918644.0,
526
+ "reward": 1.328125,
527
+ "reward_std": 0.34375,
528
+ "rewards/category_reward_func/mean": 1.328125,
529
+ "rewards/category_reward_func/std": 0.6875,
530
+ "step": 20
531
+ },
532
+ {
533
+ "clip_ratio/high_max": 0.0,
534
+ "clip_ratio/high_mean": 0.0,
535
+ "clip_ratio/low_mean": 0.0,
536
+ "clip_ratio/low_min": 0.0,
537
+ "clip_ratio/region_mean": 0.0,
538
+ "completions/clipped_ratio": 0.0,
539
+ "completions/max_length": 2.0,
540
+ "completions/max_terminated_length": 2.0,
541
+ "completions/mean_length": 2.0,
542
+ "completions/mean_terminated_length": 2.0,
543
+ "completions/min_length": 2.0,
544
+ "completions/min_terminated_length": 2.0,
545
+ "entropy": 0.1350860595703125,
546
+ "epoch": 0.28,
547
+ "frac_reward_zero_std": 0.25,
548
+ "grad_norm": 36.214595794677734,
549
+ "learning_rate": 9.458340748040765e-07,
550
+ "loss": -0.0,
551
+ "num_tokens": 954748.0,
552
+ "reward": 0.796875,
553
+ "reward_std": 0.84375,
554
+ "rewards/category_reward_func/mean": 0.796875,
555
+ "rewards/category_reward_func/std": 1.0771055221557617,
556
+ "step": 21
557
+ },
558
+ {
559
+ "clip_ratio/high_max": 0.0,
560
+ "clip_ratio/high_mean": 0.0,
561
+ "clip_ratio/low_mean": 0.0,
562
+ "clip_ratio/low_min": 0.0,
563
+ "clip_ratio/region_mean": 0.0,
564
+ "completions/clipped_ratio": 0.0,
565
+ "completions/max_length": 2.0,
566
+ "completions/max_terminated_length": 2.0,
567
+ "completions/mean_length": 2.0,
568
+ "completions/mean_terminated_length": 2.0,
569
+ "completions/min_length": 2.0,
570
+ "completions/min_terminated_length": 2.0,
571
+ "entropy": 0.178436279296875,
572
+ "epoch": 0.29333333333333333,
573
+ "frac_reward_zero_std": 0.5,
574
+ "grad_norm": 31.41033363342285,
575
+ "learning_rate": 9.602863302391857e-07,
576
+ "loss": 0.0,
577
+ "num_tokens": 987760.0,
578
+ "reward": 0.515625,
579
+ "reward_std": 0.65625,
580
+ "rewards/category_reward_func/mean": 0.515625,
581
+ "rewards/category_reward_func/std": 1.333756446838379,
582
+ "step": 22
583
+ },
584
+ {
585
+ "clip_ratio/high_max": 0.0,
586
+ "clip_ratio/high_mean": 0.0,
587
+ "clip_ratio/low_mean": 0.0,
588
+ "clip_ratio/low_min": 0.0,
589
+ "clip_ratio/region_mean": 0.0,
590
+ "completions/clipped_ratio": 0.0,
591
+ "completions/max_length": 2.0,
592
+ "completions/max_terminated_length": 2.0,
593
+ "completions/mean_length": 2.0,
594
+ "completions/mean_terminated_length": 2.0,
595
+ "completions/min_length": 2.0,
596
+ "completions/min_terminated_length": 2.0,
597
+ "entropy": 0.157470703125,
598
+ "epoch": 0.30666666666666664,
599
+ "frac_reward_zero_std": 0.5,
600
+ "grad_norm": 29.780487060546875,
601
+ "learning_rate": 9.740960467331898e-07,
602
+ "loss": 0.0,
603
+ "num_tokens": 1042116.0,
604
+ "reward": 0.609375,
605
+ "reward_std": 0.6060094833374023,
606
+ "rewards/category_reward_func/mean": 0.609375,
607
+ "rewards/category_reward_func/std": 1.2005858421325684,
608
+ "step": 23
609
+ },
610
+ {
611
+ "clip_ratio/high_max": 0.0,
612
+ "clip_ratio/high_mean": 0.0,
613
+ "clip_ratio/low_mean": 0.0,
614
+ "clip_ratio/low_min": 0.0,
615
+ "clip_ratio/region_mean": 0.0,
616
+ "completions/clipped_ratio": 0.0,
617
+ "completions/max_length": 2.0,
618
+ "completions/max_terminated_length": 2.0,
619
+ "completions/mean_length": 2.0,
620
+ "completions/mean_terminated_length": 2.0,
621
+ "completions/min_length": 2.0,
622
+ "completions/min_terminated_length": 2.0,
623
+ "entropy": 0.099609375,
624
+ "epoch": 0.32,
625
+ "frac_reward_zero_std": 0.5,
626
+ "grad_norm": 20.054729461669922,
627
+ "learning_rate": 9.873179343530824e-07,
628
+ "loss": -0.0,
629
+ "num_tokens": 1083348.0,
630
+ "reward": 1.21875,
631
+ "reward_std": 0.5625,
632
+ "rewards/category_reward_func/mean": 1.21875,
633
+ "rewards/category_reward_func/std": 0.7685213088989258,
634
+ "step": 24
635
+ },
636
+ {
637
+ "clip_ratio/high_max": 0.0,
638
+ "clip_ratio/high_mean": 0.0,
639
+ "clip_ratio/low_mean": 0.0,
640
+ "clip_ratio/low_min": 0.0,
641
+ "clip_ratio/region_mean": 0.0,
642
+ "completions/clipped_ratio": 0.0,
643
+ "completions/max_length": 2.0,
644
+ "completions/max_terminated_length": 2.0,
645
+ "completions/mean_length": 2.0,
646
+ "completions/mean_terminated_length": 2.0,
647
+ "completions/min_length": 2.0,
648
+ "completions/min_terminated_length": 2.0,
649
+ "entropy": 0.133087158203125,
650
+ "epoch": 0.3333333333333333,
651
+ "frac_reward_zero_std": 0.5,
652
+ "grad_norm": 49.41580581665039,
653
+ "learning_rate": 1e-06,
654
+ "loss": 0.0,
655
+ "num_tokens": 1133176.0,
656
+ "reward": 0.9375,
657
+ "reward_std": 0.5625,
658
+ "rewards/category_reward_func/mean": 0.9375,
659
+ "rewards/category_reward_func/std": 1.0062305927276611,
660
+ "step": 25
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.0,
669
+ "completions/max_length": 2.0,
670
+ "completions/max_terminated_length": 2.0,
671
+ "completions/mean_length": 2.0,
672
+ "completions/mean_terminated_length": 2.0,
673
+ "completions/min_length": 2.0,
674
+ "completions/min_terminated_length": 2.0,
675
+ "entropy": 0.0871124267578125,
676
+ "epoch": 0.3466666666666667,
677
+ "frac_reward_zero_std": 0.75,
678
+ "grad_norm": 29.15717124938965,
679
+ "learning_rate": 1e-06,
680
+ "loss": 0.0,
681
+ "num_tokens": 1164928.0,
682
+ "reward": 0.65625,
683
+ "reward_std": 0.32475951313972473,
684
+ "rewards/category_reward_func/mean": 0.65625,
685
+ "rewards/category_reward_func/std": 1.125,
686
+ "step": 26
687
+ },
688
+ {
689
+ "clip_ratio/high_max": 0.0,
690
+ "clip_ratio/high_mean": 0.0,
691
+ "clip_ratio/low_mean": 0.0,
692
+ "clip_ratio/low_min": 0.0,
693
+ "clip_ratio/region_mean": 0.0,
694
+ "completions/clipped_ratio": 0.0,
695
+ "completions/max_length": 2.0,
696
+ "completions/max_terminated_length": 2.0,
697
+ "completions/mean_length": 2.0,
698
+ "completions/mean_terminated_length": 2.0,
699
+ "completions/min_length": 2.0,
700
+ "completions/min_terminated_length": 2.0,
701
+ "entropy": 0.075164794921875,
702
+ "epoch": 0.36,
703
+ "frac_reward_zero_std": 0.5,
704
+ "grad_norm": 46.123504638671875,
705
+ "learning_rate": 1e-06,
706
+ "loss": 0.0,
707
+ "num_tokens": 1199224.0,
708
+ "reward": 0.25,
709
+ "reward_std": 0.6495190262794495,
710
+ "rewards/category_reward_func/mean": 0.25,
711
+ "rewards/category_reward_func/std": 1.3038405179977417,
712
+ "step": 27
713
+ },
714
+ {
715
+ "clip_ratio/high_max": 0.0,
716
+ "clip_ratio/high_mean": 0.0,
717
+ "clip_ratio/low_mean": 0.0,
718
+ "clip_ratio/low_min": 0.0,
719
+ "clip_ratio/region_mean": 0.0,
720
+ "completions/clipped_ratio": 0.0,
721
+ "completions/max_length": 2.0,
722
+ "completions/max_terminated_length": 2.0,
723
+ "completions/mean_length": 2.0,
724
+ "completions/mean_terminated_length": 2.0,
725
+ "completions/min_length": 2.0,
726
+ "completions/min_terminated_length": 2.0,
727
+ "entropy": 0.289825439453125,
728
+ "epoch": 0.37333333333333335,
729
+ "frac_reward_zero_std": 0.5,
730
+ "grad_norm": 76.34833526611328,
731
+ "learning_rate": 1e-06,
732
+ "loss": -0.0,
733
+ "num_tokens": 1221156.0,
734
+ "reward": 0.515625,
735
+ "reward_std": 0.6060094833374023,
736
+ "rewards/category_reward_func/mean": 0.515625,
737
+ "rewards/category_reward_func/std": 1.1527819633483887,
738
+ "step": 28
739
+ },
740
+ {
741
+ "clip_ratio/high_max": 0.0,
742
+ "clip_ratio/high_mean": 0.0,
743
+ "clip_ratio/low_mean": 0.0,
744
+ "clip_ratio/low_min": 0.0,
745
+ "clip_ratio/region_mean": 0.0,
746
+ "completions/clipped_ratio": 0.0,
747
+ "completions/max_length": 2.0,
748
+ "completions/max_terminated_length": 2.0,
749
+ "completions/mean_length": 2.0,
750
+ "completions/mean_terminated_length": 2.0,
751
+ "completions/min_length": 2.0,
752
+ "completions/min_terminated_length": 2.0,
753
+ "entropy": 0.135528564453125,
754
+ "epoch": 0.38666666666666666,
755
+ "frac_reward_zero_std": 0.5,
756
+ "grad_norm": 52.0339469909668,
757
+ "learning_rate": 1e-06,
758
+ "loss": 0.0,
759
+ "num_tokens": 1254016.0,
760
+ "reward": 0.796875,
761
+ "reward_std": 0.6060094833374023,
762
+ "rewards/category_reward_func/mean": 0.796875,
763
+ "rewards/category_reward_func/std": 1.0771055221557617,
764
+ "step": 29
765
+ },
766
+ {
767
+ "clip_ratio/high_max": 0.0,
768
+ "clip_ratio/high_mean": 0.0,
769
+ "clip_ratio/low_mean": 0.0,
770
+ "clip_ratio/low_min": 0.0,
771
+ "clip_ratio/region_mean": 0.0,
772
+ "completions/clipped_ratio": 0.0,
773
+ "completions/max_length": 2.0,
774
+ "completions/max_terminated_length": 2.0,
775
+ "completions/mean_length": 2.0,
776
+ "completions/mean_terminated_length": 2.0,
777
+ "completions/min_length": 2.0,
778
+ "completions/min_terminated_length": 2.0,
779
+ "entropy": 0.202178955078125,
780
+ "epoch": 0.4,
781
+ "frac_reward_zero_std": 1.0,
782
+ "grad_norm": 0.0,
783
+ "learning_rate": 1e-06,
784
+ "loss": 0.0,
785
+ "num_tokens": 1321252.0,
786
+ "reward": 1.5,
787
+ "reward_std": 0.0,
788
+ "rewards/category_reward_func/mean": 1.5,
789
+ "rewards/category_reward_func/std": 0.0,
790
+ "step": 30
791
+ },
792
+ {
793
+ "clip_ratio/high_max": 0.0,
794
+ "clip_ratio/high_mean": 0.0,
795
+ "clip_ratio/low_mean": 0.0,
796
+ "clip_ratio/low_min": 0.0,
797
+ "clip_ratio/region_mean": 0.0,
798
+ "completions/clipped_ratio": 0.0,
799
+ "completions/max_length": 2.0,
800
+ "completions/max_terminated_length": 2.0,
801
+ "completions/mean_length": 2.0,
802
+ "completions/mean_terminated_length": 2.0,
803
+ "completions/min_length": 2.0,
804
+ "completions/min_terminated_length": 2.0,
805
+ "entropy": 0.174652099609375,
806
+ "epoch": 0.41333333333333333,
807
+ "frac_reward_zero_std": 0.75,
808
+ "grad_norm": 18.99894142150879,
809
+ "learning_rate": 1e-06,
810
+ "loss": 0.0,
811
+ "num_tokens": 1357452.0,
812
+ "reward": 1.21875,
813
+ "reward_std": 0.32475951313972473,
814
+ "rewards/category_reward_func/mean": 1.21875,
815
+ "rewards/category_reward_func/std": 0.7685213088989258,
816
+ "step": 31
817
+ },
818
+ {
819
+ "clip_ratio/high_max": 0.0,
820
+ "clip_ratio/high_mean": 0.0,
821
+ "clip_ratio/low_mean": 0.0,
822
+ "clip_ratio/low_min": 0.0,
823
+ "clip_ratio/region_mean": 0.0,
824
+ "completions/clipped_ratio": 0.0,
825
+ "completions/max_length": 2.0,
826
+ "completions/max_terminated_length": 2.0,
827
+ "completions/mean_length": 2.0,
828
+ "completions/mean_terminated_length": 2.0,
829
+ "completions/min_length": 2.0,
830
+ "completions/min_terminated_length": 2.0,
831
+ "entropy": 0.221099853515625,
832
+ "epoch": 0.4266666666666667,
833
+ "frac_reward_zero_std": 1.0,
834
+ "grad_norm": 0.0,
835
+ "learning_rate": 1e-06,
836
+ "loss": 0.0,
837
+ "num_tokens": 1411864.0,
838
+ "reward": 1.5,
839
+ "reward_std": 0.0,
840
+ "rewards/category_reward_func/mean": 1.5,
841
+ "rewards/category_reward_func/std": 0.0,
842
+ "step": 32
843
+ },
844
+ {
845
+ "clip_ratio/high_max": 0.0,
846
+ "clip_ratio/high_mean": 0.0,
847
+ "clip_ratio/low_mean": 0.0,
848
+ "clip_ratio/low_min": 0.0,
849
+ "clip_ratio/region_mean": 0.0,
850
+ "completions/clipped_ratio": 0.0,
851
+ "completions/max_length": 2.0,
852
+ "completions/max_terminated_length": 2.0,
853
+ "completions/mean_length": 2.0,
854
+ "completions/mean_terminated_length": 2.0,
855
+ "completions/min_length": 2.0,
856
+ "completions/min_terminated_length": 2.0,
857
+ "entropy": 0.216094970703125,
858
+ "epoch": 0.44,
859
+ "frac_reward_zero_std": 1.0,
860
+ "grad_norm": 0.0,
861
+ "learning_rate": 1e-06,
862
+ "loss": 0.0,
863
+ "num_tokens": 1454212.0,
864
+ "reward": 0.9375,
865
+ "reward_std": 0.0,
866
+ "rewards/category_reward_func/mean": 0.9375,
867
+ "rewards/category_reward_func/std": 1.0062305927276611,
868
+ "step": 33
869
+ },
870
+ {
871
+ "clip_ratio/high_max": 0.0,
872
+ "clip_ratio/high_mean": 0.0,
873
+ "clip_ratio/low_mean": 0.0,
874
+ "clip_ratio/low_min": 0.0,
875
+ "clip_ratio/region_mean": 0.0,
876
+ "completions/clipped_ratio": 0.0,
877
+ "completions/max_length": 2.0,
878
+ "completions/max_terminated_length": 2.0,
879
+ "completions/mean_length": 2.0,
880
+ "completions/mean_terminated_length": 2.0,
881
+ "completions/min_length": 2.0,
882
+ "completions/min_terminated_length": 2.0,
883
+ "entropy": 0.24285888671875,
884
+ "epoch": 0.4533333333333333,
885
+ "frac_reward_zero_std": 0.5,
886
+ "grad_norm": 24.658159255981445,
887
+ "learning_rate": 1e-06,
888
+ "loss": 0.0,
889
+ "num_tokens": 1491820.0,
890
+ "reward": 0.109375,
891
+ "reward_std": 0.6060094833374023,
892
+ "rewards/category_reward_func/mean": 0.109375,
893
+ "rewards/category_reward_func/std": 1.281173825263977,
894
+ "step": 34
895
+ },
896
+ {
897
+ "clip_ratio/high_max": 0.0,
898
+ "clip_ratio/high_mean": 0.0,
899
+ "clip_ratio/low_mean": 0.0,
900
+ "clip_ratio/low_min": 0.0,
901
+ "clip_ratio/region_mean": 0.0,
902
+ "completions/clipped_ratio": 0.0,
903
+ "completions/max_length": 2.0,
904
+ "completions/max_terminated_length": 2.0,
905
+ "completions/mean_length": 2.0,
906
+ "completions/mean_terminated_length": 2.0,
907
+ "completions/min_length": 2.0,
908
+ "completions/min_terminated_length": 2.0,
909
+ "entropy": 0.271026611328125,
910
+ "epoch": 0.4666666666666667,
911
+ "frac_reward_zero_std": 0.75,
912
+ "grad_norm": 29.675661087036133,
913
+ "learning_rate": 1e-06,
914
+ "loss": -0.0,
915
+ "num_tokens": 1543328.0,
916
+ "reward": 1.359375,
917
+ "reward_std": 0.28125,
918
+ "rewards/category_reward_func/mean": 1.359375,
919
+ "rewards/category_reward_func/std": 0.5625,
920
+ "step": 35
921
+ },
922
+ {
923
+ "clip_ratio/high_max": 0.0,
924
+ "clip_ratio/high_mean": 0.0,
925
+ "clip_ratio/low_mean": 0.0,
926
+ "clip_ratio/low_min": 0.0,
927
+ "clip_ratio/region_mean": 0.0,
928
+ "completions/clipped_ratio": 0.0,
929
+ "completions/max_length": 2.0,
930
+ "completions/max_terminated_length": 2.0,
931
+ "completions/mean_length": 2.0,
932
+ "completions/mean_terminated_length": 2.0,
933
+ "completions/min_length": 2.0,
934
+ "completions/min_terminated_length": 2.0,
935
+ "entropy": 0.20477294921875,
936
+ "epoch": 0.48,
937
+ "frac_reward_zero_std": 0.5,
938
+ "grad_norm": 34.019290924072266,
939
+ "learning_rate": 1e-06,
940
+ "loss": 0.0,
941
+ "num_tokens": 1581208.0,
942
+ "reward": 0.9375,
943
+ "reward_std": 0.5625,
944
+ "rewards/category_reward_func/mean": 0.9375,
945
+ "rewards/category_reward_func/std": 1.0062305927276611,
946
+ "step": 36
947
+ },
948
+ {
949
+ "clip_ratio/high_max": 0.0,
950
+ "clip_ratio/high_mean": 0.0,
951
+ "clip_ratio/low_mean": 0.0,
952
+ "clip_ratio/low_min": 0.0,
953
+ "clip_ratio/region_mean": 0.0,
954
+ "completions/clipped_ratio": 0.0,
955
+ "completions/max_length": 2.0,
956
+ "completions/max_terminated_length": 2.0,
957
+ "completions/mean_length": 2.0,
958
+ "completions/mean_terminated_length": 2.0,
959
+ "completions/min_length": 2.0,
960
+ "completions/min_terminated_length": 2.0,
961
+ "entropy": 0.163177490234375,
962
+ "epoch": 0.49333333333333335,
963
+ "frac_reward_zero_std": 0.75,
964
+ "grad_norm": 27.8812255859375,
965
+ "learning_rate": 1e-06,
966
+ "loss": -0.0,
967
+ "num_tokens": 1614672.0,
968
+ "reward": 1.359375,
969
+ "reward_std": 0.28125,
970
+ "rewards/category_reward_func/mean": 1.359375,
971
+ "rewards/category_reward_func/std": 0.5625,
972
+ "step": 37
973
+ },
974
+ {
975
+ "clip_ratio/high_max": 0.0,
976
+ "clip_ratio/high_mean": 0.0,
977
+ "clip_ratio/low_mean": 0.0,
978
+ "clip_ratio/low_min": 0.0,
979
+ "clip_ratio/region_mean": 0.0,
980
+ "completions/clipped_ratio": 0.0,
981
+ "completions/max_length": 2.0,
982
+ "completions/max_terminated_length": 2.0,
983
+ "completions/mean_length": 2.0,
984
+ "completions/mean_terminated_length": 2.0,
985
+ "completions/min_length": 2.0,
986
+ "completions/min_terminated_length": 2.0,
987
+ "entropy": 0.0792388916015625,
988
+ "epoch": 0.5066666666666667,
989
+ "frac_reward_zero_std": 0.25,
990
+ "grad_norm": 30.810190200805664,
991
+ "learning_rate": 1e-06,
992
+ "loss": 0.0,
993
+ "num_tokens": 1656416.0,
994
+ "reward": 0.65625,
995
+ "reward_std": 0.8872594833374023,
996
+ "rewards/category_reward_func/mean": 0.65625,
997
+ "rewards/category_reward_func/std": 1.125,
998
+ "step": 38
999
+ },
1000
+ {
1001
+ "clip_ratio/high_max": 0.0,
1002
+ "clip_ratio/high_mean": 0.0,
1003
+ "clip_ratio/low_mean": 0.0,
1004
+ "clip_ratio/low_min": 0.0,
1005
+ "clip_ratio/region_mean": 0.0,
1006
+ "completions/clipped_ratio": 0.0,
1007
+ "completions/max_length": 2.0,
1008
+ "completions/max_terminated_length": 2.0,
1009
+ "completions/mean_length": 2.0,
1010
+ "completions/mean_terminated_length": 2.0,
1011
+ "completions/min_length": 2.0,
1012
+ "completions/min_terminated_length": 2.0,
1013
+ "entropy": 0.2446746826171875,
1014
+ "epoch": 0.52,
1015
+ "frac_reward_zero_std": 0.75,
1016
+ "grad_norm": 21.632761001586914,
1017
+ "learning_rate": 1e-06,
1018
+ "loss": 0.0,
1019
+ "num_tokens": 1709100.0,
1020
+ "reward": 1.078125,
1021
+ "reward_std": 0.28125,
1022
+ "rewards/category_reward_func/mean": 1.078125,
1023
+ "rewards/category_reward_func/std": 0.9070039987564087,
1024
+ "step": 39
1025
+ },
1026
+ {
1027
+ "clip_ratio/high_max": 0.0,
1028
+ "clip_ratio/high_mean": 0.0,
1029
+ "clip_ratio/low_mean": 0.0,
1030
+ "clip_ratio/low_min": 0.0,
1031
+ "clip_ratio/region_mean": 0.0,
1032
+ "completions/clipped_ratio": 0.0,
1033
+ "completions/max_length": 2.0,
1034
+ "completions/max_terminated_length": 2.0,
1035
+ "completions/mean_length": 2.0,
1036
+ "completions/mean_terminated_length": 2.0,
1037
+ "completions/min_length": 2.0,
1038
+ "completions/min_terminated_length": 2.0,
1039
+ "entropy": 0.181365966796875,
1040
+ "epoch": 0.5333333333333333,
1041
+ "frac_reward_zero_std": 0.5,
1042
+ "grad_norm": 21.632286071777344,
1043
+ "learning_rate": 1e-06,
1044
+ "loss": -0.0,
1045
+ "num_tokens": 1755020.0,
1046
+ "reward": 1.21875,
1047
+ "reward_std": 0.5625,
1048
+ "rewards/category_reward_func/mean": 1.21875,
1049
+ "rewards/category_reward_func/std": 0.7685213088989258,
1050
+ "step": 40
1051
+ },
1052
+ {
1053
+ "clip_ratio/high_max": 0.0,
1054
+ "clip_ratio/high_mean": 0.0,
1055
+ "clip_ratio/low_mean": 0.0,
1056
+ "clip_ratio/low_min": 0.0,
1057
+ "clip_ratio/region_mean": 0.0,
1058
+ "completions/clipped_ratio": 0.0,
1059
+ "completions/max_length": 2.0,
1060
+ "completions/max_terminated_length": 2.0,
1061
+ "completions/mean_length": 2.0,
1062
+ "completions/mean_terminated_length": 2.0,
1063
+ "completions/min_length": 2.0,
1064
+ "completions/min_terminated_length": 2.0,
1065
+ "entropy": 0.157623291015625,
1066
+ "epoch": 0.5466666666666666,
1067
+ "frac_reward_zero_std": 0.5,
1068
+ "grad_norm": 28.650922775268555,
1069
+ "learning_rate": 1e-06,
1070
+ "loss": 0.0,
1071
+ "num_tokens": 1786396.0,
1072
+ "reward": 0.796875,
1073
+ "reward_std": 0.6060094833374023,
1074
+ "rewards/category_reward_func/mean": 0.796875,
1075
+ "rewards/category_reward_func/std": 1.0771055221557617,
1076
+ "step": 41
1077
+ },
1078
+ {
1079
+ "clip_ratio/high_max": 0.0,
1080
+ "clip_ratio/high_mean": 0.0,
1081
+ "clip_ratio/low_mean": 0.0,
1082
+ "clip_ratio/low_min": 0.0,
1083
+ "clip_ratio/region_mean": 0.0,
1084
+ "completions/clipped_ratio": 0.0,
1085
+ "completions/max_length": 2.0,
1086
+ "completions/max_terminated_length": 2.0,
1087
+ "completions/mean_length": 2.0,
1088
+ "completions/mean_terminated_length": 2.0,
1089
+ "completions/min_length": 2.0,
1090
+ "completions/min_terminated_length": 2.0,
1091
+ "entropy": 0.1880950927734375,
1092
+ "epoch": 0.56,
1093
+ "frac_reward_zero_std": 0.25,
1094
+ "grad_norm": 46.74673080444336,
1095
+ "learning_rate": 1e-06,
1096
+ "loss": 0.0,
1097
+ "num_tokens": 1805832.0,
1098
+ "reward": 0.375,
1099
+ "reward_std": 0.8872594833374023,
1100
+ "rewards/category_reward_func/mean": 0.375,
1101
+ "rewards/category_reward_func/std": 1.1618950366973877,
1102
+ "step": 42
1103
+ },
1104
+ {
1105
+ "clip_ratio/high_max": 0.0,
1106
+ "clip_ratio/high_mean": 0.0,
1107
+ "clip_ratio/low_mean": 0.0,
1108
+ "clip_ratio/low_min": 0.0,
1109
+ "clip_ratio/region_mean": 0.0,
1110
+ "completions/clipped_ratio": 0.0,
1111
+ "completions/max_length": 2.0,
1112
+ "completions/max_terminated_length": 2.0,
1113
+ "completions/mean_length": 2.0,
1114
+ "completions/mean_terminated_length": 2.0,
1115
+ "completions/min_length": 2.0,
1116
+ "completions/min_terminated_length": 2.0,
1117
+ "entropy": 0.205352783203125,
1118
+ "epoch": 0.5733333333333334,
1119
+ "frac_reward_zero_std": 0.0,
1120
+ "grad_norm": 57.66422653198242,
1121
+ "learning_rate": 1e-06,
1122
+ "loss": 0.0,
1123
+ "num_tokens": 1828832.0,
1124
+ "reward": 0.234375,
1125
+ "reward_std": 1.1685094833374023,
1126
+ "rewards/category_reward_func/mean": 0.234375,
1127
+ "rewards/category_reward_func/std": 1.1527819633483887,
1128
+ "step": 43
1129
+ },
1130
+ {
1131
+ "clip_ratio/high_max": 0.0,
1132
+ "clip_ratio/high_mean": 0.0,
1133
+ "clip_ratio/low_mean": 0.0,
1134
+ "clip_ratio/low_min": 0.0,
1135
+ "clip_ratio/region_mean": 0.0,
1136
+ "completions/clipped_ratio": 0.0,
1137
+ "completions/max_length": 2.0,
1138
+ "completions/max_terminated_length": 2.0,
1139
+ "completions/mean_length": 2.0,
1140
+ "completions/mean_terminated_length": 2.0,
1141
+ "completions/min_length": 2.0,
1142
+ "completions/min_terminated_length": 2.0,
1143
+ "entropy": 0.43341064453125,
1144
+ "epoch": 0.5866666666666667,
1145
+ "frac_reward_zero_std": 0.75,
1146
+ "grad_norm": 22.34069061279297,
1147
+ "learning_rate": 1e-06,
1148
+ "loss": 0.0,
1149
+ "num_tokens": 1882088.0,
1150
+ "reward": 1.125,
1151
+ "reward_std": 0.4330126941204071,
1152
+ "rewards/category_reward_func/mean": 1.125,
1153
+ "rewards/category_reward_func/std": 1.0246951580047607,
1154
+ "step": 44
1155
+ },
1156
+ {
1157
+ "clip_ratio/high_max": 0.0,
1158
+ "clip_ratio/high_mean": 0.0,
1159
+ "clip_ratio/low_mean": 0.0,
1160
+ "clip_ratio/low_min": 0.0,
1161
+ "clip_ratio/region_mean": 0.0,
1162
+ "completions/clipped_ratio": 0.0,
1163
+ "completions/max_length": 2.0,
1164
+ "completions/max_terminated_length": 2.0,
1165
+ "completions/mean_length": 2.0,
1166
+ "completions/mean_terminated_length": 2.0,
1167
+ "completions/min_length": 2.0,
1168
+ "completions/min_terminated_length": 2.0,
1169
+ "entropy": 0.317779541015625,
1170
+ "epoch": 0.6,
1171
+ "frac_reward_zero_std": 0.5,
1172
+ "grad_norm": 20.323429107666016,
1173
+ "learning_rate": 1e-06,
1174
+ "loss": -0.0,
1175
+ "num_tokens": 1935288.0,
1176
+ "reward": 0.9375,
1177
+ "reward_std": 0.5625,
1178
+ "rewards/category_reward_func/mean": 0.9375,
1179
+ "rewards/category_reward_func/std": 1.0062305927276611,
1180
+ "step": 45
1181
+ },
1182
+ {
1183
+ "clip_ratio/high_max": 0.0,
1184
+ "clip_ratio/high_mean": 0.0,
1185
+ "clip_ratio/low_mean": 0.0,
1186
+ "clip_ratio/low_min": 0.0,
1187
+ "clip_ratio/region_mean": 0.0,
1188
+ "completions/clipped_ratio": 0.0,
1189
+ "completions/max_length": 2.0,
1190
+ "completions/max_terminated_length": 2.0,
1191
+ "completions/mean_length": 2.0,
1192
+ "completions/mean_terminated_length": 2.0,
1193
+ "completions/min_length": 2.0,
1194
+ "completions/min_terminated_length": 2.0,
1195
+ "entropy": 0.321075439453125,
1196
+ "epoch": 0.6133333333333333,
1197
+ "frac_reward_zero_std": 0.25,
1198
+ "grad_norm": 143.27099609375,
1199
+ "learning_rate": 1e-06,
1200
+ "loss": 0.0,
1201
+ "num_tokens": 1960884.0,
1202
+ "reward": 0.796875,
1203
+ "reward_std": 0.9307689666748047,
1204
+ "rewards/category_reward_func/mean": 0.796875,
1205
+ "rewards/category_reward_func/std": 1.0771055221557617,
1206
+ "step": 46
1207
+ },
1208
+ {
1209
+ "clip_ratio/high_max": 0.0,
1210
+ "clip_ratio/high_mean": 0.0,
1211
+ "clip_ratio/low_mean": 0.0,
1212
+ "clip_ratio/low_min": 0.0,
1213
+ "clip_ratio/region_mean": 0.0,
1214
+ "completions/clipped_ratio": 0.0,
1215
+ "completions/max_length": 2.0,
1216
+ "completions/max_terminated_length": 2.0,
1217
+ "completions/mean_length": 2.0,
1218
+ "completions/mean_terminated_length": 2.0,
1219
+ "completions/min_length": 2.0,
1220
+ "completions/min_terminated_length": 2.0,
1221
+ "entropy": 0.469451904296875,
1222
+ "epoch": 0.6266666666666667,
1223
+ "frac_reward_zero_std": 0.5,
1224
+ "grad_norm": 34.52668762207031,
1225
+ "learning_rate": 1e-06,
1226
+ "loss": -0.0,
1227
+ "num_tokens": 2022248.0,
1228
+ "reward": 0.984375,
1229
+ "reward_std": 0.7142627239227295,
1230
+ "rewards/category_reward_func/mean": 0.984375,
1231
+ "rewards/category_reward_func/std": 1.1197795867919922,
1232
+ "step": 47
1233
+ },
1234
+ {
1235
+ "clip_ratio/high_max": 0.0,
1236
+ "clip_ratio/high_mean": 0.0,
1237
+ "clip_ratio/low_mean": 0.0,
1238
+ "clip_ratio/low_min": 0.0,
1239
+ "clip_ratio/region_mean": 0.0,
1240
+ "completions/clipped_ratio": 0.0,
1241
+ "completions/max_length": 2.0,
1242
+ "completions/max_terminated_length": 2.0,
1243
+ "completions/mean_length": 2.0,
1244
+ "completions/mean_terminated_length": 2.0,
1245
+ "completions/min_length": 2.0,
1246
+ "completions/min_terminated_length": 2.0,
1247
+ "entropy": 0.20635986328125,
1248
+ "epoch": 0.64,
1249
+ "frac_reward_zero_std": 0.75,
1250
+ "grad_norm": 14.806098937988281,
1251
+ "learning_rate": 1e-06,
1252
+ "loss": -0.0,
1253
+ "num_tokens": 2073196.0,
1254
+ "reward": 1.359375,
1255
+ "reward_std": 0.28125,
1256
+ "rewards/category_reward_func/mean": 1.359375,
1257
+ "rewards/category_reward_func/std": 0.5625,
1258
+ "step": 48
1259
+ },
1260
+ {
1261
+ "clip_ratio/high_max": 0.0,
1262
+ "clip_ratio/high_mean": 0.0,
1263
+ "clip_ratio/low_mean": 0.0,
1264
+ "clip_ratio/low_min": 0.0,
1265
+ "clip_ratio/region_mean": 0.0,
1266
+ "completions/clipped_ratio": 0.0,
1267
+ "completions/max_length": 2.0,
1268
+ "completions/max_terminated_length": 2.0,
1269
+ "completions/mean_length": 2.0,
1270
+ "completions/mean_terminated_length": 2.0,
1271
+ "completions/min_length": 2.0,
1272
+ "completions/min_terminated_length": 2.0,
1273
+ "entropy": 0.25537109375,
1274
+ "epoch": 0.6533333333333333,
1275
+ "frac_reward_zero_std": 1.0,
1276
+ "grad_norm": 0.0,
1277
+ "learning_rate": 1e-06,
1278
+ "loss": 0.0,
1279
+ "num_tokens": 2147716.0,
1280
+ "reward": 1.5,
1281
+ "reward_std": 0.0,
1282
+ "rewards/category_reward_func/mean": 1.5,
1283
+ "rewards/category_reward_func/std": 0.0,
1284
+ "step": 49
1285
+ },
1286
+ {
1287
+ "clip_ratio/high_max": 0.0,
1288
+ "clip_ratio/high_mean": 0.0,
1289
+ "clip_ratio/low_mean": 0.0,
1290
+ "clip_ratio/low_min": 0.0,
1291
+ "clip_ratio/region_mean": 0.0,
1292
+ "completions/clipped_ratio": 0.0,
1293
+ "completions/max_length": 2.0,
1294
+ "completions/max_terminated_length": 2.0,
1295
+ "completions/mean_length": 2.0,
1296
+ "completions/mean_terminated_length": 2.0,
1297
+ "completions/min_length": 2.0,
1298
+ "completions/min_terminated_length": 2.0,
1299
+ "entropy": 0.28509521484375,
1300
+ "epoch": 0.6666666666666666,
1301
+ "frac_reward_zero_std": 0.5,
1302
+ "grad_norm": 30.238126754760742,
1303
+ "learning_rate": 1e-06,
1304
+ "loss": 0.0,
1305
+ "num_tokens": 2198480.0,
1306
+ "reward": 1.03125,
1307
+ "reward_std": 0.6997594833374023,
1308
+ "rewards/category_reward_func/mean": 1.03125,
1309
+ "rewards/category_reward_func/std": 1.0201103687286377,
1310
+ "step": 50
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.0,
1319
+ "completions/max_length": 2.0,
1320
+ "completions/max_terminated_length": 2.0,
1321
+ "completions/mean_length": 2.0,
1322
+ "completions/mean_terminated_length": 2.0,
1323
+ "completions/min_length": 2.0,
1324
+ "completions/min_terminated_length": 2.0,
1325
+ "entropy": 0.242279052734375,
1326
+ "epoch": 0.68,
1327
+ "frac_reward_zero_std": 0.75,
1328
+ "grad_norm": 23.85097312927246,
1329
+ "learning_rate": 1e-06,
1330
+ "loss": 0.0,
1331
+ "num_tokens": 2254876.0,
1332
+ "reward": 1.125,
1333
+ "reward_std": 0.4330126941204071,
1334
+ "rewards/category_reward_func/mean": 1.125,
1335
+ "rewards/category_reward_func/std": 1.0246951580047607,
1336
+ "step": 51
1337
+ },
1338
+ {
1339
+ "clip_ratio/high_max": 0.0,
1340
+ "clip_ratio/high_mean": 0.0,
1341
+ "clip_ratio/low_mean": 0.0,
1342
+ "clip_ratio/low_min": 0.0,
1343
+ "clip_ratio/region_mean": 0.0,
1344
+ "completions/clipped_ratio": 0.0,
1345
+ "completions/max_length": 2.0,
1346
+ "completions/max_terminated_length": 2.0,
1347
+ "completions/mean_length": 2.0,
1348
+ "completions/mean_terminated_length": 2.0,
1349
+ "completions/min_length": 2.0,
1350
+ "completions/min_terminated_length": 2.0,
1351
+ "entropy": 0.44366455078125,
1352
+ "epoch": 0.6933333333333334,
1353
+ "frac_reward_zero_std": 0.75,
1354
+ "grad_norm": 18.61939811706543,
1355
+ "learning_rate": 1e-06,
1356
+ "loss": -0.0,
1357
+ "num_tokens": 2291896.0,
1358
+ "reward": 0.234375,
1359
+ "reward_std": 0.28125,
1360
+ "rewards/category_reward_func/mean": 0.234375,
1361
+ "rewards/category_reward_func/std": 1.1527819633483887,
1362
+ "step": 52
1363
+ },
1364
+ {
1365
+ "clip_ratio/high_max": 0.0,
1366
+ "clip_ratio/high_mean": 0.0,
1367
+ "clip_ratio/low_mean": 0.0,
1368
+ "clip_ratio/low_min": 0.0,
1369
+ "clip_ratio/region_mean": 0.0,
1370
+ "completions/clipped_ratio": 0.0,
1371
+ "completions/max_length": 2.0,
1372
+ "completions/max_terminated_length": 2.0,
1373
+ "completions/mean_length": 2.0,
1374
+ "completions/mean_terminated_length": 2.0,
1375
+ "completions/min_length": 2.0,
1376
+ "completions/min_terminated_length": 2.0,
1377
+ "entropy": 0.39569091796875,
1378
+ "epoch": 0.7066666666666667,
1379
+ "frac_reward_zero_std": 1.0,
1380
+ "grad_norm": 0.0,
1381
+ "learning_rate": 1e-06,
1382
+ "loss": 0.0,
1383
+ "num_tokens": 2345988.0,
1384
+ "reward": 1.5,
1385
+ "reward_std": 0.0,
1386
+ "rewards/category_reward_func/mean": 1.5,
1387
+ "rewards/category_reward_func/std": 0.0,
1388
+ "step": 53
1389
+ },
1390
+ {
1391
+ "clip_ratio/high_max": 0.0,
1392
+ "clip_ratio/high_mean": 0.0,
1393
+ "clip_ratio/low_mean": 0.0,
1394
+ "clip_ratio/low_min": 0.0,
1395
+ "clip_ratio/region_mean": 0.0,
1396
+ "completions/clipped_ratio": 0.0,
1397
+ "completions/max_length": 2.0,
1398
+ "completions/max_terminated_length": 2.0,
1399
+ "completions/mean_length": 2.0,
1400
+ "completions/mean_terminated_length": 2.0,
1401
+ "completions/min_length": 2.0,
1402
+ "completions/min_terminated_length": 2.0,
1403
+ "entropy": 0.429656982421875,
1404
+ "epoch": 0.72,
1405
+ "frac_reward_zero_std": 0.75,
1406
+ "grad_norm": 19.174150466918945,
1407
+ "learning_rate": 1e-06,
1408
+ "loss": 0.0,
1409
+ "num_tokens": 2382980.0,
1410
+ "reward": 1.21875,
1411
+ "reward_std": 0.32475951313972473,
1412
+ "rewards/category_reward_func/mean": 1.21875,
1413
+ "rewards/category_reward_func/std": 0.7685213088989258,
1414
+ "step": 54
1415
+ },
1416
+ {
1417
+ "clip_ratio/high_max": 0.0,
1418
+ "clip_ratio/high_mean": 0.0,
1419
+ "clip_ratio/low_mean": 0.0,
1420
+ "clip_ratio/low_min": 0.0,
1421
+ "clip_ratio/region_mean": 0.0,
1422
+ "completions/clipped_ratio": 0.0,
1423
+ "completions/max_length": 2.0,
1424
+ "completions/max_terminated_length": 2.0,
1425
+ "completions/mean_length": 2.0,
1426
+ "completions/mean_terminated_length": 2.0,
1427
+ "completions/min_length": 2.0,
1428
+ "completions/min_terminated_length": 2.0,
1429
+ "entropy": 0.2694091796875,
1430
+ "epoch": 0.7333333333333333,
1431
+ "frac_reward_zero_std": 1.0,
1432
+ "grad_norm": 0.0,
1433
+ "learning_rate": 1e-06,
1434
+ "loss": 0.0,
1435
+ "num_tokens": 2433172.0,
1436
+ "reward": 1.5,
1437
+ "reward_std": 0.0,
1438
+ "rewards/category_reward_func/mean": 1.5,
1439
+ "rewards/category_reward_func/std": 0.0,
1440
+ "step": 55
1441
+ },
1442
+ {
1443
+ "clip_ratio/high_max": 0.0,
1444
+ "clip_ratio/high_mean": 0.0,
1445
+ "clip_ratio/low_mean": 0.0,
1446
+ "clip_ratio/low_min": 0.0,
1447
+ "clip_ratio/region_mean": 0.0,
1448
+ "completions/clipped_ratio": 0.0,
1449
+ "completions/max_length": 2.0,
1450
+ "completions/max_terminated_length": 2.0,
1451
+ "completions/mean_length": 2.0,
1452
+ "completions/mean_terminated_length": 2.0,
1453
+ "completions/min_length": 2.0,
1454
+ "completions/min_terminated_length": 2.0,
1455
+ "entropy": 0.37933349609375,
1456
+ "epoch": 0.7466666666666667,
1457
+ "frac_reward_zero_std": 0.75,
1458
+ "grad_norm": 11.9332857131958,
1459
+ "learning_rate": 1e-06,
1460
+ "loss": -0.0,
1461
+ "num_tokens": 2472316.0,
1462
+ "reward": 1.359375,
1463
+ "reward_std": 0.28125,
1464
+ "rewards/category_reward_func/mean": 1.359375,
1465
+ "rewards/category_reward_func/std": 0.5625,
1466
+ "step": 56
1467
+ },
1468
+ {
1469
+ "clip_ratio/high_max": 0.0,
1470
+ "clip_ratio/high_mean": 0.0,
1471
+ "clip_ratio/low_mean": 0.0,
1472
+ "clip_ratio/low_min": 0.0,
1473
+ "clip_ratio/region_mean": 0.0,
1474
+ "completions/clipped_ratio": 0.0,
1475
+ "completions/max_length": 2.0,
1476
+ "completions/max_terminated_length": 2.0,
1477
+ "completions/mean_length": 2.0,
1478
+ "completions/mean_terminated_length": 2.0,
1479
+ "completions/min_length": 2.0,
1480
+ "completions/min_terminated_length": 2.0,
1481
+ "entropy": 0.4208984375,
1482
+ "epoch": 0.76,
1483
+ "frac_reward_zero_std": 1.0,
1484
+ "grad_norm": 0.0,
1485
+ "learning_rate": 1e-06,
1486
+ "loss": 0.0,
1487
+ "num_tokens": 2524856.0,
1488
+ "reward": 0.8125,
1489
+ "reward_std": 0.0,
1490
+ "rewards/category_reward_func/mean": 0.8125,
1491
+ "rewards/category_reward_func/std": 1.229837417602539,
1492
+ "step": 57
1493
+ },
1494
+ {
1495
+ "clip_ratio/high_max": 0.0,
1496
+ "clip_ratio/high_mean": 0.0,
1497
+ "clip_ratio/low_mean": 0.0,
1498
+ "clip_ratio/low_min": 0.0,
1499
+ "clip_ratio/region_mean": 0.0,
1500
+ "completions/clipped_ratio": 0.0,
1501
+ "completions/max_length": 2.0,
1502
+ "completions/max_terminated_length": 2.0,
1503
+ "completions/mean_length": 2.0,
1504
+ "completions/mean_terminated_length": 2.0,
1505
+ "completions/min_length": 2.0,
1506
+ "completions/min_terminated_length": 2.0,
1507
+ "entropy": 0.561767578125,
1508
+ "epoch": 0.7733333333333333,
1509
+ "frac_reward_zero_std": 0.75,
1510
+ "grad_norm": 11.59165096282959,
1511
+ "learning_rate": 1e-06,
1512
+ "loss": 0.0,
1513
+ "num_tokens": 2571776.0,
1514
+ "reward": 1.078125,
1515
+ "reward_std": 0.28125,
1516
+ "rewards/category_reward_func/mean": 1.078125,
1517
+ "rewards/category_reward_func/std": 0.9070039987564087,
1518
+ "step": 58
1519
+ },
1520
+ {
1521
+ "clip_ratio/high_max": 0.0,
1522
+ "clip_ratio/high_mean": 0.0,
1523
+ "clip_ratio/low_mean": 0.0,
1524
+ "clip_ratio/low_min": 0.0,
1525
+ "clip_ratio/region_mean": 0.0,
1526
+ "completions/clipped_ratio": 0.0,
1527
+ "completions/max_length": 2.0,
1528
+ "completions/max_terminated_length": 2.0,
1529
+ "completions/mean_length": 2.0,
1530
+ "completions/mean_terminated_length": 2.0,
1531
+ "completions/min_length": 2.0,
1532
+ "completions/min_terminated_length": 2.0,
1533
+ "entropy": 0.3621826171875,
1534
+ "epoch": 0.7866666666666666,
1535
+ "frac_reward_zero_std": 0.5,
1536
+ "grad_norm": 19.301597595214844,
1537
+ "learning_rate": 1e-06,
1538
+ "loss": -0.0,
1539
+ "num_tokens": 2606296.0,
1540
+ "reward": 1.21875,
1541
+ "reward_std": 0.5625,
1542
+ "rewards/category_reward_func/mean": 1.21875,
1543
+ "rewards/category_reward_func/std": 0.7685213088989258,
1544
+ "step": 59
1545
+ },
1546
+ {
1547
+ "clip_ratio/high_max": 0.0,
1548
+ "clip_ratio/high_mean": 0.0,
1549
+ "clip_ratio/low_mean": 0.0,
1550
+ "clip_ratio/low_min": 0.0,
1551
+ "clip_ratio/region_mean": 0.0,
1552
+ "completions/clipped_ratio": 0.0,
1553
+ "completions/max_length": 2.0,
1554
+ "completions/max_terminated_length": 2.0,
1555
+ "completions/mean_length": 2.0,
1556
+ "completions/mean_terminated_length": 2.0,
1557
+ "completions/min_length": 2.0,
1558
+ "completions/min_terminated_length": 2.0,
1559
+ "entropy": 0.36553955078125,
1560
+ "epoch": 0.8,
1561
+ "frac_reward_zero_std": 0.75,
1562
+ "grad_norm": 10.53289794921875,
1563
+ "learning_rate": 1e-06,
1564
+ "loss": 0.0,
1565
+ "num_tokens": 2654164.0,
1566
+ "reward": 1.078125,
1567
+ "reward_std": 0.28125,
1568
+ "rewards/category_reward_func/mean": 1.078125,
1569
+ "rewards/category_reward_func/std": 0.9070039987564087,
1570
+ "step": 60
1571
+ },
1572
+ {
1573
+ "clip_ratio/high_max": 0.0,
1574
+ "clip_ratio/high_mean": 0.0,
1575
+ "clip_ratio/low_mean": 0.0,
1576
+ "clip_ratio/low_min": 0.0,
1577
+ "clip_ratio/region_mean": 0.0,
1578
+ "completions/clipped_ratio": 0.0,
1579
+ "completions/max_length": 2.0,
1580
+ "completions/max_terminated_length": 2.0,
1581
+ "completions/mean_length": 2.0,
1582
+ "completions/mean_terminated_length": 2.0,
1583
+ "completions/min_length": 2.0,
1584
+ "completions/min_terminated_length": 2.0,
1585
+ "entropy": 0.2923583984375,
1586
+ "epoch": 0.8133333333333334,
1587
+ "frac_reward_zero_std": 0.5,
1588
+ "grad_norm": 99.41712188720703,
1589
+ "learning_rate": 1e-06,
1590
+ "loss": -0.0,
1591
+ "num_tokens": 2698972.0,
1592
+ "reward": 1.078125,
1593
+ "reward_std": 0.6060094833374023,
1594
+ "rewards/category_reward_func/mean": 1.078125,
1595
+ "rewards/category_reward_func/std": 0.9070039987564087,
1596
+ "step": 61
1597
+ },
1598
+ {
1599
+ "clip_ratio/high_max": 0.0,
1600
+ "clip_ratio/high_mean": 0.0,
1601
+ "clip_ratio/low_mean": 0.0,
1602
+ "clip_ratio/low_min": 0.0,
1603
+ "clip_ratio/region_mean": 0.0,
1604
+ "completions/clipped_ratio": 0.0,
1605
+ "completions/max_length": 2.0,
1606
+ "completions/max_terminated_length": 2.0,
1607
+ "completions/mean_length": 2.0,
1608
+ "completions/mean_terminated_length": 2.0,
1609
+ "completions/min_length": 2.0,
1610
+ "completions/min_terminated_length": 2.0,
1611
+ "entropy": 0.400146484375,
1612
+ "epoch": 0.8266666666666667,
1613
+ "frac_reward_zero_std": 0.5,
1614
+ "grad_norm": 21.47633934020996,
1615
+ "learning_rate": 1e-06,
1616
+ "loss": -0.0,
1617
+ "num_tokens": 2734224.0,
1618
+ "reward": 0.65625,
1619
+ "reward_std": 0.5625,
1620
+ "rewards/category_reward_func/mean": 0.65625,
1621
+ "rewards/category_reward_func/std": 1.125,
1622
+ "step": 62
1623
+ },
1624
+ {
1625
+ "clip_ratio/high_max": 0.0,
1626
+ "clip_ratio/high_mean": 0.0,
1627
+ "clip_ratio/low_mean": 0.0,
1628
+ "clip_ratio/low_min": 0.0,
1629
+ "clip_ratio/region_mean": 0.0,
1630
+ "completions/clipped_ratio": 0.0,
1631
+ "completions/max_length": 2.0,
1632
+ "completions/max_terminated_length": 2.0,
1633
+ "completions/mean_length": 2.0,
1634
+ "completions/mean_terminated_length": 2.0,
1635
+ "completions/min_length": 2.0,
1636
+ "completions/min_terminated_length": 2.0,
1637
+ "entropy": 0.38702392578125,
1638
+ "epoch": 0.84,
1639
+ "frac_reward_zero_std": 0.5,
1640
+ "grad_norm": 29.996910095214844,
1641
+ "learning_rate": 1e-06,
1642
+ "loss": -0.0,
1643
+ "num_tokens": 2774124.0,
1644
+ "reward": 1.078125,
1645
+ "reward_std": 0.6060094833374023,
1646
+ "rewards/category_reward_func/mean": 1.078125,
1647
+ "rewards/category_reward_func/std": 0.9070039987564087,
1648
+ "step": 63
1649
+ },
1650
+ {
1651
+ "clip_ratio/high_max": 0.0,
1652
+ "clip_ratio/high_mean": 0.0,
1653
+ "clip_ratio/low_mean": 0.0,
1654
+ "clip_ratio/low_min": 0.0,
1655
+ "clip_ratio/region_mean": 0.0,
1656
+ "completions/clipped_ratio": 0.0,
1657
+ "completions/max_length": 2.0,
1658
+ "completions/max_terminated_length": 2.0,
1659
+ "completions/mean_length": 2.0,
1660
+ "completions/mean_terminated_length": 2.0,
1661
+ "completions/min_length": 2.0,
1662
+ "completions/min_terminated_length": 2.0,
1663
+ "entropy": 0.38385009765625,
1664
+ "epoch": 0.8533333333333334,
1665
+ "frac_reward_zero_std": 0.75,
1666
+ "grad_norm": 15.907926559448242,
1667
+ "learning_rate": 1e-06,
1668
+ "loss": 0.0,
1669
+ "num_tokens": 2833568.0,
1670
+ "reward": 1.21875,
1671
+ "reward_std": 0.32475951313972473,
1672
+ "rewards/category_reward_func/mean": 1.21875,
1673
+ "rewards/category_reward_func/std": 0.7685213088989258,
1674
+ "step": 64
1675
+ },
1676
+ {
1677
+ "clip_ratio/high_max": 0.0,
1678
+ "clip_ratio/high_mean": 0.0,
1679
+ "clip_ratio/low_mean": 0.0,
1680
+ "clip_ratio/low_min": 0.0,
1681
+ "clip_ratio/region_mean": 0.0,
1682
+ "completions/clipped_ratio": 0.0,
1683
+ "completions/max_length": 2.0,
1684
+ "completions/max_terminated_length": 2.0,
1685
+ "completions/mean_length": 2.0,
1686
+ "completions/mean_terminated_length": 2.0,
1687
+ "completions/min_length": 2.0,
1688
+ "completions/min_terminated_length": 2.0,
1689
+ "entropy": 0.3819580078125,
1690
+ "epoch": 0.8666666666666667,
1691
+ "frac_reward_zero_std": 0.0,
1692
+ "grad_norm": 46.19581604003906,
1693
+ "learning_rate": 1e-06,
1694
+ "loss": 0.0,
1695
+ "num_tokens": 2860380.0,
1696
+ "reward": 0.234375,
1697
+ "reward_std": 1.1685094833374023,
1698
+ "rewards/category_reward_func/mean": 0.234375,
1699
+ "rewards/category_reward_func/std": 1.1527819633483887,
1700
+ "step": 65
1701
+ },
1702
+ {
1703
+ "clip_ratio/high_max": 0.0,
1704
+ "clip_ratio/high_mean": 0.0,
1705
+ "clip_ratio/low_mean": 0.0,
1706
+ "clip_ratio/low_min": 0.0,
1707
+ "clip_ratio/region_mean": 0.0,
1708
+ "completions/clipped_ratio": 0.0,
1709
+ "completions/max_length": 2.0,
1710
+ "completions/max_terminated_length": 2.0,
1711
+ "completions/mean_length": 2.0,
1712
+ "completions/mean_terminated_length": 2.0,
1713
+ "completions/min_length": 2.0,
1714
+ "completions/min_terminated_length": 2.0,
1715
+ "entropy": 0.35260009765625,
1716
+ "epoch": 0.88,
1717
+ "frac_reward_zero_std": 0.5,
1718
+ "grad_norm": 22.587528228759766,
1719
+ "learning_rate": 1e-06,
1720
+ "loss": -0.0,
1721
+ "num_tokens": 2909180.0,
1722
+ "reward": 1.21875,
1723
+ "reward_std": 0.5625,
1724
+ "rewards/category_reward_func/mean": 1.21875,
1725
+ "rewards/category_reward_func/std": 0.7685213088989258,
1726
+ "step": 66
1727
+ },
1728
+ {
1729
+ "clip_ratio/high_max": 0.0,
1730
+ "clip_ratio/high_mean": 0.0,
1731
+ "clip_ratio/low_mean": 0.0,
1732
+ "clip_ratio/low_min": 0.0,
1733
+ "clip_ratio/region_mean": 0.0,
1734
+ "completions/clipped_ratio": 0.0,
1735
+ "completions/max_length": 2.0,
1736
+ "completions/max_terminated_length": 2.0,
1737
+ "completions/mean_length": 2.0,
1738
+ "completions/mean_terminated_length": 2.0,
1739
+ "completions/min_length": 2.0,
1740
+ "completions/min_terminated_length": 2.0,
1741
+ "entropy": 0.392333984375,
1742
+ "epoch": 0.8933333333333333,
1743
+ "frac_reward_zero_std": 1.0,
1744
+ "grad_norm": 0.0,
1745
+ "learning_rate": 1e-06,
1746
+ "loss": 0.0,
1747
+ "num_tokens": 2947732.0,
1748
+ "reward": 1.5,
1749
+ "reward_std": 0.0,
1750
+ "rewards/category_reward_func/mean": 1.5,
1751
+ "rewards/category_reward_func/std": 0.0,
1752
+ "step": 67
1753
+ },
1754
+ {
1755
+ "clip_ratio/high_max": 0.0,
1756
+ "clip_ratio/high_mean": 0.0,
1757
+ "clip_ratio/low_mean": 0.0,
1758
+ "clip_ratio/low_min": 0.0,
1759
+ "clip_ratio/region_mean": 0.0,
1760
+ "completions/clipped_ratio": 0.0,
1761
+ "completions/max_length": 2.0,
1762
+ "completions/max_terminated_length": 2.0,
1763
+ "completions/mean_length": 2.0,
1764
+ "completions/mean_terminated_length": 2.0,
1765
+ "completions/min_length": 2.0,
1766
+ "completions/min_terminated_length": 2.0,
1767
+ "entropy": 0.422607421875,
1768
+ "epoch": 0.9066666666666666,
1769
+ "frac_reward_zero_std": 0.5,
1770
+ "grad_norm": 20.867935180664062,
1771
+ "learning_rate": 1e-06,
1772
+ "loss": -0.0,
1773
+ "num_tokens": 2960580.0,
1774
+ "reward": 0.515625,
1775
+ "reward_std": 0.6060094833374023,
1776
+ "rewards/category_reward_func/mean": 0.515625,
1777
+ "rewards/category_reward_func/std": 1.1527819633483887,
1778
+ "step": 68
1779
+ },
1780
+ {
1781
+ "clip_ratio/high_max": 0.0,
1782
+ "clip_ratio/high_mean": 0.0,
1783
+ "clip_ratio/low_mean": 0.0,
1784
+ "clip_ratio/low_min": 0.0,
1785
+ "clip_ratio/region_mean": 0.0,
1786
+ "completions/clipped_ratio": 0.0,
1787
+ "completions/max_length": 2.0,
1788
+ "completions/max_terminated_length": 2.0,
1789
+ "completions/mean_length": 2.0,
1790
+ "completions/mean_terminated_length": 2.0,
1791
+ "completions/min_length": 2.0,
1792
+ "completions/min_terminated_length": 2.0,
1793
+ "entropy": 0.3450927734375,
1794
+ "epoch": 0.92,
1795
+ "frac_reward_zero_std": 1.0,
1796
+ "grad_norm": 0.0,
1797
+ "learning_rate": 1e-06,
1798
+ "loss": 0.0,
1799
+ "num_tokens": 2997376.0,
1800
+ "reward": 1.5,
1801
+ "reward_std": 0.0,
1802
+ "rewards/category_reward_func/mean": 1.5,
1803
+ "rewards/category_reward_func/std": 0.0,
1804
+ "step": 69
1805
+ },
1806
+ {
1807
+ "clip_ratio/high_max": 0.0,
1808
+ "clip_ratio/high_mean": 0.0,
1809
+ "clip_ratio/low_mean": 0.0,
1810
+ "clip_ratio/low_min": 0.0,
1811
+ "clip_ratio/region_mean": 0.0,
1812
+ "completions/clipped_ratio": 0.0,
1813
+ "completions/max_length": 2.0,
1814
+ "completions/max_terminated_length": 2.0,
1815
+ "completions/mean_length": 2.0,
1816
+ "completions/mean_terminated_length": 2.0,
1817
+ "completions/min_length": 2.0,
1818
+ "completions/min_terminated_length": 2.0,
1819
+ "entropy": 0.4351806640625,
1820
+ "epoch": 0.9333333333333333,
1821
+ "frac_reward_zero_std": 0.75,
1822
+ "grad_norm": 21.277936935424805,
1823
+ "learning_rate": 1e-06,
1824
+ "loss": 0.0,
1825
+ "num_tokens": 3071648.0,
1826
+ "reward": 1.3125,
1827
+ "reward_std": 0.375,
1828
+ "rewards/category_reward_func/mean": 1.3125,
1829
+ "rewards/category_reward_func/std": 0.75,
1830
+ "step": 70
1831
+ },
1832
+ {
1833
+ "clip_ratio/high_max": 0.0,
1834
+ "clip_ratio/high_mean": 0.0,
1835
+ "clip_ratio/low_mean": 0.0,
1836
+ "clip_ratio/low_min": 0.0,
1837
+ "clip_ratio/region_mean": 0.0,
1838
+ "completions/clipped_ratio": 0.0,
1839
+ "completions/max_length": 2.0,
1840
+ "completions/max_terminated_length": 2.0,
1841
+ "completions/mean_length": 2.0,
1842
+ "completions/mean_terminated_length": 2.0,
1843
+ "completions/min_length": 2.0,
1844
+ "completions/min_terminated_length": 2.0,
1845
+ "entropy": 0.454345703125,
1846
+ "epoch": 0.9466666666666667,
1847
+ "frac_reward_zero_std": 0.5,
1848
+ "grad_norm": 11.43299674987793,
1849
+ "learning_rate": 1e-06,
1850
+ "loss": -0.0,
1851
+ "num_tokens": 3131384.0,
1852
+ "reward": 0.65625,
1853
+ "reward_std": 0.5625,
1854
+ "rewards/category_reward_func/mean": 0.65625,
1855
+ "rewards/category_reward_func/std": 1.125,
1856
+ "step": 71
1857
+ },
1858
+ {
1859
+ "clip_ratio/high_max": 0.0,
1860
+ "clip_ratio/high_mean": 0.0,
1861
+ "clip_ratio/low_mean": 0.0,
1862
+ "clip_ratio/low_min": 0.0,
1863
+ "clip_ratio/region_mean": 0.0,
1864
+ "completions/clipped_ratio": 0.0,
1865
+ "completions/max_length": 2.0,
1866
+ "completions/max_terminated_length": 2.0,
1867
+ "completions/mean_length": 2.0,
1868
+ "completions/mean_terminated_length": 2.0,
1869
+ "completions/min_length": 2.0,
1870
+ "completions/min_terminated_length": 2.0,
1871
+ "entropy": 0.323486328125,
1872
+ "epoch": 0.96,
1873
+ "frac_reward_zero_std": 0.75,
1874
+ "grad_norm": 11.89018726348877,
1875
+ "learning_rate": 1e-06,
1876
+ "loss": -0.0,
1877
+ "num_tokens": 3172224.0,
1878
+ "reward": 0.671875,
1879
+ "reward_std": 0.28125,
1880
+ "rewards/category_reward_func/mean": 0.671875,
1881
+ "rewards/category_reward_func/std": 1.273835301399231,
1882
+ "step": 72
1883
+ },
1884
+ {
1885
+ "clip_ratio/high_max": 0.0,
1886
+ "clip_ratio/high_mean": 0.0,
1887
+ "clip_ratio/low_mean": 0.0,
1888
+ "clip_ratio/low_min": 0.0,
1889
+ "clip_ratio/region_mean": 0.0,
1890
+ "completions/clipped_ratio": 0.0,
1891
+ "completions/max_length": 2.0,
1892
+ "completions/max_terminated_length": 2.0,
1893
+ "completions/mean_length": 2.0,
1894
+ "completions/mean_terminated_length": 2.0,
1895
+ "completions/min_length": 2.0,
1896
+ "completions/min_terminated_length": 2.0,
1897
+ "entropy": 0.457763671875,
1898
+ "epoch": 0.9733333333333334,
1899
+ "frac_reward_zero_std": 1.0,
1900
+ "grad_norm": 0.0,
1901
+ "learning_rate": 1e-06,
1902
+ "loss": 0.0,
1903
+ "num_tokens": 3207712.0,
1904
+ "reward": 0.125,
1905
+ "reward_std": 0.0,
1906
+ "rewards/category_reward_func/mean": 0.125,
1907
+ "rewards/category_reward_func/std": 1.4200940132141113,
1908
+ "step": 73
1909
+ },
1910
+ {
1911
+ "clip_ratio/high_max": 0.0,
1912
+ "clip_ratio/high_mean": 0.0,
1913
+ "clip_ratio/low_mean": 0.0,
1914
+ "clip_ratio/low_min": 0.0,
1915
+ "clip_ratio/region_mean": 0.0,
1916
+ "completions/clipped_ratio": 0.0,
1917
+ "completions/max_length": 2.0,
1918
+ "completions/max_terminated_length": 2.0,
1919
+ "completions/mean_length": 2.0,
1920
+ "completions/mean_terminated_length": 2.0,
1921
+ "completions/min_length": 2.0,
1922
+ "completions/min_terminated_length": 2.0,
1923
+ "entropy": 0.28741455078125,
1924
+ "epoch": 0.9866666666666667,
1925
+ "frac_reward_zero_std": 0.5,
1926
+ "grad_norm": 23.053607940673828,
1927
+ "learning_rate": 1e-06,
1928
+ "loss": -0.0,
1929
+ "num_tokens": 3234472.0,
1930
+ "reward": 1.21875,
1931
+ "reward_std": 0.5625,
1932
+ "rewards/category_reward_func/mean": 1.21875,
1933
+ "rewards/category_reward_func/std": 0.7685213088989258,
1934
+ "step": 74
1935
+ },
1936
+ {
1937
+ "clip_ratio/high_max": 0.0,
1938
+ "clip_ratio/high_mean": 0.0,
1939
+ "clip_ratio/low_mean": 0.0,
1940
+ "clip_ratio/low_min": 0.0,
1941
+ "clip_ratio/region_mean": 0.0,
1942
+ "completions/clipped_ratio": 0.0,
1943
+ "completions/max_length": 2.0,
1944
+ "completions/max_terminated_length": 2.0,
1945
+ "completions/mean_length": 2.0,
1946
+ "completions/mean_terminated_length": 2.0,
1947
+ "completions/min_length": 2.0,
1948
+ "completions/min_terminated_length": 2.0,
1949
+ "entropy": 0.346923828125,
1950
+ "epoch": 1.0,
1951
+ "frac_reward_zero_std": 1.0,
1952
+ "grad_norm": 0.0,
1953
+ "learning_rate": 1e-06,
1954
+ "loss": 0.0,
1955
+ "num_tokens": 3272428.0,
1956
+ "reward": 1.5,
1957
+ "reward_std": 0.0,
1958
+ "rewards/category_reward_func/mean": 1.5,
1959
+ "rewards/category_reward_func/std": 0.0,
1960
+ "step": 75
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.0,
1969
+ "completions/max_length": 2.0,
1970
+ "completions/max_terminated_length": 2.0,
1971
+ "completions/mean_length": 2.0,
1972
+ "completions/mean_terminated_length": 2.0,
1973
+ "completions/min_length": 2.0,
1974
+ "completions/min_terminated_length": 2.0,
1975
+ "entropy": 0.29266357421875,
1976
+ "epoch": 1.0133333333333334,
1977
+ "frac_reward_zero_std": 0.75,
1978
+ "grad_norm": 11.529069900512695,
1979
+ "learning_rate": 1e-06,
1980
+ "loss": -0.0,
1981
+ "num_tokens": 3302836.0,
1982
+ "reward": 0.796875,
1983
+ "reward_std": 0.28125,
1984
+ "rewards/category_reward_func/mean": 0.796875,
1985
+ "rewards/category_reward_func/std": 1.0771055221557617,
1986
+ "step": 76
1987
+ }
1988
+ ],
1989
+ "logging_steps": 1.0,
1990
+ "max_steps": 225,
1991
+ "num_input_tokens_seen": 3302836,
1992
+ "num_train_epochs": 3,
1993
+ "save_steps": 38,
1994
+ "stateful_callbacks": {
1995
+ "TrainerControl": {
1996
+ "args": {
1997
+ "should_epoch_stop": false,
1998
+ "should_evaluate": false,
1999
+ "should_log": false,
2000
+ "should_save": true,
2001
+ "should_training_stop": false
2002
+ },
2003
+ "attributes": {}
2004
+ }
2005
+ },
2006
+ "total_flos": 0.0,
2007
+ "train_batch_size": 1,
2008
+ "trial_name": null,
2009
+ "trial_params": null
2010
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b29f58ddbd633fb1b5ef0b9ec91ae14bba0d537804180c4f80afc001245b2b0
3
+ size 10449
video_preprocessor_config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": true,
5
+ "device": null,
6
+ "do_center_crop": null,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "do_sample_frames": true,
12
+ "fps": 2,
13
+ "image_mean": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "image_std": [
19
+ 0.5,
20
+ 0.5,
21
+ 0.5
22
+ ],
23
+ "input_data_format": null,
24
+ "max_frames": 768,
25
+ "merge_size": 2,
26
+ "min_frames": 4,
27
+ "num_frames": null,
28
+ "pad_size": null,
29
+ "patch_size": 16,
30
+ "processor_class": "Qwen3VLProcessor",
31
+ "resample": 3,
32
+ "rescale_factor": 0.00392156862745098,
33
+ "return_metadata": false,
34
+ "size": {
35
+ "longest_edge": 25165824,
36
+ "shortest_edge": 4096
37
+ },
38
+ "temporal_patch_size": 2,
39
+ "video_metadata": null,
40
+ "video_processor_type": "Qwen3VLVideoProcessor"
41
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
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 ZERO_STAGE not 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("Extracting fp32 weights")
713
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
714
+
715
+ logger.info("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)