TongZheng1999 commited on
Commit
c559a0e
·
verified ·
1 Parent(s): 55ad516

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,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 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.role == "user") or (message.role == "system" and not loop.first) %}
27
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
28
+ {%- elif message.role == "assistant" %}
29
+ {%- set content = message.content %}
30
+ {%- set reasoning_content = '' %}
31
+ {%- if message.reasoning_content is defined and message.reasoning_content is not none %}
32
+ {%- set reasoning_content = message.reasoning_content %}
33
+ {%- else %}
34
+ {%- if '</think>' in message.content %}
35
+ {%- set content = message.content.split('</think>')[-1].lstrip('\n') %}
36
+ {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
37
+ {%- endif %}
38
+ {%- endif %}
39
+ {%- if loop.index0 > ns.last_query_index %}
40
+ {%- if loop.last or (not loop.last and reasoning_content) %}
41
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
42
+ {%- else %}
43
+ {{- '<|im_start|>' + message.role + '\n' + content }}
44
+ {%- endif %}
45
+ {%- else %}
46
+ {{- '<|im_start|>' + message.role + '\n' + content }}
47
+ {%- endif %}
48
+ {%- if message.tool_calls %}
49
+ {%- for tool_call in message.tool_calls %}
50
+ {%- if (loop.first and content) or (not loop.first) %}
51
+ {{- '\n' }}
52
+ {%- endif %}
53
+ {%- if tool_call.function %}
54
+ {%- set tool_call = tool_call.function %}
55
+ {%- endif %}
56
+ {{- '<tool_call>\n{"name": "' }}
57
+ {{- tool_call.name }}
58
+ {{- '", "arguments": ' }}
59
+ {%- if tool_call.arguments is string %}
60
+ {{- tool_call.arguments }}
61
+ {%- else %}
62
+ {{- tool_call.arguments | tojson }}
63
+ {%- endif %}
64
+ {{- '}\n</tool_call>' }}
65
+ {%- endfor %}
66
+ {%- endif %}
67
+ {{- '<|im_end|>\n' }}
68
+ {%- elif message.role == "tool" %}
69
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
70
+ {{- '<|im_start|>user' }}
71
+ {%- endif %}
72
+ {{- '\n<tool_response>\n' }}
73
+ {{- message.content }}
74
+ {{- '\n</tool_response>' }}
75
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
76
+ {{- '<|im_end|>\n' }}
77
+ {%- endif %}
78
+ {%- endif %}
79
+ {%- endfor %}
80
+ {%- if add_generation_prompt %}
81
+ {{- '<|im_start|>assistant\n' }}
82
+ {%- if enable_thinking is defined and enable_thinking is false %}
83
+ {{- '<think>\n\n</think>\n\n' }}
84
+ {%- endif %}
85
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "eos_token_id": 151643,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 2560,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 9728,
14
+ "max_position_embeddings": 32768,
15
+ "max_window_layers": 36,
16
+ "model_type": "qwen3",
17
+ "num_attention_heads": 32,
18
+ "num_hidden_layers": 36,
19
+ "num_key_value_heads": 8,
20
+ "rms_norm_eps": 1e-06,
21
+ "rope_scaling": null,
22
+ "rope_theta": 1000000,
23
+ "sliding_window": null,
24
+ "tie_word_embeddings": true,
25
+ "torch_dtype": "bfloat16",
26
+ "transformers_version": "4.52.4",
27
+ "use_cache": false,
28
+ "use_sliding_window": false,
29
+ "vocab_size": 151936
30
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "eos_token_id": 151643,
4
+ "max_new_tokens": 2048,
5
+ "transformers_version": "4.52.4"
6
+ }
global_step300/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a48b8abdc62ca2162ec7309cb120f3caeb27d6198d00efaf134ef391b18eb292
3
+ size 12067415329
global_step300/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4db9f30f94a2922483cd23c7da113a7ec94fe37985672f704e42fca939dff1d6
3
+ size 12067417953
global_step300/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:407b47ccd39022e7a8d00c03a90ccf14528afe0c9db190f8afba5a7351afe426
3
+ size 12067418081
global_step300/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9553960f0b9546e0b8aa82ebc4ec8083f8d34bc28de9c368b6143bb71b088a51
3
+ size 12067418081
global_step300/mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a737aa7bfb268e3c284de14d5be9e32f8ff92191dc2273b45da9ae6fc33f9f3b
3
+ size 8045052005
latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step300
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd1335c8fcb2fa33af13bf8e313eb96f8d13ce442cd91ce46106f9bf29f9ef9b
3
+ size 4967215360
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfdedd7f16d4b41dcf5b0eed45a5a52b2c944272d203ebaa8162e9173e452525
3
+ size 3855679144
model.safetensors.index.json ADDED
@@ -0,0 +1,406 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 8822848512
4
+ },
5
+ "weight_map": {
6
+ "lm_head.weight": "model-00002-of-00002.safetensors",
7
+ "model.embed_tokens.weight": "model-00001-of-00002.safetensors",
8
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00002.safetensors",
9
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
10
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
11
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
12
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
13
+ "model.layers.0.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
14
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
15
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
16
+ "model.layers.0.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
17
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
18
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
19
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00002.safetensors",
20
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
21
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
22
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
23
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
24
+ "model.layers.1.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
25
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
26
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
27
+ "model.layers.1.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
28
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
29
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
30
+ "model.layers.10.input_layernorm.weight": "model-00001-of-00002.safetensors",
31
+ "model.layers.10.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
32
+ "model.layers.10.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
33
+ "model.layers.10.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
34
+ "model.layers.10.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
35
+ "model.layers.10.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
36
+ "model.layers.10.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
37
+ "model.layers.10.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
38
+ "model.layers.10.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
39
+ "model.layers.10.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
40
+ "model.layers.10.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
41
+ "model.layers.11.input_layernorm.weight": "model-00001-of-00002.safetensors",
42
+ "model.layers.11.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
43
+ "model.layers.11.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
44
+ "model.layers.11.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
45
+ "model.layers.11.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
46
+ "model.layers.11.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
47
+ "model.layers.11.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
48
+ "model.layers.11.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
49
+ "model.layers.11.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
50
+ "model.layers.11.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
51
+ "model.layers.11.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
52
+ "model.layers.12.input_layernorm.weight": "model-00001-of-00002.safetensors",
53
+ "model.layers.12.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
54
+ "model.layers.12.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
55
+ "model.layers.12.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
56
+ "model.layers.12.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
57
+ "model.layers.12.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
58
+ "model.layers.12.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
59
+ "model.layers.12.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
60
+ "model.layers.12.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
61
+ "model.layers.12.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
62
+ "model.layers.12.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
63
+ "model.layers.13.input_layernorm.weight": "model-00001-of-00002.safetensors",
64
+ "model.layers.13.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
65
+ "model.layers.13.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
66
+ "model.layers.13.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
67
+ "model.layers.13.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
68
+ "model.layers.13.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
69
+ "model.layers.13.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
70
+ "model.layers.13.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
71
+ "model.layers.13.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
72
+ "model.layers.13.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
73
+ "model.layers.13.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
74
+ "model.layers.14.input_layernorm.weight": "model-00001-of-00002.safetensors",
75
+ "model.layers.14.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
76
+ "model.layers.14.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
77
+ "model.layers.14.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
78
+ "model.layers.14.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
79
+ "model.layers.14.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
80
+ "model.layers.14.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
81
+ "model.layers.14.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
82
+ "model.layers.14.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
83
+ "model.layers.14.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
84
+ "model.layers.14.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
85
+ "model.layers.15.input_layernorm.weight": "model-00001-of-00002.safetensors",
86
+ "model.layers.15.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
87
+ "model.layers.15.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
88
+ "model.layers.15.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
89
+ "model.layers.15.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
90
+ "model.layers.15.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
91
+ "model.layers.15.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
92
+ "model.layers.15.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
93
+ "model.layers.15.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
94
+ "model.layers.15.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
95
+ "model.layers.15.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
96
+ "model.layers.16.input_layernorm.weight": "model-00001-of-00002.safetensors",
97
+ "model.layers.16.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
98
+ "model.layers.16.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
99
+ "model.layers.16.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
100
+ "model.layers.16.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
101
+ "model.layers.16.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
102
+ "model.layers.16.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
103
+ "model.layers.16.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
104
+ "model.layers.16.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
105
+ "model.layers.16.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
106
+ "model.layers.16.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
107
+ "model.layers.17.input_layernorm.weight": "model-00001-of-00002.safetensors",
108
+ "model.layers.17.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
109
+ "model.layers.17.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
110
+ "model.layers.17.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
111
+ "model.layers.17.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
112
+ "model.layers.17.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
113
+ "model.layers.17.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
114
+ "model.layers.17.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
115
+ "model.layers.17.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
116
+ "model.layers.17.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
117
+ "model.layers.17.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
118
+ "model.layers.18.input_layernorm.weight": "model-00001-of-00002.safetensors",
119
+ "model.layers.18.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
120
+ "model.layers.18.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
121
+ "model.layers.18.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
122
+ "model.layers.18.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
123
+ "model.layers.18.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
124
+ "model.layers.18.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
125
+ "model.layers.18.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
126
+ "model.layers.18.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
127
+ "model.layers.18.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
128
+ "model.layers.18.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
129
+ "model.layers.19.input_layernorm.weight": "model-00001-of-00002.safetensors",
130
+ "model.layers.19.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
131
+ "model.layers.19.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
132
+ "model.layers.19.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
133
+ "model.layers.19.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
134
+ "model.layers.19.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
135
+ "model.layers.19.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
136
+ "model.layers.19.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
137
+ "model.layers.19.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
138
+ "model.layers.19.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
139
+ "model.layers.19.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
140
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00002.safetensors",
141
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
142
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
143
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
144
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
145
+ "model.layers.2.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
146
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
147
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
148
+ "model.layers.2.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
149
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
150
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
151
+ "model.layers.20.input_layernorm.weight": "model-00002-of-00002.safetensors",
152
+ "model.layers.20.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
153
+ "model.layers.20.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
154
+ "model.layers.20.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
155
+ "model.layers.20.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
156
+ "model.layers.20.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
157
+ "model.layers.20.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
158
+ "model.layers.20.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
159
+ "model.layers.20.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
160
+ "model.layers.20.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
161
+ "model.layers.20.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
162
+ "model.layers.21.input_layernorm.weight": "model-00002-of-00002.safetensors",
163
+ "model.layers.21.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
164
+ "model.layers.21.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
165
+ "model.layers.21.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
166
+ "model.layers.21.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
167
+ "model.layers.21.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
168
+ "model.layers.21.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
169
+ "model.layers.21.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
170
+ "model.layers.21.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
171
+ "model.layers.21.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
172
+ "model.layers.21.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
173
+ "model.layers.22.input_layernorm.weight": "model-00002-of-00002.safetensors",
174
+ "model.layers.22.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
175
+ "model.layers.22.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
176
+ "model.layers.22.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
177
+ "model.layers.22.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
178
+ "model.layers.22.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
179
+ "model.layers.22.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
180
+ "model.layers.22.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
181
+ "model.layers.22.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
182
+ "model.layers.22.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
183
+ "model.layers.22.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
184
+ "model.layers.23.input_layernorm.weight": "model-00002-of-00002.safetensors",
185
+ "model.layers.23.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
186
+ "model.layers.23.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
187
+ "model.layers.23.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
188
+ "model.layers.23.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
189
+ "model.layers.23.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
190
+ "model.layers.23.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
191
+ "model.layers.23.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
192
+ "model.layers.23.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
193
+ "model.layers.23.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
194
+ "model.layers.23.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
195
+ "model.layers.24.input_layernorm.weight": "model-00002-of-00002.safetensors",
196
+ "model.layers.24.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
197
+ "model.layers.24.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
198
+ "model.layers.24.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
199
+ "model.layers.24.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
200
+ "model.layers.24.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
201
+ "model.layers.24.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
202
+ "model.layers.24.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
203
+ "model.layers.24.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
204
+ "model.layers.24.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
205
+ "model.layers.24.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
206
+ "model.layers.25.input_layernorm.weight": "model-00002-of-00002.safetensors",
207
+ "model.layers.25.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
208
+ "model.layers.25.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
209
+ "model.layers.25.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
210
+ "model.layers.25.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
211
+ "model.layers.25.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
212
+ "model.layers.25.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
213
+ "model.layers.25.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
214
+ "model.layers.25.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
215
+ "model.layers.25.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
216
+ "model.layers.25.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
217
+ "model.layers.26.input_layernorm.weight": "model-00002-of-00002.safetensors",
218
+ "model.layers.26.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
219
+ "model.layers.26.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
220
+ "model.layers.26.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
221
+ "model.layers.26.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
222
+ "model.layers.26.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
223
+ "model.layers.26.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
224
+ "model.layers.26.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
225
+ "model.layers.26.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
226
+ "model.layers.26.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
227
+ "model.layers.26.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
228
+ "model.layers.27.input_layernorm.weight": "model-00002-of-00002.safetensors",
229
+ "model.layers.27.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
230
+ "model.layers.27.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
231
+ "model.layers.27.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
232
+ "model.layers.27.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
233
+ "model.layers.27.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
234
+ "model.layers.27.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
235
+ "model.layers.27.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
236
+ "model.layers.27.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
237
+ "model.layers.27.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
238
+ "model.layers.27.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
239
+ "model.layers.28.input_layernorm.weight": "model-00002-of-00002.safetensors",
240
+ "model.layers.28.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
241
+ "model.layers.28.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
242
+ "model.layers.28.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
243
+ "model.layers.28.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
244
+ "model.layers.28.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
245
+ "model.layers.28.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
246
+ "model.layers.28.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
247
+ "model.layers.28.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
248
+ "model.layers.28.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
249
+ "model.layers.28.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
250
+ "model.layers.29.input_layernorm.weight": "model-00002-of-00002.safetensors",
251
+ "model.layers.29.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
252
+ "model.layers.29.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
253
+ "model.layers.29.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
254
+ "model.layers.29.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
255
+ "model.layers.29.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
256
+ "model.layers.29.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
257
+ "model.layers.29.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
258
+ "model.layers.29.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
259
+ "model.layers.29.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
260
+ "model.layers.29.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
261
+ "model.layers.3.input_layernorm.weight": "model-00001-of-00002.safetensors",
262
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
263
+ "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
264
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
265
+ "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
266
+ "model.layers.3.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
267
+ "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
268
+ "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
269
+ "model.layers.3.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
270
+ "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
271
+ "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
272
+ "model.layers.30.input_layernorm.weight": "model-00002-of-00002.safetensors",
273
+ "model.layers.30.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
274
+ "model.layers.30.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
275
+ "model.layers.30.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
276
+ "model.layers.30.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
277
+ "model.layers.30.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
278
+ "model.layers.30.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
279
+ "model.layers.30.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
280
+ "model.layers.30.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
281
+ "model.layers.30.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
282
+ "model.layers.30.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
283
+ "model.layers.31.input_layernorm.weight": "model-00002-of-00002.safetensors",
284
+ "model.layers.31.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
285
+ "model.layers.31.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
286
+ "model.layers.31.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
287
+ "model.layers.31.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
288
+ "model.layers.31.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
289
+ "model.layers.31.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
290
+ "model.layers.31.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
291
+ "model.layers.31.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
292
+ "model.layers.31.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
293
+ "model.layers.31.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
294
+ "model.layers.32.input_layernorm.weight": "model-00002-of-00002.safetensors",
295
+ "model.layers.32.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
296
+ "model.layers.32.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
297
+ "model.layers.32.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
298
+ "model.layers.32.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
299
+ "model.layers.32.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
300
+ "model.layers.32.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
301
+ "model.layers.32.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
302
+ "model.layers.32.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
303
+ "model.layers.32.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
304
+ "model.layers.32.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
305
+ "model.layers.33.input_layernorm.weight": "model-00002-of-00002.safetensors",
306
+ "model.layers.33.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
307
+ "model.layers.33.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
308
+ "model.layers.33.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
309
+ "model.layers.33.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
310
+ "model.layers.33.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
311
+ "model.layers.33.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
312
+ "model.layers.33.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
313
+ "model.layers.33.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
314
+ "model.layers.33.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
315
+ "model.layers.33.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
316
+ "model.layers.34.input_layernorm.weight": "model-00002-of-00002.safetensors",
317
+ "model.layers.34.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
318
+ "model.layers.34.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
319
+ "model.layers.34.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
320
+ "model.layers.34.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
321
+ "model.layers.34.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
322
+ "model.layers.34.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
323
+ "model.layers.34.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
324
+ "model.layers.34.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
325
+ "model.layers.34.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
326
+ "model.layers.34.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
327
+ "model.layers.35.input_layernorm.weight": "model-00002-of-00002.safetensors",
328
+ "model.layers.35.mlp.down_proj.weight": "model-00002-of-00002.safetensors",
329
+ "model.layers.35.mlp.gate_proj.weight": "model-00002-of-00002.safetensors",
330
+ "model.layers.35.mlp.up_proj.weight": "model-00002-of-00002.safetensors",
331
+ "model.layers.35.post_attention_layernorm.weight": "model-00002-of-00002.safetensors",
332
+ "model.layers.35.self_attn.k_norm.weight": "model-00002-of-00002.safetensors",
333
+ "model.layers.35.self_attn.k_proj.weight": "model-00002-of-00002.safetensors",
334
+ "model.layers.35.self_attn.o_proj.weight": "model-00002-of-00002.safetensors",
335
+ "model.layers.35.self_attn.q_norm.weight": "model-00002-of-00002.safetensors",
336
+ "model.layers.35.self_attn.q_proj.weight": "model-00002-of-00002.safetensors",
337
+ "model.layers.35.self_attn.v_proj.weight": "model-00002-of-00002.safetensors",
338
+ "model.layers.4.input_layernorm.weight": "model-00001-of-00002.safetensors",
339
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
340
+ "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
341
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
342
+ "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
343
+ "model.layers.4.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
344
+ "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
345
+ "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
346
+ "model.layers.4.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
347
+ "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
348
+ "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
349
+ "model.layers.5.input_layernorm.weight": "model-00001-of-00002.safetensors",
350
+ "model.layers.5.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
351
+ "model.layers.5.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
352
+ "model.layers.5.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
353
+ "model.layers.5.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
354
+ "model.layers.5.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
355
+ "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
356
+ "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
357
+ "model.layers.5.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
358
+ "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
359
+ "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
360
+ "model.layers.6.input_layernorm.weight": "model-00001-of-00002.safetensors",
361
+ "model.layers.6.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
362
+ "model.layers.6.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
363
+ "model.layers.6.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
364
+ "model.layers.6.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
365
+ "model.layers.6.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
366
+ "model.layers.6.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
367
+ "model.layers.6.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
368
+ "model.layers.6.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
369
+ "model.layers.6.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
370
+ "model.layers.6.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
371
+ "model.layers.7.input_layernorm.weight": "model-00001-of-00002.safetensors",
372
+ "model.layers.7.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
373
+ "model.layers.7.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
374
+ "model.layers.7.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
375
+ "model.layers.7.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
376
+ "model.layers.7.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
377
+ "model.layers.7.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
378
+ "model.layers.7.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
379
+ "model.layers.7.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
380
+ "model.layers.7.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
381
+ "model.layers.7.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
382
+ "model.layers.8.input_layernorm.weight": "model-00001-of-00002.safetensors",
383
+ "model.layers.8.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
384
+ "model.layers.8.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
385
+ "model.layers.8.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
386
+ "model.layers.8.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
387
+ "model.layers.8.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
388
+ "model.layers.8.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
389
+ "model.layers.8.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
390
+ "model.layers.8.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
391
+ "model.layers.8.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
392
+ "model.layers.8.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
393
+ "model.layers.9.input_layernorm.weight": "model-00001-of-00002.safetensors",
394
+ "model.layers.9.mlp.down_proj.weight": "model-00001-of-00002.safetensors",
395
+ "model.layers.9.mlp.gate_proj.weight": "model-00001-of-00002.safetensors",
396
+ "model.layers.9.mlp.up_proj.weight": "model-00001-of-00002.safetensors",
397
+ "model.layers.9.post_attention_layernorm.weight": "model-00001-of-00002.safetensors",
398
+ "model.layers.9.self_attn.k_norm.weight": "model-00001-of-00002.safetensors",
399
+ "model.layers.9.self_attn.k_proj.weight": "model-00001-of-00002.safetensors",
400
+ "model.layers.9.self_attn.o_proj.weight": "model-00001-of-00002.safetensors",
401
+ "model.layers.9.self_attn.q_norm.weight": "model-00001-of-00002.safetensors",
402
+ "model.layers.9.self_attn.q_proj.weight": "model-00001-of-00002.safetensors",
403
+ "model.layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
404
+ "model.norm.weight": "model-00002-of-00002.safetensors"
405
+ }
406
+ }
rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f91f87bd9a92e8739289f46162ef308559319763234c64c5b77db9ec569f87f
3
+ size 15429
rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7d39b8b541e3fd455fdaac992f8e531a8b6ecbd342d84bd34ce103caf8c4829
3
+ size 15429
rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ff092a382271ec0416bca1eaebe1589a5c027148f661f515a99be89a41550e9
3
+ size 15429
rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ee31a8654359133d1c40cfb2da8b7350b44cc7eec9bf923c997643420f7061d
3
+ size 15429
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2823a2f9c962c12c9079ef3645dfbbd6f2b1de7f2f0148d54b447c098b659469
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": "<|endoftext|>",
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": "<|endoftext|>",
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,2134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 0.5744833639192531,
6
+ "eval_steps": 500,
7
+ "global_step": 300,
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.0019149445463975106,
14
+ "grad_norm": 2.4355921745300293,
15
+ "learning_rate": 0.0,
16
+ "loss": 0.5195,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.003829889092795021,
21
+ "grad_norm": 2.444409132003784,
22
+ "learning_rate": 6.369426751592358e-08,
23
+ "loss": 0.543,
24
+ "step": 2
25
+ },
26
+ {
27
+ "epoch": 0.005744833639192532,
28
+ "grad_norm": 2.3453526496887207,
29
+ "learning_rate": 1.2738853503184715e-07,
30
+ "loss": 0.5273,
31
+ "step": 3
32
+ },
33
+ {
34
+ "epoch": 0.007659778185590042,
35
+ "grad_norm": 2.0779857635498047,
36
+ "learning_rate": 1.9108280254777072e-07,
37
+ "loss": 0.4805,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 0.009574722731987553,
42
+ "grad_norm": 2.307081699371338,
43
+ "learning_rate": 2.547770700636943e-07,
44
+ "loss": 0.4609,
45
+ "step": 5
46
+ },
47
+ {
48
+ "epoch": 0.011489667278385064,
49
+ "grad_norm": 2.1092047691345215,
50
+ "learning_rate": 3.1847133757961787e-07,
51
+ "loss": 0.4219,
52
+ "step": 6
53
+ },
54
+ {
55
+ "epoch": 0.013404611824782574,
56
+ "grad_norm": 2.4406685829162598,
57
+ "learning_rate": 3.8216560509554143e-07,
58
+ "loss": 0.5273,
59
+ "step": 7
60
+ },
61
+ {
62
+ "epoch": 0.015319556371180085,
63
+ "grad_norm": 2.5096800327301025,
64
+ "learning_rate": 4.45859872611465e-07,
65
+ "loss": 0.5781,
66
+ "step": 8
67
+ },
68
+ {
69
+ "epoch": 0.017234500917577594,
70
+ "grad_norm": 2.025543451309204,
71
+ "learning_rate": 5.095541401273886e-07,
72
+ "loss": 0.4355,
73
+ "step": 9
74
+ },
75
+ {
76
+ "epoch": 0.019149445463975106,
77
+ "grad_norm": 2.0597877502441406,
78
+ "learning_rate": 5.732484076433121e-07,
79
+ "loss": 0.4902,
80
+ "step": 10
81
+ },
82
+ {
83
+ "epoch": 0.021064390010372615,
84
+ "grad_norm": 2.492584466934204,
85
+ "learning_rate": 6.369426751592357e-07,
86
+ "loss": 0.6055,
87
+ "step": 11
88
+ },
89
+ {
90
+ "epoch": 0.022979334556770127,
91
+ "grad_norm": 1.8612791299819946,
92
+ "learning_rate": 7.006369426751592e-07,
93
+ "loss": 0.457,
94
+ "step": 12
95
+ },
96
+ {
97
+ "epoch": 0.024894279103167636,
98
+ "grad_norm": 1.9757673740386963,
99
+ "learning_rate": 7.643312101910829e-07,
100
+ "loss": 0.5586,
101
+ "step": 13
102
+ },
103
+ {
104
+ "epoch": 0.02680922364956515,
105
+ "grad_norm": 1.6426618099212646,
106
+ "learning_rate": 8.280254777070064e-07,
107
+ "loss": 0.4453,
108
+ "step": 14
109
+ },
110
+ {
111
+ "epoch": 0.028724168195962657,
112
+ "grad_norm": 1.8673598766326904,
113
+ "learning_rate": 8.9171974522293e-07,
114
+ "loss": 0.5586,
115
+ "step": 15
116
+ },
117
+ {
118
+ "epoch": 0.03063911274236017,
119
+ "grad_norm": 1.8291136026382446,
120
+ "learning_rate": 9.554140127388537e-07,
121
+ "loss": 0.5156,
122
+ "step": 16
123
+ },
124
+ {
125
+ "epoch": 0.03255405728875768,
126
+ "grad_norm": 1.7877495288848877,
127
+ "learning_rate": 1.0191082802547772e-06,
128
+ "loss": 0.5586,
129
+ "step": 17
130
+ },
131
+ {
132
+ "epoch": 0.03446900183515519,
133
+ "grad_norm": 1.5062263011932373,
134
+ "learning_rate": 1.0828025477707007e-06,
135
+ "loss": 0.5273,
136
+ "step": 18
137
+ },
138
+ {
139
+ "epoch": 0.0363839463815527,
140
+ "grad_norm": 1.7692209482192993,
141
+ "learning_rate": 1.1464968152866242e-06,
142
+ "loss": 0.6055,
143
+ "step": 19
144
+ },
145
+ {
146
+ "epoch": 0.03829889092795021,
147
+ "grad_norm": 1.4987772703170776,
148
+ "learning_rate": 1.210191082802548e-06,
149
+ "loss": 0.5156,
150
+ "step": 20
151
+ },
152
+ {
153
+ "epoch": 0.040213835474347724,
154
+ "grad_norm": 1.499037742614746,
155
+ "learning_rate": 1.2738853503184715e-06,
156
+ "loss": 0.5625,
157
+ "step": 21
158
+ },
159
+ {
160
+ "epoch": 0.04212878002074523,
161
+ "grad_norm": 1.3796921968460083,
162
+ "learning_rate": 1.337579617834395e-06,
163
+ "loss": 0.5312,
164
+ "step": 22
165
+ },
166
+ {
167
+ "epoch": 0.04404372456714274,
168
+ "grad_norm": 1.1836010217666626,
169
+ "learning_rate": 1.4012738853503185e-06,
170
+ "loss": 0.5,
171
+ "step": 23
172
+ },
173
+ {
174
+ "epoch": 0.045958669113540254,
175
+ "grad_norm": 0.9325675964355469,
176
+ "learning_rate": 1.4649681528662422e-06,
177
+ "loss": 0.5117,
178
+ "step": 24
179
+ },
180
+ {
181
+ "epoch": 0.047873613659937767,
182
+ "grad_norm": 0.9935901165008545,
183
+ "learning_rate": 1.5286624203821657e-06,
184
+ "loss": 0.4707,
185
+ "step": 25
186
+ },
187
+ {
188
+ "epoch": 0.04978855820633527,
189
+ "grad_norm": 1.0810490846633911,
190
+ "learning_rate": 1.5923566878980892e-06,
191
+ "loss": 0.4453,
192
+ "step": 26
193
+ },
194
+ {
195
+ "epoch": 0.051703502752732784,
196
+ "grad_norm": 1.1079798936843872,
197
+ "learning_rate": 1.6560509554140127e-06,
198
+ "loss": 0.4844,
199
+ "step": 27
200
+ },
201
+ {
202
+ "epoch": 0.0536184472991303,
203
+ "grad_norm": 1.0377357006072998,
204
+ "learning_rate": 1.7197452229299363e-06,
205
+ "loss": 0.498,
206
+ "step": 28
207
+ },
208
+ {
209
+ "epoch": 0.05553339184552781,
210
+ "grad_norm": 0.7516281604766846,
211
+ "learning_rate": 1.78343949044586e-06,
212
+ "loss": 0.3398,
213
+ "step": 29
214
+ },
215
+ {
216
+ "epoch": 0.057448336391925314,
217
+ "grad_norm": 0.7505989670753479,
218
+ "learning_rate": 1.8471337579617835e-06,
219
+ "loss": 0.457,
220
+ "step": 30
221
+ },
222
+ {
223
+ "epoch": 0.05936328093832283,
224
+ "grad_norm": 0.6712049245834351,
225
+ "learning_rate": 1.9108280254777074e-06,
226
+ "loss": 0.4922,
227
+ "step": 31
228
+ },
229
+ {
230
+ "epoch": 0.06127822548472034,
231
+ "grad_norm": 0.7440502047538757,
232
+ "learning_rate": 1.974522292993631e-06,
233
+ "loss": 0.4648,
234
+ "step": 32
235
+ },
236
+ {
237
+ "epoch": 0.06319317003111785,
238
+ "grad_norm": 0.7507379055023193,
239
+ "learning_rate": 2.0382165605095544e-06,
240
+ "loss": 0.4102,
241
+ "step": 33
242
+ },
243
+ {
244
+ "epoch": 0.06510811457751536,
245
+ "grad_norm": 1.0105549097061157,
246
+ "learning_rate": 2.101910828025478e-06,
247
+ "loss": 0.4844,
248
+ "step": 34
249
+ },
250
+ {
251
+ "epoch": 0.06702305912391288,
252
+ "grad_norm": 0.8056528568267822,
253
+ "learning_rate": 2.1656050955414015e-06,
254
+ "loss": 0.4023,
255
+ "step": 35
256
+ },
257
+ {
258
+ "epoch": 0.06893800367031037,
259
+ "grad_norm": 0.80513596534729,
260
+ "learning_rate": 2.229299363057325e-06,
261
+ "loss": 0.4531,
262
+ "step": 36
263
+ },
264
+ {
265
+ "epoch": 0.07085294821670789,
266
+ "grad_norm": 0.6895999908447266,
267
+ "learning_rate": 2.2929936305732485e-06,
268
+ "loss": 0.416,
269
+ "step": 37
270
+ },
271
+ {
272
+ "epoch": 0.0727678927631054,
273
+ "grad_norm": 0.6521788835525513,
274
+ "learning_rate": 2.356687898089172e-06,
275
+ "loss": 0.3281,
276
+ "step": 38
277
+ },
278
+ {
279
+ "epoch": 0.07468283730950291,
280
+ "grad_norm": 1.1881077289581299,
281
+ "learning_rate": 2.420382165605096e-06,
282
+ "loss": 0.4629,
283
+ "step": 39
284
+ },
285
+ {
286
+ "epoch": 0.07659778185590042,
287
+ "grad_norm": 0.7610136866569519,
288
+ "learning_rate": 2.4840764331210194e-06,
289
+ "loss": 0.4922,
290
+ "step": 40
291
+ },
292
+ {
293
+ "epoch": 0.07851272640229794,
294
+ "grad_norm": 0.6756831407546997,
295
+ "learning_rate": 2.547770700636943e-06,
296
+ "loss": 0.5117,
297
+ "step": 41
298
+ },
299
+ {
300
+ "epoch": 0.08042767094869545,
301
+ "grad_norm": 0.5855818390846252,
302
+ "learning_rate": 2.6114649681528665e-06,
303
+ "loss": 0.4277,
304
+ "step": 42
305
+ },
306
+ {
307
+ "epoch": 0.08234261549509296,
308
+ "grad_norm": 0.5638097524642944,
309
+ "learning_rate": 2.67515923566879e-06,
310
+ "loss": 0.4629,
311
+ "step": 43
312
+ },
313
+ {
314
+ "epoch": 0.08425756004149046,
315
+ "grad_norm": 0.4795784056186676,
316
+ "learning_rate": 2.7388535031847135e-06,
317
+ "loss": 0.457,
318
+ "step": 44
319
+ },
320
+ {
321
+ "epoch": 0.08617250458788797,
322
+ "grad_norm": 0.44129636883735657,
323
+ "learning_rate": 2.802547770700637e-06,
324
+ "loss": 0.4199,
325
+ "step": 45
326
+ },
327
+ {
328
+ "epoch": 0.08808744913428548,
329
+ "grad_norm": 0.5452600717544556,
330
+ "learning_rate": 2.8662420382165605e-06,
331
+ "loss": 0.4883,
332
+ "step": 46
333
+ },
334
+ {
335
+ "epoch": 0.090002393680683,
336
+ "grad_norm": 0.5549207925796509,
337
+ "learning_rate": 2.9299363057324844e-06,
338
+ "loss": 0.4336,
339
+ "step": 47
340
+ },
341
+ {
342
+ "epoch": 0.09191733822708051,
343
+ "grad_norm": 0.4318218231201172,
344
+ "learning_rate": 2.993630573248408e-06,
345
+ "loss": 0.3633,
346
+ "step": 48
347
+ },
348
+ {
349
+ "epoch": 0.09383228277347802,
350
+ "grad_norm": 0.4986816942691803,
351
+ "learning_rate": 3.0573248407643314e-06,
352
+ "loss": 0.3926,
353
+ "step": 49
354
+ },
355
+ {
356
+ "epoch": 0.09574722731987553,
357
+ "grad_norm": 0.4866129159927368,
358
+ "learning_rate": 3.121019108280255e-06,
359
+ "loss": 0.418,
360
+ "step": 50
361
+ },
362
+ {
363
+ "epoch": 0.09766217186627305,
364
+ "grad_norm": 0.6105746626853943,
365
+ "learning_rate": 3.1847133757961785e-06,
366
+ "loss": 0.4707,
367
+ "step": 51
368
+ },
369
+ {
370
+ "epoch": 0.09957711641267054,
371
+ "grad_norm": 0.5020173192024231,
372
+ "learning_rate": 3.248407643312102e-06,
373
+ "loss": 0.4707,
374
+ "step": 52
375
+ },
376
+ {
377
+ "epoch": 0.10149206095906806,
378
+ "grad_norm": 0.36393049359321594,
379
+ "learning_rate": 3.3121019108280255e-06,
380
+ "loss": 0.3926,
381
+ "step": 53
382
+ },
383
+ {
384
+ "epoch": 0.10340700550546557,
385
+ "grad_norm": 0.45811325311660767,
386
+ "learning_rate": 3.375796178343949e-06,
387
+ "loss": 0.4492,
388
+ "step": 54
389
+ },
390
+ {
391
+ "epoch": 0.10532195005186308,
392
+ "grad_norm": 0.5363308191299438,
393
+ "learning_rate": 3.4394904458598725e-06,
394
+ "loss": 0.3613,
395
+ "step": 55
396
+ },
397
+ {
398
+ "epoch": 0.1072368945982606,
399
+ "grad_norm": 0.48611095547676086,
400
+ "learning_rate": 3.5031847133757964e-06,
401
+ "loss": 0.4434,
402
+ "step": 56
403
+ },
404
+ {
405
+ "epoch": 0.1091518391446581,
406
+ "grad_norm": 0.4395770728588104,
407
+ "learning_rate": 3.56687898089172e-06,
408
+ "loss": 0.4668,
409
+ "step": 57
410
+ },
411
+ {
412
+ "epoch": 0.11106678369105562,
413
+ "grad_norm": 0.43419352173805237,
414
+ "learning_rate": 3.6305732484076435e-06,
415
+ "loss": 0.4512,
416
+ "step": 58
417
+ },
418
+ {
419
+ "epoch": 0.11298172823745313,
420
+ "grad_norm": 0.4470672607421875,
421
+ "learning_rate": 3.694267515923567e-06,
422
+ "loss": 0.4863,
423
+ "step": 59
424
+ },
425
+ {
426
+ "epoch": 0.11489667278385063,
427
+ "grad_norm": 0.40022385120391846,
428
+ "learning_rate": 3.757961783439491e-06,
429
+ "loss": 0.4141,
430
+ "step": 60
431
+ },
432
+ {
433
+ "epoch": 0.11681161733024814,
434
+ "grad_norm": 0.4839700162410736,
435
+ "learning_rate": 3.821656050955415e-06,
436
+ "loss": 0.543,
437
+ "step": 61
438
+ },
439
+ {
440
+ "epoch": 0.11872656187664565,
441
+ "grad_norm": 0.37022727727890015,
442
+ "learning_rate": 3.885350318471338e-06,
443
+ "loss": 0.4629,
444
+ "step": 62
445
+ },
446
+ {
447
+ "epoch": 0.12064150642304317,
448
+ "grad_norm": 0.4015008509159088,
449
+ "learning_rate": 3.949044585987262e-06,
450
+ "loss": 0.4473,
451
+ "step": 63
452
+ },
453
+ {
454
+ "epoch": 0.12255645096944068,
455
+ "grad_norm": 0.33814293146133423,
456
+ "learning_rate": 4.012738853503185e-06,
457
+ "loss": 0.3594,
458
+ "step": 64
459
+ },
460
+ {
461
+ "epoch": 0.12447139551583819,
462
+ "grad_norm": 0.38957205414772034,
463
+ "learning_rate": 4.076433121019109e-06,
464
+ "loss": 0.4688,
465
+ "step": 65
466
+ },
467
+ {
468
+ "epoch": 0.1263863400622357,
469
+ "grad_norm": 0.34749555587768555,
470
+ "learning_rate": 4.140127388535032e-06,
471
+ "loss": 0.4004,
472
+ "step": 66
473
+ },
474
+ {
475
+ "epoch": 0.12830128460863321,
476
+ "grad_norm": 0.408210813999176,
477
+ "learning_rate": 4.203821656050956e-06,
478
+ "loss": 0.4941,
479
+ "step": 67
480
+ },
481
+ {
482
+ "epoch": 0.13021622915503073,
483
+ "grad_norm": 0.35355207324028015,
484
+ "learning_rate": 4.26751592356688e-06,
485
+ "loss": 0.3594,
486
+ "step": 68
487
+ },
488
+ {
489
+ "epoch": 0.13213117370142824,
490
+ "grad_norm": 0.48519861698150635,
491
+ "learning_rate": 4.331210191082803e-06,
492
+ "loss": 0.4902,
493
+ "step": 69
494
+ },
495
+ {
496
+ "epoch": 0.13404611824782575,
497
+ "grad_norm": 0.3278568387031555,
498
+ "learning_rate": 4.394904458598727e-06,
499
+ "loss": 0.3945,
500
+ "step": 70
501
+ },
502
+ {
503
+ "epoch": 0.13596106279422326,
504
+ "grad_norm": 0.4168219566345215,
505
+ "learning_rate": 4.45859872611465e-06,
506
+ "loss": 0.416,
507
+ "step": 71
508
+ },
509
+ {
510
+ "epoch": 0.13787600734062075,
511
+ "grad_norm": 0.3659290373325348,
512
+ "learning_rate": 4.522292993630574e-06,
513
+ "loss": 0.4375,
514
+ "step": 72
515
+ },
516
+ {
517
+ "epoch": 0.13979095188701826,
518
+ "grad_norm": 0.3873862624168396,
519
+ "learning_rate": 4.585987261146497e-06,
520
+ "loss": 0.3965,
521
+ "step": 73
522
+ },
523
+ {
524
+ "epoch": 0.14170589643341577,
525
+ "grad_norm": 0.38224056363105774,
526
+ "learning_rate": 4.649681528662421e-06,
527
+ "loss": 0.4648,
528
+ "step": 74
529
+ },
530
+ {
531
+ "epoch": 0.14362084097981329,
532
+ "grad_norm": 0.36365070939064026,
533
+ "learning_rate": 4.713375796178344e-06,
534
+ "loss": 0.3672,
535
+ "step": 75
536
+ },
537
+ {
538
+ "epoch": 0.1455357855262108,
539
+ "grad_norm": 0.3808673918247223,
540
+ "learning_rate": 4.777070063694268e-06,
541
+ "loss": 0.3789,
542
+ "step": 76
543
+ },
544
+ {
545
+ "epoch": 0.1474507300726083,
546
+ "grad_norm": 0.3691989779472351,
547
+ "learning_rate": 4.840764331210192e-06,
548
+ "loss": 0.4258,
549
+ "step": 77
550
+ },
551
+ {
552
+ "epoch": 0.14936567461900582,
553
+ "grad_norm": 0.4533417820930481,
554
+ "learning_rate": 4.904458598726115e-06,
555
+ "loss": 0.5,
556
+ "step": 78
557
+ },
558
+ {
559
+ "epoch": 0.15128061916540333,
560
+ "grad_norm": 0.34389302134513855,
561
+ "learning_rate": 4.968152866242039e-06,
562
+ "loss": 0.3828,
563
+ "step": 79
564
+ },
565
+ {
566
+ "epoch": 0.15319556371180085,
567
+ "grad_norm": 0.35934531688690186,
568
+ "learning_rate": 5.031847133757962e-06,
569
+ "loss": 0.4375,
570
+ "step": 80
571
+ },
572
+ {
573
+ "epoch": 0.15511050825819836,
574
+ "grad_norm": 0.3186410367488861,
575
+ "learning_rate": 5.095541401273886e-06,
576
+ "loss": 0.3848,
577
+ "step": 81
578
+ },
579
+ {
580
+ "epoch": 0.15702545280459587,
581
+ "grad_norm": 0.3838176727294922,
582
+ "learning_rate": 5.159235668789809e-06,
583
+ "loss": 0.3379,
584
+ "step": 82
585
+ },
586
+ {
587
+ "epoch": 0.15894039735099338,
588
+ "grad_norm": 0.3711152672767639,
589
+ "learning_rate": 5.222929936305733e-06,
590
+ "loss": 0.3906,
591
+ "step": 83
592
+ },
593
+ {
594
+ "epoch": 0.1608553418973909,
595
+ "grad_norm": 0.33732864260673523,
596
+ "learning_rate": 5.286624203821657e-06,
597
+ "loss": 0.4316,
598
+ "step": 84
599
+ },
600
+ {
601
+ "epoch": 0.1627702864437884,
602
+ "grad_norm": 0.4067969024181366,
603
+ "learning_rate": 5.35031847133758e-06,
604
+ "loss": 0.3418,
605
+ "step": 85
606
+ },
607
+ {
608
+ "epoch": 0.16468523099018592,
609
+ "grad_norm": 0.3334014415740967,
610
+ "learning_rate": 5.414012738853504e-06,
611
+ "loss": 0.3398,
612
+ "step": 86
613
+ },
614
+ {
615
+ "epoch": 0.16660017553658343,
616
+ "grad_norm": 0.30455130338668823,
617
+ "learning_rate": 5.477707006369427e-06,
618
+ "loss": 0.3594,
619
+ "step": 87
620
+ },
621
+ {
622
+ "epoch": 0.16851512008298092,
623
+ "grad_norm": 0.445254385471344,
624
+ "learning_rate": 5.541401273885351e-06,
625
+ "loss": 0.457,
626
+ "step": 88
627
+ },
628
+ {
629
+ "epoch": 0.17043006462937843,
630
+ "grad_norm": 0.3656286299228668,
631
+ "learning_rate": 5.605095541401274e-06,
632
+ "loss": 0.4199,
633
+ "step": 89
634
+ },
635
+ {
636
+ "epoch": 0.17234500917577594,
637
+ "grad_norm": 0.40646082162857056,
638
+ "learning_rate": 5.668789808917198e-06,
639
+ "loss": 0.3984,
640
+ "step": 90
641
+ },
642
+ {
643
+ "epoch": 0.17425995372217346,
644
+ "grad_norm": 0.3945332467556,
645
+ "learning_rate": 5.732484076433121e-06,
646
+ "loss": 0.3594,
647
+ "step": 91
648
+ },
649
+ {
650
+ "epoch": 0.17617489826857097,
651
+ "grad_norm": 0.3301292359828949,
652
+ "learning_rate": 5.796178343949045e-06,
653
+ "loss": 0.4199,
654
+ "step": 92
655
+ },
656
+ {
657
+ "epoch": 0.17808984281496848,
658
+ "grad_norm": 0.3358660042285919,
659
+ "learning_rate": 5.859872611464969e-06,
660
+ "loss": 0.3535,
661
+ "step": 93
662
+ },
663
+ {
664
+ "epoch": 0.180004787361366,
665
+ "grad_norm": 0.35072633624076843,
666
+ "learning_rate": 5.923566878980892e-06,
667
+ "loss": 0.4414,
668
+ "step": 94
669
+ },
670
+ {
671
+ "epoch": 0.1819197319077635,
672
+ "grad_norm": 0.3340066075325012,
673
+ "learning_rate": 5.987261146496816e-06,
674
+ "loss": 0.3945,
675
+ "step": 95
676
+ },
677
+ {
678
+ "epoch": 0.18383467645416102,
679
+ "grad_norm": 0.31716787815093994,
680
+ "learning_rate": 6.050955414012739e-06,
681
+ "loss": 0.3516,
682
+ "step": 96
683
+ },
684
+ {
685
+ "epoch": 0.18574962100055853,
686
+ "grad_norm": 0.3251139223575592,
687
+ "learning_rate": 6.114649681528663e-06,
688
+ "loss": 0.3848,
689
+ "step": 97
690
+ },
691
+ {
692
+ "epoch": 0.18766456554695604,
693
+ "grad_norm": 0.30106034874916077,
694
+ "learning_rate": 6.178343949044586e-06,
695
+ "loss": 0.3555,
696
+ "step": 98
697
+ },
698
+ {
699
+ "epoch": 0.18957951009335355,
700
+ "grad_norm": 0.3289436399936676,
701
+ "learning_rate": 6.24203821656051e-06,
702
+ "loss": 0.3203,
703
+ "step": 99
704
+ },
705
+ {
706
+ "epoch": 0.19149445463975107,
707
+ "grad_norm": 0.4102315902709961,
708
+ "learning_rate": 6.305732484076433e-06,
709
+ "loss": 0.4316,
710
+ "step": 100
711
+ },
712
+ {
713
+ "epoch": 0.19340939918614858,
714
+ "grad_norm": 0.34562960267066956,
715
+ "learning_rate": 6.369426751592357e-06,
716
+ "loss": 0.3496,
717
+ "step": 101
718
+ },
719
+ {
720
+ "epoch": 0.1953243437325461,
721
+ "grad_norm": 0.35827019810676575,
722
+ "learning_rate": 6.433121019108281e-06,
723
+ "loss": 0.3984,
724
+ "step": 102
725
+ },
726
+ {
727
+ "epoch": 0.19723928827894358,
728
+ "grad_norm": 0.33068418502807617,
729
+ "learning_rate": 6.496815286624204e-06,
730
+ "loss": 0.3105,
731
+ "step": 103
732
+ },
733
+ {
734
+ "epoch": 0.1991542328253411,
735
+ "grad_norm": 0.34721487760543823,
736
+ "learning_rate": 6.560509554140128e-06,
737
+ "loss": 0.4023,
738
+ "step": 104
739
+ },
740
+ {
741
+ "epoch": 0.2010691773717386,
742
+ "grad_norm": 0.409750759601593,
743
+ "learning_rate": 6.624203821656051e-06,
744
+ "loss": 0.4258,
745
+ "step": 105
746
+ },
747
+ {
748
+ "epoch": 0.2029841219181361,
749
+ "grad_norm": 0.3398571312427521,
750
+ "learning_rate": 6.687898089171975e-06,
751
+ "loss": 0.373,
752
+ "step": 106
753
+ },
754
+ {
755
+ "epoch": 0.20489906646453362,
756
+ "grad_norm": 0.34012889862060547,
757
+ "learning_rate": 6.751592356687898e-06,
758
+ "loss": 0.3379,
759
+ "step": 107
760
+ },
761
+ {
762
+ "epoch": 0.20681401101093114,
763
+ "grad_norm": 0.33973219990730286,
764
+ "learning_rate": 6.815286624203822e-06,
765
+ "loss": 0.3672,
766
+ "step": 108
767
+ },
768
+ {
769
+ "epoch": 0.20872895555732865,
770
+ "grad_norm": 0.3657017648220062,
771
+ "learning_rate": 6.878980891719745e-06,
772
+ "loss": 0.3457,
773
+ "step": 109
774
+ },
775
+ {
776
+ "epoch": 0.21064390010372616,
777
+ "grad_norm": 0.4519689679145813,
778
+ "learning_rate": 6.942675159235669e-06,
779
+ "loss": 0.3828,
780
+ "step": 110
781
+ },
782
+ {
783
+ "epoch": 0.21255884465012367,
784
+ "grad_norm": 0.3746054768562317,
785
+ "learning_rate": 7.006369426751593e-06,
786
+ "loss": 0.377,
787
+ "step": 111
788
+ },
789
+ {
790
+ "epoch": 0.2144737891965212,
791
+ "grad_norm": 0.4097052812576294,
792
+ "learning_rate": 7.070063694267516e-06,
793
+ "loss": 0.4609,
794
+ "step": 112
795
+ },
796
+ {
797
+ "epoch": 0.2163887337429187,
798
+ "grad_norm": 0.3271676003932953,
799
+ "learning_rate": 7.13375796178344e-06,
800
+ "loss": 0.3438,
801
+ "step": 113
802
+ },
803
+ {
804
+ "epoch": 0.2183036782893162,
805
+ "grad_norm": 0.3513050973415375,
806
+ "learning_rate": 7.197452229299363e-06,
807
+ "loss": 0.4375,
808
+ "step": 114
809
+ },
810
+ {
811
+ "epoch": 0.22021862283571372,
812
+ "grad_norm": 0.3622526228427887,
813
+ "learning_rate": 7.261146496815287e-06,
814
+ "loss": 0.4121,
815
+ "step": 115
816
+ },
817
+ {
818
+ "epoch": 0.22213356738211124,
819
+ "grad_norm": 0.3314346671104431,
820
+ "learning_rate": 7.32484076433121e-06,
821
+ "loss": 0.4023,
822
+ "step": 116
823
+ },
824
+ {
825
+ "epoch": 0.22404851192850875,
826
+ "grad_norm": 0.33853384852409363,
827
+ "learning_rate": 7.388535031847134e-06,
828
+ "loss": 0.3496,
829
+ "step": 117
830
+ },
831
+ {
832
+ "epoch": 0.22596345647490626,
833
+ "grad_norm": 0.3633553683757782,
834
+ "learning_rate": 7.452229299363057e-06,
835
+ "loss": 0.3613,
836
+ "step": 118
837
+ },
838
+ {
839
+ "epoch": 0.22787840102130374,
840
+ "grad_norm": 0.33034729957580566,
841
+ "learning_rate": 7.515923566878982e-06,
842
+ "loss": 0.3672,
843
+ "step": 119
844
+ },
845
+ {
846
+ "epoch": 0.22979334556770126,
847
+ "grad_norm": 0.6564728617668152,
848
+ "learning_rate": 7.579617834394906e-06,
849
+ "loss": 0.3672,
850
+ "step": 120
851
+ },
852
+ {
853
+ "epoch": 0.23170829011409877,
854
+ "grad_norm": 0.3335916996002197,
855
+ "learning_rate": 7.64331210191083e-06,
856
+ "loss": 0.3809,
857
+ "step": 121
858
+ },
859
+ {
860
+ "epoch": 0.23362323466049628,
861
+ "grad_norm": 0.3193455934524536,
862
+ "learning_rate": 7.707006369426753e-06,
863
+ "loss": 0.3086,
864
+ "step": 122
865
+ },
866
+ {
867
+ "epoch": 0.2355381792068938,
868
+ "grad_norm": 0.39426565170288086,
869
+ "learning_rate": 7.770700636942676e-06,
870
+ "loss": 0.3066,
871
+ "step": 123
872
+ },
873
+ {
874
+ "epoch": 0.2374531237532913,
875
+ "grad_norm": 0.3445550799369812,
876
+ "learning_rate": 7.8343949044586e-06,
877
+ "loss": 0.3652,
878
+ "step": 124
879
+ },
880
+ {
881
+ "epoch": 0.23936806829968882,
882
+ "grad_norm": 0.3657853901386261,
883
+ "learning_rate": 7.898089171974524e-06,
884
+ "loss": 0.3633,
885
+ "step": 125
886
+ },
887
+ {
888
+ "epoch": 0.24128301284608633,
889
+ "grad_norm": 0.36185649037361145,
890
+ "learning_rate": 7.961783439490447e-06,
891
+ "loss": 0.3438,
892
+ "step": 126
893
+ },
894
+ {
895
+ "epoch": 0.24319795739248384,
896
+ "grad_norm": 0.40025272965431213,
897
+ "learning_rate": 8.02547770700637e-06,
898
+ "loss": 0.3574,
899
+ "step": 127
900
+ },
901
+ {
902
+ "epoch": 0.24511290193888136,
903
+ "grad_norm": 0.4066087007522583,
904
+ "learning_rate": 8.089171974522295e-06,
905
+ "loss": 0.4668,
906
+ "step": 128
907
+ },
908
+ {
909
+ "epoch": 0.24702784648527887,
910
+ "grad_norm": 0.33924514055252075,
911
+ "learning_rate": 8.152866242038218e-06,
912
+ "loss": 0.3652,
913
+ "step": 129
914
+ },
915
+ {
916
+ "epoch": 0.24894279103167638,
917
+ "grad_norm": 0.347211629152298,
918
+ "learning_rate": 8.21656050955414e-06,
919
+ "loss": 0.3809,
920
+ "step": 130
921
+ },
922
+ {
923
+ "epoch": 0.2508577355780739,
924
+ "grad_norm": 0.35744917392730713,
925
+ "learning_rate": 8.280254777070064e-06,
926
+ "loss": 0.3828,
927
+ "step": 131
928
+ },
929
+ {
930
+ "epoch": 0.2527726801244714,
931
+ "grad_norm": 0.3828674256801605,
932
+ "learning_rate": 8.343949044585989e-06,
933
+ "loss": 0.416,
934
+ "step": 132
935
+ },
936
+ {
937
+ "epoch": 0.2546876246708689,
938
+ "grad_norm": 0.39746707677841187,
939
+ "learning_rate": 8.407643312101912e-06,
940
+ "loss": 0.4023,
941
+ "step": 133
942
+ },
943
+ {
944
+ "epoch": 0.25660256921726643,
945
+ "grad_norm": 0.35075193643569946,
946
+ "learning_rate": 8.471337579617835e-06,
947
+ "loss": 0.3828,
948
+ "step": 134
949
+ },
950
+ {
951
+ "epoch": 0.25851751376366394,
952
+ "grad_norm": 0.36559295654296875,
953
+ "learning_rate": 8.53503184713376e-06,
954
+ "loss": 0.3633,
955
+ "step": 135
956
+ },
957
+ {
958
+ "epoch": 0.26043245831006145,
959
+ "grad_norm": 0.3440432846546173,
960
+ "learning_rate": 8.598726114649683e-06,
961
+ "loss": 0.3418,
962
+ "step": 136
963
+ },
964
+ {
965
+ "epoch": 0.26234740285645897,
966
+ "grad_norm": 0.3704967796802521,
967
+ "learning_rate": 8.662420382165606e-06,
968
+ "loss": 0.3789,
969
+ "step": 137
970
+ },
971
+ {
972
+ "epoch": 0.2642623474028565,
973
+ "grad_norm": 0.3533952534198761,
974
+ "learning_rate": 8.726114649681529e-06,
975
+ "loss": 0.375,
976
+ "step": 138
977
+ },
978
+ {
979
+ "epoch": 0.266177291949254,
980
+ "grad_norm": 0.35461661219596863,
981
+ "learning_rate": 8.789808917197454e-06,
982
+ "loss": 0.3516,
983
+ "step": 139
984
+ },
985
+ {
986
+ "epoch": 0.2680922364956515,
987
+ "grad_norm": 0.36203712224960327,
988
+ "learning_rate": 8.853503184713377e-06,
989
+ "loss": 0.375,
990
+ "step": 140
991
+ },
992
+ {
993
+ "epoch": 0.270007181042049,
994
+ "grad_norm": 0.3293781876564026,
995
+ "learning_rate": 8.9171974522293e-06,
996
+ "loss": 0.3379,
997
+ "step": 141
998
+ },
999
+ {
1000
+ "epoch": 0.27192212558844653,
1001
+ "grad_norm": 0.32773709297180176,
1002
+ "learning_rate": 8.980891719745225e-06,
1003
+ "loss": 0.3379,
1004
+ "step": 142
1005
+ },
1006
+ {
1007
+ "epoch": 0.273837070134844,
1008
+ "grad_norm": 0.4453182816505432,
1009
+ "learning_rate": 9.044585987261148e-06,
1010
+ "loss": 0.5117,
1011
+ "step": 143
1012
+ },
1013
+ {
1014
+ "epoch": 0.2757520146812415,
1015
+ "grad_norm": 0.41457095742225647,
1016
+ "learning_rate": 9.10828025477707e-06,
1017
+ "loss": 0.3574,
1018
+ "step": 144
1019
+ },
1020
+ {
1021
+ "epoch": 0.277666959227639,
1022
+ "grad_norm": 0.41834110021591187,
1023
+ "learning_rate": 9.171974522292994e-06,
1024
+ "loss": 0.3906,
1025
+ "step": 145
1026
+ },
1027
+ {
1028
+ "epoch": 0.2795819037740365,
1029
+ "grad_norm": 0.35413509607315063,
1030
+ "learning_rate": 9.235668789808919e-06,
1031
+ "loss": 0.4336,
1032
+ "step": 146
1033
+ },
1034
+ {
1035
+ "epoch": 0.28149684832043403,
1036
+ "grad_norm": 0.3722779154777527,
1037
+ "learning_rate": 9.299363057324842e-06,
1038
+ "loss": 0.3086,
1039
+ "step": 147
1040
+ },
1041
+ {
1042
+ "epoch": 0.28341179286683155,
1043
+ "grad_norm": 0.3540852665901184,
1044
+ "learning_rate": 9.363057324840765e-06,
1045
+ "loss": 0.3633,
1046
+ "step": 148
1047
+ },
1048
+ {
1049
+ "epoch": 0.28532673741322906,
1050
+ "grad_norm": 0.3304201662540436,
1051
+ "learning_rate": 9.426751592356688e-06,
1052
+ "loss": 0.3027,
1053
+ "step": 149
1054
+ },
1055
+ {
1056
+ "epoch": 0.28724168195962657,
1057
+ "grad_norm": 0.3253211975097656,
1058
+ "learning_rate": 9.490445859872613e-06,
1059
+ "loss": 0.2773,
1060
+ "step": 150
1061
+ },
1062
+ {
1063
+ "epoch": 0.2891566265060241,
1064
+ "grad_norm": 0.39088380336761475,
1065
+ "learning_rate": 9.554140127388536e-06,
1066
+ "loss": 0.3086,
1067
+ "step": 151
1068
+ },
1069
+ {
1070
+ "epoch": 0.2910715710524216,
1071
+ "grad_norm": 0.3674003779888153,
1072
+ "learning_rate": 9.617834394904459e-06,
1073
+ "loss": 0.3867,
1074
+ "step": 152
1075
+ },
1076
+ {
1077
+ "epoch": 0.2929865155988191,
1078
+ "grad_norm": 0.42949748039245605,
1079
+ "learning_rate": 9.681528662420384e-06,
1080
+ "loss": 0.3535,
1081
+ "step": 153
1082
+ },
1083
+ {
1084
+ "epoch": 0.2949014601452166,
1085
+ "grad_norm": 0.3864225447177887,
1086
+ "learning_rate": 9.745222929936307e-06,
1087
+ "loss": 0.373,
1088
+ "step": 154
1089
+ },
1090
+ {
1091
+ "epoch": 0.29681640469161413,
1092
+ "grad_norm": 0.4238653779029846,
1093
+ "learning_rate": 9.80891719745223e-06,
1094
+ "loss": 0.3789,
1095
+ "step": 155
1096
+ },
1097
+ {
1098
+ "epoch": 0.29873134923801165,
1099
+ "grad_norm": 0.38426122069358826,
1100
+ "learning_rate": 9.872611464968153e-06,
1101
+ "loss": 0.332,
1102
+ "step": 156
1103
+ },
1104
+ {
1105
+ "epoch": 0.30064629378440916,
1106
+ "grad_norm": 0.37728747725486755,
1107
+ "learning_rate": 9.936305732484078e-06,
1108
+ "loss": 0.375,
1109
+ "step": 157
1110
+ },
1111
+ {
1112
+ "epoch": 0.30256123833080667,
1113
+ "grad_norm": 0.39007872343063354,
1114
+ "learning_rate": 1e-05,
1115
+ "loss": 0.4551,
1116
+ "step": 158
1117
+ },
1118
+ {
1119
+ "epoch": 0.3044761828772042,
1120
+ "grad_norm": 0.41649481654167175,
1121
+ "learning_rate": 9.999987624288363e-06,
1122
+ "loss": 0.4238,
1123
+ "step": 159
1124
+ },
1125
+ {
1126
+ "epoch": 0.3063911274236017,
1127
+ "grad_norm": 0.37433379888534546,
1128
+ "learning_rate": 9.999950497214712e-06,
1129
+ "loss": 0.3438,
1130
+ "step": 160
1131
+ },
1132
+ {
1133
+ "epoch": 0.3083060719699992,
1134
+ "grad_norm": 0.42663007974624634,
1135
+ "learning_rate": 9.999888618962839e-06,
1136
+ "loss": 0.3105,
1137
+ "step": 161
1138
+ },
1139
+ {
1140
+ "epoch": 0.3102210165163967,
1141
+ "grad_norm": 0.3587310314178467,
1142
+ "learning_rate": 9.999801989839055e-06,
1143
+ "loss": 0.3105,
1144
+ "step": 162
1145
+ },
1146
+ {
1147
+ "epoch": 0.31213596106279423,
1148
+ "grad_norm": 0.35394129157066345,
1149
+ "learning_rate": 9.999690610272203e-06,
1150
+ "loss": 0.2832,
1151
+ "step": 163
1152
+ },
1153
+ {
1154
+ "epoch": 0.31405090560919174,
1155
+ "grad_norm": 0.3573514223098755,
1156
+ "learning_rate": 9.999554480813642e-06,
1157
+ "loss": 0.3145,
1158
+ "step": 164
1159
+ },
1160
+ {
1161
+ "epoch": 0.31596585015558926,
1162
+ "grad_norm": 0.38047319650650024,
1163
+ "learning_rate": 9.999393602137252e-06,
1164
+ "loss": 0.3008,
1165
+ "step": 165
1166
+ },
1167
+ {
1168
+ "epoch": 0.31788079470198677,
1169
+ "grad_norm": 0.41491907835006714,
1170
+ "learning_rate": 9.999207975039429e-06,
1171
+ "loss": 0.3848,
1172
+ "step": 166
1173
+ },
1174
+ {
1175
+ "epoch": 0.3197957392483843,
1176
+ "grad_norm": 0.3877142369747162,
1177
+ "learning_rate": 9.998997600439078e-06,
1178
+ "loss": 0.3594,
1179
+ "step": 167
1180
+ },
1181
+ {
1182
+ "epoch": 0.3217106837947818,
1183
+ "grad_norm": 0.3370790481567383,
1184
+ "learning_rate": 9.998762479377613e-06,
1185
+ "loss": 0.2695,
1186
+ "step": 168
1187
+ },
1188
+ {
1189
+ "epoch": 0.3236256283411793,
1190
+ "grad_norm": 0.4250260293483734,
1191
+ "learning_rate": 9.998502613018952e-06,
1192
+ "loss": 0.3008,
1193
+ "step": 169
1194
+ },
1195
+ {
1196
+ "epoch": 0.3255405728875768,
1197
+ "grad_norm": 0.3558523952960968,
1198
+ "learning_rate": 9.998218002649507e-06,
1199
+ "loss": 0.2754,
1200
+ "step": 170
1201
+ },
1202
+ {
1203
+ "epoch": 0.32745551743397433,
1204
+ "grad_norm": 0.3442358672618866,
1205
+ "learning_rate": 9.99790864967818e-06,
1206
+ "loss": 0.3008,
1207
+ "step": 171
1208
+ },
1209
+ {
1210
+ "epoch": 0.32937046198037184,
1211
+ "grad_norm": 0.4215598702430725,
1212
+ "learning_rate": 9.997574555636355e-06,
1213
+ "loss": 0.3867,
1214
+ "step": 172
1215
+ },
1216
+ {
1217
+ "epoch": 0.33128540652676935,
1218
+ "grad_norm": 0.422977089881897,
1219
+ "learning_rate": 9.997215722177895e-06,
1220
+ "loss": 0.3066,
1221
+ "step": 173
1222
+ },
1223
+ {
1224
+ "epoch": 0.33320035107316687,
1225
+ "grad_norm": 0.3850831389427185,
1226
+ "learning_rate": 9.996832151079127e-06,
1227
+ "loss": 0.332,
1228
+ "step": 174
1229
+ },
1230
+ {
1231
+ "epoch": 0.3351152956195643,
1232
+ "grad_norm": 0.46243324875831604,
1233
+ "learning_rate": 9.996423844238836e-06,
1234
+ "loss": 0.3613,
1235
+ "step": 175
1236
+ },
1237
+ {
1238
+ "epoch": 0.33703024016596184,
1239
+ "grad_norm": 0.44479626417160034,
1240
+ "learning_rate": 9.995990803678259e-06,
1241
+ "loss": 0.3574,
1242
+ "step": 176
1243
+ },
1244
+ {
1245
+ "epoch": 0.33894518471235935,
1246
+ "grad_norm": 0.4255305230617523,
1247
+ "learning_rate": 9.995533031541069e-06,
1248
+ "loss": 0.3711,
1249
+ "step": 177
1250
+ },
1251
+ {
1252
+ "epoch": 0.34086012925875686,
1253
+ "grad_norm": 0.3565676510334015,
1254
+ "learning_rate": 9.995050530093366e-06,
1255
+ "loss": 0.3652,
1256
+ "step": 178
1257
+ },
1258
+ {
1259
+ "epoch": 0.3427750738051544,
1260
+ "grad_norm": 0.5011817216873169,
1261
+ "learning_rate": 9.994543301723674e-06,
1262
+ "loss": 0.375,
1263
+ "step": 179
1264
+ },
1265
+ {
1266
+ "epoch": 0.3446900183515519,
1267
+ "grad_norm": 0.4056403934955597,
1268
+ "learning_rate": 9.994011348942915e-06,
1269
+ "loss": 0.3418,
1270
+ "step": 180
1271
+ },
1272
+ {
1273
+ "epoch": 0.3466049628979494,
1274
+ "grad_norm": 0.39417311549186707,
1275
+ "learning_rate": 9.993454674384408e-06,
1276
+ "loss": 0.3027,
1277
+ "step": 181
1278
+ },
1279
+ {
1280
+ "epoch": 0.3485199074443469,
1281
+ "grad_norm": 0.31448638439178467,
1282
+ "learning_rate": 9.992873280803848e-06,
1283
+ "loss": 0.3066,
1284
+ "step": 182
1285
+ },
1286
+ {
1287
+ "epoch": 0.3504348519907444,
1288
+ "grad_norm": 0.39453354477882385,
1289
+ "learning_rate": 9.992267171079302e-06,
1290
+ "loss": 0.3887,
1291
+ "step": 183
1292
+ },
1293
+ {
1294
+ "epoch": 0.35234979653714193,
1295
+ "grad_norm": 0.36697134375572205,
1296
+ "learning_rate": 9.991636348211185e-06,
1297
+ "loss": 0.3301,
1298
+ "step": 184
1299
+ },
1300
+ {
1301
+ "epoch": 0.35426474108353945,
1302
+ "grad_norm": 0.4324952960014343,
1303
+ "learning_rate": 9.990980815322246e-06,
1304
+ "loss": 0.375,
1305
+ "step": 185
1306
+ },
1307
+ {
1308
+ "epoch": 0.35617968562993696,
1309
+ "grad_norm": 0.39873865246772766,
1310
+ "learning_rate": 9.990300575657565e-06,
1311
+ "loss": 0.3867,
1312
+ "step": 186
1313
+ },
1314
+ {
1315
+ "epoch": 0.35809463017633447,
1316
+ "grad_norm": 0.40679872035980225,
1317
+ "learning_rate": 9.989595632584518e-06,
1318
+ "loss": 0.3711,
1319
+ "step": 187
1320
+ },
1321
+ {
1322
+ "epoch": 0.360009574722732,
1323
+ "grad_norm": 0.3605036437511444,
1324
+ "learning_rate": 9.988865989592778e-06,
1325
+ "loss": 0.3438,
1326
+ "step": 188
1327
+ },
1328
+ {
1329
+ "epoch": 0.3619245192691295,
1330
+ "grad_norm": 0.4955857992172241,
1331
+ "learning_rate": 9.988111650294279e-06,
1332
+ "loss": 0.2969,
1333
+ "step": 189
1334
+ },
1335
+ {
1336
+ "epoch": 0.363839463815527,
1337
+ "grad_norm": 0.3720203936100006,
1338
+ "learning_rate": 9.987332618423221e-06,
1339
+ "loss": 0.3633,
1340
+ "step": 190
1341
+ },
1342
+ {
1343
+ "epoch": 0.3657544083619245,
1344
+ "grad_norm": 0.4176885187625885,
1345
+ "learning_rate": 9.986528897836032e-06,
1346
+ "loss": 0.3672,
1347
+ "step": 191
1348
+ },
1349
+ {
1350
+ "epoch": 0.36766935290832203,
1351
+ "grad_norm": 0.38222536444664,
1352
+ "learning_rate": 9.985700492511356e-06,
1353
+ "loss": 0.4141,
1354
+ "step": 192
1355
+ },
1356
+ {
1357
+ "epoch": 0.36958429745471955,
1358
+ "grad_norm": 0.35066160559654236,
1359
+ "learning_rate": 9.984847406550036e-06,
1360
+ "loss": 0.3438,
1361
+ "step": 193
1362
+ },
1363
+ {
1364
+ "epoch": 0.37149924200111706,
1365
+ "grad_norm": 0.35708916187286377,
1366
+ "learning_rate": 9.983969644175092e-06,
1367
+ "loss": 0.291,
1368
+ "step": 194
1369
+ },
1370
+ {
1371
+ "epoch": 0.37341418654751457,
1372
+ "grad_norm": 0.36304759979248047,
1373
+ "learning_rate": 9.983067209731696e-06,
1374
+ "loss": 0.3672,
1375
+ "step": 195
1376
+ },
1377
+ {
1378
+ "epoch": 0.3753291310939121,
1379
+ "grad_norm": 0.3975924849510193,
1380
+ "learning_rate": 9.982140107687156e-06,
1381
+ "loss": 0.3262,
1382
+ "step": 196
1383
+ },
1384
+ {
1385
+ "epoch": 0.3772440756403096,
1386
+ "grad_norm": 0.40323784947395325,
1387
+ "learning_rate": 9.98118834263089e-06,
1388
+ "loss": 0.3633,
1389
+ "step": 197
1390
+ },
1391
+ {
1392
+ "epoch": 0.3791590201867071,
1393
+ "grad_norm": 0.4162772595882416,
1394
+ "learning_rate": 9.980211919274407e-06,
1395
+ "loss": 0.4023,
1396
+ "step": 198
1397
+ },
1398
+ {
1399
+ "epoch": 0.3810739647331046,
1400
+ "grad_norm": 0.3952171206474304,
1401
+ "learning_rate": 9.979210842451282e-06,
1402
+ "loss": 0.3438,
1403
+ "step": 199
1404
+ },
1405
+ {
1406
+ "epoch": 0.38298890927950213,
1407
+ "grad_norm": 0.3455185890197754,
1408
+ "learning_rate": 9.978185117117126e-06,
1409
+ "loss": 0.3164,
1410
+ "step": 200
1411
+ },
1412
+ {
1413
+ "epoch": 0.38490385382589964,
1414
+ "grad_norm": 0.3772539794445038,
1415
+ "learning_rate": 9.977134748349575e-06,
1416
+ "loss": 0.3516,
1417
+ "step": 201
1418
+ },
1419
+ {
1420
+ "epoch": 0.38681879837229716,
1421
+ "grad_norm": 0.284085750579834,
1422
+ "learning_rate": 9.976059741348252e-06,
1423
+ "loss": 0.21,
1424
+ "step": 202
1425
+ },
1426
+ {
1427
+ "epoch": 0.38873374291869467,
1428
+ "grad_norm": 0.4230060875415802,
1429
+ "learning_rate": 9.974960101434747e-06,
1430
+ "loss": 0.3301,
1431
+ "step": 203
1432
+ },
1433
+ {
1434
+ "epoch": 0.3906486874650922,
1435
+ "grad_norm": 0.384288489818573,
1436
+ "learning_rate": 9.973835834052593e-06,
1437
+ "loss": 0.3203,
1438
+ "step": 204
1439
+ },
1440
+ {
1441
+ "epoch": 0.3925636320114897,
1442
+ "grad_norm": 0.3772657513618469,
1443
+ "learning_rate": 9.972686944767231e-06,
1444
+ "loss": 0.3672,
1445
+ "step": 205
1446
+ },
1447
+ {
1448
+ "epoch": 0.39447857655788715,
1449
+ "grad_norm": 0.36377066373825073,
1450
+ "learning_rate": 9.971513439265992e-06,
1451
+ "loss": 0.3496,
1452
+ "step": 206
1453
+ },
1454
+ {
1455
+ "epoch": 0.39639352110428466,
1456
+ "grad_norm": 0.5106296539306641,
1457
+ "learning_rate": 9.970315323358061e-06,
1458
+ "loss": 0.3164,
1459
+ "step": 207
1460
+ },
1461
+ {
1462
+ "epoch": 0.3983084656506822,
1463
+ "grad_norm": 0.406767874956131,
1464
+ "learning_rate": 9.969092602974453e-06,
1465
+ "loss": 0.4023,
1466
+ "step": 208
1467
+ },
1468
+ {
1469
+ "epoch": 0.4002234101970797,
1470
+ "grad_norm": 0.35188838839530945,
1471
+ "learning_rate": 9.967845284167981e-06,
1472
+ "loss": 0.3477,
1473
+ "step": 209
1474
+ },
1475
+ {
1476
+ "epoch": 0.4021383547434772,
1477
+ "grad_norm": 0.37596458196640015,
1478
+ "learning_rate": 9.96657337311323e-06,
1479
+ "loss": 0.3398,
1480
+ "step": 210
1481
+ },
1482
+ {
1483
+ "epoch": 0.4040532992898747,
1484
+ "grad_norm": 0.32428470253944397,
1485
+ "learning_rate": 9.965276876106523e-06,
1486
+ "loss": 0.2715,
1487
+ "step": 211
1488
+ },
1489
+ {
1490
+ "epoch": 0.4059682438362722,
1491
+ "grad_norm": 0.4191044569015503,
1492
+ "learning_rate": 9.963955799565885e-06,
1493
+ "loss": 0.4102,
1494
+ "step": 212
1495
+ },
1496
+ {
1497
+ "epoch": 0.40788318838266974,
1498
+ "grad_norm": 0.3697478175163269,
1499
+ "learning_rate": 9.962610150031025e-06,
1500
+ "loss": 0.3984,
1501
+ "step": 213
1502
+ },
1503
+ {
1504
+ "epoch": 0.40979813292906725,
1505
+ "grad_norm": 0.4006584882736206,
1506
+ "learning_rate": 9.96123993416329e-06,
1507
+ "loss": 0.3691,
1508
+ "step": 214
1509
+ },
1510
+ {
1511
+ "epoch": 0.41171307747546476,
1512
+ "grad_norm": 0.3929983079433441,
1513
+ "learning_rate": 9.959845158745635e-06,
1514
+ "loss": 0.3262,
1515
+ "step": 215
1516
+ },
1517
+ {
1518
+ "epoch": 0.4136280220218623,
1519
+ "grad_norm": 0.4248427152633667,
1520
+ "learning_rate": 9.9584258306826e-06,
1521
+ "loss": 0.3477,
1522
+ "step": 216
1523
+ },
1524
+ {
1525
+ "epoch": 0.4155429665682598,
1526
+ "grad_norm": 0.369737833738327,
1527
+ "learning_rate": 9.956981957000261e-06,
1528
+ "loss": 0.3945,
1529
+ "step": 217
1530
+ },
1531
+ {
1532
+ "epoch": 0.4174579111146573,
1533
+ "grad_norm": 0.34655651450157166,
1534
+ "learning_rate": 9.955513544846205e-06,
1535
+ "loss": 0.2969,
1536
+ "step": 218
1537
+ },
1538
+ {
1539
+ "epoch": 0.4193728556610548,
1540
+ "grad_norm": 0.4321710467338562,
1541
+ "learning_rate": 9.954020601489488e-06,
1542
+ "loss": 0.3398,
1543
+ "step": 219
1544
+ },
1545
+ {
1546
+ "epoch": 0.4212878002074523,
1547
+ "grad_norm": 0.387251615524292,
1548
+ "learning_rate": 9.952503134320606e-06,
1549
+ "loss": 0.3223,
1550
+ "step": 220
1551
+ },
1552
+ {
1553
+ "epoch": 0.42320274475384984,
1554
+ "grad_norm": 0.4663626551628113,
1555
+ "learning_rate": 9.950961150851454e-06,
1556
+ "loss": 0.4922,
1557
+ "step": 221
1558
+ },
1559
+ {
1560
+ "epoch": 0.42511768930024735,
1561
+ "grad_norm": 0.3990941047668457,
1562
+ "learning_rate": 9.949394658715289e-06,
1563
+ "loss": 0.3965,
1564
+ "step": 222
1565
+ },
1566
+ {
1567
+ "epoch": 0.42703263384664486,
1568
+ "grad_norm": 0.3907487988471985,
1569
+ "learning_rate": 9.94780366566669e-06,
1570
+ "loss": 0.3105,
1571
+ "step": 223
1572
+ },
1573
+ {
1574
+ "epoch": 0.4289475783930424,
1575
+ "grad_norm": 0.3887116611003876,
1576
+ "learning_rate": 9.946188179581529e-06,
1577
+ "loss": 0.3008,
1578
+ "step": 224
1579
+ },
1580
+ {
1581
+ "epoch": 0.4308625229394399,
1582
+ "grad_norm": 0.44479915499687195,
1583
+ "learning_rate": 9.94454820845692e-06,
1584
+ "loss": 0.4258,
1585
+ "step": 225
1586
+ },
1587
+ {
1588
+ "epoch": 0.4327774674858374,
1589
+ "grad_norm": 0.3838413655757904,
1590
+ "learning_rate": 9.942883760411188e-06,
1591
+ "loss": 0.3496,
1592
+ "step": 226
1593
+ },
1594
+ {
1595
+ "epoch": 0.4346924120322349,
1596
+ "grad_norm": 0.4151753783226013,
1597
+ "learning_rate": 9.941194843683826e-06,
1598
+ "loss": 0.4102,
1599
+ "step": 227
1600
+ },
1601
+ {
1602
+ "epoch": 0.4366073565786324,
1603
+ "grad_norm": 0.32539334893226624,
1604
+ "learning_rate": 9.939481466635448e-06,
1605
+ "loss": 0.2852,
1606
+ "step": 228
1607
+ },
1608
+ {
1609
+ "epoch": 0.43852230112502993,
1610
+ "grad_norm": 0.39479121565818787,
1611
+ "learning_rate": 9.937743637747763e-06,
1612
+ "loss": 0.3379,
1613
+ "step": 229
1614
+ },
1615
+ {
1616
+ "epoch": 0.44043724567142745,
1617
+ "grad_norm": 0.39315953850746155,
1618
+ "learning_rate": 9.935981365623516e-06,
1619
+ "loss": 0.3477,
1620
+ "step": 230
1621
+ },
1622
+ {
1623
+ "epoch": 0.44235219021782496,
1624
+ "grad_norm": 0.3778970539569855,
1625
+ "learning_rate": 9.934194658986457e-06,
1626
+ "loss": 0.3711,
1627
+ "step": 231
1628
+ },
1629
+ {
1630
+ "epoch": 0.44426713476422247,
1631
+ "grad_norm": 0.3942454159259796,
1632
+ "learning_rate": 9.93238352668129e-06,
1633
+ "loss": 0.3789,
1634
+ "step": 232
1635
+ },
1636
+ {
1637
+ "epoch": 0.44618207931062,
1638
+ "grad_norm": 0.3276035189628601,
1639
+ "learning_rate": 9.930547977673638e-06,
1640
+ "loss": 0.3242,
1641
+ "step": 233
1642
+ },
1643
+ {
1644
+ "epoch": 0.4480970238570175,
1645
+ "grad_norm": 0.32192081212997437,
1646
+ "learning_rate": 9.928688021049991e-06,
1647
+ "loss": 0.2773,
1648
+ "step": 234
1649
+ },
1650
+ {
1651
+ "epoch": 0.450011968403415,
1652
+ "grad_norm": 0.35930487513542175,
1653
+ "learning_rate": 9.926803666017664e-06,
1654
+ "loss": 0.3438,
1655
+ "step": 235
1656
+ },
1657
+ {
1658
+ "epoch": 0.4519269129498125,
1659
+ "grad_norm": 0.3854064643383026,
1660
+ "learning_rate": 9.924894921904748e-06,
1661
+ "loss": 0.3652,
1662
+ "step": 236
1663
+ },
1664
+ {
1665
+ "epoch": 0.45384185749621003,
1666
+ "grad_norm": 0.40004488825798035,
1667
+ "learning_rate": 9.92296179816007e-06,
1668
+ "loss": 0.3711,
1669
+ "step": 237
1670
+ },
1671
+ {
1672
+ "epoch": 0.4557568020426075,
1673
+ "grad_norm": 0.37695586681365967,
1674
+ "learning_rate": 9.921004304353147e-06,
1675
+ "loss": 0.3477,
1676
+ "step": 238
1677
+ },
1678
+ {
1679
+ "epoch": 0.457671746589005,
1680
+ "grad_norm": 0.3978940546512604,
1681
+ "learning_rate": 9.919022450174126e-06,
1682
+ "loss": 0.3672,
1683
+ "step": 239
1684
+ },
1685
+ {
1686
+ "epoch": 0.4595866911354025,
1687
+ "grad_norm": 0.40706950426101685,
1688
+ "learning_rate": 9.917016245433755e-06,
1689
+ "loss": 0.2852,
1690
+ "step": 240
1691
+ },
1692
+ {
1693
+ "epoch": 0.4615016356818,
1694
+ "grad_norm": 0.370563805103302,
1695
+ "learning_rate": 9.914985700063312e-06,
1696
+ "loss": 0.3535,
1697
+ "step": 241
1698
+ },
1699
+ {
1700
+ "epoch": 0.46341658022819754,
1701
+ "grad_norm": 0.39702001214027405,
1702
+ "learning_rate": 9.912930824114577e-06,
1703
+ "loss": 0.3125,
1704
+ "step": 242
1705
+ },
1706
+ {
1707
+ "epoch": 0.46533152477459505,
1708
+ "grad_norm": 0.35320210456848145,
1709
+ "learning_rate": 9.910851627759773e-06,
1710
+ "loss": 0.3281,
1711
+ "step": 243
1712
+ },
1713
+ {
1714
+ "epoch": 0.46724646932099256,
1715
+ "grad_norm": 0.4427463710308075,
1716
+ "learning_rate": 9.90874812129151e-06,
1717
+ "loss": 0.3398,
1718
+ "step": 244
1719
+ },
1720
+ {
1721
+ "epoch": 0.4691614138673901,
1722
+ "grad_norm": 0.35988548398017883,
1723
+ "learning_rate": 9.906620315122745e-06,
1724
+ "loss": 0.293,
1725
+ "step": 245
1726
+ },
1727
+ {
1728
+ "epoch": 0.4710763584137876,
1729
+ "grad_norm": 0.39641326665878296,
1730
+ "learning_rate": 9.904468219786727e-06,
1731
+ "loss": 0.3184,
1732
+ "step": 246
1733
+ },
1734
+ {
1735
+ "epoch": 0.4729913029601851,
1736
+ "grad_norm": 0.3900603652000427,
1737
+ "learning_rate": 9.902291845936938e-06,
1738
+ "loss": 0.3574,
1739
+ "step": 247
1740
+ },
1741
+ {
1742
+ "epoch": 0.4749062475065826,
1743
+ "grad_norm": 0.45603853464126587,
1744
+ "learning_rate": 9.900091204347048e-06,
1745
+ "loss": 0.457,
1746
+ "step": 248
1747
+ },
1748
+ {
1749
+ "epoch": 0.4768211920529801,
1750
+ "grad_norm": 0.3850320279598236,
1751
+ "learning_rate": 9.897866305910861e-06,
1752
+ "loss": 0.3457,
1753
+ "step": 249
1754
+ },
1755
+ {
1756
+ "epoch": 0.47873613659937764,
1757
+ "grad_norm": 0.3480890095233917,
1758
+ "learning_rate": 9.895617161642257e-06,
1759
+ "loss": 0.2969,
1760
+ "step": 250
1761
+ },
1762
+ {
1763
+ "epoch": 0.48065108114577515,
1764
+ "grad_norm": 0.4086163341999054,
1765
+ "learning_rate": 9.893343782675138e-06,
1766
+ "loss": 0.3594,
1767
+ "step": 251
1768
+ },
1769
+ {
1770
+ "epoch": 0.48256602569217266,
1771
+ "grad_norm": 0.3559402823448181,
1772
+ "learning_rate": 9.891046180263382e-06,
1773
+ "loss": 0.2734,
1774
+ "step": 252
1775
+ },
1776
+ {
1777
+ "epoch": 0.4844809702385702,
1778
+ "grad_norm": 0.3534909784793854,
1779
+ "learning_rate": 9.888724365780768e-06,
1780
+ "loss": 0.3301,
1781
+ "step": 253
1782
+ },
1783
+ {
1784
+ "epoch": 0.4863959147849677,
1785
+ "grad_norm": 0.3884546756744385,
1786
+ "learning_rate": 9.886378350720945e-06,
1787
+ "loss": 0.3965,
1788
+ "step": 254
1789
+ },
1790
+ {
1791
+ "epoch": 0.4883108593313652,
1792
+ "grad_norm": 0.364305704832077,
1793
+ "learning_rate": 9.884008146697352e-06,
1794
+ "loss": 0.2617,
1795
+ "step": 255
1796
+ },
1797
+ {
1798
+ "epoch": 0.4902258038777627,
1799
+ "grad_norm": 0.33573174476623535,
1800
+ "learning_rate": 9.881613765443174e-06,
1801
+ "loss": 0.3184,
1802
+ "step": 256
1803
+ },
1804
+ {
1805
+ "epoch": 0.4921407484241602,
1806
+ "grad_norm": 0.3591967821121216,
1807
+ "learning_rate": 9.879195218811282e-06,
1808
+ "loss": 0.2734,
1809
+ "step": 257
1810
+ },
1811
+ {
1812
+ "epoch": 0.49405569297055774,
1813
+ "grad_norm": 0.39021801948547363,
1814
+ "learning_rate": 9.876752518774167e-06,
1815
+ "loss": 0.334,
1816
+ "step": 258
1817
+ },
1818
+ {
1819
+ "epoch": 0.49597063751695525,
1820
+ "grad_norm": 0.36973780393600464,
1821
+ "learning_rate": 9.87428567742389e-06,
1822
+ "loss": 0.2812,
1823
+ "step": 259
1824
+ },
1825
+ {
1826
+ "epoch": 0.49788558206335276,
1827
+ "grad_norm": 0.3602698743343353,
1828
+ "learning_rate": 9.87179470697202e-06,
1829
+ "loss": 0.2793,
1830
+ "step": 260
1831
+ },
1832
+ {
1833
+ "epoch": 0.4998005266097503,
1834
+ "grad_norm": 0.4194125831127167,
1835
+ "learning_rate": 9.86927961974957e-06,
1836
+ "loss": 0.3711,
1837
+ "step": 261
1838
+ },
1839
+ {
1840
+ "epoch": 0.5017154711561478,
1841
+ "grad_norm": 0.39133426547050476,
1842
+ "learning_rate": 9.866740428206935e-06,
1843
+ "loss": 0.291,
1844
+ "step": 262
1845
+ },
1846
+ {
1847
+ "epoch": 0.5036304157025453,
1848
+ "grad_norm": 0.3631567060947418,
1849
+ "learning_rate": 9.864177144913837e-06,
1850
+ "loss": 0.3145,
1851
+ "step": 263
1852
+ },
1853
+ {
1854
+ "epoch": 0.5055453602489428,
1855
+ "grad_norm": 0.3521382212638855,
1856
+ "learning_rate": 9.86158978255926e-06,
1857
+ "loss": 0.3184,
1858
+ "step": 264
1859
+ },
1860
+ {
1861
+ "epoch": 0.5074603047953403,
1862
+ "grad_norm": 0.26583707332611084,
1863
+ "learning_rate": 9.85897835395138e-06,
1864
+ "loss": 0.2197,
1865
+ "step": 265
1866
+ },
1867
+ {
1868
+ "epoch": 0.5093752493417378,
1869
+ "grad_norm": 0.39313459396362305,
1870
+ "learning_rate": 9.856342872017515e-06,
1871
+ "loss": 0.3477,
1872
+ "step": 266
1873
+ },
1874
+ {
1875
+ "epoch": 0.5112901938881353,
1876
+ "grad_norm": 0.3507327139377594,
1877
+ "learning_rate": 9.85368334980405e-06,
1878
+ "loss": 0.332,
1879
+ "step": 267
1880
+ },
1881
+ {
1882
+ "epoch": 0.5132051384345329,
1883
+ "grad_norm": 0.36972326040267944,
1884
+ "learning_rate": 9.85099980047638e-06,
1885
+ "loss": 0.3105,
1886
+ "step": 268
1887
+ },
1888
+ {
1889
+ "epoch": 0.5151200829809304,
1890
+ "grad_norm": 0.44454941153526306,
1891
+ "learning_rate": 9.84829223731883e-06,
1892
+ "loss": 0.3984,
1893
+ "step": 269
1894
+ },
1895
+ {
1896
+ "epoch": 0.5170350275273279,
1897
+ "grad_norm": 0.38550686836242676,
1898
+ "learning_rate": 9.845560673734617e-06,
1899
+ "loss": 0.3789,
1900
+ "step": 270
1901
+ },
1902
+ {
1903
+ "epoch": 0.5189499720737254,
1904
+ "grad_norm": 0.32081368565559387,
1905
+ "learning_rate": 9.842805123245756e-06,
1906
+ "loss": 0.2695,
1907
+ "step": 271
1908
+ },
1909
+ {
1910
+ "epoch": 0.5208649166201229,
1911
+ "grad_norm": 0.365355521440506,
1912
+ "learning_rate": 9.840025599493002e-06,
1913
+ "loss": 0.2871,
1914
+ "step": 272
1915
+ },
1916
+ {
1917
+ "epoch": 0.5227798611665204,
1918
+ "grad_norm": 0.39958202838897705,
1919
+ "learning_rate": 9.837222116235793e-06,
1920
+ "loss": 0.3828,
1921
+ "step": 273
1922
+ },
1923
+ {
1924
+ "epoch": 0.5246948057129179,
1925
+ "grad_norm": 0.40972256660461426,
1926
+ "learning_rate": 9.834394687352168e-06,
1927
+ "loss": 0.4688,
1928
+ "step": 274
1929
+ },
1930
+ {
1931
+ "epoch": 0.5266097502593154,
1932
+ "grad_norm": 0.3923720419406891,
1933
+ "learning_rate": 9.831543326838708e-06,
1934
+ "loss": 0.3008,
1935
+ "step": 275
1936
+ },
1937
+ {
1938
+ "epoch": 0.528524694805713,
1939
+ "grad_norm": 0.40133339166641235,
1940
+ "learning_rate": 9.828668048810452e-06,
1941
+ "loss": 0.3457,
1942
+ "step": 276
1943
+ },
1944
+ {
1945
+ "epoch": 0.5304396393521105,
1946
+ "grad_norm": 0.3792482912540436,
1947
+ "learning_rate": 9.82576886750085e-06,
1948
+ "loss": 0.3438,
1949
+ "step": 277
1950
+ },
1951
+ {
1952
+ "epoch": 0.532354583898508,
1953
+ "grad_norm": 0.37136179208755493,
1954
+ "learning_rate": 9.822845797261676e-06,
1955
+ "loss": 0.3359,
1956
+ "step": 278
1957
+ },
1958
+ {
1959
+ "epoch": 0.5342695284449055,
1960
+ "grad_norm": 0.3462713062763214,
1961
+ "learning_rate": 9.819898852562954e-06,
1962
+ "loss": 0.2578,
1963
+ "step": 279
1964
+ },
1965
+ {
1966
+ "epoch": 0.536184472991303,
1967
+ "grad_norm": 0.47859999537467957,
1968
+ "learning_rate": 9.816928047992904e-06,
1969
+ "loss": 0.3789,
1970
+ "step": 280
1971
+ },
1972
+ {
1973
+ "epoch": 0.5380994175377005,
1974
+ "grad_norm": 0.3499022126197815,
1975
+ "learning_rate": 9.813933398257852e-06,
1976
+ "loss": 0.3047,
1977
+ "step": 281
1978
+ },
1979
+ {
1980
+ "epoch": 0.540014362084098,
1981
+ "grad_norm": 0.3872099816799164,
1982
+ "learning_rate": 9.810914918182168e-06,
1983
+ "loss": 0.3203,
1984
+ "step": 282
1985
+ },
1986
+ {
1987
+ "epoch": 0.5419293066304955,
1988
+ "grad_norm": 0.3496979773044586,
1989
+ "learning_rate": 9.807872622708187e-06,
1990
+ "loss": 0.3008,
1991
+ "step": 283
1992
+ },
1993
+ {
1994
+ "epoch": 0.5438442511768931,
1995
+ "grad_norm": 0.39993637800216675,
1996
+ "learning_rate": 9.804806526896138e-06,
1997
+ "loss": 0.3086,
1998
+ "step": 284
1999
+ },
2000
+ {
2001
+ "epoch": 0.5457591957232905,
2002
+ "grad_norm": 0.3726489245891571,
2003
+ "learning_rate": 9.801716645924066e-06,
2004
+ "loss": 0.2949,
2005
+ "step": 285
2006
+ },
2007
+ {
2008
+ "epoch": 0.547674140269688,
2009
+ "grad_norm": 0.5097160935401917,
2010
+ "learning_rate": 9.798602995087764e-06,
2011
+ "loss": 0.2871,
2012
+ "step": 286
2013
+ },
2014
+ {
2015
+ "epoch": 0.5495890848160855,
2016
+ "grad_norm": 0.4128972291946411,
2017
+ "learning_rate": 9.795465589800688e-06,
2018
+ "loss": 0.3848,
2019
+ "step": 287
2020
+ },
2021
+ {
2022
+ "epoch": 0.551504029362483,
2023
+ "grad_norm": 0.35612717270851135,
2024
+ "learning_rate": 9.79230444559389e-06,
2025
+ "loss": 0.3398,
2026
+ "step": 288
2027
+ },
2028
+ {
2029
+ "epoch": 0.5534189739088805,
2030
+ "grad_norm": 0.34881824254989624,
2031
+ "learning_rate": 9.78911957811593e-06,
2032
+ "loss": 0.3281,
2033
+ "step": 289
2034
+ },
2035
+ {
2036
+ "epoch": 0.555333918455278,
2037
+ "grad_norm": 0.35632357001304626,
2038
+ "learning_rate": 9.785911003132811e-06,
2039
+ "loss": 0.2852,
2040
+ "step": 290
2041
+ },
2042
+ {
2043
+ "epoch": 0.5572488630016755,
2044
+ "grad_norm": 0.37318652868270874,
2045
+ "learning_rate": 9.782678736527892e-06,
2046
+ "loss": 0.2871,
2047
+ "step": 291
2048
+ },
2049
+ {
2050
+ "epoch": 0.559163807548073,
2051
+ "grad_norm": 0.44519978761672974,
2052
+ "learning_rate": 9.779422794301812e-06,
2053
+ "loss": 0.3242,
2054
+ "step": 292
2055
+ },
2056
+ {
2057
+ "epoch": 0.5610787520944706,
2058
+ "grad_norm": 0.35489603877067566,
2059
+ "learning_rate": 9.776143192572414e-06,
2060
+ "loss": 0.332,
2061
+ "step": 293
2062
+ },
2063
+ {
2064
+ "epoch": 0.5629936966408681,
2065
+ "grad_norm": 0.42313477396965027,
2066
+ "learning_rate": 9.772839947574658e-06,
2067
+ "loss": 0.3672,
2068
+ "step": 294
2069
+ },
2070
+ {
2071
+ "epoch": 0.5649086411872656,
2072
+ "grad_norm": 0.35833480954170227,
2073
+ "learning_rate": 9.769513075660548e-06,
2074
+ "loss": 0.3203,
2075
+ "step": 295
2076
+ },
2077
+ {
2078
+ "epoch": 0.5668235857336631,
2079
+ "grad_norm": 0.4363710880279541,
2080
+ "learning_rate": 9.766162593299047e-06,
2081
+ "loss": 0.4043,
2082
+ "step": 296
2083
+ },
2084
+ {
2085
+ "epoch": 0.5687385302800606,
2086
+ "grad_norm": 0.42050284147262573,
2087
+ "learning_rate": 9.762788517075994e-06,
2088
+ "loss": 0.459,
2089
+ "step": 297
2090
+ },
2091
+ {
2092
+ "epoch": 0.5706534748264581,
2093
+ "grad_norm": 0.4468521177768707,
2094
+ "learning_rate": 9.75939086369403e-06,
2095
+ "loss": 0.3867,
2096
+ "step": 298
2097
+ },
2098
+ {
2099
+ "epoch": 0.5725684193728556,
2100
+ "grad_norm": 0.40442460775375366,
2101
+ "learning_rate": 9.755969649972507e-06,
2102
+ "loss": 0.3301,
2103
+ "step": 299
2104
+ },
2105
+ {
2106
+ "epoch": 0.5744833639192531,
2107
+ "grad_norm": 0.39085012674331665,
2108
+ "learning_rate": 9.752524892847402e-06,
2109
+ "loss": 0.3145,
2110
+ "step": 300
2111
+ }
2112
+ ],
2113
+ "logging_steps": 1,
2114
+ "max_steps": 1569,
2115
+ "num_input_tokens_seen": 0,
2116
+ "num_train_epochs": 3,
2117
+ "save_steps": 100,
2118
+ "stateful_callbacks": {
2119
+ "TrainerControl": {
2120
+ "args": {
2121
+ "should_epoch_stop": false,
2122
+ "should_evaluate": false,
2123
+ "should_log": false,
2124
+ "should_save": true,
2125
+ "should_training_stop": false
2126
+ },
2127
+ "attributes": {}
2128
+ }
2129
+ },
2130
+ "total_flos": 3.6708373985367163e+18,
2131
+ "train_batch_size": 1,
2132
+ "trial_name": null,
2133
+ "trial_params": null
2134
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92f794fad9d7d9bdfea957c967fd2ea8d2c222cdb66fb0b670295def8cccff31
3
+ size 7889
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)