autoprogrammer commited on
Commit
66f6eb3
·
verified ·
1 Parent(s): 18d4080

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,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {{- messages[0].content + '\n\n' }}
5
+ {%- endif %}
6
+ {{- "# 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>" }}
7
+ {%- for tool in tools %}
8
+ {{- "\n" }}
9
+ {{- tool | tojson }}
10
+ {%- endfor %}
11
+ {{- "\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" }}
12
+ {%- else %}
13
+ {%- if messages[0].role == 'system' %}
14
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
15
+ {%- endif %}
16
+ {%- endif %}
17
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
18
+ {%- for message in messages[::-1] %}
19
+ {%- set index = (messages|length - 1) - loop.index0 %}
20
+ {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
21
+ {%- set ns.multi_step_tool = false %}
22
+ {%- set ns.last_query_index = index %}
23
+ {%- endif %}
24
+ {%- endfor %}
25
+ {%- for message in messages %}
26
+ {%- if message.content is string %}
27
+ {%- set content = message.content %}
28
+ {%- else %}
29
+ {%- set content = '' %}
30
+ {%- endif %}
31
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
32
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
33
+ {%- elif message.role == "assistant" %}
34
+ {%- set reasoning_content = '' %}
35
+ {%- if message.reasoning_content is string %}
36
+ {%- set reasoning_content = message.reasoning_content %}
37
+ {%- else %}
38
+ {%- if '</think>' in content %}
39
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
40
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
41
+ {%- endif %}
42
+ {%- endif %}
43
+ {%- if loop.index0 > ns.last_query_index %}
44
+ {%- if loop.last or (not loop.last and reasoning_content) %}
45
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
46
+ {%- else %}
47
+ {{- '<|im_start|>' + message.role + '\n' + content }}
48
+ {%- endif %}
49
+ {%- else %}
50
+ {{- '<|im_start|>' + message.role + '\n' + content }}
51
+ {%- endif %}
52
+ {%- if message.tool_calls %}
53
+ {%- for tool_call in message.tool_calls %}
54
+ {%- if (loop.first and content) or (not loop.first) %}
55
+ {{- '\n' }}
56
+ {%- endif %}
57
+ {%- if tool_call.function %}
58
+ {%- set tool_call = tool_call.function %}
59
+ {%- endif %}
60
+ {{- '<tool_call>\n{"name": "' }}
61
+ {{- tool_call.name }}
62
+ {{- '", "arguments": ' }}
63
+ {%- if tool_call.arguments is string %}
64
+ {{- tool_call.arguments }}
65
+ {%- else %}
66
+ {{- tool_call.arguments | tojson }}
67
+ {%- endif %}
68
+ {{- '}\n</tool_call>' }}
69
+ {%- endfor %}
70
+ {%- endif %}
71
+ {{- '<|im_end|>\n' }}
72
+ {%- elif message.role == "tool" %}
73
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
74
+ {{- '<|im_start|>user' }}
75
+ {%- endif %}
76
+ {{- '\n<tool_response>\n' }}
77
+ {{- content }}
78
+ {{- '\n</tool_response>' }}
79
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
80
+ {{- '<|im_end|>\n' }}
81
+ {%- endif %}
82
+ {%- endif %}
83
+ {%- endfor %}
84
+ {%- if add_generation_prompt %}
85
+ {{- '<|im_start|>assistant\n' }}
86
+ {%- if enable_thinking is defined and enable_thinking is false %}
87
+ {{- '<think>\n\n</think>\n\n' }}
88
+ {%- endif %}
89
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "dtype": "bfloat16",
8
+ "eos_token_id": 151645,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 5120,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 17408,
14
+ "layer_types": [
15
+ "full_attention",
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention",
42
+ "full_attention",
43
+ "full_attention",
44
+ "full_attention",
45
+ "full_attention",
46
+ "full_attention",
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention",
51
+ "full_attention",
52
+ "full_attention",
53
+ "full_attention",
54
+ "full_attention"
55
+ ],
56
+ "max_position_embeddings": 40960,
57
+ "max_window_layers": 40,
58
+ "model_type": "qwen3",
59
+ "num_attention_heads": 40,
60
+ "num_hidden_layers": 40,
61
+ "num_key_value_heads": 8,
62
+ "pad_token_id": 151643,
63
+ "rms_norm_eps": 1e-06,
64
+ "rope_scaling": null,
65
+ "rope_theta": 1000000,
66
+ "sliding_window": null,
67
+ "tie_word_embeddings": false,
68
+ "transformers_version": "4.57.1",
69
+ "use_cache": false,
70
+ "use_sliding_window": false,
71
+ "vocab_size": 151936
72
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_sample": true,
3
+ "eos_token_id": [
4
+ 151645,
5
+ 151643
6
+ ],
7
+ "pad_token_id": 151643,
8
+ "temperature": 0.6,
9
+ "top_k": 20,
10
+ "top_p": 0.95,
11
+ "transformers_version": "4.57.1"
12
+ }
latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step388
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a719b3e2f3c68e7221a09f01920371af2b7d3e79ea9c30b2f937d9c8f6677723
3
+ size 4984780784
model-00002-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18c5ad8bb82c7bf9612803c130df1890ed52814355fd2884d4f5f102ad2761ab
3
+ size 4980892048
model-00003-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb4ce3bf0ba256c0b6f7b28db8e740d260c294f2882f3aeec247374d57bff706
3
+ size 4928485104
model-00004-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14d126807064742956797e0c3d761c531ca1738c5240270a81cc7d47a0ed1408
3
+ size 4980892112
model-00005-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e8505511179d7dcf51d34cba5a40a74408090f8c9c128cf48e7389d2fc35623
3
+ size 4928485104
model-00006-of-00006.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:454f0ca312975c08c0f97fcb10955f6cda20b6fe1af9c31e323e74420c0f39f2
3
+ size 4733130504
model.safetensors.index.json ADDED
@@ -0,0 +1,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 424960,
4
+ "total_size": 29536614400
5
+ },
6
+ "weight_map": {
7
+ "lm_head.weight": "model-00006-of-00006.safetensors",
8
+ "model.embed_tokens.weight": "model-00001-of-00006.safetensors",
9
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00006.safetensors",
10
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
11
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00006.safetensors",
12
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00006.safetensors",
13
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
14
+ "model.layers.0.self_attn.k_norm.weight": "model-00001-of-00006.safetensors",
15
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00006.safetensors",
16
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
17
+ "model.layers.0.self_attn.q_norm.weight": "model-00001-of-00006.safetensors",
18
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00006.safetensors",
19
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00006.safetensors",
20
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00006.safetensors",
21
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
22
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00006.safetensors",
23
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00006.safetensors",
24
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
25
+ "model.layers.1.self_attn.k_norm.weight": "model-00001-of-00006.safetensors",
26
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00006.safetensors",
27
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
28
+ "model.layers.1.self_attn.q_norm.weight": "model-00001-of-00006.safetensors",
29
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00006.safetensors",
30
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00006.safetensors",
31
+ "model.layers.10.input_layernorm.weight": "model-00002-of-00006.safetensors",
32
+ "model.layers.10.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
33
+ "model.layers.10.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
34
+ "model.layers.10.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
35
+ "model.layers.10.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
36
+ "model.layers.10.self_attn.k_norm.weight": "model-00002-of-00006.safetensors",
37
+ "model.layers.10.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
38
+ "model.layers.10.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
39
+ "model.layers.10.self_attn.q_norm.weight": "model-00002-of-00006.safetensors",
40
+ "model.layers.10.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
41
+ "model.layers.10.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
42
+ "model.layers.11.input_layernorm.weight": "model-00002-of-00006.safetensors",
43
+ "model.layers.11.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
44
+ "model.layers.11.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
45
+ "model.layers.11.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
46
+ "model.layers.11.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
47
+ "model.layers.11.self_attn.k_norm.weight": "model-00002-of-00006.safetensors",
48
+ "model.layers.11.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
49
+ "model.layers.11.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
50
+ "model.layers.11.self_attn.q_norm.weight": "model-00002-of-00006.safetensors",
51
+ "model.layers.11.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
52
+ "model.layers.11.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
53
+ "model.layers.12.input_layernorm.weight": "model-00003-of-00006.safetensors",
54
+ "model.layers.12.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
55
+ "model.layers.12.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
56
+ "model.layers.12.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
57
+ "model.layers.12.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
58
+ "model.layers.12.self_attn.k_norm.weight": "model-00002-of-00006.safetensors",
59
+ "model.layers.12.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
60
+ "model.layers.12.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
61
+ "model.layers.12.self_attn.q_norm.weight": "model-00002-of-00006.safetensors",
62
+ "model.layers.12.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
63
+ "model.layers.12.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
64
+ "model.layers.13.input_layernorm.weight": "model-00003-of-00006.safetensors",
65
+ "model.layers.13.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
66
+ "model.layers.13.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
67
+ "model.layers.13.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
68
+ "model.layers.13.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
69
+ "model.layers.13.self_attn.k_norm.weight": "model-00003-of-00006.safetensors",
70
+ "model.layers.13.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
71
+ "model.layers.13.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
72
+ "model.layers.13.self_attn.q_norm.weight": "model-00003-of-00006.safetensors",
73
+ "model.layers.13.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
74
+ "model.layers.13.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
75
+ "model.layers.14.input_layernorm.weight": "model-00003-of-00006.safetensors",
76
+ "model.layers.14.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
77
+ "model.layers.14.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
78
+ "model.layers.14.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
79
+ "model.layers.14.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
80
+ "model.layers.14.self_attn.k_norm.weight": "model-00003-of-00006.safetensors",
81
+ "model.layers.14.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
82
+ "model.layers.14.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
83
+ "model.layers.14.self_attn.q_norm.weight": "model-00003-of-00006.safetensors",
84
+ "model.layers.14.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
85
+ "model.layers.14.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
86
+ "model.layers.15.input_layernorm.weight": "model-00003-of-00006.safetensors",
87
+ "model.layers.15.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
88
+ "model.layers.15.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
89
+ "model.layers.15.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
90
+ "model.layers.15.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
91
+ "model.layers.15.self_attn.k_norm.weight": "model-00003-of-00006.safetensors",
92
+ "model.layers.15.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
93
+ "model.layers.15.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
94
+ "model.layers.15.self_attn.q_norm.weight": "model-00003-of-00006.safetensors",
95
+ "model.layers.15.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
96
+ "model.layers.15.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
97
+ "model.layers.16.input_layernorm.weight": "model-00003-of-00006.safetensors",
98
+ "model.layers.16.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
99
+ "model.layers.16.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
100
+ "model.layers.16.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
101
+ "model.layers.16.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
102
+ "model.layers.16.self_attn.k_norm.weight": "model-00003-of-00006.safetensors",
103
+ "model.layers.16.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
104
+ "model.layers.16.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
105
+ "model.layers.16.self_attn.q_norm.weight": "model-00003-of-00006.safetensors",
106
+ "model.layers.16.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
107
+ "model.layers.16.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
108
+ "model.layers.17.input_layernorm.weight": "model-00003-of-00006.safetensors",
109
+ "model.layers.17.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
110
+ "model.layers.17.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
111
+ "model.layers.17.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
112
+ "model.layers.17.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
113
+ "model.layers.17.self_attn.k_norm.weight": "model-00003-of-00006.safetensors",
114
+ "model.layers.17.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
115
+ "model.layers.17.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
116
+ "model.layers.17.self_attn.q_norm.weight": "model-00003-of-00006.safetensors",
117
+ "model.layers.17.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
118
+ "model.layers.17.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
119
+ "model.layers.18.input_layernorm.weight": "model-00003-of-00006.safetensors",
120
+ "model.layers.18.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
121
+ "model.layers.18.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
122
+ "model.layers.18.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
123
+ "model.layers.18.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
124
+ "model.layers.18.self_attn.k_norm.weight": "model-00003-of-00006.safetensors",
125
+ "model.layers.18.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
126
+ "model.layers.18.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
127
+ "model.layers.18.self_attn.q_norm.weight": "model-00003-of-00006.safetensors",
128
+ "model.layers.18.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
129
+ "model.layers.18.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
130
+ "model.layers.19.input_layernorm.weight": "model-00003-of-00006.safetensors",
131
+ "model.layers.19.mlp.down_proj.weight": "model-00003-of-00006.safetensors",
132
+ "model.layers.19.mlp.gate_proj.weight": "model-00003-of-00006.safetensors",
133
+ "model.layers.19.mlp.up_proj.weight": "model-00003-of-00006.safetensors",
134
+ "model.layers.19.post_attention_layernorm.weight": "model-00003-of-00006.safetensors",
135
+ "model.layers.19.self_attn.k_norm.weight": "model-00003-of-00006.safetensors",
136
+ "model.layers.19.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
137
+ "model.layers.19.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
138
+ "model.layers.19.self_attn.q_norm.weight": "model-00003-of-00006.safetensors",
139
+ "model.layers.19.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
140
+ "model.layers.19.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
141
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00006.safetensors",
142
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
143
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00006.safetensors",
144
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00006.safetensors",
145
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
146
+ "model.layers.2.self_attn.k_norm.weight": "model-00001-of-00006.safetensors",
147
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00006.safetensors",
148
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
149
+ "model.layers.2.self_attn.q_norm.weight": "model-00001-of-00006.safetensors",
150
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00006.safetensors",
151
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00006.safetensors",
152
+ "model.layers.20.input_layernorm.weight": "model-00004-of-00006.safetensors",
153
+ "model.layers.20.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
154
+ "model.layers.20.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
155
+ "model.layers.20.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
156
+ "model.layers.20.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
157
+ "model.layers.20.self_attn.k_norm.weight": "model-00003-of-00006.safetensors",
158
+ "model.layers.20.self_attn.k_proj.weight": "model-00003-of-00006.safetensors",
159
+ "model.layers.20.self_attn.o_proj.weight": "model-00003-of-00006.safetensors",
160
+ "model.layers.20.self_attn.q_norm.weight": "model-00003-of-00006.safetensors",
161
+ "model.layers.20.self_attn.q_proj.weight": "model-00003-of-00006.safetensors",
162
+ "model.layers.20.self_attn.v_proj.weight": "model-00003-of-00006.safetensors",
163
+ "model.layers.21.input_layernorm.weight": "model-00004-of-00006.safetensors",
164
+ "model.layers.21.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
165
+ "model.layers.21.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
166
+ "model.layers.21.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
167
+ "model.layers.21.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
168
+ "model.layers.21.self_attn.k_norm.weight": "model-00004-of-00006.safetensors",
169
+ "model.layers.21.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
170
+ "model.layers.21.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
171
+ "model.layers.21.self_attn.q_norm.weight": "model-00004-of-00006.safetensors",
172
+ "model.layers.21.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
173
+ "model.layers.21.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
174
+ "model.layers.22.input_layernorm.weight": "model-00004-of-00006.safetensors",
175
+ "model.layers.22.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
176
+ "model.layers.22.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
177
+ "model.layers.22.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
178
+ "model.layers.22.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
179
+ "model.layers.22.self_attn.k_norm.weight": "model-00004-of-00006.safetensors",
180
+ "model.layers.22.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
181
+ "model.layers.22.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
182
+ "model.layers.22.self_attn.q_norm.weight": "model-00004-of-00006.safetensors",
183
+ "model.layers.22.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
184
+ "model.layers.22.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
185
+ "model.layers.23.input_layernorm.weight": "model-00004-of-00006.safetensors",
186
+ "model.layers.23.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
187
+ "model.layers.23.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
188
+ "model.layers.23.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
189
+ "model.layers.23.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
190
+ "model.layers.23.self_attn.k_norm.weight": "model-00004-of-00006.safetensors",
191
+ "model.layers.23.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
192
+ "model.layers.23.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
193
+ "model.layers.23.self_attn.q_norm.weight": "model-00004-of-00006.safetensors",
194
+ "model.layers.23.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
195
+ "model.layers.23.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
196
+ "model.layers.24.input_layernorm.weight": "model-00004-of-00006.safetensors",
197
+ "model.layers.24.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
198
+ "model.layers.24.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
199
+ "model.layers.24.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
200
+ "model.layers.24.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
201
+ "model.layers.24.self_attn.k_norm.weight": "model-00004-of-00006.safetensors",
202
+ "model.layers.24.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
203
+ "model.layers.24.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
204
+ "model.layers.24.self_attn.q_norm.weight": "model-00004-of-00006.safetensors",
205
+ "model.layers.24.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
206
+ "model.layers.24.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
207
+ "model.layers.25.input_layernorm.weight": "model-00004-of-00006.safetensors",
208
+ "model.layers.25.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
209
+ "model.layers.25.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
210
+ "model.layers.25.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
211
+ "model.layers.25.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
212
+ "model.layers.25.self_attn.k_norm.weight": "model-00004-of-00006.safetensors",
213
+ "model.layers.25.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
214
+ "model.layers.25.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
215
+ "model.layers.25.self_attn.q_norm.weight": "model-00004-of-00006.safetensors",
216
+ "model.layers.25.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
217
+ "model.layers.25.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
218
+ "model.layers.26.input_layernorm.weight": "model-00004-of-00006.safetensors",
219
+ "model.layers.26.mlp.down_proj.weight": "model-00004-of-00006.safetensors",
220
+ "model.layers.26.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
221
+ "model.layers.26.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
222
+ "model.layers.26.post_attention_layernorm.weight": "model-00004-of-00006.safetensors",
223
+ "model.layers.26.self_attn.k_norm.weight": "model-00004-of-00006.safetensors",
224
+ "model.layers.26.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
225
+ "model.layers.26.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
226
+ "model.layers.26.self_attn.q_norm.weight": "model-00004-of-00006.safetensors",
227
+ "model.layers.26.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
228
+ "model.layers.26.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
229
+ "model.layers.27.input_layernorm.weight": "model-00005-of-00006.safetensors",
230
+ "model.layers.27.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
231
+ "model.layers.27.mlp.gate_proj.weight": "model-00004-of-00006.safetensors",
232
+ "model.layers.27.mlp.up_proj.weight": "model-00004-of-00006.safetensors",
233
+ "model.layers.27.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
234
+ "model.layers.27.self_attn.k_norm.weight": "model-00004-of-00006.safetensors",
235
+ "model.layers.27.self_attn.k_proj.weight": "model-00004-of-00006.safetensors",
236
+ "model.layers.27.self_attn.o_proj.weight": "model-00004-of-00006.safetensors",
237
+ "model.layers.27.self_attn.q_norm.weight": "model-00004-of-00006.safetensors",
238
+ "model.layers.27.self_attn.q_proj.weight": "model-00004-of-00006.safetensors",
239
+ "model.layers.27.self_attn.v_proj.weight": "model-00004-of-00006.safetensors",
240
+ "model.layers.28.input_layernorm.weight": "model-00005-of-00006.safetensors",
241
+ "model.layers.28.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
242
+ "model.layers.28.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
243
+ "model.layers.28.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
244
+ "model.layers.28.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
245
+ "model.layers.28.self_attn.k_norm.weight": "model-00005-of-00006.safetensors",
246
+ "model.layers.28.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
247
+ "model.layers.28.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
248
+ "model.layers.28.self_attn.q_norm.weight": "model-00005-of-00006.safetensors",
249
+ "model.layers.28.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
250
+ "model.layers.28.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
251
+ "model.layers.29.input_layernorm.weight": "model-00005-of-00006.safetensors",
252
+ "model.layers.29.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
253
+ "model.layers.29.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
254
+ "model.layers.29.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
255
+ "model.layers.29.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
256
+ "model.layers.29.self_attn.k_norm.weight": "model-00005-of-00006.safetensors",
257
+ "model.layers.29.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
258
+ "model.layers.29.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
259
+ "model.layers.29.self_attn.q_norm.weight": "model-00005-of-00006.safetensors",
260
+ "model.layers.29.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
261
+ "model.layers.29.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
262
+ "model.layers.3.input_layernorm.weight": "model-00001-of-00006.safetensors",
263
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
264
+ "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00006.safetensors",
265
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00006.safetensors",
266
+ "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
267
+ "model.layers.3.self_attn.k_norm.weight": "model-00001-of-00006.safetensors",
268
+ "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00006.safetensors",
269
+ "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
270
+ "model.layers.3.self_attn.q_norm.weight": "model-00001-of-00006.safetensors",
271
+ "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00006.safetensors",
272
+ "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00006.safetensors",
273
+ "model.layers.30.input_layernorm.weight": "model-00005-of-00006.safetensors",
274
+ "model.layers.30.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
275
+ "model.layers.30.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
276
+ "model.layers.30.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
277
+ "model.layers.30.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
278
+ "model.layers.30.self_attn.k_norm.weight": "model-00005-of-00006.safetensors",
279
+ "model.layers.30.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
280
+ "model.layers.30.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
281
+ "model.layers.30.self_attn.q_norm.weight": "model-00005-of-00006.safetensors",
282
+ "model.layers.30.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
283
+ "model.layers.30.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
284
+ "model.layers.31.input_layernorm.weight": "model-00005-of-00006.safetensors",
285
+ "model.layers.31.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
286
+ "model.layers.31.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
287
+ "model.layers.31.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
288
+ "model.layers.31.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
289
+ "model.layers.31.self_attn.k_norm.weight": "model-00005-of-00006.safetensors",
290
+ "model.layers.31.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
291
+ "model.layers.31.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
292
+ "model.layers.31.self_attn.q_norm.weight": "model-00005-of-00006.safetensors",
293
+ "model.layers.31.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
294
+ "model.layers.31.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
295
+ "model.layers.32.input_layernorm.weight": "model-00005-of-00006.safetensors",
296
+ "model.layers.32.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
297
+ "model.layers.32.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
298
+ "model.layers.32.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
299
+ "model.layers.32.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
300
+ "model.layers.32.self_attn.k_norm.weight": "model-00005-of-00006.safetensors",
301
+ "model.layers.32.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
302
+ "model.layers.32.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
303
+ "model.layers.32.self_attn.q_norm.weight": "model-00005-of-00006.safetensors",
304
+ "model.layers.32.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
305
+ "model.layers.32.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
306
+ "model.layers.33.input_layernorm.weight": "model-00005-of-00006.safetensors",
307
+ "model.layers.33.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
308
+ "model.layers.33.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
309
+ "model.layers.33.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
310
+ "model.layers.33.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
311
+ "model.layers.33.self_attn.k_norm.weight": "model-00005-of-00006.safetensors",
312
+ "model.layers.33.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
313
+ "model.layers.33.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
314
+ "model.layers.33.self_attn.q_norm.weight": "model-00005-of-00006.safetensors",
315
+ "model.layers.33.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
316
+ "model.layers.33.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
317
+ "model.layers.34.input_layernorm.weight": "model-00005-of-00006.safetensors",
318
+ "model.layers.34.mlp.down_proj.weight": "model-00005-of-00006.safetensors",
319
+ "model.layers.34.mlp.gate_proj.weight": "model-00005-of-00006.safetensors",
320
+ "model.layers.34.mlp.up_proj.weight": "model-00005-of-00006.safetensors",
321
+ "model.layers.34.post_attention_layernorm.weight": "model-00005-of-00006.safetensors",
322
+ "model.layers.34.self_attn.k_norm.weight": "model-00005-of-00006.safetensors",
323
+ "model.layers.34.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
324
+ "model.layers.34.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
325
+ "model.layers.34.self_attn.q_norm.weight": "model-00005-of-00006.safetensors",
326
+ "model.layers.34.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
327
+ "model.layers.34.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
328
+ "model.layers.35.input_layernorm.weight": "model-00006-of-00006.safetensors",
329
+ "model.layers.35.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
330
+ "model.layers.35.mlp.gate_proj.weight": "model-00006-of-00006.safetensors",
331
+ "model.layers.35.mlp.up_proj.weight": "model-00006-of-00006.safetensors",
332
+ "model.layers.35.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
333
+ "model.layers.35.self_attn.k_norm.weight": "model-00005-of-00006.safetensors",
334
+ "model.layers.35.self_attn.k_proj.weight": "model-00005-of-00006.safetensors",
335
+ "model.layers.35.self_attn.o_proj.weight": "model-00005-of-00006.safetensors",
336
+ "model.layers.35.self_attn.q_norm.weight": "model-00005-of-00006.safetensors",
337
+ "model.layers.35.self_attn.q_proj.weight": "model-00005-of-00006.safetensors",
338
+ "model.layers.35.self_attn.v_proj.weight": "model-00005-of-00006.safetensors",
339
+ "model.layers.36.input_layernorm.weight": "model-00006-of-00006.safetensors",
340
+ "model.layers.36.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
341
+ "model.layers.36.mlp.gate_proj.weight": "model-00006-of-00006.safetensors",
342
+ "model.layers.36.mlp.up_proj.weight": "model-00006-of-00006.safetensors",
343
+ "model.layers.36.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
344
+ "model.layers.36.self_attn.k_norm.weight": "model-00006-of-00006.safetensors",
345
+ "model.layers.36.self_attn.k_proj.weight": "model-00006-of-00006.safetensors",
346
+ "model.layers.36.self_attn.o_proj.weight": "model-00006-of-00006.safetensors",
347
+ "model.layers.36.self_attn.q_norm.weight": "model-00006-of-00006.safetensors",
348
+ "model.layers.36.self_attn.q_proj.weight": "model-00006-of-00006.safetensors",
349
+ "model.layers.36.self_attn.v_proj.weight": "model-00006-of-00006.safetensors",
350
+ "model.layers.37.input_layernorm.weight": "model-00006-of-00006.safetensors",
351
+ "model.layers.37.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
352
+ "model.layers.37.mlp.gate_proj.weight": "model-00006-of-00006.safetensors",
353
+ "model.layers.37.mlp.up_proj.weight": "model-00006-of-00006.safetensors",
354
+ "model.layers.37.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
355
+ "model.layers.37.self_attn.k_norm.weight": "model-00006-of-00006.safetensors",
356
+ "model.layers.37.self_attn.k_proj.weight": "model-00006-of-00006.safetensors",
357
+ "model.layers.37.self_attn.o_proj.weight": "model-00006-of-00006.safetensors",
358
+ "model.layers.37.self_attn.q_norm.weight": "model-00006-of-00006.safetensors",
359
+ "model.layers.37.self_attn.q_proj.weight": "model-00006-of-00006.safetensors",
360
+ "model.layers.37.self_attn.v_proj.weight": "model-00006-of-00006.safetensors",
361
+ "model.layers.38.input_layernorm.weight": "model-00006-of-00006.safetensors",
362
+ "model.layers.38.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
363
+ "model.layers.38.mlp.gate_proj.weight": "model-00006-of-00006.safetensors",
364
+ "model.layers.38.mlp.up_proj.weight": "model-00006-of-00006.safetensors",
365
+ "model.layers.38.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
366
+ "model.layers.38.self_attn.k_norm.weight": "model-00006-of-00006.safetensors",
367
+ "model.layers.38.self_attn.k_proj.weight": "model-00006-of-00006.safetensors",
368
+ "model.layers.38.self_attn.o_proj.weight": "model-00006-of-00006.safetensors",
369
+ "model.layers.38.self_attn.q_norm.weight": "model-00006-of-00006.safetensors",
370
+ "model.layers.38.self_attn.q_proj.weight": "model-00006-of-00006.safetensors",
371
+ "model.layers.38.self_attn.v_proj.weight": "model-00006-of-00006.safetensors",
372
+ "model.layers.39.input_layernorm.weight": "model-00006-of-00006.safetensors",
373
+ "model.layers.39.mlp.down_proj.weight": "model-00006-of-00006.safetensors",
374
+ "model.layers.39.mlp.gate_proj.weight": "model-00006-of-00006.safetensors",
375
+ "model.layers.39.mlp.up_proj.weight": "model-00006-of-00006.safetensors",
376
+ "model.layers.39.post_attention_layernorm.weight": "model-00006-of-00006.safetensors",
377
+ "model.layers.39.self_attn.k_norm.weight": "model-00006-of-00006.safetensors",
378
+ "model.layers.39.self_attn.k_proj.weight": "model-00006-of-00006.safetensors",
379
+ "model.layers.39.self_attn.o_proj.weight": "model-00006-of-00006.safetensors",
380
+ "model.layers.39.self_attn.q_norm.weight": "model-00006-of-00006.safetensors",
381
+ "model.layers.39.self_attn.q_proj.weight": "model-00006-of-00006.safetensors",
382
+ "model.layers.39.self_attn.v_proj.weight": "model-00006-of-00006.safetensors",
383
+ "model.layers.4.input_layernorm.weight": "model-00001-of-00006.safetensors",
384
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00006.safetensors",
385
+ "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00006.safetensors",
386
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00006.safetensors",
387
+ "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00006.safetensors",
388
+ "model.layers.4.self_attn.k_norm.weight": "model-00001-of-00006.safetensors",
389
+ "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00006.safetensors",
390
+ "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
391
+ "model.layers.4.self_attn.q_norm.weight": "model-00001-of-00006.safetensors",
392
+ "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00006.safetensors",
393
+ "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00006.safetensors",
394
+ "model.layers.5.input_layernorm.weight": "model-00002-of-00006.safetensors",
395
+ "model.layers.5.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
396
+ "model.layers.5.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
397
+ "model.layers.5.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
398
+ "model.layers.5.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
399
+ "model.layers.5.self_attn.k_norm.weight": "model-00001-of-00006.safetensors",
400
+ "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00006.safetensors",
401
+ "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00006.safetensors",
402
+ "model.layers.5.self_attn.q_norm.weight": "model-00001-of-00006.safetensors",
403
+ "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00006.safetensors",
404
+ "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00006.safetensors",
405
+ "model.layers.6.input_layernorm.weight": "model-00002-of-00006.safetensors",
406
+ "model.layers.6.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
407
+ "model.layers.6.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
408
+ "model.layers.6.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
409
+ "model.layers.6.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
410
+ "model.layers.6.self_attn.k_norm.weight": "model-00002-of-00006.safetensors",
411
+ "model.layers.6.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
412
+ "model.layers.6.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
413
+ "model.layers.6.self_attn.q_norm.weight": "model-00002-of-00006.safetensors",
414
+ "model.layers.6.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
415
+ "model.layers.6.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
416
+ "model.layers.7.input_layernorm.weight": "model-00002-of-00006.safetensors",
417
+ "model.layers.7.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
418
+ "model.layers.7.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
419
+ "model.layers.7.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
420
+ "model.layers.7.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
421
+ "model.layers.7.self_attn.k_norm.weight": "model-00002-of-00006.safetensors",
422
+ "model.layers.7.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
423
+ "model.layers.7.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
424
+ "model.layers.7.self_attn.q_norm.weight": "model-00002-of-00006.safetensors",
425
+ "model.layers.7.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
426
+ "model.layers.7.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
427
+ "model.layers.8.input_layernorm.weight": "model-00002-of-00006.safetensors",
428
+ "model.layers.8.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
429
+ "model.layers.8.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
430
+ "model.layers.8.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
431
+ "model.layers.8.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
432
+ "model.layers.8.self_attn.k_norm.weight": "model-00002-of-00006.safetensors",
433
+ "model.layers.8.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
434
+ "model.layers.8.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
435
+ "model.layers.8.self_attn.q_norm.weight": "model-00002-of-00006.safetensors",
436
+ "model.layers.8.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
437
+ "model.layers.8.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
438
+ "model.layers.9.input_layernorm.weight": "model-00002-of-00006.safetensors",
439
+ "model.layers.9.mlp.down_proj.weight": "model-00002-of-00006.safetensors",
440
+ "model.layers.9.mlp.gate_proj.weight": "model-00002-of-00006.safetensors",
441
+ "model.layers.9.mlp.up_proj.weight": "model-00002-of-00006.safetensors",
442
+ "model.layers.9.post_attention_layernorm.weight": "model-00002-of-00006.safetensors",
443
+ "model.layers.9.self_attn.k_norm.weight": "model-00002-of-00006.safetensors",
444
+ "model.layers.9.self_attn.k_proj.weight": "model-00002-of-00006.safetensors",
445
+ "model.layers.9.self_attn.o_proj.weight": "model-00002-of-00006.safetensors",
446
+ "model.layers.9.self_attn.q_norm.weight": "model-00002-of-00006.safetensors",
447
+ "model.layers.9.self_attn.q_proj.weight": "model-00002-of-00006.safetensors",
448
+ "model.layers.9.self_attn.v_proj.weight": "model-00002-of-00006.safetensors",
449
+ "model.norm.weight": "model-00006-of-00006.safetensors"
450
+ }
451
+ }
rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0418786c564bb001fc5f4215375b1a99ed3ea3f30771057e1d8682214a0108f
3
+ size 16389
rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35deaabe10396919e53b2274736981b26bc690165c8839845f178b355a6a7588
3
+ size 16389
rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c5deee061a76a9e05b4634f5abad786b4042e744cc4c156a2ab76dc3c94fcac
3
+ size 16389
rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13579f7ca365ea6f9cef83929c34833cd97f9b5764a434989b4e3e2db87dce56
3
+ size 16389
rng_state_4.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:073d0b1d7e2e3930e5c29fc418e6246462ab2a00396c3a86e1448d373503f1b2
3
+ size 16389
rng_state_5.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c60731015889939e665a308a0933ac6c327734a4699cf5615217db0cfaf03ca
3
+ size 16389
rng_state_6.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:416648e7a35618f28d73625751a8fc2ad066533414d19f6fc0c39932429023fc
3
+ size 16389
rng_state_7.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:619b5c49446c94dca2b233ad17098e42f7d58a945c2eced1aa23e50469a75431
3
+ size 16389
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a296aab115706767317925889fb703144b496319e0500fded3a8c8d0f7b6afc5
3
+ size 1465
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:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
3
+ size 11422654
tokenizer_config.json ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "clean_up_tokenization_spaces": false,
231
+ "eos_token": "<|im_end|>",
232
+ "errors": "replace",
233
+ "extra_special_tokens": {},
234
+ "model_max_length": 131072,
235
+ "pad_token": "<|endoftext|>",
236
+ "padding_side": "right",
237
+ "split_special_tokens": false,
238
+ "tokenizer_class": "Qwen2Tokenizer",
239
+ "unk_token": null
240
+ }
trainer_state.json ADDED
@@ -0,0 +1,2750 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.0,
6
+ "eval_steps": 500,
7
+ "global_step": 388,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.005154639175257732,
14
+ "grad_norm": 16.203728734181727,
15
+ "learning_rate": 0.0,
16
+ "loss": 0.782,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.010309278350515464,
21
+ "grad_norm": 17.966080542459263,
22
+ "learning_rate": 1.6949152542372883e-07,
23
+ "loss": 0.8806,
24
+ "step": 2
25
+ },
26
+ {
27
+ "epoch": 0.015463917525773196,
28
+ "grad_norm": 19.39755361913842,
29
+ "learning_rate": 3.3898305084745766e-07,
30
+ "loss": 0.9713,
31
+ "step": 3
32
+ },
33
+ {
34
+ "epoch": 0.020618556701030927,
35
+ "grad_norm": 18.521681485723096,
36
+ "learning_rate": 5.084745762711865e-07,
37
+ "loss": 0.7594,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 0.02577319587628866,
42
+ "grad_norm": 16.960097281692487,
43
+ "learning_rate": 6.779661016949153e-07,
44
+ "loss": 1.0095,
45
+ "step": 5
46
+ },
47
+ {
48
+ "epoch": 0.030927835051546393,
49
+ "grad_norm": 17.9303091015193,
50
+ "learning_rate": 8.474576271186441e-07,
51
+ "loss": 1.0024,
52
+ "step": 6
53
+ },
54
+ {
55
+ "epoch": 0.03608247422680412,
56
+ "grad_norm": 16.393493317929863,
57
+ "learning_rate": 1.016949152542373e-06,
58
+ "loss": 0.7936,
59
+ "step": 7
60
+ },
61
+ {
62
+ "epoch": 0.041237113402061855,
63
+ "grad_norm": 16.350575208232332,
64
+ "learning_rate": 1.186440677966102e-06,
65
+ "loss": 0.6727,
66
+ "step": 8
67
+ },
68
+ {
69
+ "epoch": 0.04639175257731959,
70
+ "grad_norm": 13.392733244736176,
71
+ "learning_rate": 1.3559322033898307e-06,
72
+ "loss": 0.6366,
73
+ "step": 9
74
+ },
75
+ {
76
+ "epoch": 0.05154639175257732,
77
+ "grad_norm": 13.99345418325563,
78
+ "learning_rate": 1.5254237288135596e-06,
79
+ "loss": 0.8352,
80
+ "step": 10
81
+ },
82
+ {
83
+ "epoch": 0.05670103092783505,
84
+ "grad_norm": 16.574632940102198,
85
+ "learning_rate": 1.6949152542372882e-06,
86
+ "loss": 0.8211,
87
+ "step": 11
88
+ },
89
+ {
90
+ "epoch": 0.061855670103092786,
91
+ "grad_norm": 7.432819145467484,
92
+ "learning_rate": 1.8644067796610171e-06,
93
+ "loss": 0.4671,
94
+ "step": 12
95
+ },
96
+ {
97
+ "epoch": 0.06701030927835051,
98
+ "grad_norm": 7.368792116734323,
99
+ "learning_rate": 2.033898305084746e-06,
100
+ "loss": 0.4617,
101
+ "step": 13
102
+ },
103
+ {
104
+ "epoch": 0.07216494845360824,
105
+ "grad_norm": 5.189955956808789,
106
+ "learning_rate": 2.203389830508475e-06,
107
+ "loss": 0.4118,
108
+ "step": 14
109
+ },
110
+ {
111
+ "epoch": 0.07731958762886598,
112
+ "grad_norm": 6.110418564319445,
113
+ "learning_rate": 2.372881355932204e-06,
114
+ "loss": 0.4772,
115
+ "step": 15
116
+ },
117
+ {
118
+ "epoch": 0.08247422680412371,
119
+ "grad_norm": 2.524741574511695,
120
+ "learning_rate": 2.5423728813559323e-06,
121
+ "loss": 0.1693,
122
+ "step": 16
123
+ },
124
+ {
125
+ "epoch": 0.08762886597938144,
126
+ "grad_norm": 4.093704704249702,
127
+ "learning_rate": 2.7118644067796613e-06,
128
+ "loss": 0.5946,
129
+ "step": 17
130
+ },
131
+ {
132
+ "epoch": 0.09278350515463918,
133
+ "grad_norm": 2.792475441128467,
134
+ "learning_rate": 2.8813559322033903e-06,
135
+ "loss": 0.3907,
136
+ "step": 18
137
+ },
138
+ {
139
+ "epoch": 0.0979381443298969,
140
+ "grad_norm": 2.8142697054484422,
141
+ "learning_rate": 3.0508474576271192e-06,
142
+ "loss": 0.4128,
143
+ "step": 19
144
+ },
145
+ {
146
+ "epoch": 0.10309278350515463,
147
+ "grad_norm": 3.0557753995059835,
148
+ "learning_rate": 3.2203389830508473e-06,
149
+ "loss": 0.4128,
150
+ "step": 20
151
+ },
152
+ {
153
+ "epoch": 0.10824742268041238,
154
+ "grad_norm": 2.407462983991879,
155
+ "learning_rate": 3.3898305084745763e-06,
156
+ "loss": 0.2454,
157
+ "step": 21
158
+ },
159
+ {
160
+ "epoch": 0.1134020618556701,
161
+ "grad_norm": 4.175164045570657,
162
+ "learning_rate": 3.5593220338983053e-06,
163
+ "loss": 0.5676,
164
+ "step": 22
165
+ },
166
+ {
167
+ "epoch": 0.11855670103092783,
168
+ "grad_norm": 3.2745984458679542,
169
+ "learning_rate": 3.7288135593220342e-06,
170
+ "loss": 0.3725,
171
+ "step": 23
172
+ },
173
+ {
174
+ "epoch": 0.12371134020618557,
175
+ "grad_norm": 2.630482014005189,
176
+ "learning_rate": 3.898305084745763e-06,
177
+ "loss": 0.284,
178
+ "step": 24
179
+ },
180
+ {
181
+ "epoch": 0.12886597938144329,
182
+ "grad_norm": 2.5818523655885657,
183
+ "learning_rate": 4.067796610169492e-06,
184
+ "loss": 0.3914,
185
+ "step": 25
186
+ },
187
+ {
188
+ "epoch": 0.13402061855670103,
189
+ "grad_norm": 2.1862545024847733,
190
+ "learning_rate": 4.23728813559322e-06,
191
+ "loss": 0.3245,
192
+ "step": 26
193
+ },
194
+ {
195
+ "epoch": 0.13917525773195877,
196
+ "grad_norm": 1.8029553321125102,
197
+ "learning_rate": 4.40677966101695e-06,
198
+ "loss": 0.1906,
199
+ "step": 27
200
+ },
201
+ {
202
+ "epoch": 0.14432989690721648,
203
+ "grad_norm": 2.1274587742776228,
204
+ "learning_rate": 4.576271186440678e-06,
205
+ "loss": 0.3129,
206
+ "step": 28
207
+ },
208
+ {
209
+ "epoch": 0.14948453608247422,
210
+ "grad_norm": 2.0553069128433985,
211
+ "learning_rate": 4.745762711864408e-06,
212
+ "loss": 0.362,
213
+ "step": 29
214
+ },
215
+ {
216
+ "epoch": 0.15463917525773196,
217
+ "grad_norm": 2.2636243270640812,
218
+ "learning_rate": 4.915254237288136e-06,
219
+ "loss": 0.3487,
220
+ "step": 30
221
+ },
222
+ {
223
+ "epoch": 0.15979381443298968,
224
+ "grad_norm": 2.0627428648390023,
225
+ "learning_rate": 5.084745762711865e-06,
226
+ "loss": 0.3017,
227
+ "step": 31
228
+ },
229
+ {
230
+ "epoch": 0.16494845360824742,
231
+ "grad_norm": 1.707507687529141,
232
+ "learning_rate": 5.254237288135594e-06,
233
+ "loss": 0.2379,
234
+ "step": 32
235
+ },
236
+ {
237
+ "epoch": 0.17010309278350516,
238
+ "grad_norm": 1.6433474151177994,
239
+ "learning_rate": 5.423728813559323e-06,
240
+ "loss": 0.2785,
241
+ "step": 33
242
+ },
243
+ {
244
+ "epoch": 0.17525773195876287,
245
+ "grad_norm": 1.8049400111968015,
246
+ "learning_rate": 5.593220338983051e-06,
247
+ "loss": 0.2046,
248
+ "step": 34
249
+ },
250
+ {
251
+ "epoch": 0.18041237113402062,
252
+ "grad_norm": 1.956624509674235,
253
+ "learning_rate": 5.7627118644067805e-06,
254
+ "loss": 0.2924,
255
+ "step": 35
256
+ },
257
+ {
258
+ "epoch": 0.18556701030927836,
259
+ "grad_norm": 2.043442546886233,
260
+ "learning_rate": 5.932203389830509e-06,
261
+ "loss": 0.2517,
262
+ "step": 36
263
+ },
264
+ {
265
+ "epoch": 0.19072164948453607,
266
+ "grad_norm": 1.7809412898084382,
267
+ "learning_rate": 6.1016949152542385e-06,
268
+ "loss": 0.214,
269
+ "step": 37
270
+ },
271
+ {
272
+ "epoch": 0.1958762886597938,
273
+ "grad_norm": 1.0871959933984234,
274
+ "learning_rate": 6.271186440677966e-06,
275
+ "loss": 0.0794,
276
+ "step": 38
277
+ },
278
+ {
279
+ "epoch": 0.20103092783505155,
280
+ "grad_norm": 1.6627701820242757,
281
+ "learning_rate": 6.440677966101695e-06,
282
+ "loss": 0.1529,
283
+ "step": 39
284
+ },
285
+ {
286
+ "epoch": 0.20618556701030927,
287
+ "grad_norm": 2.233281327693517,
288
+ "learning_rate": 6.610169491525424e-06,
289
+ "loss": 0.3918,
290
+ "step": 40
291
+ },
292
+ {
293
+ "epoch": 0.211340206185567,
294
+ "grad_norm": 2.4810527246233143,
295
+ "learning_rate": 6.779661016949153e-06,
296
+ "loss": 0.3276,
297
+ "step": 41
298
+ },
299
+ {
300
+ "epoch": 0.21649484536082475,
301
+ "grad_norm": 2.138313718866784,
302
+ "learning_rate": 6.949152542372882e-06,
303
+ "loss": 0.1874,
304
+ "step": 42
305
+ },
306
+ {
307
+ "epoch": 0.22164948453608246,
308
+ "grad_norm": 2.3207138440634445,
309
+ "learning_rate": 7.1186440677966106e-06,
310
+ "loss": 0.143,
311
+ "step": 43
312
+ },
313
+ {
314
+ "epoch": 0.2268041237113402,
315
+ "grad_norm": 1.806845922939825,
316
+ "learning_rate": 7.288135593220339e-06,
317
+ "loss": 0.2639,
318
+ "step": 44
319
+ },
320
+ {
321
+ "epoch": 0.23195876288659795,
322
+ "grad_norm": 1.6856465858879643,
323
+ "learning_rate": 7.4576271186440685e-06,
324
+ "loss": 0.1803,
325
+ "step": 45
326
+ },
327
+ {
328
+ "epoch": 0.23711340206185566,
329
+ "grad_norm": 1.8626644402225192,
330
+ "learning_rate": 7.627118644067797e-06,
331
+ "loss": 0.2046,
332
+ "step": 46
333
+ },
334
+ {
335
+ "epoch": 0.2422680412371134,
336
+ "grad_norm": 1.7027465927641543,
337
+ "learning_rate": 7.796610169491526e-06,
338
+ "loss": 0.124,
339
+ "step": 47
340
+ },
341
+ {
342
+ "epoch": 0.24742268041237114,
343
+ "grad_norm": 1.9041870166779817,
344
+ "learning_rate": 7.966101694915255e-06,
345
+ "loss": 0.1982,
346
+ "step": 48
347
+ },
348
+ {
349
+ "epoch": 0.25257731958762886,
350
+ "grad_norm": 1.770069442877448,
351
+ "learning_rate": 8.135593220338983e-06,
352
+ "loss": 0.2813,
353
+ "step": 49
354
+ },
355
+ {
356
+ "epoch": 0.25773195876288657,
357
+ "grad_norm": 1.953365961357983,
358
+ "learning_rate": 8.305084745762712e-06,
359
+ "loss": 0.2251,
360
+ "step": 50
361
+ },
362
+ {
363
+ "epoch": 0.26288659793814434,
364
+ "grad_norm": 2.002309230380239,
365
+ "learning_rate": 8.47457627118644e-06,
366
+ "loss": 0.2785,
367
+ "step": 51
368
+ },
369
+ {
370
+ "epoch": 0.26804123711340205,
371
+ "grad_norm": 1.5522236927921595,
372
+ "learning_rate": 8.64406779661017e-06,
373
+ "loss": 0.2388,
374
+ "step": 52
375
+ },
376
+ {
377
+ "epoch": 0.27319587628865977,
378
+ "grad_norm": 1.4065957481275269,
379
+ "learning_rate": 8.8135593220339e-06,
380
+ "loss": 0.1592,
381
+ "step": 53
382
+ },
383
+ {
384
+ "epoch": 0.27835051546391754,
385
+ "grad_norm": 1.344843484282986,
386
+ "learning_rate": 8.983050847457628e-06,
387
+ "loss": 0.184,
388
+ "step": 54
389
+ },
390
+ {
391
+ "epoch": 0.28350515463917525,
392
+ "grad_norm": 1.8809824575076326,
393
+ "learning_rate": 9.152542372881356e-06,
394
+ "loss": 0.1559,
395
+ "step": 55
396
+ },
397
+ {
398
+ "epoch": 0.28865979381443296,
399
+ "grad_norm": 1.554740329023379,
400
+ "learning_rate": 9.322033898305085e-06,
401
+ "loss": 0.1945,
402
+ "step": 56
403
+ },
404
+ {
405
+ "epoch": 0.29381443298969073,
406
+ "grad_norm": 1.7706197688983198,
407
+ "learning_rate": 9.491525423728815e-06,
408
+ "loss": 0.2799,
409
+ "step": 57
410
+ },
411
+ {
412
+ "epoch": 0.29896907216494845,
413
+ "grad_norm": 1.339143828253002,
414
+ "learning_rate": 9.661016949152544e-06,
415
+ "loss": 0.1094,
416
+ "step": 58
417
+ },
418
+ {
419
+ "epoch": 0.30412371134020616,
420
+ "grad_norm": 2.1220725285103086,
421
+ "learning_rate": 9.830508474576272e-06,
422
+ "loss": 0.3211,
423
+ "step": 59
424
+ },
425
+ {
426
+ "epoch": 0.30927835051546393,
427
+ "grad_norm": 1.3971936674913341,
428
+ "learning_rate": 1e-05,
429
+ "loss": 0.2081,
430
+ "step": 60
431
+ },
432
+ {
433
+ "epoch": 0.31443298969072164,
434
+ "grad_norm": 1.8165010693502677,
435
+ "learning_rate": 9.999909794073715e-06,
436
+ "loss": 0.191,
437
+ "step": 61
438
+ },
439
+ {
440
+ "epoch": 0.31958762886597936,
441
+ "grad_norm": 1.8206712917879821,
442
+ "learning_rate": 9.999639179549699e-06,
443
+ "loss": 0.1817,
444
+ "step": 62
445
+ },
446
+ {
447
+ "epoch": 0.3247422680412371,
448
+ "grad_norm": 2.1904370888969704,
449
+ "learning_rate": 9.999188166192368e-06,
450
+ "loss": 0.1933,
451
+ "step": 63
452
+ },
453
+ {
454
+ "epoch": 0.32989690721649484,
455
+ "grad_norm": 1.356123942482486,
456
+ "learning_rate": 9.998556770275351e-06,
457
+ "loss": 0.1529,
458
+ "step": 64
459
+ },
460
+ {
461
+ "epoch": 0.33505154639175255,
462
+ "grad_norm": 1.4167068373050817,
463
+ "learning_rate": 9.997745014580912e-06,
464
+ "loss": 0.2182,
465
+ "step": 65
466
+ },
467
+ {
468
+ "epoch": 0.3402061855670103,
469
+ "grad_norm": 1.2778114297184384,
470
+ "learning_rate": 9.996752928399121e-06,
471
+ "loss": 0.1231,
472
+ "step": 66
473
+ },
474
+ {
475
+ "epoch": 0.34536082474226804,
476
+ "grad_norm": 1.4693549048926278,
477
+ "learning_rate": 9.995580547526798e-06,
478
+ "loss": 0.2222,
479
+ "step": 67
480
+ },
481
+ {
482
+ "epoch": 0.35051546391752575,
483
+ "grad_norm": 1.4349642188073422,
484
+ "learning_rate": 9.994227914266222e-06,
485
+ "loss": 0.1934,
486
+ "step": 68
487
+ },
488
+ {
489
+ "epoch": 0.3556701030927835,
490
+ "grad_norm": 1.3639498444936125,
491
+ "learning_rate": 9.992695077423609e-06,
492
+ "loss": 0.1707,
493
+ "step": 69
494
+ },
495
+ {
496
+ "epoch": 0.36082474226804123,
497
+ "grad_norm": 1.3943030751682663,
498
+ "learning_rate": 9.990982092307347e-06,
499
+ "loss": 0.1716,
500
+ "step": 70
501
+ },
502
+ {
503
+ "epoch": 0.36597938144329895,
504
+ "grad_norm": 1.4616151628165952,
505
+ "learning_rate": 9.989089020725999e-06,
506
+ "loss": 0.2363,
507
+ "step": 71
508
+ },
509
+ {
510
+ "epoch": 0.3711340206185567,
511
+ "grad_norm": 1.7297954033170302,
512
+ "learning_rate": 9.987015930986074e-06,
513
+ "loss": 0.0612,
514
+ "step": 72
515
+ },
516
+ {
517
+ "epoch": 0.37628865979381443,
518
+ "grad_norm": 1.4130551566794556,
519
+ "learning_rate": 9.984762897889568e-06,
520
+ "loss": 0.2438,
521
+ "step": 73
522
+ },
523
+ {
524
+ "epoch": 0.38144329896907214,
525
+ "grad_norm": 1.4316589582684316,
526
+ "learning_rate": 9.98233000273125e-06,
527
+ "loss": 0.2529,
528
+ "step": 74
529
+ },
530
+ {
531
+ "epoch": 0.3865979381443299,
532
+ "grad_norm": 1.4921368045815033,
533
+ "learning_rate": 9.97971733329575e-06,
534
+ "loss": 0.2033,
535
+ "step": 75
536
+ },
537
+ {
538
+ "epoch": 0.3917525773195876,
539
+ "grad_norm": 1.6884913833837993,
540
+ "learning_rate": 9.97692498385437e-06,
541
+ "loss": 0.3251,
542
+ "step": 76
543
+ },
544
+ {
545
+ "epoch": 0.39690721649484534,
546
+ "grad_norm": 1.2618275142031115,
547
+ "learning_rate": 9.973953055161702e-06,
548
+ "loss": 0.2173,
549
+ "step": 77
550
+ },
551
+ {
552
+ "epoch": 0.4020618556701031,
553
+ "grad_norm": 1.2058891275808017,
554
+ "learning_rate": 9.970801654451974e-06,
555
+ "loss": 0.1337,
556
+ "step": 78
557
+ },
558
+ {
559
+ "epoch": 0.4072164948453608,
560
+ "grad_norm": 1.3014010097389481,
561
+ "learning_rate": 9.967470895435197e-06,
562
+ "loss": 0.2217,
563
+ "step": 79
564
+ },
565
+ {
566
+ "epoch": 0.41237113402061853,
567
+ "grad_norm": 1.0907558669955588,
568
+ "learning_rate": 9.963960898293049e-06,
569
+ "loss": 0.1166,
570
+ "step": 80
571
+ },
572
+ {
573
+ "epoch": 0.4175257731958763,
574
+ "grad_norm": 1.3508925279475854,
575
+ "learning_rate": 9.96027178967455e-06,
576
+ "loss": 0.2185,
577
+ "step": 81
578
+ },
579
+ {
580
+ "epoch": 0.422680412371134,
581
+ "grad_norm": 1.8405638710013943,
582
+ "learning_rate": 9.956403702691482e-06,
583
+ "loss": 0.2981,
584
+ "step": 82
585
+ },
586
+ {
587
+ "epoch": 0.42783505154639173,
588
+ "grad_norm": 0.9981831988732881,
589
+ "learning_rate": 9.952356776913594e-06,
590
+ "loss": 0.1471,
591
+ "step": 83
592
+ },
593
+ {
594
+ "epoch": 0.4329896907216495,
595
+ "grad_norm": 1.5438578399853147,
596
+ "learning_rate": 9.948131158363564e-06,
597
+ "loss": 0.2219,
598
+ "step": 84
599
+ },
600
+ {
601
+ "epoch": 0.4381443298969072,
602
+ "grad_norm": 1.373967099765683,
603
+ "learning_rate": 9.943726999511721e-06,
604
+ "loss": 0.2625,
605
+ "step": 85
606
+ },
607
+ {
608
+ "epoch": 0.44329896907216493,
609
+ "grad_norm": 1.5045665327970632,
610
+ "learning_rate": 9.939144459270557e-06,
611
+ "loss": 0.2378,
612
+ "step": 86
613
+ },
614
+ {
615
+ "epoch": 0.4484536082474227,
616
+ "grad_norm": 1.2348801218707532,
617
+ "learning_rate": 9.934383702988992e-06,
618
+ "loss": 0.1299,
619
+ "step": 87
620
+ },
621
+ {
622
+ "epoch": 0.4536082474226804,
623
+ "grad_norm": 1.3457854200982862,
624
+ "learning_rate": 9.929444902446392e-06,
625
+ "loss": 0.2193,
626
+ "step": 88
627
+ },
628
+ {
629
+ "epoch": 0.4587628865979381,
630
+ "grad_norm": 1.5974941630503592,
631
+ "learning_rate": 9.924328235846393e-06,
632
+ "loss": 0.3447,
633
+ "step": 89
634
+ },
635
+ {
636
+ "epoch": 0.4639175257731959,
637
+ "grad_norm": 1.7921462524347982,
638
+ "learning_rate": 9.919033887810451e-06,
639
+ "loss": 0.3081,
640
+ "step": 90
641
+ },
642
+ {
643
+ "epoch": 0.4690721649484536,
644
+ "grad_norm": 1.0544333428105994,
645
+ "learning_rate": 9.913562049371196e-06,
646
+ "loss": 0.1723,
647
+ "step": 91
648
+ },
649
+ {
650
+ "epoch": 0.4742268041237113,
651
+ "grad_norm": 1.173180659355975,
652
+ "learning_rate": 9.90791291796553e-06,
653
+ "loss": 0.1816,
654
+ "step": 92
655
+ },
656
+ {
657
+ "epoch": 0.4793814432989691,
658
+ "grad_norm": 1.2343501847799747,
659
+ "learning_rate": 9.902086697427504e-06,
660
+ "loss": 0.2048,
661
+ "step": 93
662
+ },
663
+ {
664
+ "epoch": 0.4845360824742268,
665
+ "grad_norm": 1.4166315003510848,
666
+ "learning_rate": 9.896083597980968e-06,
667
+ "loss": 0.1611,
668
+ "step": 94
669
+ },
670
+ {
671
+ "epoch": 0.4896907216494845,
672
+ "grad_norm": 0.9316258247144923,
673
+ "learning_rate": 9.88990383623198e-06,
674
+ "loss": 0.1307,
675
+ "step": 95
676
+ },
677
+ {
678
+ "epoch": 0.4948453608247423,
679
+ "grad_norm": 1.1284196528102999,
680
+ "learning_rate": 9.883547635160991e-06,
681
+ "loss": 0.1816,
682
+ "step": 96
683
+ },
684
+ {
685
+ "epoch": 0.5,
686
+ "grad_norm": 0.9136263992805103,
687
+ "learning_rate": 9.877015224114806e-06,
688
+ "loss": 0.1173,
689
+ "step": 97
690
+ },
691
+ {
692
+ "epoch": 0.5051546391752577,
693
+ "grad_norm": 1.5233730471599805,
694
+ "learning_rate": 9.870306838798299e-06,
695
+ "loss": 0.2239,
696
+ "step": 98
697
+ },
698
+ {
699
+ "epoch": 0.5103092783505154,
700
+ "grad_norm": 1.4031394060036828,
701
+ "learning_rate": 9.863422721265913e-06,
702
+ "loss": 0.2398,
703
+ "step": 99
704
+ },
705
+ {
706
+ "epoch": 0.5154639175257731,
707
+ "grad_norm": 1.12765997685746,
708
+ "learning_rate": 9.856363119912931e-06,
709
+ "loss": 0.1318,
710
+ "step": 100
711
+ },
712
+ {
713
+ "epoch": 0.520618556701031,
714
+ "grad_norm": 0.8420145818838017,
715
+ "learning_rate": 9.849128289466503e-06,
716
+ "loss": 0.1246,
717
+ "step": 101
718
+ },
719
+ {
720
+ "epoch": 0.5257731958762887,
721
+ "grad_norm": 0.946095131905409,
722
+ "learning_rate": 9.841718490976461e-06,
723
+ "loss": 0.1241,
724
+ "step": 102
725
+ },
726
+ {
727
+ "epoch": 0.5309278350515464,
728
+ "grad_norm": 0.9796883673872017,
729
+ "learning_rate": 9.8341339918059e-06,
730
+ "loss": 0.0955,
731
+ "step": 103
732
+ },
733
+ {
734
+ "epoch": 0.5360824742268041,
735
+ "grad_norm": 1.1930460993410585,
736
+ "learning_rate": 9.826375065621533e-06,
737
+ "loss": 0.1646,
738
+ "step": 104
739
+ },
740
+ {
741
+ "epoch": 0.5412371134020618,
742
+ "grad_norm": 1.27651192729961,
743
+ "learning_rate": 9.818441992383802e-06,
744
+ "loss": 0.1566,
745
+ "step": 105
746
+ },
747
+ {
748
+ "epoch": 0.5463917525773195,
749
+ "grad_norm": 1.1315939745886057,
750
+ "learning_rate": 9.810335058336801e-06,
751
+ "loss": 0.1786,
752
+ "step": 106
753
+ },
754
+ {
755
+ "epoch": 0.5515463917525774,
756
+ "grad_norm": 0.9355015058700618,
757
+ "learning_rate": 9.802054555997927e-06,
758
+ "loss": 0.0945,
759
+ "step": 107
760
+ },
761
+ {
762
+ "epoch": 0.5567010309278351,
763
+ "grad_norm": 1.7639349345635655,
764
+ "learning_rate": 9.79360078414733e-06,
765
+ "loss": 0.254,
766
+ "step": 108
767
+ },
768
+ {
769
+ "epoch": 0.5618556701030928,
770
+ "grad_norm": 1.3663266258683646,
771
+ "learning_rate": 9.784974047817142e-06,
772
+ "loss": 0.1953,
773
+ "step": 109
774
+ },
775
+ {
776
+ "epoch": 0.5670103092783505,
777
+ "grad_norm": 1.441702754636908,
778
+ "learning_rate": 9.776174658280458e-06,
779
+ "loss": 0.1841,
780
+ "step": 110
781
+ },
782
+ {
783
+ "epoch": 0.5721649484536082,
784
+ "grad_norm": 1.1499799893613811,
785
+ "learning_rate": 9.767202933040111e-06,
786
+ "loss": 0.1997,
787
+ "step": 111
788
+ },
789
+ {
790
+ "epoch": 0.5773195876288659,
791
+ "grad_norm": 1.2076330399094353,
792
+ "learning_rate": 9.758059195817216e-06,
793
+ "loss": 0.1768,
794
+ "step": 112
795
+ },
796
+ {
797
+ "epoch": 0.5824742268041238,
798
+ "grad_norm": 0.878277090541755,
799
+ "learning_rate": 9.748743776539489e-06,
800
+ "loss": 0.1173,
801
+ "step": 113
802
+ },
803
+ {
804
+ "epoch": 0.5876288659793815,
805
+ "grad_norm": 1.0228670375234183,
806
+ "learning_rate": 9.739257011329336e-06,
807
+ "loss": 0.1361,
808
+ "step": 114
809
+ },
810
+ {
811
+ "epoch": 0.5927835051546392,
812
+ "grad_norm": 1.4761049929099612,
813
+ "learning_rate": 9.729599242491738e-06,
814
+ "loss": 0.2792,
815
+ "step": 115
816
+ },
817
+ {
818
+ "epoch": 0.5979381443298969,
819
+ "grad_norm": 1.0296746075367031,
820
+ "learning_rate": 9.719770818501885e-06,
821
+ "loss": 0.1,
822
+ "step": 116
823
+ },
824
+ {
825
+ "epoch": 0.6030927835051546,
826
+ "grad_norm": 0.9546648084132865,
827
+ "learning_rate": 9.709772093992619e-06,
828
+ "loss": 0.1072,
829
+ "step": 117
830
+ },
831
+ {
832
+ "epoch": 0.6082474226804123,
833
+ "grad_norm": 0.9359977344927911,
834
+ "learning_rate": 9.699603429741615e-06,
835
+ "loss": 0.1171,
836
+ "step": 118
837
+ },
838
+ {
839
+ "epoch": 0.6134020618556701,
840
+ "grad_norm": 1.2912642891989952,
841
+ "learning_rate": 9.689265192658387e-06,
842
+ "loss": 0.1783,
843
+ "step": 119
844
+ },
845
+ {
846
+ "epoch": 0.6185567010309279,
847
+ "grad_norm": 1.1169115856391039,
848
+ "learning_rate": 9.67875775577104e-06,
849
+ "loss": 0.2051,
850
+ "step": 120
851
+ },
852
+ {
853
+ "epoch": 0.6237113402061856,
854
+ "grad_norm": 1.4787464277701932,
855
+ "learning_rate": 9.668081498212799e-06,
856
+ "loss": 0.2377,
857
+ "step": 121
858
+ },
859
+ {
860
+ "epoch": 0.6288659793814433,
861
+ "grad_norm": 0.9403827546416947,
862
+ "learning_rate": 9.657236805208347e-06,
863
+ "loss": 0.1219,
864
+ "step": 122
865
+ },
866
+ {
867
+ "epoch": 0.634020618556701,
868
+ "grad_norm": 0.7358413148522787,
869
+ "learning_rate": 9.646224068059917e-06,
870
+ "loss": 0.0895,
871
+ "step": 123
872
+ },
873
+ {
874
+ "epoch": 0.6391752577319587,
875
+ "grad_norm": 1.1530465641868872,
876
+ "learning_rate": 9.63504368413317e-06,
877
+ "loss": 0.2149,
878
+ "step": 124
879
+ },
880
+ {
881
+ "epoch": 0.6443298969072165,
882
+ "grad_norm": 1.4217244985998034,
883
+ "learning_rate": 9.62369605684286e-06,
884
+ "loss": 0.197,
885
+ "step": 125
886
+ },
887
+ {
888
+ "epoch": 0.6494845360824743,
889
+ "grad_norm": 1.910749720256578,
890
+ "learning_rate": 9.612181595638279e-06,
891
+ "loss": 0.2508,
892
+ "step": 126
893
+ },
894
+ {
895
+ "epoch": 0.654639175257732,
896
+ "grad_norm": 1.2757659427730983,
897
+ "learning_rate": 9.600500715988486e-06,
898
+ "loss": 0.2809,
899
+ "step": 127
900
+ },
901
+ {
902
+ "epoch": 0.6597938144329897,
903
+ "grad_norm": 1.0891754027329807,
904
+ "learning_rate": 9.588653839367304e-06,
905
+ "loss": 0.165,
906
+ "step": 128
907
+ },
908
+ {
909
+ "epoch": 0.6649484536082474,
910
+ "grad_norm": 1.293429113847632,
911
+ "learning_rate": 9.576641393238129e-06,
912
+ "loss": 0.0855,
913
+ "step": 129
914
+ },
915
+ {
916
+ "epoch": 0.6701030927835051,
917
+ "grad_norm": 1.4599213966596118,
918
+ "learning_rate": 9.564463811038489e-06,
919
+ "loss": 0.2503,
920
+ "step": 130
921
+ },
922
+ {
923
+ "epoch": 0.6752577319587629,
924
+ "grad_norm": 1.3648021125385577,
925
+ "learning_rate": 9.55212153216442e-06,
926
+ "loss": 0.1794,
927
+ "step": 131
928
+ },
929
+ {
930
+ "epoch": 0.6804123711340206,
931
+ "grad_norm": 0.9809648930976671,
932
+ "learning_rate": 9.5396150019546e-06,
933
+ "loss": 0.0749,
934
+ "step": 132
935
+ },
936
+ {
937
+ "epoch": 0.6855670103092784,
938
+ "grad_norm": 1.2479101653995877,
939
+ "learning_rate": 9.526944671674287e-06,
940
+ "loss": 0.1705,
941
+ "step": 133
942
+ },
943
+ {
944
+ "epoch": 0.6907216494845361,
945
+ "grad_norm": 1.180767703263976,
946
+ "learning_rate": 9.514110998499032e-06,
947
+ "loss": 0.2419,
948
+ "step": 134
949
+ },
950
+ {
951
+ "epoch": 0.6958762886597938,
952
+ "grad_norm": 0.9973862175809532,
953
+ "learning_rate": 9.501114445498183e-06,
954
+ "loss": 0.1545,
955
+ "step": 135
956
+ },
957
+ {
958
+ "epoch": 0.7010309278350515,
959
+ "grad_norm": 0.9580969711134073,
960
+ "learning_rate": 9.487955481618184e-06,
961
+ "loss": 0.1563,
962
+ "step": 136
963
+ },
964
+ {
965
+ "epoch": 0.7061855670103093,
966
+ "grad_norm": 1.0576903096823542,
967
+ "learning_rate": 9.474634581665645e-06,
968
+ "loss": 0.128,
969
+ "step": 137
970
+ },
971
+ {
972
+ "epoch": 0.711340206185567,
973
+ "grad_norm": 1.1608177511918483,
974
+ "learning_rate": 9.461152226290212e-06,
975
+ "loss": 0.2324,
976
+ "step": 138
977
+ },
978
+ {
979
+ "epoch": 0.7164948453608248,
980
+ "grad_norm": 0.7247855062304921,
981
+ "learning_rate": 9.44750890196723e-06,
982
+ "loss": 0.0696,
983
+ "step": 139
984
+ },
985
+ {
986
+ "epoch": 0.7216494845360825,
987
+ "grad_norm": 1.294941334572682,
988
+ "learning_rate": 9.43370510098018e-06,
989
+ "loss": 0.2068,
990
+ "step": 140
991
+ },
992
+ {
993
+ "epoch": 0.7268041237113402,
994
+ "grad_norm": 1.5307061314891508,
995
+ "learning_rate": 9.419741321402923e-06,
996
+ "loss": 0.134,
997
+ "step": 141
998
+ },
999
+ {
1000
+ "epoch": 0.7319587628865979,
1001
+ "grad_norm": 1.724248389396898,
1002
+ "learning_rate": 9.405618067081729e-06,
1003
+ "loss": 0.3587,
1004
+ "step": 142
1005
+ },
1006
+ {
1007
+ "epoch": 0.7371134020618557,
1008
+ "grad_norm": 0.7880104208217124,
1009
+ "learning_rate": 9.391335847617093e-06,
1010
+ "loss": 0.1081,
1011
+ "step": 143
1012
+ },
1013
+ {
1014
+ "epoch": 0.7422680412371134,
1015
+ "grad_norm": 1.176218642717777,
1016
+ "learning_rate": 9.37689517834535e-06,
1017
+ "loss": 0.2552,
1018
+ "step": 144
1019
+ },
1020
+ {
1021
+ "epoch": 0.7474226804123711,
1022
+ "grad_norm": 0.9007810641742303,
1023
+ "learning_rate": 9.362296580320078e-06,
1024
+ "loss": 0.1411,
1025
+ "step": 145
1026
+ },
1027
+ {
1028
+ "epoch": 0.7525773195876289,
1029
+ "grad_norm": 1.0987174332049452,
1030
+ "learning_rate": 9.347540580293301e-06,
1031
+ "loss": 0.1984,
1032
+ "step": 146
1033
+ },
1034
+ {
1035
+ "epoch": 0.7577319587628866,
1036
+ "grad_norm": 0.9593956667801066,
1037
+ "learning_rate": 9.332627710696477e-06,
1038
+ "loss": 0.1403,
1039
+ "step": 147
1040
+ },
1041
+ {
1042
+ "epoch": 0.7628865979381443,
1043
+ "grad_norm": 1.5203788468340629,
1044
+ "learning_rate": 9.317558509621297e-06,
1045
+ "loss": 0.3035,
1046
+ "step": 148
1047
+ },
1048
+ {
1049
+ "epoch": 0.7680412371134021,
1050
+ "grad_norm": 0.9687515693670804,
1051
+ "learning_rate": 9.302333520800253e-06,
1052
+ "loss": 0.1366,
1053
+ "step": 149
1054
+ },
1055
+ {
1056
+ "epoch": 0.7731958762886598,
1057
+ "grad_norm": 0.7832678330612435,
1058
+ "learning_rate": 9.286953293587035e-06,
1059
+ "loss": 0.11,
1060
+ "step": 150
1061
+ },
1062
+ {
1063
+ "epoch": 0.7783505154639175,
1064
+ "grad_norm": 0.9289801978987015,
1065
+ "learning_rate": 9.271418382936697e-06,
1066
+ "loss": 0.0988,
1067
+ "step": 151
1068
+ },
1069
+ {
1070
+ "epoch": 0.7835051546391752,
1071
+ "grad_norm": 1.1356540696916577,
1072
+ "learning_rate": 9.255729349385645e-06,
1073
+ "loss": 0.1375,
1074
+ "step": 152
1075
+ },
1076
+ {
1077
+ "epoch": 0.788659793814433,
1078
+ "grad_norm": 1.3495379294095782,
1079
+ "learning_rate": 9.239886759031399e-06,
1080
+ "loss": 0.3033,
1081
+ "step": 153
1082
+ },
1083
+ {
1084
+ "epoch": 0.7938144329896907,
1085
+ "grad_norm": 1.2612818337900333,
1086
+ "learning_rate": 9.223891183512174e-06,
1087
+ "loss": 0.1364,
1088
+ "step": 154
1089
+ },
1090
+ {
1091
+ "epoch": 0.7989690721649485,
1092
+ "grad_norm": 1.1325852394462053,
1093
+ "learning_rate": 9.207743199986252e-06,
1094
+ "loss": 0.1559,
1095
+ "step": 155
1096
+ },
1097
+ {
1098
+ "epoch": 0.8041237113402062,
1099
+ "grad_norm": 0.6629329908683664,
1100
+ "learning_rate": 9.191443391111157e-06,
1101
+ "loss": 0.0678,
1102
+ "step": 156
1103
+ },
1104
+ {
1105
+ "epoch": 0.8092783505154639,
1106
+ "grad_norm": 1.184280051526035,
1107
+ "learning_rate": 9.174992345022636e-06,
1108
+ "loss": 0.1762,
1109
+ "step": 157
1110
+ },
1111
+ {
1112
+ "epoch": 0.8144329896907216,
1113
+ "grad_norm": 1.4363833078261825,
1114
+ "learning_rate": 9.158390655313422e-06,
1115
+ "loss": 0.2509,
1116
+ "step": 158
1117
+ },
1118
+ {
1119
+ "epoch": 0.8195876288659794,
1120
+ "grad_norm": 1.4851296678460735,
1121
+ "learning_rate": 9.141638921011842e-06,
1122
+ "loss": 0.3053,
1123
+ "step": 159
1124
+ },
1125
+ {
1126
+ "epoch": 0.8247422680412371,
1127
+ "grad_norm": 0.9939630731717258,
1128
+ "learning_rate": 9.124737746560175e-06,
1129
+ "loss": 0.0952,
1130
+ "step": 160
1131
+ },
1132
+ {
1133
+ "epoch": 0.8298969072164949,
1134
+ "grad_norm": 1.2169101845107388,
1135
+ "learning_rate": 9.107687741792863e-06,
1136
+ "loss": 0.1494,
1137
+ "step": 161
1138
+ },
1139
+ {
1140
+ "epoch": 0.8350515463917526,
1141
+ "grad_norm": 1.3295674637794006,
1142
+ "learning_rate": 9.090489521914492e-06,
1143
+ "loss": 0.2761,
1144
+ "step": 162
1145
+ },
1146
+ {
1147
+ "epoch": 0.8402061855670103,
1148
+ "grad_norm": 1.2793707854001373,
1149
+ "learning_rate": 9.073143707477607e-06,
1150
+ "loss": 0.1433,
1151
+ "step": 163
1152
+ },
1153
+ {
1154
+ "epoch": 0.845360824742268,
1155
+ "grad_norm": 1.2039862398086603,
1156
+ "learning_rate": 9.055650924360308e-06,
1157
+ "loss": 0.2154,
1158
+ "step": 164
1159
+ },
1160
+ {
1161
+ "epoch": 0.8505154639175257,
1162
+ "grad_norm": 1.1250244597985437,
1163
+ "learning_rate": 9.038011803743679e-06,
1164
+ "loss": 0.1817,
1165
+ "step": 165
1166
+ },
1167
+ {
1168
+ "epoch": 0.8556701030927835,
1169
+ "grad_norm": 1.1063531458560925,
1170
+ "learning_rate": 9.020226982089005e-06,
1171
+ "loss": 0.1564,
1172
+ "step": 166
1173
+ },
1174
+ {
1175
+ "epoch": 0.8608247422680413,
1176
+ "grad_norm": 1.1306904530717008,
1177
+ "learning_rate": 9.002297101114813e-06,
1178
+ "loss": 0.1349,
1179
+ "step": 167
1180
+ },
1181
+ {
1182
+ "epoch": 0.865979381443299,
1183
+ "grad_norm": 1.0467505323127504,
1184
+ "learning_rate": 8.984222807773707e-06,
1185
+ "loss": 0.1813,
1186
+ "step": 168
1187
+ },
1188
+ {
1189
+ "epoch": 0.8711340206185567,
1190
+ "grad_norm": 1.715578103301857,
1191
+ "learning_rate": 8.966004754229037e-06,
1192
+ "loss": 0.3016,
1193
+ "step": 169
1194
+ },
1195
+ {
1196
+ "epoch": 0.8762886597938144,
1197
+ "grad_norm": 0.9646361196653148,
1198
+ "learning_rate": 8.947643597831365e-06,
1199
+ "loss": 0.0727,
1200
+ "step": 170
1201
+ },
1202
+ {
1203
+ "epoch": 0.8814432989690721,
1204
+ "grad_norm": 0.9218462690369367,
1205
+ "learning_rate": 8.929140001094734e-06,
1206
+ "loss": 0.1584,
1207
+ "step": 171
1208
+ },
1209
+ {
1210
+ "epoch": 0.8865979381443299,
1211
+ "grad_norm": 0.9892292920559456,
1212
+ "learning_rate": 8.910494631672783e-06,
1213
+ "loss": 0.1449,
1214
+ "step": 172
1215
+ },
1216
+ {
1217
+ "epoch": 0.8917525773195877,
1218
+ "grad_norm": 1.0579410641324796,
1219
+ "learning_rate": 8.891708162334635e-06,
1220
+ "loss": 0.156,
1221
+ "step": 173
1222
+ },
1223
+ {
1224
+ "epoch": 0.8969072164948454,
1225
+ "grad_norm": 0.7647207044009656,
1226
+ "learning_rate": 8.87278127094064e-06,
1227
+ "loss": 0.1107,
1228
+ "step": 174
1229
+ },
1230
+ {
1231
+ "epoch": 0.9020618556701031,
1232
+ "grad_norm": 1.1371579318359795,
1233
+ "learning_rate": 8.853714640417906e-06,
1234
+ "loss": 0.1844,
1235
+ "step": 175
1236
+ },
1237
+ {
1238
+ "epoch": 0.9072164948453608,
1239
+ "grad_norm": 0.7724480629708496,
1240
+ "learning_rate": 8.834508958735656e-06,
1241
+ "loss": 0.0826,
1242
+ "step": 176
1243
+ },
1244
+ {
1245
+ "epoch": 0.9123711340206185,
1246
+ "grad_norm": 1.0272763923631063,
1247
+ "learning_rate": 8.815164918880418e-06,
1248
+ "loss": 0.1678,
1249
+ "step": 177
1250
+ },
1251
+ {
1252
+ "epoch": 0.9175257731958762,
1253
+ "grad_norm": 1.2865546631779095,
1254
+ "learning_rate": 8.795683218831002e-06,
1255
+ "loss": 0.2714,
1256
+ "step": 178
1257
+ },
1258
+ {
1259
+ "epoch": 0.9226804123711341,
1260
+ "grad_norm": 1.8028031060416778,
1261
+ "learning_rate": 8.776064561533329e-06,
1262
+ "loss": 0.2045,
1263
+ "step": 179
1264
+ },
1265
+ {
1266
+ "epoch": 0.9278350515463918,
1267
+ "grad_norm": 1.140464084681919,
1268
+ "learning_rate": 8.756309654875059e-06,
1269
+ "loss": 0.3075,
1270
+ "step": 180
1271
+ },
1272
+ {
1273
+ "epoch": 0.9329896907216495,
1274
+ "grad_norm": 1.1867468428900187,
1275
+ "learning_rate": 8.736419211660054e-06,
1276
+ "loss": 0.2445,
1277
+ "step": 181
1278
+ },
1279
+ {
1280
+ "epoch": 0.9381443298969072,
1281
+ "grad_norm": 1.2294904183688709,
1282
+ "learning_rate": 8.716393949582656e-06,
1283
+ "loss": 0.2416,
1284
+ "step": 182
1285
+ },
1286
+ {
1287
+ "epoch": 0.9432989690721649,
1288
+ "grad_norm": 0.7483697175175423,
1289
+ "learning_rate": 8.696234591201793e-06,
1290
+ "loss": 0.1126,
1291
+ "step": 183
1292
+ },
1293
+ {
1294
+ "epoch": 0.9484536082474226,
1295
+ "grad_norm": 0.9739357119214708,
1296
+ "learning_rate": 8.6759418639149e-06,
1297
+ "loss": 0.167,
1298
+ "step": 184
1299
+ },
1300
+ {
1301
+ "epoch": 0.9536082474226805,
1302
+ "grad_norm": 1.4251293577602404,
1303
+ "learning_rate": 8.655516499931684e-06,
1304
+ "loss": 0.3314,
1305
+ "step": 185
1306
+ },
1307
+ {
1308
+ "epoch": 0.9587628865979382,
1309
+ "grad_norm": 1.140569606339371,
1310
+ "learning_rate": 8.634959236247695e-06,
1311
+ "loss": 0.2206,
1312
+ "step": 186
1313
+ },
1314
+ {
1315
+ "epoch": 0.9639175257731959,
1316
+ "grad_norm": 0.9214436194181765,
1317
+ "learning_rate": 8.61427081461774e-06,
1318
+ "loss": 0.1622,
1319
+ "step": 187
1320
+ },
1321
+ {
1322
+ "epoch": 0.9690721649484536,
1323
+ "grad_norm": 1.4025795614332346,
1324
+ "learning_rate": 8.593451981529109e-06,
1325
+ "loss": 0.2202,
1326
+ "step": 188
1327
+ },
1328
+ {
1329
+ "epoch": 0.9742268041237113,
1330
+ "grad_norm": 0.7327985656704634,
1331
+ "learning_rate": 8.572503488174655e-06,
1332
+ "loss": 0.0798,
1333
+ "step": 189
1334
+ },
1335
+ {
1336
+ "epoch": 0.979381443298969,
1337
+ "grad_norm": 1.1641896784338794,
1338
+ "learning_rate": 8.551426090425678e-06,
1339
+ "loss": 0.1978,
1340
+ "step": 190
1341
+ },
1342
+ {
1343
+ "epoch": 0.9845360824742269,
1344
+ "grad_norm": 1.086213303235639,
1345
+ "learning_rate": 8.53022054880465e-06,
1346
+ "loss": 0.1558,
1347
+ "step": 191
1348
+ },
1349
+ {
1350
+ "epoch": 0.9896907216494846,
1351
+ "grad_norm": 1.0472347005656282,
1352
+ "learning_rate": 8.508887628457783e-06,
1353
+ "loss": 0.2053,
1354
+ "step": 192
1355
+ },
1356
+ {
1357
+ "epoch": 0.9948453608247423,
1358
+ "grad_norm": 0.7910662337183756,
1359
+ "learning_rate": 8.487428099127411e-06,
1360
+ "loss": 0.0927,
1361
+ "step": 193
1362
+ },
1363
+ {
1364
+ "epoch": 1.0,
1365
+ "grad_norm": 1.1006430197444728,
1366
+ "learning_rate": 8.465842735124224e-06,
1367
+ "loss": 0.1894,
1368
+ "step": 194
1369
+ },
1370
+ {
1371
+ "epoch": 1.0051546391752577,
1372
+ "grad_norm": 0.5906742201713365,
1373
+ "learning_rate": 8.444132315299321e-06,
1374
+ "loss": 0.0537,
1375
+ "step": 195
1376
+ },
1377
+ {
1378
+ "epoch": 1.0103092783505154,
1379
+ "grad_norm": 0.6751125368476019,
1380
+ "learning_rate": 8.422297623016118e-06,
1381
+ "loss": 0.0806,
1382
+ "step": 196
1383
+ },
1384
+ {
1385
+ "epoch": 1.0154639175257731,
1386
+ "grad_norm": 1.0260689629426207,
1387
+ "learning_rate": 8.40033944612207e-06,
1388
+ "loss": 0.1132,
1389
+ "step": 197
1390
+ },
1391
+ {
1392
+ "epoch": 1.0206185567010309,
1393
+ "grad_norm": 0.5551436381218386,
1394
+ "learning_rate": 8.378258576920253e-06,
1395
+ "loss": 0.0523,
1396
+ "step": 198
1397
+ },
1398
+ {
1399
+ "epoch": 1.0257731958762886,
1400
+ "grad_norm": 0.6869421294596499,
1401
+ "learning_rate": 8.356055812140768e-06,
1402
+ "loss": 0.0907,
1403
+ "step": 199
1404
+ },
1405
+ {
1406
+ "epoch": 1.0309278350515463,
1407
+ "grad_norm": 0.9886419404257938,
1408
+ "learning_rate": 8.333731952912e-06,
1409
+ "loss": 0.1147,
1410
+ "step": 200
1411
+ },
1412
+ {
1413
+ "epoch": 1.0360824742268042,
1414
+ "grad_norm": 0.8201901345855567,
1415
+ "learning_rate": 8.311287804731716e-06,
1416
+ "loss": 0.053,
1417
+ "step": 201
1418
+ },
1419
+ {
1420
+ "epoch": 1.041237113402062,
1421
+ "grad_norm": 0.6231211273936398,
1422
+ "learning_rate": 8.288724177437976e-06,
1423
+ "loss": 0.0558,
1424
+ "step": 202
1425
+ },
1426
+ {
1427
+ "epoch": 1.0463917525773196,
1428
+ "grad_norm": 1.0979347326591262,
1429
+ "learning_rate": 8.266041885179949e-06,
1430
+ "loss": 0.1248,
1431
+ "step": 203
1432
+ },
1433
+ {
1434
+ "epoch": 1.0515463917525774,
1435
+ "grad_norm": 1.0441782376710624,
1436
+ "learning_rate": 8.243241746388504e-06,
1437
+ "loss": 0.1024,
1438
+ "step": 204
1439
+ },
1440
+ {
1441
+ "epoch": 1.056701030927835,
1442
+ "grad_norm": 0.8617708313835702,
1443
+ "learning_rate": 8.220324583746697e-06,
1444
+ "loss": 0.0864,
1445
+ "step": 205
1446
+ },
1447
+ {
1448
+ "epoch": 1.0618556701030928,
1449
+ "grad_norm": 0.8219004811721925,
1450
+ "learning_rate": 8.197291224160082e-06,
1451
+ "loss": 0.0965,
1452
+ "step": 206
1453
+ },
1454
+ {
1455
+ "epoch": 1.0670103092783505,
1456
+ "grad_norm": 1.446199673821668,
1457
+ "learning_rate": 8.174142498726875e-06,
1458
+ "loss": 0.1316,
1459
+ "step": 207
1460
+ },
1461
+ {
1462
+ "epoch": 1.0721649484536082,
1463
+ "grad_norm": 0.9970004312056989,
1464
+ "learning_rate": 8.150879242707963e-06,
1465
+ "loss": 0.0785,
1466
+ "step": 208
1467
+ },
1468
+ {
1469
+ "epoch": 1.077319587628866,
1470
+ "grad_norm": 0.6799947961502295,
1471
+ "learning_rate": 8.127502295496768e-06,
1472
+ "loss": 0.0546,
1473
+ "step": 209
1474
+ },
1475
+ {
1476
+ "epoch": 1.0824742268041236,
1477
+ "grad_norm": 0.8459778750809145,
1478
+ "learning_rate": 8.104012500588962e-06,
1479
+ "loss": 0.0754,
1480
+ "step": 210
1481
+ },
1482
+ {
1483
+ "epoch": 1.0876288659793814,
1484
+ "grad_norm": 0.8764373407801908,
1485
+ "learning_rate": 8.080410705552028e-06,
1486
+ "loss": 0.0725,
1487
+ "step": 211
1488
+ },
1489
+ {
1490
+ "epoch": 1.0927835051546393,
1491
+ "grad_norm": 1.4250917004738353,
1492
+ "learning_rate": 8.056697761994679e-06,
1493
+ "loss": 0.1466,
1494
+ "step": 212
1495
+ },
1496
+ {
1497
+ "epoch": 1.097938144329897,
1498
+ "grad_norm": 0.7470601320144464,
1499
+ "learning_rate": 8.032874525536132e-06,
1500
+ "loss": 0.0554,
1501
+ "step": 213
1502
+ },
1503
+ {
1504
+ "epoch": 1.1030927835051547,
1505
+ "grad_norm": 0.7217791614950412,
1506
+ "learning_rate": 8.008941855775228e-06,
1507
+ "loss": 0.104,
1508
+ "step": 214
1509
+ },
1510
+ {
1511
+ "epoch": 1.1082474226804124,
1512
+ "grad_norm": 1.018751301091875,
1513
+ "learning_rate": 7.98490061625943e-06,
1514
+ "loss": 0.1098,
1515
+ "step": 215
1516
+ },
1517
+ {
1518
+ "epoch": 1.1134020618556701,
1519
+ "grad_norm": 0.8577713345259472,
1520
+ "learning_rate": 7.960751674453644e-06,
1521
+ "loss": 0.106,
1522
+ "step": 216
1523
+ },
1524
+ {
1525
+ "epoch": 1.1185567010309279,
1526
+ "grad_norm": 0.7354671182870788,
1527
+ "learning_rate": 7.93649590170894e-06,
1528
+ "loss": 0.0776,
1529
+ "step": 217
1530
+ },
1531
+ {
1532
+ "epoch": 1.1237113402061856,
1533
+ "grad_norm": 0.784080342118224,
1534
+ "learning_rate": 7.912134173231099e-06,
1535
+ "loss": 0.1065,
1536
+ "step": 218
1537
+ },
1538
+ {
1539
+ "epoch": 1.1288659793814433,
1540
+ "grad_norm": 1.0447979386760058,
1541
+ "learning_rate": 7.887667368049028e-06,
1542
+ "loss": 0.1501,
1543
+ "step": 219
1544
+ },
1545
+ {
1546
+ "epoch": 1.134020618556701,
1547
+ "grad_norm": 0.8251703086624239,
1548
+ "learning_rate": 7.863096368983061e-06,
1549
+ "loss": 0.0888,
1550
+ "step": 220
1551
+ },
1552
+ {
1553
+ "epoch": 1.1391752577319587,
1554
+ "grad_norm": 0.8822362088146911,
1555
+ "learning_rate": 7.838422062613088e-06,
1556
+ "loss": 0.093,
1557
+ "step": 221
1558
+ },
1559
+ {
1560
+ "epoch": 1.1443298969072164,
1561
+ "grad_norm": 0.8949834524497724,
1562
+ "learning_rate": 7.813645339246578e-06,
1563
+ "loss": 0.0921,
1564
+ "step": 222
1565
+ },
1566
+ {
1567
+ "epoch": 1.1494845360824741,
1568
+ "grad_norm": 0.5374131970068409,
1569
+ "learning_rate": 7.78876709288644e-06,
1570
+ "loss": 0.0386,
1571
+ "step": 223
1572
+ },
1573
+ {
1574
+ "epoch": 1.1546391752577319,
1575
+ "grad_norm": 0.7564742772338368,
1576
+ "learning_rate": 7.763788221198775e-06,
1577
+ "loss": 0.0948,
1578
+ "step": 224
1579
+ },
1580
+ {
1581
+ "epoch": 1.1597938144329896,
1582
+ "grad_norm": 0.8808313875725176,
1583
+ "learning_rate": 7.738709625480494e-06,
1584
+ "loss": 0.092,
1585
+ "step": 225
1586
+ },
1587
+ {
1588
+ "epoch": 1.1649484536082475,
1589
+ "grad_norm": 0.6478248778597727,
1590
+ "learning_rate": 7.713532210626771e-06,
1591
+ "loss": 0.0458,
1592
+ "step": 226
1593
+ },
1594
+ {
1595
+ "epoch": 1.1701030927835052,
1596
+ "grad_norm": 0.9288097880385096,
1597
+ "learning_rate": 7.68825688509842e-06,
1598
+ "loss": 0.0894,
1599
+ "step": 227
1600
+ },
1601
+ {
1602
+ "epoch": 1.175257731958763,
1603
+ "grad_norm": 0.714867355071131,
1604
+ "learning_rate": 7.662884560889106e-06,
1605
+ "loss": 0.0541,
1606
+ "step": 228
1607
+ },
1608
+ {
1609
+ "epoch": 1.1804123711340206,
1610
+ "grad_norm": 0.6642395918740392,
1611
+ "learning_rate": 7.637416153492426e-06,
1612
+ "loss": 0.0663,
1613
+ "step": 229
1614
+ },
1615
+ {
1616
+ "epoch": 1.1855670103092784,
1617
+ "grad_norm": 0.9527549900666177,
1618
+ "learning_rate": 7.611852581868895e-06,
1619
+ "loss": 0.1443,
1620
+ "step": 230
1621
+ },
1622
+ {
1623
+ "epoch": 1.190721649484536,
1624
+ "grad_norm": 0.7893883831371513,
1625
+ "learning_rate": 7.586194768412778e-06,
1626
+ "loss": 0.0872,
1627
+ "step": 231
1628
+ },
1629
+ {
1630
+ "epoch": 1.1958762886597938,
1631
+ "grad_norm": 0.9884146330428806,
1632
+ "learning_rate": 7.560443638918801e-06,
1633
+ "loss": 0.0821,
1634
+ "step": 232
1635
+ },
1636
+ {
1637
+ "epoch": 1.2010309278350515,
1638
+ "grad_norm": 0.7413524893904028,
1639
+ "learning_rate": 7.534600122548766e-06,
1640
+ "loss": 0.1001,
1641
+ "step": 233
1642
+ },
1643
+ {
1644
+ "epoch": 1.2061855670103092,
1645
+ "grad_norm": 0.6487178792290845,
1646
+ "learning_rate": 7.508665151798e-06,
1647
+ "loss": 0.0669,
1648
+ "step": 234
1649
+ },
1650
+ {
1651
+ "epoch": 1.211340206185567,
1652
+ "grad_norm": 1.2033223139705194,
1653
+ "learning_rate": 7.482639662461731e-06,
1654
+ "loss": 0.1102,
1655
+ "step": 235
1656
+ },
1657
+ {
1658
+ "epoch": 1.2164948453608249,
1659
+ "grad_norm": 1.1496624331229564,
1660
+ "learning_rate": 7.456524593601306e-06,
1661
+ "loss": 0.0817,
1662
+ "step": 236
1663
+ },
1664
+ {
1665
+ "epoch": 1.2216494845360826,
1666
+ "grad_norm": 0.8048271397849805,
1667
+ "learning_rate": 7.430320887510319e-06,
1668
+ "loss": 0.066,
1669
+ "step": 237
1670
+ },
1671
+ {
1672
+ "epoch": 1.2268041237113403,
1673
+ "grad_norm": 1.0865257986253214,
1674
+ "learning_rate": 7.404029489680597e-06,
1675
+ "loss": 0.1054,
1676
+ "step": 238
1677
+ },
1678
+ {
1679
+ "epoch": 1.231958762886598,
1680
+ "grad_norm": 0.9118222773920444,
1681
+ "learning_rate": 7.377651348768102e-06,
1682
+ "loss": 0.0734,
1683
+ "step": 239
1684
+ },
1685
+ {
1686
+ "epoch": 1.2371134020618557,
1687
+ "grad_norm": 0.7111948595434698,
1688
+ "learning_rate": 7.351187416558686e-06,
1689
+ "loss": 0.0455,
1690
+ "step": 240
1691
+ },
1692
+ {
1693
+ "epoch": 1.2422680412371134,
1694
+ "grad_norm": 1.1586255328358697,
1695
+ "learning_rate": 7.324638647933756e-06,
1696
+ "loss": 0.1247,
1697
+ "step": 241
1698
+ },
1699
+ {
1700
+ "epoch": 1.2474226804123711,
1701
+ "grad_norm": 0.7885336165369894,
1702
+ "learning_rate": 7.29800600083582e-06,
1703
+ "loss": 0.0944,
1704
+ "step": 242
1705
+ },
1706
+ {
1707
+ "epoch": 1.2525773195876289,
1708
+ "grad_norm": 0.815328204346094,
1709
+ "learning_rate": 7.2712904362339155e-06,
1710
+ "loss": 0.0846,
1711
+ "step": 243
1712
+ },
1713
+ {
1714
+ "epoch": 1.2577319587628866,
1715
+ "grad_norm": 1.044831188842817,
1716
+ "learning_rate": 7.244492918088946e-06,
1717
+ "loss": 0.1029,
1718
+ "step": 244
1719
+ },
1720
+ {
1721
+ "epoch": 1.2628865979381443,
1722
+ "grad_norm": 1.1074505493277451,
1723
+ "learning_rate": 7.217614413318887e-06,
1724
+ "loss": 0.1109,
1725
+ "step": 245
1726
+ },
1727
+ {
1728
+ "epoch": 1.268041237113402,
1729
+ "grad_norm": 0.836136628649968,
1730
+ "learning_rate": 7.19065589176391e-06,
1731
+ "loss": 0.1074,
1732
+ "step": 246
1733
+ },
1734
+ {
1735
+ "epoch": 1.2731958762886597,
1736
+ "grad_norm": 0.9806183729514004,
1737
+ "learning_rate": 7.1636183261513784e-06,
1738
+ "loss": 0.1046,
1739
+ "step": 247
1740
+ },
1741
+ {
1742
+ "epoch": 1.2783505154639174,
1743
+ "grad_norm": 0.8666879067703104,
1744
+ "learning_rate": 7.136502692060746e-06,
1745
+ "loss": 0.0826,
1746
+ "step": 248
1747
+ },
1748
+ {
1749
+ "epoch": 1.2835051546391751,
1750
+ "grad_norm": 0.801232774030085,
1751
+ "learning_rate": 7.109309967888376e-06,
1752
+ "loss": 0.0556,
1753
+ "step": 249
1754
+ },
1755
+ {
1756
+ "epoch": 1.2886597938144329,
1757
+ "grad_norm": 1.1897623094936245,
1758
+ "learning_rate": 7.0820411348122144e-06,
1759
+ "loss": 0.154,
1760
+ "step": 250
1761
+ },
1762
+ {
1763
+ "epoch": 1.2938144329896908,
1764
+ "grad_norm": 0.8276583732971441,
1765
+ "learning_rate": 7.0546971767564e-06,
1766
+ "loss": 0.0833,
1767
+ "step": 251
1768
+ },
1769
+ {
1770
+ "epoch": 1.2989690721649485,
1771
+ "grad_norm": 0.7583663543944267,
1772
+ "learning_rate": 7.027279080355756e-06,
1773
+ "loss": 0.0499,
1774
+ "step": 252
1775
+ },
1776
+ {
1777
+ "epoch": 1.3041237113402062,
1778
+ "grad_norm": 0.8649391169592322,
1779
+ "learning_rate": 6.999787834920202e-06,
1780
+ "loss": 0.0867,
1781
+ "step": 253
1782
+ },
1783
+ {
1784
+ "epoch": 1.309278350515464,
1785
+ "grad_norm": 1.0915318471452742,
1786
+ "learning_rate": 6.972224432399038e-06,
1787
+ "loss": 0.0676,
1788
+ "step": 254
1789
+ },
1790
+ {
1791
+ "epoch": 1.3144329896907216,
1792
+ "grad_norm": 1.0231154625513728,
1793
+ "learning_rate": 6.9445898673451635e-06,
1794
+ "loss": 0.1028,
1795
+ "step": 255
1796
+ },
1797
+ {
1798
+ "epoch": 1.3195876288659794,
1799
+ "grad_norm": 0.933663875875191,
1800
+ "learning_rate": 6.916885136879197e-06,
1801
+ "loss": 0.0967,
1802
+ "step": 256
1803
+ },
1804
+ {
1805
+ "epoch": 1.324742268041237,
1806
+ "grad_norm": 0.8912988511114369,
1807
+ "learning_rate": 6.889111240653488e-06,
1808
+ "loss": 0.0959,
1809
+ "step": 257
1810
+ },
1811
+ {
1812
+ "epoch": 1.3298969072164948,
1813
+ "grad_norm": 0.8687955070867821,
1814
+ "learning_rate": 6.861269180816052e-06,
1815
+ "loss": 0.0977,
1816
+ "step": 258
1817
+ },
1818
+ {
1819
+ "epoch": 1.3350515463917525,
1820
+ "grad_norm": 0.7106326271334324,
1821
+ "learning_rate": 6.833359961974406e-06,
1822
+ "loss": 0.0869,
1823
+ "step": 259
1824
+ },
1825
+ {
1826
+ "epoch": 1.3402061855670104,
1827
+ "grad_norm": 0.9501736705275039,
1828
+ "learning_rate": 6.805384591159325e-06,
1829
+ "loss": 0.0949,
1830
+ "step": 260
1831
+ },
1832
+ {
1833
+ "epoch": 1.3453608247422681,
1834
+ "grad_norm": 0.804663253737915,
1835
+ "learning_rate": 6.7773440777885055e-06,
1836
+ "loss": 0.0811,
1837
+ "step": 261
1838
+ },
1839
+ {
1840
+ "epoch": 1.3505154639175259,
1841
+ "grad_norm": 0.6042006243936727,
1842
+ "learning_rate": 6.749239433630137e-06,
1843
+ "loss": 0.0537,
1844
+ "step": 262
1845
+ },
1846
+ {
1847
+ "epoch": 1.3556701030927836,
1848
+ "grad_norm": 1.1315557610677505,
1849
+ "learning_rate": 6.721071672766407e-06,
1850
+ "loss": 0.1242,
1851
+ "step": 263
1852
+ },
1853
+ {
1854
+ "epoch": 1.3608247422680413,
1855
+ "grad_norm": 0.664551606971833,
1856
+ "learning_rate": 6.6928418115568994e-06,
1857
+ "loss": 0.05,
1858
+ "step": 264
1859
+ },
1860
+ {
1861
+ "epoch": 1.365979381443299,
1862
+ "grad_norm": 0.6628232247101428,
1863
+ "learning_rate": 6.6645508686019225e-06,
1864
+ "loss": 0.0709,
1865
+ "step": 265
1866
+ },
1867
+ {
1868
+ "epoch": 1.3711340206185567,
1869
+ "grad_norm": 1.3704143398811302,
1870
+ "learning_rate": 6.636199864705766e-06,
1871
+ "loss": 0.1788,
1872
+ "step": 266
1873
+ },
1874
+ {
1875
+ "epoch": 1.3762886597938144,
1876
+ "grad_norm": 0.653208777448595,
1877
+ "learning_rate": 6.607789822839855e-06,
1878
+ "loss": 0.0605,
1879
+ "step": 267
1880
+ },
1881
+ {
1882
+ "epoch": 1.3814432989690721,
1883
+ "grad_norm": 0.7238199007998108,
1884
+ "learning_rate": 6.579321768105845e-06,
1885
+ "loss": 0.081,
1886
+ "step": 268
1887
+ },
1888
+ {
1889
+ "epoch": 1.3865979381443299,
1890
+ "grad_norm": 0.7205533607672164,
1891
+ "learning_rate": 6.550796727698639e-06,
1892
+ "loss": 0.067,
1893
+ "step": 269
1894
+ },
1895
+ {
1896
+ "epoch": 1.3917525773195876,
1897
+ "grad_norm": 0.6700885764195117,
1898
+ "learning_rate": 6.52221573086931e-06,
1899
+ "loss": 0.0503,
1900
+ "step": 270
1901
+ },
1902
+ {
1903
+ "epoch": 1.3969072164948453,
1904
+ "grad_norm": 1.219456301028477,
1905
+ "learning_rate": 6.493579808887976e-06,
1906
+ "loss": 0.1329,
1907
+ "step": 271
1908
+ },
1909
+ {
1910
+ "epoch": 1.402061855670103,
1911
+ "grad_norm": 1.327064144446766,
1912
+ "learning_rate": 6.4648899950065865e-06,
1913
+ "loss": 0.1581,
1914
+ "step": 272
1915
+ },
1916
+ {
1917
+ "epoch": 1.4072164948453607,
1918
+ "grad_norm": 0.8319301363228734,
1919
+ "learning_rate": 6.436147324421635e-06,
1920
+ "loss": 0.0867,
1921
+ "step": 273
1922
+ },
1923
+ {
1924
+ "epoch": 1.4123711340206184,
1925
+ "grad_norm": 1.1371748524536707,
1926
+ "learning_rate": 6.407352834236807e-06,
1927
+ "loss": 0.1496,
1928
+ "step": 274
1929
+ },
1930
+ {
1931
+ "epoch": 1.4175257731958764,
1932
+ "grad_norm": 0.856128052640479,
1933
+ "learning_rate": 6.378507563425571e-06,
1934
+ "loss": 0.0804,
1935
+ "step": 275
1936
+ },
1937
+ {
1938
+ "epoch": 1.422680412371134,
1939
+ "grad_norm": 1.062404018021394,
1940
+ "learning_rate": 6.349612552793675e-06,
1941
+ "loss": 0.1043,
1942
+ "step": 276
1943
+ },
1944
+ {
1945
+ "epoch": 1.4278350515463918,
1946
+ "grad_norm": 0.9101560194006858,
1947
+ "learning_rate": 6.320668844941598e-06,
1948
+ "loss": 0.1002,
1949
+ "step": 277
1950
+ },
1951
+ {
1952
+ "epoch": 1.4329896907216495,
1953
+ "grad_norm": 1.2757033041145538,
1954
+ "learning_rate": 6.291677484226929e-06,
1955
+ "loss": 0.1098,
1956
+ "step": 278
1957
+ },
1958
+ {
1959
+ "epoch": 1.4381443298969072,
1960
+ "grad_norm": 1.2846837622920635,
1961
+ "learning_rate": 6.26263951672669e-06,
1962
+ "loss": 0.1197,
1963
+ "step": 279
1964
+ },
1965
+ {
1966
+ "epoch": 1.443298969072165,
1967
+ "grad_norm": 0.6126591325904064,
1968
+ "learning_rate": 6.233555990199583e-06,
1969
+ "loss": 0.0526,
1970
+ "step": 280
1971
+ },
1972
+ {
1973
+ "epoch": 1.4484536082474226,
1974
+ "grad_norm": 0.9201467393931315,
1975
+ "learning_rate": 6.204427954048186e-06,
1976
+ "loss": 0.095,
1977
+ "step": 281
1978
+ },
1979
+ {
1980
+ "epoch": 1.4536082474226804,
1981
+ "grad_norm": 0.8709260663548162,
1982
+ "learning_rate": 6.175256459281093e-06,
1983
+ "loss": 0.0956,
1984
+ "step": 282
1985
+ },
1986
+ {
1987
+ "epoch": 1.458762886597938,
1988
+ "grad_norm": 0.8394883872798908,
1989
+ "learning_rate": 6.146042558474987e-06,
1990
+ "loss": 0.0782,
1991
+ "step": 283
1992
+ },
1993
+ {
1994
+ "epoch": 1.463917525773196,
1995
+ "grad_norm": 0.7647943393509891,
1996
+ "learning_rate": 6.116787305736659e-06,
1997
+ "loss": 0.0964,
1998
+ "step": 284
1999
+ },
2000
+ {
2001
+ "epoch": 1.4690721649484537,
2002
+ "grad_norm": 1.1981279245762775,
2003
+ "learning_rate": 6.087491756664982e-06,
2004
+ "loss": 0.1251,
2005
+ "step": 285
2006
+ },
2007
+ {
2008
+ "epoch": 1.4742268041237114,
2009
+ "grad_norm": 0.7281773116566167,
2010
+ "learning_rate": 6.058156968312808e-06,
2011
+ "loss": 0.0636,
2012
+ "step": 286
2013
+ },
2014
+ {
2015
+ "epoch": 1.4793814432989691,
2016
+ "grad_norm": 0.9415282186895138,
2017
+ "learning_rate": 6.028783999148841e-06,
2018
+ "loss": 0.121,
2019
+ "step": 287
2020
+ },
2021
+ {
2022
+ "epoch": 1.4845360824742269,
2023
+ "grad_norm": 0.8155749049438948,
2024
+ "learning_rate": 5.999373909019437e-06,
2025
+ "loss": 0.0607,
2026
+ "step": 288
2027
+ },
2028
+ {
2029
+ "epoch": 1.4896907216494846,
2030
+ "grad_norm": 0.7639944315517929,
2031
+ "learning_rate": 5.9699277591103665e-06,
2032
+ "loss": 0.0548,
2033
+ "step": 289
2034
+ },
2035
+ {
2036
+ "epoch": 1.4948453608247423,
2037
+ "grad_norm": 0.8636520383698243,
2038
+ "learning_rate": 5.940446611908519e-06,
2039
+ "loss": 0.0979,
2040
+ "step": 290
2041
+ },
2042
+ {
2043
+ "epoch": 1.5,
2044
+ "grad_norm": 0.5326124314349575,
2045
+ "learning_rate": 5.91093153116357e-06,
2046
+ "loss": 0.0373,
2047
+ "step": 291
2048
+ },
2049
+ {
2050
+ "epoch": 1.5051546391752577,
2051
+ "grad_norm": 0.8280155720382041,
2052
+ "learning_rate": 5.881383581849601e-06,
2053
+ "loss": 0.0698,
2054
+ "step": 292
2055
+ },
2056
+ {
2057
+ "epoch": 1.5103092783505154,
2058
+ "grad_norm": 0.9092824338400287,
2059
+ "learning_rate": 5.851803830126666e-06,
2060
+ "loss": 0.1016,
2061
+ "step": 293
2062
+ },
2063
+ {
2064
+ "epoch": 1.5154639175257731,
2065
+ "grad_norm": 1.2564418341193255,
2066
+ "learning_rate": 5.822193343302328e-06,
2067
+ "loss": 0.1473,
2068
+ "step": 294
2069
+ },
2070
+ {
2071
+ "epoch": 1.5206185567010309,
2072
+ "grad_norm": 0.8983314520281567,
2073
+ "learning_rate": 5.792553189793141e-06,
2074
+ "loss": 0.1071,
2075
+ "step": 295
2076
+ },
2077
+ {
2078
+ "epoch": 1.5257731958762886,
2079
+ "grad_norm": 0.9871176927471953,
2080
+ "learning_rate": 5.762884439086108e-06,
2081
+ "loss": 0.1235,
2082
+ "step": 296
2083
+ },
2084
+ {
2085
+ "epoch": 1.5309278350515463,
2086
+ "grad_norm": 1.0212569217738547,
2087
+ "learning_rate": 5.733188161700084e-06,
2088
+ "loss": 0.1144,
2089
+ "step": 297
2090
+ },
2091
+ {
2092
+ "epoch": 1.536082474226804,
2093
+ "grad_norm": 1.0505577277639713,
2094
+ "learning_rate": 5.703465429147153e-06,
2095
+ "loss": 0.0856,
2096
+ "step": 298
2097
+ },
2098
+ {
2099
+ "epoch": 1.5412371134020617,
2100
+ "grad_norm": 0.9198501514769984,
2101
+ "learning_rate": 5.673717313893963e-06,
2102
+ "loss": 0.0857,
2103
+ "step": 299
2104
+ },
2105
+ {
2106
+ "epoch": 1.5463917525773194,
2107
+ "grad_norm": 0.4413128663709364,
2108
+ "learning_rate": 5.643944889323031e-06,
2109
+ "loss": 0.0339,
2110
+ "step": 300
2111
+ },
2112
+ {
2113
+ "epoch": 1.5515463917525774,
2114
+ "grad_norm": 0.9176541299396651,
2115
+ "learning_rate": 5.6141492296940104e-06,
2116
+ "loss": 0.0883,
2117
+ "step": 301
2118
+ },
2119
+ {
2120
+ "epoch": 1.556701030927835,
2121
+ "grad_norm": 0.4947875542348694,
2122
+ "learning_rate": 5.584331410104934e-06,
2123
+ "loss": 0.0282,
2124
+ "step": 302
2125
+ },
2126
+ {
2127
+ "epoch": 1.5618556701030928,
2128
+ "grad_norm": 1.1769881441147931,
2129
+ "learning_rate": 5.554492506453415e-06,
2130
+ "loss": 0.1418,
2131
+ "step": 303
2132
+ },
2133
+ {
2134
+ "epoch": 1.5670103092783505,
2135
+ "grad_norm": 0.8273504464851464,
2136
+ "learning_rate": 5.524633595397829e-06,
2137
+ "loss": 0.0639,
2138
+ "step": 304
2139
+ },
2140
+ {
2141
+ "epoch": 1.5721649484536082,
2142
+ "grad_norm": 1.104084036749989,
2143
+ "learning_rate": 5.494755754318472e-06,
2144
+ "loss": 0.1496,
2145
+ "step": 305
2146
+ },
2147
+ {
2148
+ "epoch": 1.577319587628866,
2149
+ "grad_norm": 0.722149475333966,
2150
+ "learning_rate": 5.464860061278673e-06,
2151
+ "loss": 0.06,
2152
+ "step": 306
2153
+ },
2154
+ {
2155
+ "epoch": 1.5824742268041239,
2156
+ "grad_norm": 0.765678640808434,
2157
+ "learning_rate": 5.434947594985903e-06,
2158
+ "loss": 0.064,
2159
+ "step": 307
2160
+ },
2161
+ {
2162
+ "epoch": 1.5876288659793816,
2163
+ "grad_norm": 0.8133799235994497,
2164
+ "learning_rate": 5.40501943475286e-06,
2165
+ "loss": 0.0834,
2166
+ "step": 308
2167
+ },
2168
+ {
2169
+ "epoch": 1.5927835051546393,
2170
+ "grad_norm": 1.0133768144130846,
2171
+ "learning_rate": 5.375076660458503e-06,
2172
+ "loss": 0.1211,
2173
+ "step": 309
2174
+ },
2175
+ {
2176
+ "epoch": 1.597938144329897,
2177
+ "grad_norm": 0.8911686618887108,
2178
+ "learning_rate": 5.345120352509114e-06,
2179
+ "loss": 0.1135,
2180
+ "step": 310
2181
+ },
2182
+ {
2183
+ "epoch": 1.6030927835051547,
2184
+ "grad_norm": 0.9837172309407369,
2185
+ "learning_rate": 5.315151591799293e-06,
2186
+ "loss": 0.0939,
2187
+ "step": 311
2188
+ },
2189
+ {
2190
+ "epoch": 1.6082474226804124,
2191
+ "grad_norm": 0.9603201029901375,
2192
+ "learning_rate": 5.28517145967297e-06,
2193
+ "loss": 0.1191,
2194
+ "step": 312
2195
+ },
2196
+ {
2197
+ "epoch": 1.6134020618556701,
2198
+ "grad_norm": 0.7568038226377672,
2199
+ "learning_rate": 5.255181037884377e-06,
2200
+ "loss": 0.0878,
2201
+ "step": 313
2202
+ },
2203
+ {
2204
+ "epoch": 1.6185567010309279,
2205
+ "grad_norm": 0.7396794148405889,
2206
+ "learning_rate": 5.225181408559028e-06,
2207
+ "loss": 0.0713,
2208
+ "step": 314
2209
+ },
2210
+ {
2211
+ "epoch": 1.6237113402061856,
2212
+ "grad_norm": 0.8098683954087241,
2213
+ "learning_rate": 5.195173654154662e-06,
2214
+ "loss": 0.06,
2215
+ "step": 315
2216
+ },
2217
+ {
2218
+ "epoch": 1.6288659793814433,
2219
+ "grad_norm": 0.9687294980139846,
2220
+ "learning_rate": 5.165158857422191e-06,
2221
+ "loss": 0.0856,
2222
+ "step": 316
2223
+ },
2224
+ {
2225
+ "epoch": 1.634020618556701,
2226
+ "grad_norm": 0.991898312261934,
2227
+ "learning_rate": 5.135138101366633e-06,
2228
+ "loss": 0.1205,
2229
+ "step": 317
2230
+ },
2231
+ {
2232
+ "epoch": 1.6391752577319587,
2233
+ "grad_norm": 0.5573665413209947,
2234
+ "learning_rate": 5.105112469208032e-06,
2235
+ "loss": 0.0497,
2236
+ "step": 318
2237
+ },
2238
+ {
2239
+ "epoch": 1.6443298969072164,
2240
+ "grad_norm": 1.0382601563430964,
2241
+ "learning_rate": 5.075083044342371e-06,
2242
+ "loss": 0.0852,
2243
+ "step": 319
2244
+ },
2245
+ {
2246
+ "epoch": 1.6494845360824741,
2247
+ "grad_norm": 0.9967396087063322,
2248
+ "learning_rate": 5.045050910302485e-06,
2249
+ "loss": 0.0877,
2250
+ "step": 320
2251
+ },
2252
+ {
2253
+ "epoch": 1.6546391752577319,
2254
+ "grad_norm": 0.7962058373120292,
2255
+ "learning_rate": 5.015017150718961e-06,
2256
+ "loss": 0.0837,
2257
+ "step": 321
2258
+ },
2259
+ {
2260
+ "epoch": 1.6597938144329896,
2261
+ "grad_norm": 0.6489956586111506,
2262
+ "learning_rate": 4.984982849281041e-06,
2263
+ "loss": 0.0394,
2264
+ "step": 322
2265
+ },
2266
+ {
2267
+ "epoch": 1.6649484536082473,
2268
+ "grad_norm": 0.6615424807101872,
2269
+ "learning_rate": 4.9549490896975175e-06,
2270
+ "loss": 0.0507,
2271
+ "step": 323
2272
+ },
2273
+ {
2274
+ "epoch": 1.670103092783505,
2275
+ "grad_norm": 1.0065188138819108,
2276
+ "learning_rate": 4.92491695565763e-06,
2277
+ "loss": 0.0913,
2278
+ "step": 324
2279
+ },
2280
+ {
2281
+ "epoch": 1.675257731958763,
2282
+ "grad_norm": 0.9338664154455895,
2283
+ "learning_rate": 4.894887530791968e-06,
2284
+ "loss": 0.0829,
2285
+ "step": 325
2286
+ },
2287
+ {
2288
+ "epoch": 1.6804123711340206,
2289
+ "grad_norm": 0.8619735255759078,
2290
+ "learning_rate": 4.864861898633367e-06,
2291
+ "loss": 0.1015,
2292
+ "step": 326
2293
+ },
2294
+ {
2295
+ "epoch": 1.6855670103092784,
2296
+ "grad_norm": 1.1629690007707925,
2297
+ "learning_rate": 4.8348411425778105e-06,
2298
+ "loss": 0.1093,
2299
+ "step": 327
2300
+ },
2301
+ {
2302
+ "epoch": 1.690721649484536,
2303
+ "grad_norm": 0.8508681932219984,
2304
+ "learning_rate": 4.80482634584534e-06,
2305
+ "loss": 0.0787,
2306
+ "step": 328
2307
+ },
2308
+ {
2309
+ "epoch": 1.6958762886597938,
2310
+ "grad_norm": 0.7692449841056024,
2311
+ "learning_rate": 4.774818591440974e-06,
2312
+ "loss": 0.0958,
2313
+ "step": 329
2314
+ },
2315
+ {
2316
+ "epoch": 1.7010309278350515,
2317
+ "grad_norm": 0.8553151177506546,
2318
+ "learning_rate": 4.744818962115624e-06,
2319
+ "loss": 0.082,
2320
+ "step": 330
2321
+ },
2322
+ {
2323
+ "epoch": 1.7061855670103094,
2324
+ "grad_norm": 0.5903484968058315,
2325
+ "learning_rate": 4.714828540327033e-06,
2326
+ "loss": 0.0462,
2327
+ "step": 331
2328
+ },
2329
+ {
2330
+ "epoch": 1.7113402061855671,
2331
+ "grad_norm": 0.8864451372917644,
2332
+ "learning_rate": 4.684848408200707e-06,
2333
+ "loss": 0.0714,
2334
+ "step": 332
2335
+ },
2336
+ {
2337
+ "epoch": 1.7164948453608249,
2338
+ "grad_norm": 0.8860344350682171,
2339
+ "learning_rate": 4.654879647490887e-06,
2340
+ "loss": 0.0691,
2341
+ "step": 333
2342
+ },
2343
+ {
2344
+ "epoch": 1.7216494845360826,
2345
+ "grad_norm": 0.8183534311660873,
2346
+ "learning_rate": 4.624923339541498e-06,
2347
+ "loss": 0.0633,
2348
+ "step": 334
2349
+ },
2350
+ {
2351
+ "epoch": 1.7268041237113403,
2352
+ "grad_norm": 0.614568204141328,
2353
+ "learning_rate": 4.594980565247143e-06,
2354
+ "loss": 0.0495,
2355
+ "step": 335
2356
+ },
2357
+ {
2358
+ "epoch": 1.731958762886598,
2359
+ "grad_norm": 0.9930144229307591,
2360
+ "learning_rate": 4.565052405014098e-06,
2361
+ "loss": 0.1059,
2362
+ "step": 336
2363
+ },
2364
+ {
2365
+ "epoch": 1.7371134020618557,
2366
+ "grad_norm": 0.7592312136391701,
2367
+ "learning_rate": 4.5351399387213305e-06,
2368
+ "loss": 0.0618,
2369
+ "step": 337
2370
+ },
2371
+ {
2372
+ "epoch": 1.7422680412371134,
2373
+ "grad_norm": 1.4380591077584624,
2374
+ "learning_rate": 4.5052442456815294e-06,
2375
+ "loss": 0.0997,
2376
+ "step": 338
2377
+ },
2378
+ {
2379
+ "epoch": 1.7474226804123711,
2380
+ "grad_norm": 0.9459809494967879,
2381
+ "learning_rate": 4.47536640460217e-06,
2382
+ "loss": 0.1004,
2383
+ "step": 339
2384
+ },
2385
+ {
2386
+ "epoch": 1.7525773195876289,
2387
+ "grad_norm": 0.7417698139276238,
2388
+ "learning_rate": 4.445507493546586e-06,
2389
+ "loss": 0.0805,
2390
+ "step": 340
2391
+ },
2392
+ {
2393
+ "epoch": 1.7577319587628866,
2394
+ "grad_norm": 0.8768339149771931,
2395
+ "learning_rate": 4.4156685898950676e-06,
2396
+ "loss": 0.0892,
2397
+ "step": 341
2398
+ },
2399
+ {
2400
+ "epoch": 1.7628865979381443,
2401
+ "grad_norm": 0.5753560085161841,
2402
+ "learning_rate": 4.385850770305991e-06,
2403
+ "loss": 0.0546,
2404
+ "step": 342
2405
+ },
2406
+ {
2407
+ "epoch": 1.768041237113402,
2408
+ "grad_norm": 0.6203625417079575,
2409
+ "learning_rate": 4.356055110676971e-06,
2410
+ "loss": 0.0557,
2411
+ "step": 343
2412
+ },
2413
+ {
2414
+ "epoch": 1.7731958762886597,
2415
+ "grad_norm": 1.290592433705904,
2416
+ "learning_rate": 4.326282686106039e-06,
2417
+ "loss": 0.0924,
2418
+ "step": 344
2419
+ },
2420
+ {
2421
+ "epoch": 1.7783505154639174,
2422
+ "grad_norm": 0.8501802343729535,
2423
+ "learning_rate": 4.296534570852848e-06,
2424
+ "loss": 0.0976,
2425
+ "step": 345
2426
+ },
2427
+ {
2428
+ "epoch": 1.7835051546391751,
2429
+ "grad_norm": 0.7589958862583852,
2430
+ "learning_rate": 4.266811838299916e-06,
2431
+ "loss": 0.0616,
2432
+ "step": 346
2433
+ },
2434
+ {
2435
+ "epoch": 1.7886597938144329,
2436
+ "grad_norm": 0.6634970203515521,
2437
+ "learning_rate": 4.237115560913894e-06,
2438
+ "loss": 0.0547,
2439
+ "step": 347
2440
+ },
2441
+ {
2442
+ "epoch": 1.7938144329896906,
2443
+ "grad_norm": 0.7377540659991918,
2444
+ "learning_rate": 4.20744681020686e-06,
2445
+ "loss": 0.0562,
2446
+ "step": 348
2447
+ },
2448
+ {
2449
+ "epoch": 1.7989690721649485,
2450
+ "grad_norm": 1.0154222900360976,
2451
+ "learning_rate": 4.1778066566976736e-06,
2452
+ "loss": 0.0889,
2453
+ "step": 349
2454
+ },
2455
+ {
2456
+ "epoch": 1.8041237113402062,
2457
+ "grad_norm": 1.1675640094076947,
2458
+ "learning_rate": 4.148196169873335e-06,
2459
+ "loss": 0.1241,
2460
+ "step": 350
2461
+ },
2462
+ {
2463
+ "epoch": 1.809278350515464,
2464
+ "grad_norm": 0.5783006867375596,
2465
+ "learning_rate": 4.118616418150398e-06,
2466
+ "loss": 0.0371,
2467
+ "step": 351
2468
+ },
2469
+ {
2470
+ "epoch": 1.8144329896907216,
2471
+ "grad_norm": 1.067759818874075,
2472
+ "learning_rate": 4.089068468836431e-06,
2473
+ "loss": 0.1045,
2474
+ "step": 352
2475
+ },
2476
+ {
2477
+ "epoch": 1.8195876288659794,
2478
+ "grad_norm": 0.8301529919273785,
2479
+ "learning_rate": 4.059553388091483e-06,
2480
+ "loss": 0.0907,
2481
+ "step": 353
2482
+ },
2483
+ {
2484
+ "epoch": 1.824742268041237,
2485
+ "grad_norm": 0.8633283627168938,
2486
+ "learning_rate": 4.030072240889635e-06,
2487
+ "loss": 0.0883,
2488
+ "step": 354
2489
+ },
2490
+ {
2491
+ "epoch": 1.829896907216495,
2492
+ "grad_norm": 1.0045407842411636,
2493
+ "learning_rate": 4.000626090980564e-06,
2494
+ "loss": 0.109,
2495
+ "step": 355
2496
+ },
2497
+ {
2498
+ "epoch": 1.8350515463917527,
2499
+ "grad_norm": 0.6176720353760472,
2500
+ "learning_rate": 3.971216000851161e-06,
2501
+ "loss": 0.046,
2502
+ "step": 356
2503
+ },
2504
+ {
2505
+ "epoch": 1.8402061855670104,
2506
+ "grad_norm": 0.6741212952732083,
2507
+ "learning_rate": 3.941843031687194e-06,
2508
+ "loss": 0.0616,
2509
+ "step": 357
2510
+ },
2511
+ {
2512
+ "epoch": 1.8453608247422681,
2513
+ "grad_norm": 0.786429607982951,
2514
+ "learning_rate": 3.912508243335019e-06,
2515
+ "loss": 0.0814,
2516
+ "step": 358
2517
+ },
2518
+ {
2519
+ "epoch": 1.8505154639175259,
2520
+ "grad_norm": 0.7681340177017846,
2521
+ "learning_rate": 3.883212694263341e-06,
2522
+ "loss": 0.0413,
2523
+ "step": 359
2524
+ },
2525
+ {
2526
+ "epoch": 1.8556701030927836,
2527
+ "grad_norm": 0.9188584907010531,
2528
+ "learning_rate": 3.853957441525014e-06,
2529
+ "loss": 0.0917,
2530
+ "step": 360
2531
+ },
2532
+ {
2533
+ "epoch": 1.8608247422680413,
2534
+ "grad_norm": 0.7339463471541188,
2535
+ "learning_rate": 3.824743540718909e-06,
2536
+ "loss": 0.0518,
2537
+ "step": 361
2538
+ },
2539
+ {
2540
+ "epoch": 1.865979381443299,
2541
+ "grad_norm": 0.7505002518495965,
2542
+ "learning_rate": 3.7955720459518163e-06,
2543
+ "loss": 0.0611,
2544
+ "step": 362
2545
+ },
2546
+ {
2547
+ "epoch": 1.8711340206185567,
2548
+ "grad_norm": 0.6977481350680906,
2549
+ "learning_rate": 3.7664440098004194e-06,
2550
+ "loss": 0.0662,
2551
+ "step": 363
2552
+ },
2553
+ {
2554
+ "epoch": 1.8762886597938144,
2555
+ "grad_norm": 0.9305995047119137,
2556
+ "learning_rate": 3.7373604832733103e-06,
2557
+ "loss": 0.1134,
2558
+ "step": 364
2559
+ },
2560
+ {
2561
+ "epoch": 1.8814432989690721,
2562
+ "grad_norm": 0.838945380538262,
2563
+ "learning_rate": 3.708322515773071e-06,
2564
+ "loss": 0.0848,
2565
+ "step": 365
2566
+ },
2567
+ {
2568
+ "epoch": 1.8865979381443299,
2569
+ "grad_norm": 0.950916164653827,
2570
+ "learning_rate": 3.6793311550584043e-06,
2571
+ "loss": 0.0848,
2572
+ "step": 366
2573
+ },
2574
+ {
2575
+ "epoch": 1.8917525773195876,
2576
+ "grad_norm": 0.8218742627036616,
2577
+ "learning_rate": 3.6503874472063268e-06,
2578
+ "loss": 0.1023,
2579
+ "step": 367
2580
+ },
2581
+ {
2582
+ "epoch": 1.8969072164948453,
2583
+ "grad_norm": 0.9078783194850608,
2584
+ "learning_rate": 3.62149243657443e-06,
2585
+ "loss": 0.0931,
2586
+ "step": 368
2587
+ },
2588
+ {
2589
+ "epoch": 1.902061855670103,
2590
+ "grad_norm": 0.688660913780332,
2591
+ "learning_rate": 3.5926471657631945e-06,
2592
+ "loss": 0.0589,
2593
+ "step": 369
2594
+ },
2595
+ {
2596
+ "epoch": 1.9072164948453607,
2597
+ "grad_norm": 0.6952675588410017,
2598
+ "learning_rate": 3.563852675578368e-06,
2599
+ "loss": 0.0502,
2600
+ "step": 370
2601
+ },
2602
+ {
2603
+ "epoch": 1.9123711340206184,
2604
+ "grad_norm": 1.3884427251376699,
2605
+ "learning_rate": 3.535110004993414e-06,
2606
+ "loss": 0.1733,
2607
+ "step": 371
2608
+ },
2609
+ {
2610
+ "epoch": 1.9175257731958761,
2611
+ "grad_norm": 1.0258997166309576,
2612
+ "learning_rate": 3.506420191112023e-06,
2613
+ "loss": 0.1182,
2614
+ "step": 372
2615
+ },
2616
+ {
2617
+ "epoch": 1.922680412371134,
2618
+ "grad_norm": 0.6919148043225545,
2619
+ "learning_rate": 3.477784269130691e-06,
2620
+ "loss": 0.07,
2621
+ "step": 373
2622
+ },
2623
+ {
2624
+ "epoch": 1.9278350515463918,
2625
+ "grad_norm": 0.9093312963775791,
2626
+ "learning_rate": 3.449203272301362e-06,
2627
+ "loss": 0.0967,
2628
+ "step": 374
2629
+ },
2630
+ {
2631
+ "epoch": 1.9329896907216495,
2632
+ "grad_norm": 0.8167616489115295,
2633
+ "learning_rate": 3.4206782318941556e-06,
2634
+ "loss": 0.0586,
2635
+ "step": 375
2636
+ },
2637
+ {
2638
+ "epoch": 1.9381443298969072,
2639
+ "grad_norm": 0.8922256610004783,
2640
+ "learning_rate": 3.3922101771601475e-06,
2641
+ "loss": 0.0716,
2642
+ "step": 376
2643
+ },
2644
+ {
2645
+ "epoch": 1.943298969072165,
2646
+ "grad_norm": 1.0215655504364405,
2647
+ "learning_rate": 3.363800135294236e-06,
2648
+ "loss": 0.1191,
2649
+ "step": 377
2650
+ },
2651
+ {
2652
+ "epoch": 1.9484536082474226,
2653
+ "grad_norm": 1.3202130028849257,
2654
+ "learning_rate": 3.3354491313980774e-06,
2655
+ "loss": 0.1322,
2656
+ "step": 378
2657
+ },
2658
+ {
2659
+ "epoch": 1.9536082474226806,
2660
+ "grad_norm": 1.0653863680738789,
2661
+ "learning_rate": 3.3071581884431014e-06,
2662
+ "loss": 0.1362,
2663
+ "step": 379
2664
+ },
2665
+ {
2666
+ "epoch": 1.9587628865979383,
2667
+ "grad_norm": 0.7846807384773636,
2668
+ "learning_rate": 3.2789283272335935e-06,
2669
+ "loss": 0.0823,
2670
+ "step": 380
2671
+ },
2672
+ {
2673
+ "epoch": 1.963917525773196,
2674
+ "grad_norm": 1.005891449118457,
2675
+ "learning_rate": 3.250760566369864e-06,
2676
+ "loss": 0.1152,
2677
+ "step": 381
2678
+ },
2679
+ {
2680
+ "epoch": 1.9690721649484537,
2681
+ "grad_norm": 0.8386229662220965,
2682
+ "learning_rate": 3.2226559222114974e-06,
2683
+ "loss": 0.0743,
2684
+ "step": 382
2685
+ },
2686
+ {
2687
+ "epoch": 1.9742268041237114,
2688
+ "grad_norm": 0.8015266394615227,
2689
+ "learning_rate": 3.194615408840678e-06,
2690
+ "loss": 0.0818,
2691
+ "step": 383
2692
+ },
2693
+ {
2694
+ "epoch": 1.9793814432989691,
2695
+ "grad_norm": 1.1193048769312743,
2696
+ "learning_rate": 3.1666400380255944e-06,
2697
+ "loss": 0.156,
2698
+ "step": 384
2699
+ },
2700
+ {
2701
+ "epoch": 1.9845360824742269,
2702
+ "grad_norm": 0.8507066467744703,
2703
+ "learning_rate": 3.1387308191839495e-06,
2704
+ "loss": 0.0967,
2705
+ "step": 385
2706
+ },
2707
+ {
2708
+ "epoch": 1.9896907216494846,
2709
+ "grad_norm": 0.6565071516482492,
2710
+ "learning_rate": 3.110888759346512e-06,
2711
+ "loss": 0.0469,
2712
+ "step": 386
2713
+ },
2714
+ {
2715
+ "epoch": 1.9948453608247423,
2716
+ "grad_norm": 0.7510076309546407,
2717
+ "learning_rate": 3.0831148631208043e-06,
2718
+ "loss": 0.0607,
2719
+ "step": 387
2720
+ },
2721
+ {
2722
+ "epoch": 2.0,
2723
+ "grad_norm": 0.9275588340131792,
2724
+ "learning_rate": 3.055410132654838e-06,
2725
+ "loss": 0.0939,
2726
+ "step": 388
2727
+ }
2728
+ ],
2729
+ "logging_steps": 1,
2730
+ "max_steps": 582,
2731
+ "num_input_tokens_seen": 0,
2732
+ "num_train_epochs": 3,
2733
+ "save_steps": 500,
2734
+ "stateful_callbacks": {
2735
+ "TrainerControl": {
2736
+ "args": {
2737
+ "should_epoch_stop": false,
2738
+ "should_evaluate": false,
2739
+ "should_log": false,
2740
+ "should_save": true,
2741
+ "should_training_stop": false
2742
+ },
2743
+ "attributes": {}
2744
+ }
2745
+ },
2746
+ "total_flos": 128421150621696.0,
2747
+ "train_batch_size": 1,
2748
+ "trial_name": null,
2749
+ "trial_params": null
2750
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b573028e7d55b1fddbead52f1e1ef8b3944e95dca1156b751452464f7d8d9171
3
+ size 8145
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 not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
159
+ raise ValueError(f"{files[0]} is not a zero checkpoint")
160
+ zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
161
+ world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
162
+
163
+ # For ZeRO-2 each param group can have different partition_count as data parallelism for expert
164
+ # parameters can be different from data parallelism for non-expert parameters. So we can just
165
+ # use the max of the partition_count to get the dp world_size.
166
+
167
+ if type(world_size) is list:
168
+ world_size = max(world_size)
169
+
170
+ if world_size != total_files:
171
+ raise ValueError(
172
+ f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
173
+ "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
174
+ )
175
+
176
+ # the groups are named differently in each stage
177
+ if zero_stage <= 2:
178
+ fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
179
+ elif zero_stage == 3:
180
+ fp32_groups_key = FP32_FLAT_GROUPS
181
+ else:
182
+ raise ValueError(f"unknown zero stage {zero_stage}")
183
+
184
+ fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
185
+ return zero_stage, world_size, fp32_flat_groups
186
+
187
+
188
+ def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
189
+ """
190
+ Returns fp32 state_dict reconstructed from ds checkpoint
191
+
192
+ Args:
193
+ - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
194
+
195
+ """
196
+ print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
197
+
198
+ optim_files = get_optim_files(ds_checkpoint_dir)
199
+ zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
200
+ print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
201
+
202
+ model_files = get_model_state_files(ds_checkpoint_dir)
203
+
204
+ zero_model_states = parse_model_states(model_files)
205
+ print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
206
+
207
+ if zero_stage <= 2:
208
+ return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
209
+ exclude_frozen_parameters)
210
+ elif zero_stage == 3:
211
+ return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
212
+ exclude_frozen_parameters)
213
+
214
+
215
+ def _zero2_merge_frozen_params(state_dict, zero_model_states):
216
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
217
+ return
218
+
219
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
220
+ frozen_param_fragments = zero_model_states[0].frozen_param_fragments
221
+
222
+ if debug:
223
+ num_elem = sum(s.numel() for s in frozen_param_shapes.values())
224
+ print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
225
+
226
+ wanted_params = len(frozen_param_shapes)
227
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
228
+ avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
229
+ print(f'Frozen params: Have {avail_numel} numels to process.')
230
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
231
+
232
+ total_params = 0
233
+ total_numel = 0
234
+ for name, shape in frozen_param_shapes.items():
235
+ total_params += 1
236
+ unpartitioned_numel = shape.numel()
237
+ total_numel += unpartitioned_numel
238
+
239
+ state_dict[name] = frozen_param_fragments[name]
240
+
241
+ if debug:
242
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
243
+
244
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
245
+
246
+
247
+ def _has_callable(obj, fn):
248
+ attr = getattr(obj, fn, None)
249
+ return callable(attr)
250
+
251
+
252
+ def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
253
+ param_shapes = zero_model_states[0].param_shapes
254
+
255
+ # Reconstruction protocol:
256
+ #
257
+ # XXX: document this
258
+
259
+ if debug:
260
+ for i in range(world_size):
261
+ for j in range(len(fp32_flat_groups[0])):
262
+ print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
263
+
264
+ # XXX: memory usage doubles here (zero2)
265
+ num_param_groups = len(fp32_flat_groups[0])
266
+ merged_single_partition_of_fp32_groups = []
267
+ for i in range(num_param_groups):
268
+ merged_partitions = [sd[i] for sd in fp32_flat_groups]
269
+ full_single_fp32_vector = torch.cat(merged_partitions, 0)
270
+ merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
271
+ avail_numel = sum(
272
+ [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
273
+
274
+ if debug:
275
+ wanted_params = sum([len(shapes) for shapes in param_shapes])
276
+ wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
277
+ # not asserting if there is a mismatch due to possible padding
278
+ print(f"Have {avail_numel} numels to process.")
279
+ print(f"Need {wanted_numel} numels in {wanted_params} params.")
280
+
281
+ # params
282
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
283
+ # out-of-core computing solution
284
+ total_numel = 0
285
+ total_params = 0
286
+ for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
287
+ offset = 0
288
+ avail_numel = full_single_fp32_vector.numel()
289
+ for name, shape in shapes.items():
290
+
291
+ unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
292
+ total_numel += unpartitioned_numel
293
+ total_params += 1
294
+
295
+ if debug:
296
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
297
+ state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
298
+ offset += unpartitioned_numel
299
+
300
+ # Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
301
+ # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
302
+ # paddings performed in the code it's almost impossible to predict the exact numbers w/o the
303
+ # live optimizer object, so we are checking that the numbers are within the right range
304
+ align_to = 2 * world_size
305
+
306
+ def zero2_align(x):
307
+ return align_to * math.ceil(x / align_to)
308
+
309
+ if debug:
310
+ print(f"original offset={offset}, avail_numel={avail_numel}")
311
+
312
+ offset = zero2_align(offset)
313
+ avail_numel = zero2_align(avail_numel)
314
+
315
+ if debug:
316
+ print(f"aligned offset={offset}, avail_numel={avail_numel}")
317
+
318
+ # Sanity check
319
+ if offset != avail_numel:
320
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
321
+
322
+ print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
323
+
324
+
325
+ def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
326
+ exclude_frozen_parameters):
327
+ state_dict = OrderedDict()
328
+
329
+ # buffers
330
+ buffers = zero_model_states[0].buffers
331
+ state_dict.update(buffers)
332
+ if debug:
333
+ print(f"added {len(buffers)} buffers")
334
+
335
+ if not exclude_frozen_parameters:
336
+ _zero2_merge_frozen_params(state_dict, zero_model_states)
337
+
338
+ _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
339
+
340
+ # recover shared parameters
341
+ for pair in zero_model_states[0].shared_params:
342
+ if pair[1] in state_dict:
343
+ state_dict[pair[0]] = state_dict[pair[1]]
344
+
345
+ return state_dict
346
+
347
+
348
+ def zero3_partitioned_param_info(unpartitioned_numel, world_size):
349
+ remainder = unpartitioned_numel % world_size
350
+ padding_numel = (world_size - remainder) if remainder else 0
351
+ partitioned_numel = math.ceil(unpartitioned_numel / world_size)
352
+ return partitioned_numel, padding_numel
353
+
354
+
355
+ def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
356
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
357
+ return
358
+
359
+ if debug:
360
+ for i in range(world_size):
361
+ num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
362
+ print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
363
+
364
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
365
+ wanted_params = len(frozen_param_shapes)
366
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
367
+ avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
368
+ print(f'Frozen params: Have {avail_numel} numels to process.')
369
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
370
+
371
+ total_params = 0
372
+ total_numel = 0
373
+ for name, shape in zero_model_states[0].frozen_param_shapes.items():
374
+ total_params += 1
375
+ unpartitioned_numel = shape.numel()
376
+ total_numel += unpartitioned_numel
377
+
378
+ param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
379
+ state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
380
+
381
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
382
+
383
+ if debug:
384
+ print(
385
+ f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
386
+ )
387
+
388
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
389
+
390
+
391
+ class GatheredTensor:
392
+ """
393
+ A pseudo tensor that collects partitioned weights.
394
+ It is more memory efficient when there are multiple groups.
395
+ """
396
+
397
+ def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape):
398
+ self.flat_groups = flat_groups
399
+ self.flat_groups_offset = flat_groups_offset
400
+ self.offset = offset
401
+ self.partitioned_numel = partitioned_numel
402
+ self.shape = shape
403
+ self.dtype = self.flat_groups[0][0].dtype
404
+
405
+ def contiguous(self):
406
+ """
407
+ Merge partitioned weights from flat_groups into a single tensor.
408
+ """
409
+ end_idx = self.offset + self.partitioned_numel
410
+ world_size = len(self.flat_groups)
411
+ pad_flat_param_chunks = []
412
+
413
+ for rank_i in range(world_size):
414
+ # for each rank, we need to collect weights from related group/groups
415
+ flat_groups_at_rank_i = self.flat_groups[rank_i]
416
+ start_group_id = None
417
+ end_group_id = None
418
+ for group_id in range(len(self.flat_groups_offset)):
419
+ if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]:
420
+ start_group_id = group_id
421
+ if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]:
422
+ end_group_id = group_id
423
+ break
424
+ # collect weights from related group/groups
425
+ for group_id in range(start_group_id, end_group_id + 1):
426
+ flat_tensor = flat_groups_at_rank_i[group_id]
427
+ start_offset = self.offset - self.flat_groups_offset[group_id]
428
+ end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id]
429
+ pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
430
+
431
+ # collect weights from all ranks
432
+ pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0)
433
+ param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous()
434
+ return param
435
+
436
+
437
+ def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
438
+ param_shapes = zero_model_states[0].param_shapes
439
+ avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
440
+
441
+ # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
442
+ # param, re-consolidating each param, while dealing with padding if any
443
+
444
+ # merge list of dicts, preserving order
445
+ param_shapes = {k: v for d in param_shapes for k, v in d.items()}
446
+
447
+ if debug:
448
+ for i in range(world_size):
449
+ print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
450
+
451
+ wanted_params = len(param_shapes)
452
+ wanted_numel = sum(shape.numel() for shape in param_shapes.values())
453
+ # not asserting if there is a mismatch due to possible padding
454
+ avail_numel = fp32_flat_groups[0].numel() * world_size
455
+ print(f"Trainable params: Have {avail_numel} numels to process.")
456
+ print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
457
+
458
+ # params
459
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
460
+ # out-of-core computing solution
461
+ offset = 0
462
+ total_numel = 0
463
+ total_params = 0
464
+ flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]]))
465
+ for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'):
466
+ unpartitioned_numel = shape.numel()
467
+ total_numel += unpartitioned_numel
468
+ total_params += 1
469
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
470
+
471
+ if debug:
472
+ print(
473
+ f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
474
+ )
475
+
476
+ # memory efficient tensor
477
+ tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape)
478
+ state_dict[name] = tensor
479
+ offset += partitioned_numel
480
+
481
+ offset *= world_size
482
+
483
+ # Sanity check
484
+ if offset != avail_numel:
485
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
486
+
487
+ print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
488
+
489
+
490
+ def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
491
+ exclude_frozen_parameters):
492
+ state_dict = OrderedDict()
493
+
494
+ # buffers
495
+ buffers = zero_model_states[0].buffers
496
+ state_dict.update(buffers)
497
+ if debug:
498
+ print(f"added {len(buffers)} buffers")
499
+
500
+ if not exclude_frozen_parameters:
501
+ _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
502
+
503
+ _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
504
+
505
+ # recover shared parameters
506
+ for pair in zero_model_states[0].shared_params:
507
+ if pair[1] in state_dict:
508
+ state_dict[pair[0]] = state_dict[pair[1]]
509
+
510
+ return state_dict
511
+
512
+
513
+ def to_torch_tensor(state_dict, return_empty_tensor=False):
514
+ """
515
+ Convert state_dict of GatheredTensor to torch tensor
516
+ """
517
+ torch_state_dict = {}
518
+ converted_tensors = {}
519
+ for name, tensor in state_dict.items():
520
+ tensor_id = id(tensor)
521
+ if tensor_id in converted_tensors: # shared tensors
522
+ shared_tensor = torch_state_dict[converted_tensors[tensor_id]]
523
+ torch_state_dict[name] = shared_tensor
524
+ else:
525
+ converted_tensors[tensor_id] = name
526
+ if return_empty_tensor:
527
+ torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype)
528
+ else:
529
+ torch_state_dict[name] = tensor.contiguous()
530
+ return torch_state_dict
531
+
532
+
533
+ def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
534
+ tag=None,
535
+ exclude_frozen_parameters=False,
536
+ lazy_mode=False):
537
+ """
538
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
539
+ ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
540
+ via a model hub.
541
+
542
+ Args:
543
+ - ``checkpoint_dir``: path to the desired checkpoint folder
544
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14``
545
+ - ``exclude_frozen_parameters``: exclude frozen parameters
546
+ - ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient.
547
+ Convert the pesduo tensor to torch tensor by ``.contiguous()``
548
+
549
+ Returns:
550
+ - pytorch ``state_dict``
551
+
552
+ A typical usage might be ::
553
+
554
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
555
+ # do the training and checkpoint saving
556
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
557
+ model = model.cpu() # move to cpu
558
+ model.load_state_dict(state_dict)
559
+ # submit to model hub or save the model to share with others
560
+
561
+ In this example the ``model`` will no longer be usable in the deepspeed context of the same
562
+ application. i.e. you will need to re-initialize the deepspeed engine, since
563
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
564
+
565
+ If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
566
+
567
+ Note: the above usage may not work if your application doesn't have sufficient free CPU memory.
568
+ You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
569
+ the checkpoint. Or you can load state_dict in lazy mode ::
570
+
571
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
572
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu
573
+ for name, lazy_tensor in state_dict.item():
574
+ tensor = lazy_tensor.contiguous() # to cpu
575
+ print(name, tensor)
576
+ # del tensor to release memory if it no longer in use
577
+ """
578
+ if tag is None:
579
+ latest_path = os.path.join(checkpoint_dir, 'latest')
580
+ if os.path.isfile(latest_path):
581
+ with open(latest_path, 'r') as fd:
582
+ tag = fd.read().strip()
583
+ else:
584
+ raise ValueError(f"Unable to find 'latest' file at {latest_path}")
585
+
586
+ ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
587
+
588
+ if not os.path.isdir(ds_checkpoint_dir):
589
+ raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
590
+
591
+ state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
592
+ if lazy_mode:
593
+ return state_dict
594
+ else:
595
+ return to_torch_tensor(state_dict)
596
+
597
+
598
+ def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
599
+ output_dir,
600
+ max_shard_size="5GB",
601
+ safe_serialization=False,
602
+ tag=None,
603
+ exclude_frozen_parameters=False):
604
+ """
605
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
606
+ loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
607
+
608
+ Args:
609
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
610
+ - ``output_dir``: directory to the pytorch fp32 state_dict output files
611
+ - ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
612
+ - ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
613
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
614
+ - ``exclude_frozen_parameters``: exclude frozen parameters
615
+ """
616
+
617
+ # Dependency pre-check
618
+ if safe_serialization:
619
+ try:
620
+ from safetensors.torch import save_file
621
+ except ImportError:
622
+ print('If you want to use `safe_serialization`, please `pip install safetensors`')
623
+ raise
624
+ if max_shard_size is not None:
625
+ try:
626
+ from huggingface_hub import split_torch_state_dict_into_shards
627
+ except ImportError:
628
+ print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
629
+ raise
630
+
631
+ # Convert zero checkpoint to state_dict
632
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
633
+ tag,
634
+ exclude_frozen_parameters,
635
+ lazy_mode=True)
636
+
637
+ # Shard the model if it is too big.
638
+ weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
639
+ if max_shard_size is not None:
640
+ filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
641
+ # an memory-efficient approach for sharding
642
+ empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True)
643
+ state_dict_split = split_torch_state_dict_into_shards(empty_state_dict,
644
+ filename_pattern=filename_pattern,
645
+ max_shard_size=max_shard_size)
646
+ else:
647
+ from collections import namedtuple
648
+ StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
649
+ state_dict_split = StateDictSplit(is_sharded=False,
650
+ filename_to_tensors={weights_name: list(state_dict.keys())})
651
+
652
+ # Save the model by shard
653
+ os.makedirs(output_dir, exist_ok=True)
654
+ filename_to_tensors = state_dict_split.filename_to_tensors.items()
655
+ for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
656
+ shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors}
657
+ shard_state_dict = to_torch_tensor(shard_state_dict)
658
+ output_path = os.path.join(output_dir, shard_file)
659
+ if safe_serialization:
660
+ save_file(shard_state_dict, output_path, metadata={"format": "pt"})
661
+ else:
662
+ torch.save(shard_state_dict, output_path)
663
+ # release the memory of current shard
664
+ for tensor_name in list(shard_state_dict.keys()):
665
+ del state_dict[tensor_name]
666
+ del shard_state_dict[tensor_name]
667
+ del shard_state_dict
668
+ gc.collect()
669
+
670
+ # Save index if sharded
671
+ if state_dict_split.is_sharded:
672
+ index = {
673
+ "metadata": state_dict_split.metadata,
674
+ "weight_map": state_dict_split.tensor_to_filename,
675
+ }
676
+ save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
677
+ save_index_file = os.path.join(output_dir, save_index_file)
678
+ with open(save_index_file, "w", encoding="utf-8") as f:
679
+ content = json.dumps(index, indent=2, sort_keys=True) + "\n"
680
+ f.write(content)
681
+
682
+
683
+ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
684
+ """
685
+ 1. Put the provided model to cpu
686
+ 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
687
+ 3. Load it into the provided model
688
+
689
+ Args:
690
+ - ``model``: the model object to update
691
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
692
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
693
+
694
+ Returns:
695
+ - ``model`: modified model
696
+
697
+ Make sure you have plenty of CPU memory available before you call this function. If you don't
698
+ have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
699
+ conveniently placed for you in the checkpoint folder.
700
+
701
+ A typical usage might be ::
702
+
703
+ from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
704
+ model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
705
+ # submit to model hub or save the model to share with others
706
+
707
+ Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
708
+ of the same application. i.e. you will need to re-initialize the deepspeed engine, since
709
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
710
+
711
+ """
712
+ logger.info(f"Extracting fp32 weights")
713
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
714
+
715
+ logger.info(f"Overwriting model with fp32 weights")
716
+ model = model.cpu()
717
+ model.load_state_dict(state_dict, strict=False)
718
+
719
+ return model
720
+
721
+
722
+ if __name__ == "__main__":
723
+ parser = argparse.ArgumentParser()
724
+ parser.add_argument("checkpoint_dir",
725
+ type=str,
726
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
727
+ parser.add_argument("output_dir",
728
+ type=str,
729
+ help="directory to the pytorch fp32 state_dict output files"
730
+ "(e.g. path/checkpoint-12-output/)")
731
+ parser.add_argument(
732
+ "--max_shard_size",
733
+ type=str,
734
+ default="5GB",
735
+ help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
736
+ "lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
737
+ "We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
738
+ "without CPU OOM issues.")
739
+ parser.add_argument(
740
+ "--safe_serialization",
741
+ default=False,
742
+ action='store_true',
743
+ help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
744
+ parser.add_argument("-t",
745
+ "--tag",
746
+ type=str,
747
+ default=None,
748
+ help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
749
+ parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
750
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
751
+ args = parser.parse_args()
752
+
753
+ debug = args.debug
754
+
755
+ convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
756
+ args.output_dir,
757
+ max_shard_size=args.max_shard_size,
758
+ safe_serialization=args.safe_serialization,
759
+ tag=args.tag,
760
+ exclude_frozen_parameters=args.exclude_frozen_parameters)