S2R-data commited on
Commit
ddefe51
·
verified ·
1 Parent(s): 90e5d1a

Upload folder using huggingface_hub

Browse files
added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/apdcephfs/share_302520718/share_info/llm_models/Qwen2-7B-Instruct",
3
+ "architectures": [
4
+ "Qwen2ForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 128245,
8
+ "eos_token_id": 151645,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 3584,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 18944,
13
+ "max_position_embeddings": 32768,
14
+ "max_window_layers": 28,
15
+ "model_type": "qwen2",
16
+ "num_attention_heads": 28,
17
+ "num_hidden_layers": 28,
18
+ "num_key_value_heads": 4,
19
+ "pad_token_id": 151643,
20
+ "rms_norm_eps": 1e-06,
21
+ "rope_theta": 1000000.0,
22
+ "sliding_window": null,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "float32",
25
+ "transformers_version": "4.44.0",
26
+ "use_cache": false,
27
+ "use_sliding_window": false,
28
+ "vocab_size": 151646
29
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.05,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.44.0"
14
+ }
latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step264
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:176dae3d16a3334a5d17b982e0dc82f37c192628c04d0767099771c74ef9c858
3
+ size 4970694768
model-00002-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ac77f62f543270f3d374df282ed2b679a29b8168e7d0e0604bd837e1d744248
3
+ size 4778622352
model-00003-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aed0ce1317aa6a283b21f911cc382bf6bf312ff6348bd66e7c95fd11800dab7f
3
+ size 4932743960
model-00004-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ece7c7521bf018e41d9c413b16799065f3e31f1e81139702c16acaf99622386
3
+ size 4932743992
model-00005-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:895c467810ad250571df4a1afb0a0809b91d50d15b8415c45a0e1b681148bfdf
3
+ size 4998852296
model-00006-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f29fb0bca794ed95ddd5091eeb4a12c407720dd33a65a4f98992f32f895b0e32
3
+ size 3662865184
model-00007-of-00007.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:660c4a515e46e1f77aa4a2107d27d6bc62bb167d8f1b787a3ae8df6052695ddf
3
+ size 2173997184
model.safetensors.index.json ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 30450481152
4
+ },
5
+ "weight_map": {
6
+ "lm_head.weight": "model-00007-of-00007.safetensors",
7
+ "model.embed_tokens.weight": "model-00001-of-00007.safetensors",
8
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00007.safetensors",
9
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00007.safetensors",
10
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00007.safetensors",
11
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00007.safetensors",
12
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00007.safetensors",
13
+ "model.layers.0.self_attn.k_proj.bias": "model-00001-of-00007.safetensors",
14
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00007.safetensors",
15
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00007.safetensors",
16
+ "model.layers.0.self_attn.q_proj.bias": "model-00001-of-00007.safetensors",
17
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00007.safetensors",
18
+ "model.layers.0.self_attn.v_proj.bias": "model-00001-of-00007.safetensors",
19
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00007.safetensors",
20
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00007.safetensors",
21
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00007.safetensors",
22
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00007.safetensors",
23
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00007.safetensors",
24
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00007.safetensors",
25
+ "model.layers.1.self_attn.k_proj.bias": "model-00001-of-00007.safetensors",
26
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00007.safetensors",
27
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00007.safetensors",
28
+ "model.layers.1.self_attn.q_proj.bias": "model-00001-of-00007.safetensors",
29
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00007.safetensors",
30
+ "model.layers.1.self_attn.v_proj.bias": "model-00001-of-00007.safetensors",
31
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00007.safetensors",
32
+ "model.layers.10.input_layernorm.weight": "model-00003-of-00007.safetensors",
33
+ "model.layers.10.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
34
+ "model.layers.10.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
35
+ "model.layers.10.mlp.up_proj.weight": "model-00003-of-00007.safetensors",
36
+ "model.layers.10.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
37
+ "model.layers.10.self_attn.k_proj.bias": "model-00003-of-00007.safetensors",
38
+ "model.layers.10.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
39
+ "model.layers.10.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
40
+ "model.layers.10.self_attn.q_proj.bias": "model-00003-of-00007.safetensors",
41
+ "model.layers.10.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
42
+ "model.layers.10.self_attn.v_proj.bias": "model-00003-of-00007.safetensors",
43
+ "model.layers.10.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
44
+ "model.layers.11.input_layernorm.weight": "model-00003-of-00007.safetensors",
45
+ "model.layers.11.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
46
+ "model.layers.11.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
47
+ "model.layers.11.mlp.up_proj.weight": "model-00003-of-00007.safetensors",
48
+ "model.layers.11.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
49
+ "model.layers.11.self_attn.k_proj.bias": "model-00003-of-00007.safetensors",
50
+ "model.layers.11.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
51
+ "model.layers.11.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
52
+ "model.layers.11.self_attn.q_proj.bias": "model-00003-of-00007.safetensors",
53
+ "model.layers.11.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
54
+ "model.layers.11.self_attn.v_proj.bias": "model-00003-of-00007.safetensors",
55
+ "model.layers.11.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
56
+ "model.layers.12.input_layernorm.weight": "model-00003-of-00007.safetensors",
57
+ "model.layers.12.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
58
+ "model.layers.12.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
59
+ "model.layers.12.mlp.up_proj.weight": "model-00003-of-00007.safetensors",
60
+ "model.layers.12.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
61
+ "model.layers.12.self_attn.k_proj.bias": "model-00003-of-00007.safetensors",
62
+ "model.layers.12.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
63
+ "model.layers.12.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
64
+ "model.layers.12.self_attn.q_proj.bias": "model-00003-of-00007.safetensors",
65
+ "model.layers.12.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
66
+ "model.layers.12.self_attn.v_proj.bias": "model-00003-of-00007.safetensors",
67
+ "model.layers.12.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
68
+ "model.layers.13.input_layernorm.weight": "model-00004-of-00007.safetensors",
69
+ "model.layers.13.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
70
+ "model.layers.13.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
71
+ "model.layers.13.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
72
+ "model.layers.13.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
73
+ "model.layers.13.self_attn.k_proj.bias": "model-00003-of-00007.safetensors",
74
+ "model.layers.13.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
75
+ "model.layers.13.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
76
+ "model.layers.13.self_attn.q_proj.bias": "model-00003-of-00007.safetensors",
77
+ "model.layers.13.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
78
+ "model.layers.13.self_attn.v_proj.bias": "model-00003-of-00007.safetensors",
79
+ "model.layers.13.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
80
+ "model.layers.14.input_layernorm.weight": "model-00004-of-00007.safetensors",
81
+ "model.layers.14.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
82
+ "model.layers.14.mlp.gate_proj.weight": "model-00004-of-00007.safetensors",
83
+ "model.layers.14.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
84
+ "model.layers.14.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
85
+ "model.layers.14.self_attn.k_proj.bias": "model-00004-of-00007.safetensors",
86
+ "model.layers.14.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
87
+ "model.layers.14.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
88
+ "model.layers.14.self_attn.q_proj.bias": "model-00004-of-00007.safetensors",
89
+ "model.layers.14.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
90
+ "model.layers.14.self_attn.v_proj.bias": "model-00004-of-00007.safetensors",
91
+ "model.layers.14.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
92
+ "model.layers.15.input_layernorm.weight": "model-00004-of-00007.safetensors",
93
+ "model.layers.15.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
94
+ "model.layers.15.mlp.gate_proj.weight": "model-00004-of-00007.safetensors",
95
+ "model.layers.15.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
96
+ "model.layers.15.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
97
+ "model.layers.15.self_attn.k_proj.bias": "model-00004-of-00007.safetensors",
98
+ "model.layers.15.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
99
+ "model.layers.15.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
100
+ "model.layers.15.self_attn.q_proj.bias": "model-00004-of-00007.safetensors",
101
+ "model.layers.15.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
102
+ "model.layers.15.self_attn.v_proj.bias": "model-00004-of-00007.safetensors",
103
+ "model.layers.15.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
104
+ "model.layers.16.input_layernorm.weight": "model-00004-of-00007.safetensors",
105
+ "model.layers.16.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
106
+ "model.layers.16.mlp.gate_proj.weight": "model-00004-of-00007.safetensors",
107
+ "model.layers.16.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
108
+ "model.layers.16.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
109
+ "model.layers.16.self_attn.k_proj.bias": "model-00004-of-00007.safetensors",
110
+ "model.layers.16.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
111
+ "model.layers.16.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
112
+ "model.layers.16.self_attn.q_proj.bias": "model-00004-of-00007.safetensors",
113
+ "model.layers.16.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
114
+ "model.layers.16.self_attn.v_proj.bias": "model-00004-of-00007.safetensors",
115
+ "model.layers.16.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
116
+ "model.layers.17.input_layernorm.weight": "model-00004-of-00007.safetensors",
117
+ "model.layers.17.mlp.down_proj.weight": "model-00004-of-00007.safetensors",
118
+ "model.layers.17.mlp.gate_proj.weight": "model-00004-of-00007.safetensors",
119
+ "model.layers.17.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
120
+ "model.layers.17.post_attention_layernorm.weight": "model-00004-of-00007.safetensors",
121
+ "model.layers.17.self_attn.k_proj.bias": "model-00004-of-00007.safetensors",
122
+ "model.layers.17.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
123
+ "model.layers.17.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
124
+ "model.layers.17.self_attn.q_proj.bias": "model-00004-of-00007.safetensors",
125
+ "model.layers.17.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
126
+ "model.layers.17.self_attn.v_proj.bias": "model-00004-of-00007.safetensors",
127
+ "model.layers.17.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
128
+ "model.layers.18.input_layernorm.weight": "model-00005-of-00007.safetensors",
129
+ "model.layers.18.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
130
+ "model.layers.18.mlp.gate_proj.weight": "model-00004-of-00007.safetensors",
131
+ "model.layers.18.mlp.up_proj.weight": "model-00004-of-00007.safetensors",
132
+ "model.layers.18.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
133
+ "model.layers.18.self_attn.k_proj.bias": "model-00004-of-00007.safetensors",
134
+ "model.layers.18.self_attn.k_proj.weight": "model-00004-of-00007.safetensors",
135
+ "model.layers.18.self_attn.o_proj.weight": "model-00004-of-00007.safetensors",
136
+ "model.layers.18.self_attn.q_proj.bias": "model-00004-of-00007.safetensors",
137
+ "model.layers.18.self_attn.q_proj.weight": "model-00004-of-00007.safetensors",
138
+ "model.layers.18.self_attn.v_proj.bias": "model-00004-of-00007.safetensors",
139
+ "model.layers.18.self_attn.v_proj.weight": "model-00004-of-00007.safetensors",
140
+ "model.layers.19.input_layernorm.weight": "model-00005-of-00007.safetensors",
141
+ "model.layers.19.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
142
+ "model.layers.19.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
143
+ "model.layers.19.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
144
+ "model.layers.19.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
145
+ "model.layers.19.self_attn.k_proj.bias": "model-00005-of-00007.safetensors",
146
+ "model.layers.19.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
147
+ "model.layers.19.self_attn.o_proj.weight": "model-00005-of-00007.safetensors",
148
+ "model.layers.19.self_attn.q_proj.bias": "model-00005-of-00007.safetensors",
149
+ "model.layers.19.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
150
+ "model.layers.19.self_attn.v_proj.bias": "model-00005-of-00007.safetensors",
151
+ "model.layers.19.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
152
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00007.safetensors",
153
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00007.safetensors",
154
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00007.safetensors",
155
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00007.safetensors",
156
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00007.safetensors",
157
+ "model.layers.2.self_attn.k_proj.bias": "model-00001-of-00007.safetensors",
158
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00007.safetensors",
159
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00007.safetensors",
160
+ "model.layers.2.self_attn.q_proj.bias": "model-00001-of-00007.safetensors",
161
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00007.safetensors",
162
+ "model.layers.2.self_attn.v_proj.bias": "model-00001-of-00007.safetensors",
163
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00007.safetensors",
164
+ "model.layers.20.input_layernorm.weight": "model-00005-of-00007.safetensors",
165
+ "model.layers.20.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
166
+ "model.layers.20.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
167
+ "model.layers.20.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
168
+ "model.layers.20.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
169
+ "model.layers.20.self_attn.k_proj.bias": "model-00005-of-00007.safetensors",
170
+ "model.layers.20.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
171
+ "model.layers.20.self_attn.o_proj.weight": "model-00005-of-00007.safetensors",
172
+ "model.layers.20.self_attn.q_proj.bias": "model-00005-of-00007.safetensors",
173
+ "model.layers.20.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
174
+ "model.layers.20.self_attn.v_proj.bias": "model-00005-of-00007.safetensors",
175
+ "model.layers.20.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
176
+ "model.layers.21.input_layernorm.weight": "model-00005-of-00007.safetensors",
177
+ "model.layers.21.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
178
+ "model.layers.21.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
179
+ "model.layers.21.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
180
+ "model.layers.21.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
181
+ "model.layers.21.self_attn.k_proj.bias": "model-00005-of-00007.safetensors",
182
+ "model.layers.21.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
183
+ "model.layers.21.self_attn.o_proj.weight": "model-00005-of-00007.safetensors",
184
+ "model.layers.21.self_attn.q_proj.bias": "model-00005-of-00007.safetensors",
185
+ "model.layers.21.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
186
+ "model.layers.21.self_attn.v_proj.bias": "model-00005-of-00007.safetensors",
187
+ "model.layers.21.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
188
+ "model.layers.22.input_layernorm.weight": "model-00005-of-00007.safetensors",
189
+ "model.layers.22.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
190
+ "model.layers.22.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
191
+ "model.layers.22.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
192
+ "model.layers.22.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
193
+ "model.layers.22.self_attn.k_proj.bias": "model-00005-of-00007.safetensors",
194
+ "model.layers.22.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
195
+ "model.layers.22.self_attn.o_proj.weight": "model-00005-of-00007.safetensors",
196
+ "model.layers.22.self_attn.q_proj.bias": "model-00005-of-00007.safetensors",
197
+ "model.layers.22.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
198
+ "model.layers.22.self_attn.v_proj.bias": "model-00005-of-00007.safetensors",
199
+ "model.layers.22.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
200
+ "model.layers.23.input_layernorm.weight": "model-00005-of-00007.safetensors",
201
+ "model.layers.23.mlp.down_proj.weight": "model-00005-of-00007.safetensors",
202
+ "model.layers.23.mlp.gate_proj.weight": "model-00005-of-00007.safetensors",
203
+ "model.layers.23.mlp.up_proj.weight": "model-00005-of-00007.safetensors",
204
+ "model.layers.23.post_attention_layernorm.weight": "model-00005-of-00007.safetensors",
205
+ "model.layers.23.self_attn.k_proj.bias": "model-00005-of-00007.safetensors",
206
+ "model.layers.23.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
207
+ "model.layers.23.self_attn.o_proj.weight": "model-00005-of-00007.safetensors",
208
+ "model.layers.23.self_attn.q_proj.bias": "model-00005-of-00007.safetensors",
209
+ "model.layers.23.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
210
+ "model.layers.23.self_attn.v_proj.bias": "model-00005-of-00007.safetensors",
211
+ "model.layers.23.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
212
+ "model.layers.24.input_layernorm.weight": "model-00006-of-00007.safetensors",
213
+ "model.layers.24.mlp.down_proj.weight": "model-00006-of-00007.safetensors",
214
+ "model.layers.24.mlp.gate_proj.weight": "model-00006-of-00007.safetensors",
215
+ "model.layers.24.mlp.up_proj.weight": "model-00006-of-00007.safetensors",
216
+ "model.layers.24.post_attention_layernorm.weight": "model-00006-of-00007.safetensors",
217
+ "model.layers.24.self_attn.k_proj.bias": "model-00005-of-00007.safetensors",
218
+ "model.layers.24.self_attn.k_proj.weight": "model-00005-of-00007.safetensors",
219
+ "model.layers.24.self_attn.o_proj.weight": "model-00006-of-00007.safetensors",
220
+ "model.layers.24.self_attn.q_proj.bias": "model-00005-of-00007.safetensors",
221
+ "model.layers.24.self_attn.q_proj.weight": "model-00005-of-00007.safetensors",
222
+ "model.layers.24.self_attn.v_proj.bias": "model-00005-of-00007.safetensors",
223
+ "model.layers.24.self_attn.v_proj.weight": "model-00005-of-00007.safetensors",
224
+ "model.layers.25.input_layernorm.weight": "model-00006-of-00007.safetensors",
225
+ "model.layers.25.mlp.down_proj.weight": "model-00006-of-00007.safetensors",
226
+ "model.layers.25.mlp.gate_proj.weight": "model-00006-of-00007.safetensors",
227
+ "model.layers.25.mlp.up_proj.weight": "model-00006-of-00007.safetensors",
228
+ "model.layers.25.post_attention_layernorm.weight": "model-00006-of-00007.safetensors",
229
+ "model.layers.25.self_attn.k_proj.bias": "model-00006-of-00007.safetensors",
230
+ "model.layers.25.self_attn.k_proj.weight": "model-00006-of-00007.safetensors",
231
+ "model.layers.25.self_attn.o_proj.weight": "model-00006-of-00007.safetensors",
232
+ "model.layers.25.self_attn.q_proj.bias": "model-00006-of-00007.safetensors",
233
+ "model.layers.25.self_attn.q_proj.weight": "model-00006-of-00007.safetensors",
234
+ "model.layers.25.self_attn.v_proj.bias": "model-00006-of-00007.safetensors",
235
+ "model.layers.25.self_attn.v_proj.weight": "model-00006-of-00007.safetensors",
236
+ "model.layers.26.input_layernorm.weight": "model-00006-of-00007.safetensors",
237
+ "model.layers.26.mlp.down_proj.weight": "model-00006-of-00007.safetensors",
238
+ "model.layers.26.mlp.gate_proj.weight": "model-00006-of-00007.safetensors",
239
+ "model.layers.26.mlp.up_proj.weight": "model-00006-of-00007.safetensors",
240
+ "model.layers.26.post_attention_layernorm.weight": "model-00006-of-00007.safetensors",
241
+ "model.layers.26.self_attn.k_proj.bias": "model-00006-of-00007.safetensors",
242
+ "model.layers.26.self_attn.k_proj.weight": "model-00006-of-00007.safetensors",
243
+ "model.layers.26.self_attn.o_proj.weight": "model-00006-of-00007.safetensors",
244
+ "model.layers.26.self_attn.q_proj.bias": "model-00006-of-00007.safetensors",
245
+ "model.layers.26.self_attn.q_proj.weight": "model-00006-of-00007.safetensors",
246
+ "model.layers.26.self_attn.v_proj.bias": "model-00006-of-00007.safetensors",
247
+ "model.layers.26.self_attn.v_proj.weight": "model-00006-of-00007.safetensors",
248
+ "model.layers.27.input_layernorm.weight": "model-00006-of-00007.safetensors",
249
+ "model.layers.27.mlp.down_proj.weight": "model-00006-of-00007.safetensors",
250
+ "model.layers.27.mlp.gate_proj.weight": "model-00006-of-00007.safetensors",
251
+ "model.layers.27.mlp.up_proj.weight": "model-00006-of-00007.safetensors",
252
+ "model.layers.27.post_attention_layernorm.weight": "model-00006-of-00007.safetensors",
253
+ "model.layers.27.self_attn.k_proj.bias": "model-00006-of-00007.safetensors",
254
+ "model.layers.27.self_attn.k_proj.weight": "model-00006-of-00007.safetensors",
255
+ "model.layers.27.self_attn.o_proj.weight": "model-00006-of-00007.safetensors",
256
+ "model.layers.27.self_attn.q_proj.bias": "model-00006-of-00007.safetensors",
257
+ "model.layers.27.self_attn.q_proj.weight": "model-00006-of-00007.safetensors",
258
+ "model.layers.27.self_attn.v_proj.bias": "model-00006-of-00007.safetensors",
259
+ "model.layers.27.self_attn.v_proj.weight": "model-00006-of-00007.safetensors",
260
+ "model.layers.3.input_layernorm.weight": "model-00002-of-00007.safetensors",
261
+ "model.layers.3.mlp.down_proj.weight": "model-00002-of-00007.safetensors",
262
+ "model.layers.3.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
263
+ "model.layers.3.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
264
+ "model.layers.3.post_attention_layernorm.weight": "model-00002-of-00007.safetensors",
265
+ "model.layers.3.self_attn.k_proj.bias": "model-00002-of-00007.safetensors",
266
+ "model.layers.3.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
267
+ "model.layers.3.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
268
+ "model.layers.3.self_attn.q_proj.bias": "model-00002-of-00007.safetensors",
269
+ "model.layers.3.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
270
+ "model.layers.3.self_attn.v_proj.bias": "model-00002-of-00007.safetensors",
271
+ "model.layers.3.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
272
+ "model.layers.4.input_layernorm.weight": "model-00002-of-00007.safetensors",
273
+ "model.layers.4.mlp.down_proj.weight": "model-00002-of-00007.safetensors",
274
+ "model.layers.4.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
275
+ "model.layers.4.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
276
+ "model.layers.4.post_attention_layernorm.weight": "model-00002-of-00007.safetensors",
277
+ "model.layers.4.self_attn.k_proj.bias": "model-00002-of-00007.safetensors",
278
+ "model.layers.4.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
279
+ "model.layers.4.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
280
+ "model.layers.4.self_attn.q_proj.bias": "model-00002-of-00007.safetensors",
281
+ "model.layers.4.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
282
+ "model.layers.4.self_attn.v_proj.bias": "model-00002-of-00007.safetensors",
283
+ "model.layers.4.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
284
+ "model.layers.5.input_layernorm.weight": "model-00002-of-00007.safetensors",
285
+ "model.layers.5.mlp.down_proj.weight": "model-00002-of-00007.safetensors",
286
+ "model.layers.5.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
287
+ "model.layers.5.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
288
+ "model.layers.5.post_attention_layernorm.weight": "model-00002-of-00007.safetensors",
289
+ "model.layers.5.self_attn.k_proj.bias": "model-00002-of-00007.safetensors",
290
+ "model.layers.5.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
291
+ "model.layers.5.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
292
+ "model.layers.5.self_attn.q_proj.bias": "model-00002-of-00007.safetensors",
293
+ "model.layers.5.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
294
+ "model.layers.5.self_attn.v_proj.bias": "model-00002-of-00007.safetensors",
295
+ "model.layers.5.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
296
+ "model.layers.6.input_layernorm.weight": "model-00002-of-00007.safetensors",
297
+ "model.layers.6.mlp.down_proj.weight": "model-00002-of-00007.safetensors",
298
+ "model.layers.6.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
299
+ "model.layers.6.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
300
+ "model.layers.6.post_attention_layernorm.weight": "model-00002-of-00007.safetensors",
301
+ "model.layers.6.self_attn.k_proj.bias": "model-00002-of-00007.safetensors",
302
+ "model.layers.6.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
303
+ "model.layers.6.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
304
+ "model.layers.6.self_attn.q_proj.bias": "model-00002-of-00007.safetensors",
305
+ "model.layers.6.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
306
+ "model.layers.6.self_attn.v_proj.bias": "model-00002-of-00007.safetensors",
307
+ "model.layers.6.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
308
+ "model.layers.7.input_layernorm.weight": "model-00002-of-00007.safetensors",
309
+ "model.layers.7.mlp.down_proj.weight": "model-00002-of-00007.safetensors",
310
+ "model.layers.7.mlp.gate_proj.weight": "model-00002-of-00007.safetensors",
311
+ "model.layers.7.mlp.up_proj.weight": "model-00002-of-00007.safetensors",
312
+ "model.layers.7.post_attention_layernorm.weight": "model-00002-of-00007.safetensors",
313
+ "model.layers.7.self_attn.k_proj.bias": "model-00002-of-00007.safetensors",
314
+ "model.layers.7.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
315
+ "model.layers.7.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
316
+ "model.layers.7.self_attn.q_proj.bias": "model-00002-of-00007.safetensors",
317
+ "model.layers.7.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
318
+ "model.layers.7.self_attn.v_proj.bias": "model-00002-of-00007.safetensors",
319
+ "model.layers.7.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
320
+ "model.layers.8.input_layernorm.weight": "model-00003-of-00007.safetensors",
321
+ "model.layers.8.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
322
+ "model.layers.8.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
323
+ "model.layers.8.mlp.up_proj.weight": "model-00003-of-00007.safetensors",
324
+ "model.layers.8.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
325
+ "model.layers.8.self_attn.k_proj.bias": "model-00002-of-00007.safetensors",
326
+ "model.layers.8.self_attn.k_proj.weight": "model-00002-of-00007.safetensors",
327
+ "model.layers.8.self_attn.o_proj.weight": "model-00002-of-00007.safetensors",
328
+ "model.layers.8.self_attn.q_proj.bias": "model-00002-of-00007.safetensors",
329
+ "model.layers.8.self_attn.q_proj.weight": "model-00002-of-00007.safetensors",
330
+ "model.layers.8.self_attn.v_proj.bias": "model-00002-of-00007.safetensors",
331
+ "model.layers.8.self_attn.v_proj.weight": "model-00002-of-00007.safetensors",
332
+ "model.layers.9.input_layernorm.weight": "model-00003-of-00007.safetensors",
333
+ "model.layers.9.mlp.down_proj.weight": "model-00003-of-00007.safetensors",
334
+ "model.layers.9.mlp.gate_proj.weight": "model-00003-of-00007.safetensors",
335
+ "model.layers.9.mlp.up_proj.weight": "model-00003-of-00007.safetensors",
336
+ "model.layers.9.post_attention_layernorm.weight": "model-00003-of-00007.safetensors",
337
+ "model.layers.9.self_attn.k_proj.bias": "model-00003-of-00007.safetensors",
338
+ "model.layers.9.self_attn.k_proj.weight": "model-00003-of-00007.safetensors",
339
+ "model.layers.9.self_attn.o_proj.weight": "model-00003-of-00007.safetensors",
340
+ "model.layers.9.self_attn.q_proj.bias": "model-00003-of-00007.safetensors",
341
+ "model.layers.9.self_attn.q_proj.weight": "model-00003-of-00007.safetensors",
342
+ "model.layers.9.self_attn.v_proj.bias": "model-00003-of-00007.safetensors",
343
+ "model.layers.9.self_attn.v_proj.weight": "model-00003-of-00007.safetensors",
344
+ "model.norm.weight": "model-00006-of-00007.safetensors"
345
+ }
346
+ }
rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0de366c30136073a3a0c31ebb2290502f8ef75fd54efda5df6f56df25b5a7f00
3
+ size 15984
rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9554f22a6d5ae3d3b393b6837eb160c7754c32cf937825b966efe64d23557e02
3
+ size 15984
rng_state_10.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77f10e2c825a754a9c6ebe0682597681d28e0cbeecb75697cb3e66e5a74b8217
3
+ size 15997
rng_state_11.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ea005818cdfea76a36d837575c12cf5dd4239d36edd73ead7d2da31bc72f231
3
+ size 15997
rng_state_12.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0fa9fa6615cce499065a24a80775bee104f61fbb47adbceecf910f7f2a4f5dd
3
+ size 15997
rng_state_13.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46d67f16a06bc40f5566d22f62fa5f3ac47f4d1549a83e82450b9b3fb3fa9be8
3
+ size 15997
rng_state_14.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51983b4af2244563270a66ff5c09efb20f071e45cae88450e708597fcc607772
3
+ size 15997
rng_state_15.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc0daa6984ccf29cbc9fed94ddd7d3dad9d2fb6c8d333d177e0c84a650a2052e
3
+ size 15997
rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d4f78e693f6792779c6128da5fd5741738c1f7d8c48a5746e810301f3efc6f02
3
+ size 15984
rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c46645cc186d565845666fc3529f7f823aabb50d2a24f09b467322f3441ae074
3
+ size 15984
rng_state_4.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e255eb35b3057165a202ef2df03bef9d5adb4dcf592f474ae36641677c5e5b5
3
+ size 15984
rng_state_5.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdf4217d0873c8f7ea406f930eeee3c047a55ffd054662d4a520a5ec0f0e09f0
3
+ size 15984
rng_state_6.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62c79c54f22bad76685ed183b0d934ca2d367b939106013b4f56f6b0888bb0da
3
+ size 15984
rng_state_7.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ecb2dd1a04220fa26737941337203e9901682ee83a2e40e12a28ab6529f00e40
3
+ size 15984
rng_state_8.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b42876183d46d0cf8fd02e8cbb96f226fae4814352be9d47fdc4d41368585c4f
3
+ size 15984
rng_state_9.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36bca8713d5d11f600c73c13d8a7c601b48d2522d30fedaeba165ce1455c00f9
3
+ size 15984
special_tokens_map.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "bos_token": {
7
+ "content": "<s>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "eos_token": {
14
+ "content": "<|im_end|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "pad_token": {
21
+ "content": "<|endoftext|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "unk_token": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "128244": {
5
+ "content": "<unk>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "128245": {
13
+ "content": "<s>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151643": {
21
+ "content": "<|endoftext|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151644": {
29
+ "content": "<|im_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151645": {
37
+ "content": "<|im_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "additional_special_tokens": [
46
+ "<|im_start|>",
47
+ "<|im_end|>"
48
+ ],
49
+ "bos_token": "<s>",
50
+ "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
51
+ "clean_up_tokenization_spaces": false,
52
+ "eos_token": "<|im_end|>",
53
+ "errors": "replace",
54
+ "model_max_length": 10000,
55
+ "pad_token": "<|endoftext|>",
56
+ "padding_side": "right",
57
+ "split_special_tokens": false,
58
+ "tokenizer_class": "Qwen2Tokenizer",
59
+ "truncation_side": "left",
60
+ "unk_token": "<unk>"
61
+ }
trainer_state.json ADDED
@@ -0,0 +1,2433 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 2000.0,
6
+ "global_step": 264,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.011363636363636364,
13
+ "grad_norm": 5.703509592126629,
14
+ "kl": 0.0,
15
+ "learning_rate": 5.000000000000001e-07,
16
+ "loss": 0.5688,
17
+ "step": 1,
18
+ "step_loss": 0.5533416867256165
19
+ },
20
+ {
21
+ "epoch": 0.022727272727272728,
22
+ "grad_norm": 2.414278384928731,
23
+ "kl": 0.1508263200521469,
24
+ "learning_rate": 2.438044511330269e-06,
25
+ "loss": 0.4403,
26
+ "step": 2,
27
+ "step_loss": 0.5107974410057068
28
+ },
29
+ {
30
+ "epoch": 0.03409090909090909,
31
+ "grad_norm": 2.5451897972697393,
32
+ "kl": 0.19495707750320435,
33
+ "learning_rate": 3.5717278751869343e-06,
34
+ "loss": 0.4802,
35
+ "step": 3,
36
+ "step_loss": 0.5942587852478027
37
+ },
38
+ {
39
+ "epoch": 0.045454545454545456,
40
+ "grad_norm": 1.362435064605772,
41
+ "kl": 0.14722466468811035,
42
+ "learning_rate": 4.376089022660538e-06,
43
+ "loss": 0.4463,
44
+ "step": 4,
45
+ "step_loss": 0.460592657327652
46
+ },
47
+ {
48
+ "epoch": 0.056818181818181816,
49
+ "grad_norm": 1.1743592442810231,
50
+ "kl": 0.12074092030525208,
51
+ "learning_rate": 5e-06,
52
+ "loss": 0.4001,
53
+ "step": 5,
54
+ "step_loss": 0.39433369040489197
55
+ },
56
+ {
57
+ "epoch": 0.06818181818181818,
58
+ "grad_norm": 1.2999424793282481,
59
+ "kl": 0.1568446159362793,
60
+ "learning_rate": 4.999941322464311e-06,
61
+ "loss": 0.4067,
62
+ "step": 6,
63
+ "step_loss": 0.356352835893631
64
+ },
65
+ {
66
+ "epoch": 0.07954545454545454,
67
+ "grad_norm": 1.160541252191944,
68
+ "kl": 0.23409639298915863,
69
+ "learning_rate": 4.999765292917736e-06,
70
+ "loss": 0.3998,
71
+ "step": 7,
72
+ "step_loss": 0.4068807065486908
73
+ },
74
+ {
75
+ "epoch": 0.09090909090909091,
76
+ "grad_norm": 1.227986620612679,
77
+ "kl": 0.24431678652763367,
78
+ "learning_rate": 4.999471920541589e-06,
79
+ "loss": 0.368,
80
+ "step": 8,
81
+ "step_loss": 0.41308918595314026
82
+ },
83
+ {
84
+ "epoch": 0.10227272727272728,
85
+ "grad_norm": 1.118558082955084,
86
+ "kl": 0.17894110083580017,
87
+ "learning_rate": 4.999061220637533e-06,
88
+ "loss": 0.3714,
89
+ "step": 9,
90
+ "step_loss": 0.2875981032848358
91
+ },
92
+ {
93
+ "epoch": 0.11363636363636363,
94
+ "grad_norm": 1.044241767662719,
95
+ "kl": 0.2728317379951477,
96
+ "learning_rate": 4.998533214626773e-06,
97
+ "loss": 0.3746,
98
+ "step": 10,
99
+ "step_loss": 0.381584107875824
100
+ },
101
+ {
102
+ "epoch": 0.125,
103
+ "grad_norm": 1.012833206073384,
104
+ "kl": 0.24114784598350525,
105
+ "learning_rate": 4.9978879300489484e-06,
106
+ "loss": 0.3425,
107
+ "step": 11,
108
+ "step_loss": 0.3758848309516907
109
+ },
110
+ {
111
+ "epoch": 0.13636363636363635,
112
+ "grad_norm": 0.9561570826746042,
113
+ "kl": 0.24886220693588257,
114
+ "learning_rate": 4.9971254005606865e-06,
115
+ "loss": 0.3832,
116
+ "step": 12,
117
+ "step_loss": 0.40528154373168945
118
+ },
119
+ {
120
+ "epoch": 0.14772727272727273,
121
+ "grad_norm": 0.884172522884705,
122
+ "kl": 0.23464588820934296,
123
+ "learning_rate": 4.996245665933857e-06,
124
+ "loss": 0.3678,
125
+ "step": 13,
126
+ "step_loss": 0.3059731721878052
127
+ },
128
+ {
129
+ "epoch": 0.1590909090909091,
130
+ "grad_norm": 1.0353201682385085,
131
+ "kl": 0.1602363884449005,
132
+ "learning_rate": 4.9952487720534905e-06,
133
+ "loss": 0.3777,
134
+ "step": 14,
135
+ "step_loss": 0.3509451448917389
136
+ },
137
+ {
138
+ "epoch": 0.17045454545454544,
139
+ "grad_norm": 0.8535378320105195,
140
+ "kl": 0.2152172029018402,
141
+ "learning_rate": 4.9941347709153875e-06,
142
+ "loss": 0.3539,
143
+ "step": 15,
144
+ "step_loss": 0.36119481921195984
145
+ },
146
+ {
147
+ "epoch": 0.18181818181818182,
148
+ "grad_norm": 1.0118408129491079,
149
+ "kl": 0.2640606164932251,
150
+ "learning_rate": 4.992903720623408e-06,
151
+ "loss": 0.3701,
152
+ "step": 16,
153
+ "step_loss": 0.43707239627838135
154
+ },
155
+ {
156
+ "epoch": 0.19318181818181818,
157
+ "grad_norm": 0.9252651401652947,
158
+ "kl": 0.24001294374465942,
159
+ "learning_rate": 4.991555685386438e-06,
160
+ "loss": 0.3464,
161
+ "step": 17,
162
+ "step_loss": 0.39861610531806946
163
+ },
164
+ {
165
+ "epoch": 0.20454545454545456,
166
+ "grad_norm": 0.9546545294579731,
167
+ "kl": 0.2848950922489166,
168
+ "learning_rate": 4.990090735515043e-06,
169
+ "loss": 0.3729,
170
+ "step": 18,
171
+ "step_loss": 0.5053370594978333
172
+ },
173
+ {
174
+ "epoch": 0.2159090909090909,
175
+ "grad_norm": 0.8545398633463176,
176
+ "kl": 0.161998450756073,
177
+ "learning_rate": 4.988508947417799e-06,
178
+ "loss": 0.359,
179
+ "step": 19,
180
+ "step_loss": 0.3288613259792328
181
+ },
182
+ {
183
+ "epoch": 0.22727272727272727,
184
+ "grad_norm": 0.8025839263192421,
185
+ "kl": 0.2056322991847992,
186
+ "learning_rate": 4.98681040359731e-06,
187
+ "loss": 0.3439,
188
+ "step": 20,
189
+ "step_loss": 0.35805100202560425
190
+ },
191
+ {
192
+ "epoch": 0.23863636363636365,
193
+ "grad_norm": 0.8744693236774967,
194
+ "kl": 0.2929481267929077,
195
+ "learning_rate": 4.984995192645897e-06,
196
+ "loss": 0.3792,
197
+ "step": 21,
198
+ "step_loss": 0.45748788118362427
199
+ },
200
+ {
201
+ "epoch": 0.25,
202
+ "grad_norm": 0.8729052332734021,
203
+ "kl": 0.2217060774564743,
204
+ "learning_rate": 4.983063409240992e-06,
205
+ "loss": 0.3505,
206
+ "step": 22,
207
+ "step_loss": 0.35472381114959717
208
+ },
209
+ {
210
+ "epoch": 0.26136363636363635,
211
+ "grad_norm": 0.8762945408187117,
212
+ "kl": 0.2572169601917267,
213
+ "learning_rate": 4.981015154140181e-06,
214
+ "loss": 0.3625,
215
+ "step": 23,
216
+ "step_loss": 0.4360867738723755
217
+ },
218
+ {
219
+ "epoch": 0.2727272727272727,
220
+ "grad_norm": 0.8055639586247896,
221
+ "kl": 0.3179939091205597,
222
+ "learning_rate": 4.978850534175967e-06,
223
+ "loss": 0.3703,
224
+ "step": 24,
225
+ "step_loss": 0.4685637056827545
226
+ },
227
+ {
228
+ "epoch": 0.2840909090909091,
229
+ "grad_norm": 0.7776274043752576,
230
+ "kl": 0.21350209414958954,
231
+ "learning_rate": 4.976569662250185e-06,
232
+ "loss": 0.3606,
233
+ "step": 25,
234
+ "step_loss": 0.3343837857246399
235
+ },
236
+ {
237
+ "epoch": 0.29545454545454547,
238
+ "grad_norm": 0.8563133494756662,
239
+ "kl": 0.23110716044902802,
240
+ "learning_rate": 4.974172657328117e-06,
241
+ "loss": 0.3468,
242
+ "step": 26,
243
+ "step_loss": 0.27567654848098755
244
+ },
245
+ {
246
+ "epoch": 0.3068181818181818,
247
+ "grad_norm": 0.8318009751857389,
248
+ "kl": 0.23791126906871796,
249
+ "learning_rate": 4.97165964443229e-06,
250
+ "loss": 0.3766,
251
+ "step": 27,
252
+ "step_loss": 0.43361616134643555
253
+ },
254
+ {
255
+ "epoch": 0.3181818181818182,
256
+ "grad_norm": 0.8256316165817771,
257
+ "kl": 0.2149941325187683,
258
+ "learning_rate": 4.96903075463595e-06,
259
+ "loss": 0.3507,
260
+ "step": 28,
261
+ "step_loss": 0.41853615641593933
262
+ },
263
+ {
264
+ "epoch": 0.32954545454545453,
265
+ "grad_norm": 0.897517985957999,
266
+ "kl": 0.24494698643684387,
267
+ "learning_rate": 4.966286125056234e-06,
268
+ "loss": 0.3647,
269
+ "step": 29,
270
+ "step_loss": 0.3512318730354309
271
+ },
272
+ {
273
+ "epoch": 0.3409090909090909,
274
+ "grad_norm": 0.9026937755400121,
275
+ "kl": 0.184300035238266,
276
+ "learning_rate": 4.963425898847006e-06,
277
+ "loss": 0.3518,
278
+ "step": 30,
279
+ "step_loss": 0.3595576882362366
280
+ },
281
+ {
282
+ "epoch": 0.3522727272727273,
283
+ "grad_norm": 0.85148287759613,
284
+ "kl": 0.24502253532409668,
285
+ "learning_rate": 4.960450225191402e-06,
286
+ "loss": 0.3627,
287
+ "step": 31,
288
+ "step_loss": 0.35294580459594727
289
+ },
290
+ {
291
+ "epoch": 0.36363636363636365,
292
+ "grad_norm": 0.7962414335930865,
293
+ "kl": 0.2057955265045166,
294
+ "learning_rate": 4.957359259294038e-06,
295
+ "loss": 0.3458,
296
+ "step": 32,
297
+ "step_loss": 0.34822237491607666
298
+ },
299
+ {
300
+ "epoch": 0.375,
301
+ "grad_norm": 0.800931144269417,
302
+ "kl": 0.21041449904441833,
303
+ "learning_rate": 4.954153162372928e-06,
304
+ "loss": 0.377,
305
+ "step": 33,
306
+ "step_loss": 0.40625178813934326
307
+ },
308
+ {
309
+ "epoch": 0.38636363636363635,
310
+ "grad_norm": 0.8558589097843969,
311
+ "kl": 0.2527558505535126,
312
+ "learning_rate": 4.950832101651063e-06,
313
+ "loss": 0.3845,
314
+ "step": 34,
315
+ "step_loss": 0.38101768493652344
316
+ },
317
+ {
318
+ "epoch": 0.3977272727272727,
319
+ "grad_norm": 0.8387953491003776,
320
+ "kl": 0.2718813717365265,
321
+ "learning_rate": 4.947396250347695e-06,
322
+ "loss": 0.3527,
323
+ "step": 35,
324
+ "step_loss": 0.3798375129699707
325
+ },
326
+ {
327
+ "epoch": 0.4090909090909091,
328
+ "grad_norm": 0.9507472286861052,
329
+ "kl": 0.1885739266872406,
330
+ "learning_rate": 4.943845787669303e-06,
331
+ "loss": 0.3589,
332
+ "step": 36,
333
+ "step_loss": 0.3146296441555023
334
+ },
335
+ {
336
+ "epoch": 0.42045454545454547,
337
+ "grad_norm": 0.8385876510679799,
338
+ "kl": 0.16516371071338654,
339
+ "learning_rate": 4.9401808988002425e-06,
340
+ "loss": 0.3578,
341
+ "step": 37,
342
+ "step_loss": 0.2985036373138428
343
+ },
344
+ {
345
+ "epoch": 0.4318181818181818,
346
+ "grad_norm": 0.8166686735971924,
347
+ "kl": 0.24522481858730316,
348
+ "learning_rate": 4.936401774893088e-06,
349
+ "loss": 0.3593,
350
+ "step": 38,
351
+ "step_loss": 0.4174098074436188
352
+ },
353
+ {
354
+ "epoch": 0.4431818181818182,
355
+ "grad_norm": 0.9075664298384456,
356
+ "kl": 0.23953908681869507,
357
+ "learning_rate": 4.932508613058665e-06,
358
+ "loss": 0.3711,
359
+ "step": 39,
360
+ "step_loss": 0.3471056818962097
361
+ },
362
+ {
363
+ "epoch": 0.45454545454545453,
364
+ "grad_norm": 0.8181070744566579,
365
+ "kl": 0.30609607696533203,
366
+ "learning_rate": 4.928501616355768e-06,
367
+ "loss": 0.3599,
368
+ "step": 40,
369
+ "step_loss": 0.33987393975257874
370
+ },
371
+ {
372
+ "epoch": 0.4659090909090909,
373
+ "grad_norm": 0.7674769366399429,
374
+ "kl": 0.3086016774177551,
375
+ "learning_rate": 4.924380993780566e-06,
376
+ "loss": 0.3434,
377
+ "step": 41,
378
+ "step_loss": 0.3478284776210785
379
+ },
380
+ {
381
+ "epoch": 0.4772727272727273,
382
+ "grad_norm": 0.796828960509896,
383
+ "kl": 0.2363354116678238,
384
+ "learning_rate": 4.920146960255707e-06,
385
+ "loss": 0.3458,
386
+ "step": 42,
387
+ "step_loss": 0.3613693118095398
388
+ },
389
+ {
390
+ "epoch": 0.48863636363636365,
391
+ "grad_norm": 0.8201944175381407,
392
+ "kl": 0.21424362063407898,
393
+ "learning_rate": 4.915799736619105e-06,
394
+ "loss": 0.3572,
395
+ "step": 43,
396
+ "step_loss": 0.33215075731277466
397
+ },
398
+ {
399
+ "epoch": 0.5,
400
+ "grad_norm": 0.846105466640005,
401
+ "kl": 0.17349004745483398,
402
+ "learning_rate": 4.911339549612422e-06,
403
+ "loss": 0.3782,
404
+ "step": 44,
405
+ "step_loss": 0.3519684672355652
406
+ },
407
+ {
408
+ "epoch": 0.5113636363636364,
409
+ "grad_norm": 0.8219513643708384,
410
+ "kl": 0.26255759596824646,
411
+ "learning_rate": 4.906766631869243e-06,
412
+ "loss": 0.362,
413
+ "step": 45,
414
+ "step_loss": 0.34211111068725586
415
+ },
416
+ {
417
+ "epoch": 0.5227272727272727,
418
+ "grad_norm": 0.8293883565647935,
419
+ "kl": 0.3788855969905853,
420
+ "learning_rate": 4.90208122190294e-06,
421
+ "loss": 0.3497,
422
+ "step": 46,
423
+ "step_loss": 0.40293213725090027
424
+ },
425
+ {
426
+ "epoch": 0.5340909090909091,
427
+ "grad_norm": 0.8369516655788055,
428
+ "kl": 0.27136877179145813,
429
+ "learning_rate": 4.897283564094233e-06,
430
+ "loss": 0.3761,
431
+ "step": 47,
432
+ "step_loss": 0.3964707851409912
433
+ },
434
+ {
435
+ "epoch": 0.5454545454545454,
436
+ "grad_norm": 0.8300152564082867,
437
+ "kl": 0.25666913390159607,
438
+ "learning_rate": 4.892373908678445e-06,
439
+ "loss": 0.3539,
440
+ "step": 48,
441
+ "step_loss": 0.3369652330875397
442
+ },
443
+ {
444
+ "epoch": 0.5568181818181818,
445
+ "grad_norm": 0.9104721437976564,
446
+ "kl": 0.274257630109787,
447
+ "learning_rate": 4.887352511732447e-06,
448
+ "loss": 0.389,
449
+ "step": 49,
450
+ "step_loss": 0.42897558212280273
451
+ },
452
+ {
453
+ "epoch": 0.5681818181818182,
454
+ "grad_norm": 0.8195403324929418,
455
+ "kl": 0.32372036576271057,
456
+ "learning_rate": 4.882219635161306e-06,
457
+ "loss": 0.3518,
458
+ "step": 50,
459
+ "step_loss": 0.3887690007686615
460
+ },
461
+ {
462
+ "epoch": 0.5795454545454546,
463
+ "grad_norm": 0.9168553194353436,
464
+ "kl": 0.28414681553840637,
465
+ "learning_rate": 4.876975546684619e-06,
466
+ "loss": 0.3581,
467
+ "step": 51,
468
+ "step_loss": 0.40320277214050293
469
+ },
470
+ {
471
+ "epoch": 0.5909090909090909,
472
+ "grad_norm": 0.8617294656704618,
473
+ "kl": 0.2004740983247757,
474
+ "learning_rate": 4.8716205198225525e-06,
475
+ "loss": 0.3805,
476
+ "step": 52,
477
+ "step_loss": 0.38499268889427185
478
+ },
479
+ {
480
+ "epoch": 0.6022727272727273,
481
+ "grad_norm": 0.7697913025754929,
482
+ "kl": 0.2655254900455475,
483
+ "learning_rate": 4.866154833881579e-06,
484
+ "loss": 0.3375,
485
+ "step": 53,
486
+ "step_loss": 0.3799101710319519
487
+ },
488
+ {
489
+ "epoch": 0.6136363636363636,
490
+ "grad_norm": 0.860433412224209,
491
+ "kl": 0.1964799165725708,
492
+ "learning_rate": 4.8605787739399055e-06,
493
+ "loss": 0.3614,
494
+ "step": 54,
495
+ "step_loss": 0.3518129587173462
496
+ },
497
+ {
498
+ "epoch": 0.625,
499
+ "grad_norm": 0.8208795676466634,
500
+ "kl": 0.2083766907453537,
501
+ "learning_rate": 4.8548926308326025e-06,
502
+ "loss": 0.3497,
503
+ "step": 55,
504
+ "step_loss": 0.36417239904403687
505
+ },
506
+ {
507
+ "epoch": 0.6363636363636364,
508
+ "grad_norm": 0.8494420730908946,
509
+ "kl": 0.24671347439289093,
510
+ "learning_rate": 4.84909670113644e-06,
511
+ "loss": 0.3585,
512
+ "step": 56,
513
+ "step_loss": 0.28457289934158325
514
+ },
515
+ {
516
+ "epoch": 0.6477272727272727,
517
+ "grad_norm": 0.8001936082214277,
518
+ "kl": 0.20547156035900116,
519
+ "learning_rate": 4.843191287154415e-06,
520
+ "loss": 0.3387,
521
+ "step": 57,
522
+ "step_loss": 0.31630027294158936
523
+ },
524
+ {
525
+ "epoch": 0.6590909090909091,
526
+ "grad_norm": 0.8349937030988813,
527
+ "kl": 0.24216747283935547,
528
+ "learning_rate": 4.837176696899984e-06,
529
+ "loss": 0.3562,
530
+ "step": 58,
531
+ "step_loss": 0.31798893213272095
532
+ },
533
+ {
534
+ "epoch": 0.6704545454545454,
535
+ "grad_norm": 0.7997137630513312,
536
+ "kl": 0.22188925743103027,
537
+ "learning_rate": 4.8310532440810005e-06,
538
+ "loss": 0.3563,
539
+ "step": 59,
540
+ "step_loss": 0.30022716522216797
541
+ },
542
+ {
543
+ "epoch": 0.6818181818181818,
544
+ "grad_norm": 0.7732049611711472,
545
+ "kl": 0.2248784899711609,
546
+ "learning_rate": 4.82482124808335e-06,
547
+ "loss": 0.3191,
548
+ "step": 60,
549
+ "step_loss": 0.36109238862991333
550
+ },
551
+ {
552
+ "epoch": 0.6931818181818182,
553
+ "grad_norm": 0.8067392653775698,
554
+ "kl": 0.24406936764717102,
555
+ "learning_rate": 4.8184810339542925e-06,
556
+ "loss": 0.3501,
557
+ "step": 61,
558
+ "step_loss": 0.3913516402244568
559
+ },
560
+ {
561
+ "epoch": 0.7045454545454546,
562
+ "grad_norm": 0.7792045901924106,
563
+ "kl": 0.19702410697937012,
564
+ "learning_rate": 4.812032932385509e-06,
565
+ "loss": 0.3238,
566
+ "step": 62,
567
+ "step_loss": 0.2769385576248169
568
+ },
569
+ {
570
+ "epoch": 0.7159090909090909,
571
+ "grad_norm": 0.8595897752967626,
572
+ "kl": 0.2642907202243805,
573
+ "learning_rate": 4.805477279695852e-06,
574
+ "loss": 0.3538,
575
+ "step": 63,
576
+ "step_loss": 0.4088588356971741
577
+ },
578
+ {
579
+ "epoch": 0.7272727272727273,
580
+ "grad_norm": 0.8639662428592647,
581
+ "kl": 0.22237904369831085,
582
+ "learning_rate": 4.798814417813807e-06,
583
+ "loss": 0.3576,
584
+ "step": 64,
585
+ "step_loss": 0.3004940152168274
586
+ },
587
+ {
588
+ "epoch": 0.7386363636363636,
589
+ "grad_norm": 0.7875668542731125,
590
+ "kl": 0.22941315174102783,
591
+ "learning_rate": 4.7920446942596535e-06,
592
+ "loss": 0.3314,
593
+ "step": 65,
594
+ "step_loss": 0.2649787664413452
595
+ },
596
+ {
597
+ "epoch": 0.75,
598
+ "grad_norm": 0.825774798553009,
599
+ "kl": 0.27141043543815613,
600
+ "learning_rate": 4.7851684621273435e-06,
601
+ "loss": 0.3694,
602
+ "step": 66,
603
+ "step_loss": 0.4899372458457947
604
+ },
605
+ {
606
+ "epoch": 0.7613636363636364,
607
+ "grad_norm": 0.7704537376313643,
608
+ "kl": 0.2449103444814682,
609
+ "learning_rate": 4.7781860800660836e-06,
610
+ "loss": 0.365,
611
+ "step": 67,
612
+ "step_loss": 0.41683661937713623
613
+ },
614
+ {
615
+ "epoch": 0.7727272727272727,
616
+ "grad_norm": 0.7904020967751078,
617
+ "kl": 0.30710798501968384,
618
+ "learning_rate": 4.771097912261626e-06,
619
+ "loss": 0.3577,
620
+ "step": 68,
621
+ "step_loss": 0.39199817180633545
622
+ },
623
+ {
624
+ "epoch": 0.7840909090909091,
625
+ "grad_norm": 0.7703764480757949,
626
+ "kl": 0.21822941303253174,
627
+ "learning_rate": 4.763904328417276e-06,
628
+ "loss": 0.3568,
629
+ "step": 69,
630
+ "step_loss": 0.3460182249546051
631
+ },
632
+ {
633
+ "epoch": 0.7954545454545454,
634
+ "grad_norm": 0.764160468250735,
635
+ "kl": 0.24635545909404755,
636
+ "learning_rate": 4.756605703734611e-06,
637
+ "loss": 0.3519,
638
+ "step": 70,
639
+ "step_loss": 0.4064783453941345
640
+ },
641
+ {
642
+ "epoch": 0.8068181818181818,
643
+ "grad_norm": 0.7481024101498955,
644
+ "kl": 0.14451748132705688,
645
+ "learning_rate": 4.7492024188939055e-06,
646
+ "loss": 0.3391,
647
+ "step": 71,
648
+ "step_loss": 0.25107917189598083
649
+ },
650
+ {
651
+ "epoch": 0.8181818181818182,
652
+ "grad_norm": 0.7802950172161581,
653
+ "kl": 0.1930258721113205,
654
+ "learning_rate": 4.741694860034281e-06,
655
+ "loss": 0.3564,
656
+ "step": 72,
657
+ "step_loss": 0.34083372354507446
658
+ },
659
+ {
660
+ "epoch": 0.8295454545454546,
661
+ "grad_norm": 0.7769810199285,
662
+ "kl": 0.23945628106594086,
663
+ "learning_rate": 4.734083418733563e-06,
664
+ "loss": 0.3725,
665
+ "step": 73,
666
+ "step_loss": 0.2961326241493225
667
+ },
668
+ {
669
+ "epoch": 0.8409090909090909,
670
+ "grad_norm": 0.825406272151327,
671
+ "kl": 0.23796045780181885,
672
+ "learning_rate": 4.726368491987854e-06,
673
+ "loss": 0.3376,
674
+ "step": 74,
675
+ "step_loss": 0.35123029351234436
676
+ },
677
+ {
678
+ "epoch": 0.8522727272727273,
679
+ "grad_norm": 0.7306727160298511,
680
+ "kl": 0.13507644832134247,
681
+ "learning_rate": 4.718550482190837e-06,
682
+ "loss": 0.3445,
683
+ "step": 75,
684
+ "step_loss": 0.2955048680305481
685
+ },
686
+ {
687
+ "epoch": 0.8636363636363636,
688
+ "grad_norm": 0.7579927918209679,
689
+ "kl": 0.24724549055099487,
690
+ "learning_rate": 4.7106297971127755e-06,
691
+ "loss": 0.349,
692
+ "step": 76,
693
+ "step_loss": 0.3554742932319641
694
+ },
695
+ {
696
+ "epoch": 0.875,
697
+ "grad_norm": 0.805419144828077,
698
+ "kl": 0.20437797904014587,
699
+ "learning_rate": 4.7026068498792535e-06,
700
+ "loss": 0.3439,
701
+ "step": 77,
702
+ "step_loss": 0.30100610852241516
703
+ },
704
+ {
705
+ "epoch": 0.8863636363636364,
706
+ "grad_norm": 0.8550394104357324,
707
+ "kl": 0.16827110946178436,
708
+ "learning_rate": 4.694482058949624e-06,
709
+ "loss": 0.3512,
710
+ "step": 78,
711
+ "step_loss": 0.2656687796115875
712
+ },
713
+ {
714
+ "epoch": 0.8977272727272727,
715
+ "grad_norm": 0.7699285730450894,
716
+ "kl": 0.17964152991771698,
717
+ "learning_rate": 4.686255848095186e-06,
718
+ "loss": 0.3407,
719
+ "step": 79,
720
+ "step_loss": 0.23917566239833832
721
+ },
722
+ {
723
+ "epoch": 0.9090909090909091,
724
+ "grad_norm": 0.7978865990480669,
725
+ "kl": 0.27529603242874146,
726
+ "learning_rate": 4.677928646377076e-06,
727
+ "loss": 0.3433,
728
+ "step": 80,
729
+ "step_loss": 0.33308878540992737
730
+ },
731
+ {
732
+ "epoch": 0.9204545454545454,
733
+ "grad_norm": 0.7840380701095863,
734
+ "kl": 0.22533753514289856,
735
+ "learning_rate": 4.669500888123897e-06,
736
+ "loss": 0.344,
737
+ "step": 81,
738
+ "step_loss": 0.33834126591682434
739
+ },
740
+ {
741
+ "epoch": 0.9318181818181818,
742
+ "grad_norm": 0.856812662574151,
743
+ "kl": 0.2573813498020172,
744
+ "learning_rate": 4.660973012909057e-06,
745
+ "loss": 0.359,
746
+ "step": 82,
747
+ "step_loss": 0.3473721146583557
748
+ },
749
+ {
750
+ "epoch": 0.9431818181818182,
751
+ "grad_norm": 0.7265171734197157,
752
+ "kl": 0.2186812162399292,
753
+ "learning_rate": 4.652345465527847e-06,
754
+ "loss": 0.3341,
755
+ "step": 83,
756
+ "step_loss": 0.3598743975162506
757
+ },
758
+ {
759
+ "epoch": 0.9545454545454546,
760
+ "grad_norm": 0.8049253093828008,
761
+ "kl": 0.2602262794971466,
762
+ "learning_rate": 4.64361869597424e-06,
763
+ "loss": 0.3464,
764
+ "step": 84,
765
+ "step_loss": 0.3444975018501282
766
+ },
767
+ {
768
+ "epoch": 0.9659090909090909,
769
+ "grad_norm": 0.7680402534237456,
770
+ "kl": 0.2810295522212982,
771
+ "learning_rate": 4.634793159417421e-06,
772
+ "loss": 0.3373,
773
+ "step": 85,
774
+ "step_loss": 0.26042619347572327
775
+ },
776
+ {
777
+ "epoch": 0.9772727272727273,
778
+ "grad_norm": 0.8011651956250969,
779
+ "kl": 0.24380852282047272,
780
+ "learning_rate": 4.625869316178043e-06,
781
+ "loss": 0.3676,
782
+ "step": 86,
783
+ "step_loss": 0.4119197428226471
784
+ },
785
+ {
786
+ "epoch": 0.9886363636363636,
787
+ "grad_norm": 0.7751572880029601,
788
+ "kl": 0.25345954298973083,
789
+ "learning_rate": 4.6168476317042224e-06,
790
+ "loss": 0.3449,
791
+ "step": 87,
792
+ "step_loss": 0.38151469826698303
793
+ },
794
+ {
795
+ "epoch": 1.0,
796
+ "grad_norm": 0.7947674725517713,
797
+ "kl": 0.2837441861629486,
798
+ "learning_rate": 4.60772857654726e-06,
799
+ "loss": 0.3646,
800
+ "step": 88,
801
+ "step_loss": 0.4021923542022705
802
+ },
803
+ {
804
+ "epoch": 1.0,
805
+ "eval_test_transformed.json_loss": 0.6147641539573669,
806
+ "eval_test_transformed.json_runtime": 57.2166,
807
+ "eval_test_transformed.json_samples_per_second": 8.739,
808
+ "eval_test_transformed.json_steps_per_second": 0.559,
809
+ "step": 88
810
+ },
811
+ {
812
+ "epoch": 1.0113636363636365,
813
+ "grad_norm": 0.8300174107506423,
814
+ "kl": 0.08372548967599869,
815
+ "learning_rate": 4.598512626337096e-06,
816
+ "loss": 0.2738,
817
+ "step": 89,
818
+ "step_loss": 0.5384058952331543
819
+ },
820
+ {
821
+ "epoch": 1.0227272727272727,
822
+ "grad_norm": 0.77573239267709,
823
+ "kl": 0.2220146656036377,
824
+ "learning_rate": 4.589200261757507e-06,
825
+ "loss": 0.2835,
826
+ "step": 90,
827
+ "step_loss": 0.23898854851722717
828
+ },
829
+ {
830
+ "epoch": 1.0340909090909092,
831
+ "grad_norm": 0.724932328716244,
832
+ "kl": 0.3047032654285431,
833
+ "learning_rate": 4.5797919685210306e-06,
834
+ "loss": 0.2681,
835
+ "step": 91,
836
+ "step_loss": 0.30961817502975464
837
+ },
838
+ {
839
+ "epoch": 1.0454545454545454,
840
+ "grad_norm": 0.6895314893413088,
841
+ "kl": 0.24007435142993927,
842
+ "learning_rate": 4.570288237343632e-06,
843
+ "loss": 0.2602,
844
+ "step": 92,
845
+ "step_loss": 0.29084306955337524
846
+ },
847
+ {
848
+ "epoch": 1.0568181818181819,
849
+ "grad_norm": 0.8345390101480717,
850
+ "kl": 0.2587500810623169,
851
+ "learning_rate": 4.560689563919113e-06,
852
+ "loss": 0.2838,
853
+ "step": 93,
854
+ "step_loss": 0.2709003686904907
855
+ },
856
+ {
857
+ "epoch": 1.0681818181818181,
858
+ "grad_norm": 0.8688624933533857,
859
+ "kl": 0.26922354102134705,
860
+ "learning_rate": 4.550996448893253e-06,
861
+ "loss": 0.2866,
862
+ "step": 94,
863
+ "step_loss": 0.3056609034538269
864
+ },
865
+ {
866
+ "epoch": 1.0795454545454546,
867
+ "grad_norm": 0.7821685731421445,
868
+ "kl": 0.25485578179359436,
869
+ "learning_rate": 4.5412093978376986e-06,
870
+ "loss": 0.2694,
871
+ "step": 95,
872
+ "step_loss": 0.22295084595680237
873
+ },
874
+ {
875
+ "epoch": 1.0909090909090908,
876
+ "grad_norm": 0.8329103508983827,
877
+ "kl": 0.3171152174472809,
878
+ "learning_rate": 4.531328921223596e-06,
879
+ "loss": 0.2676,
880
+ "step": 96,
881
+ "step_loss": 0.24555529654026031
882
+ },
883
+ {
884
+ "epoch": 1.1022727272727273,
885
+ "grad_norm": 0.8278389202666937,
886
+ "kl": 0.268743634223938,
887
+ "learning_rate": 4.521355534394959e-06,
888
+ "loss": 0.2806,
889
+ "step": 97,
890
+ "step_loss": 0.2850462794303894
891
+ },
892
+ {
893
+ "epoch": 1.1136363636363635,
894
+ "grad_norm": 0.7515633501773713,
895
+ "kl": 0.21348519623279572,
896
+ "learning_rate": 4.511289757541801e-06,
897
+ "loss": 0.2714,
898
+ "step": 98,
899
+ "step_loss": 0.22777102887630463
900
+ },
901
+ {
902
+ "epoch": 1.125,
903
+ "grad_norm": 0.7901926539707923,
904
+ "kl": 0.2479882836341858,
905
+ "learning_rate": 4.501132115672992e-06,
906
+ "loss": 0.2621,
907
+ "step": 99,
908
+ "step_loss": 0.27556145191192627
909
+ },
910
+ {
911
+ "epoch": 1.1363636363636362,
912
+ "grad_norm": 0.7721311538003944,
913
+ "kl": 0.2527960538864136,
914
+ "learning_rate": 4.490883138588882e-06,
915
+ "loss": 0.2673,
916
+ "step": 100,
917
+ "step_loss": 0.2762888967990875
918
+ },
919
+ {
920
+ "epoch": 1.1477272727272727,
921
+ "grad_norm": 0.7810424529002389,
922
+ "kl": 0.26764342188835144,
923
+ "learning_rate": 4.4805433608536655e-06,
924
+ "loss": 0.269,
925
+ "step": 101,
926
+ "step_loss": 0.2725462317466736
927
+ },
928
+ {
929
+ "epoch": 1.1590909090909092,
930
+ "grad_norm": 0.7955281338155472,
931
+ "kl": 0.3150593042373657,
932
+ "learning_rate": 4.470113321767499e-06,
933
+ "loss": 0.2761,
934
+ "step": 102,
935
+ "step_loss": 0.311062216758728
936
+ },
937
+ {
938
+ "epoch": 1.1704545454545454,
939
+ "grad_norm": 0.7565768284407913,
940
+ "kl": 0.2376776784658432,
941
+ "learning_rate": 4.459593565338376e-06,
942
+ "loss": 0.2851,
943
+ "step": 103,
944
+ "step_loss": 0.2452271282672882
945
+ },
946
+ {
947
+ "epoch": 1.1818181818181819,
948
+ "grad_norm": 0.8304952134574923,
949
+ "kl": 0.2546381950378418,
950
+ "learning_rate": 4.448984640253747e-06,
951
+ "loss": 0.2818,
952
+ "step": 104,
953
+ "step_loss": 0.3039626479148865
954
+ },
955
+ {
956
+ "epoch": 1.1931818181818181,
957
+ "grad_norm": 0.8207694461248964,
958
+ "kl": 0.41062766313552856,
959
+ "learning_rate": 4.438287099851905e-06,
960
+ "loss": 0.2698,
961
+ "step": 105,
962
+ "step_loss": 0.3451313078403473
963
+ },
964
+ {
965
+ "epoch": 1.2045454545454546,
966
+ "grad_norm": 0.763176799019057,
967
+ "kl": 0.24396805465221405,
968
+ "learning_rate": 4.427501502093126e-06,
969
+ "loss": 0.2666,
970
+ "step": 106,
971
+ "step_loss": 0.24862422049045563
972
+ },
973
+ {
974
+ "epoch": 1.2159090909090908,
975
+ "grad_norm": 0.7653625194049708,
976
+ "kl": 0.3014935255050659,
977
+ "learning_rate": 4.416628409530563e-06,
978
+ "loss": 0.2615,
979
+ "step": 107,
980
+ "step_loss": 0.23431876301765442
981
+ },
982
+ {
983
+ "epoch": 1.2272727272727273,
984
+ "grad_norm": 0.7932503486822488,
985
+ "kl": 0.23210333287715912,
986
+ "learning_rate": 4.405668389280906e-06,
987
+ "loss": 0.2615,
988
+ "step": 108,
989
+ "step_loss": 0.239517942070961
990
+ },
991
+ {
992
+ "epoch": 1.2386363636363638,
993
+ "grad_norm": 0.8303257471879192,
994
+ "kl": 0.25863131880760193,
995
+ "learning_rate": 4.394622012994803e-06,
996
+ "loss": 0.2733,
997
+ "step": 109,
998
+ "step_loss": 0.2567521035671234
999
+ },
1000
+ {
1001
+ "epoch": 1.25,
1002
+ "grad_norm": 0.7822296104419395,
1003
+ "kl": 0.18686552345752716,
1004
+ "learning_rate": 4.383489856827045e-06,
1005
+ "loss": 0.2772,
1006
+ "step": 110,
1007
+ "step_loss": 0.23640470206737518
1008
+ },
1009
+ {
1010
+ "epoch": 1.2613636363636362,
1011
+ "grad_norm": 0.7749159198189497,
1012
+ "kl": 0.26931869983673096,
1013
+ "learning_rate": 4.372272501406511e-06,
1014
+ "loss": 0.2754,
1015
+ "step": 111,
1016
+ "step_loss": 0.29603561758995056
1017
+ },
1018
+ {
1019
+ "epoch": 1.2727272727272727,
1020
+ "grad_norm": 0.8008832913025072,
1021
+ "kl": 0.2696314752101898,
1022
+ "learning_rate": 4.360970531805891e-06,
1023
+ "loss": 0.2646,
1024
+ "step": 112,
1025
+ "step_loss": 0.2858111262321472
1026
+ },
1027
+ {
1028
+ "epoch": 1.2840909090909092,
1029
+ "grad_norm": 0.8001913735849326,
1030
+ "kl": 0.2806592881679535,
1031
+ "learning_rate": 4.34958453751116e-06,
1032
+ "loss": 0.2662,
1033
+ "step": 113,
1034
+ "step_loss": 0.2791585922241211
1035
+ },
1036
+ {
1037
+ "epoch": 1.2954545454545454,
1038
+ "grad_norm": 0.8024500136687336,
1039
+ "kl": 0.24742648005485535,
1040
+ "learning_rate": 4.338115112390839e-06,
1041
+ "loss": 0.2777,
1042
+ "step": 114,
1043
+ "step_loss": 0.27738770842552185
1044
+ },
1045
+ {
1046
+ "epoch": 1.3068181818181819,
1047
+ "grad_norm": 0.7743853146387183,
1048
+ "kl": 0.24617239832878113,
1049
+ "learning_rate": 4.32656285466502e-06,
1050
+ "loss": 0.272,
1051
+ "step": 115,
1052
+ "step_loss": 0.2725653350353241
1053
+ },
1054
+ {
1055
+ "epoch": 1.3181818181818181,
1056
+ "grad_norm": 0.8260411729526528,
1057
+ "kl": 0.24938064813613892,
1058
+ "learning_rate": 4.314928366874162e-06,
1059
+ "loss": 0.2709,
1060
+ "step": 116,
1061
+ "step_loss": 0.23085035383701324
1062
+ },
1063
+ {
1064
+ "epoch": 1.3295454545454546,
1065
+ "grad_norm": 0.7593579608277142,
1066
+ "kl": 0.2912304401397705,
1067
+ "learning_rate": 4.30321225584766e-06,
1068
+ "loss": 0.2595,
1069
+ "step": 117,
1070
+ "step_loss": 0.2982204258441925
1071
+ },
1072
+ {
1073
+ "epoch": 1.3409090909090908,
1074
+ "grad_norm": 0.7590166337347966,
1075
+ "kl": 0.3144587576389313,
1076
+ "learning_rate": 4.291415132672202e-06,
1077
+ "loss": 0.2715,
1078
+ "step": 118,
1079
+ "step_loss": 0.2491433173418045
1080
+ },
1081
+ {
1082
+ "epoch": 1.3522727272727273,
1083
+ "grad_norm": 0.8096110997434255,
1084
+ "kl": 0.3628700077533722,
1085
+ "learning_rate": 4.279537612659893e-06,
1086
+ "loss": 0.2747,
1087
+ "step": 119,
1088
+ "step_loss": 0.29215359687805176
1089
+ },
1090
+ {
1091
+ "epoch": 1.3636363636363638,
1092
+ "grad_norm": 0.7676948672131104,
1093
+ "kl": 0.32500603795051575,
1094
+ "learning_rate": 4.267580315316156e-06,
1095
+ "loss": 0.2692,
1096
+ "step": 120,
1097
+ "step_loss": 0.2846797704696655
1098
+ },
1099
+ {
1100
+ "epoch": 1.375,
1101
+ "grad_norm": 0.7763972054682284,
1102
+ "kl": 0.3070172071456909,
1103
+ "learning_rate": 4.2555438643074315e-06,
1104
+ "loss": 0.2748,
1105
+ "step": 121,
1106
+ "step_loss": 0.29722610116004944
1107
+ },
1108
+ {
1109
+ "epoch": 1.3863636363636362,
1110
+ "grad_norm": 0.765562794552249,
1111
+ "kl": 0.24159571528434753,
1112
+ "learning_rate": 4.243428887428635e-06,
1113
+ "loss": 0.2648,
1114
+ "step": 122,
1115
+ "step_loss": 0.20421911776065826
1116
+ },
1117
+ {
1118
+ "epoch": 1.3977272727272727,
1119
+ "grad_norm": 0.7829115174919172,
1120
+ "kl": 0.1845472753047943,
1121
+ "learning_rate": 4.231236016570425e-06,
1122
+ "loss": 0.2671,
1123
+ "step": 123,
1124
+ "step_loss": 0.24147802591323853
1125
+ },
1126
+ {
1127
+ "epoch": 1.4090909090909092,
1128
+ "grad_norm": 0.8644726847122038,
1129
+ "kl": 0.24288871884346008,
1130
+ "learning_rate": 4.218965887686236e-06,
1131
+ "loss": 0.2914,
1132
+ "step": 124,
1133
+ "step_loss": 0.25647714734077454
1134
+ },
1135
+ {
1136
+ "epoch": 1.4204545454545454,
1137
+ "grad_norm": 0.8339544286421284,
1138
+ "kl": 0.231180340051651,
1139
+ "learning_rate": 4.206619140759113e-06,
1140
+ "loss": 0.2704,
1141
+ "step": 125,
1142
+ "step_loss": 0.22522114217281342
1143
+ },
1144
+ {
1145
+ "epoch": 1.4318181818181819,
1146
+ "grad_norm": 0.8221761695605967,
1147
+ "kl": 0.2961800992488861,
1148
+ "learning_rate": 4.1941964197683294e-06,
1149
+ "loss": 0.2769,
1150
+ "step": 126,
1151
+ "step_loss": 0.3132496774196625
1152
+ },
1153
+ {
1154
+ "epoch": 1.4431818181818181,
1155
+ "grad_norm": 0.8281811749101126,
1156
+ "kl": 0.228164404630661,
1157
+ "learning_rate": 4.181698372655802e-06,
1158
+ "loss": 0.296,
1159
+ "step": 127,
1160
+ "step_loss": 0.2789953351020813
1161
+ },
1162
+ {
1163
+ "epoch": 1.4545454545454546,
1164
+ "grad_norm": 0.7805168144692464,
1165
+ "kl": 0.29118138551712036,
1166
+ "learning_rate": 4.16912565129229e-06,
1167
+ "loss": 0.2691,
1168
+ "step": 128,
1169
+ "step_loss": 0.2938961982727051
1170
+ },
1171
+ {
1172
+ "epoch": 1.4659090909090908,
1173
+ "grad_norm": 0.764790917540533,
1174
+ "kl": 0.21116551756858826,
1175
+ "learning_rate": 4.156478911443399e-06,
1176
+ "loss": 0.2728,
1177
+ "step": 129,
1178
+ "step_loss": 0.19998157024383545
1179
+ },
1180
+ {
1181
+ "epoch": 1.4772727272727273,
1182
+ "grad_norm": 0.8182095775205943,
1183
+ "kl": 0.2947465479373932,
1184
+ "learning_rate": 4.143758812735377e-06,
1185
+ "loss": 0.276,
1186
+ "step": 130,
1187
+ "step_loss": 0.23230603337287903
1188
+ },
1189
+ {
1190
+ "epoch": 1.4886363636363638,
1191
+ "grad_norm": 0.7882946546339218,
1192
+ "kl": 0.24360516667366028,
1193
+ "learning_rate": 4.130966018620709e-06,
1194
+ "loss": 0.2677,
1195
+ "step": 131,
1196
+ "step_loss": 0.2349737137556076
1197
+ },
1198
+ {
1199
+ "epoch": 1.5,
1200
+ "grad_norm": 0.8656008871968565,
1201
+ "kl": 0.35519665479660034,
1202
+ "learning_rate": 4.118101196343515e-06,
1203
+ "loss": 0.2729,
1204
+ "step": 132,
1205
+ "step_loss": 0.26551371812820435
1206
+ },
1207
+ {
1208
+ "epoch": 1.5113636363636362,
1209
+ "grad_norm": 0.8133559486757417,
1210
+ "kl": 0.31251227855682373,
1211
+ "learning_rate": 4.105165016904744e-06,
1212
+ "loss": 0.2703,
1213
+ "step": 133,
1214
+ "step_loss": 0.30454349517822266
1215
+ },
1216
+ {
1217
+ "epoch": 1.5227272727272727,
1218
+ "grad_norm": 0.7341218877408442,
1219
+ "kl": 0.3486112952232361,
1220
+ "learning_rate": 4.092158155027177e-06,
1221
+ "loss": 0.2778,
1222
+ "step": 134,
1223
+ "step_loss": 0.3166317045688629
1224
+ },
1225
+ {
1226
+ "epoch": 1.5340909090909092,
1227
+ "grad_norm": 0.8500600386901499,
1228
+ "kl": 0.26721635460853577,
1229
+ "learning_rate": 4.07908128912024e-06,
1230
+ "loss": 0.2822,
1231
+ "step": 135,
1232
+ "step_loss": 0.31385499238967896
1233
+ },
1234
+ {
1235
+ "epoch": 1.5454545454545454,
1236
+ "grad_norm": 0.7849382316075052,
1237
+ "kl": 0.25328248739242554,
1238
+ "learning_rate": 4.065935101244614e-06,
1239
+ "loss": 0.2798,
1240
+ "step": 136,
1241
+ "step_loss": 0.3054334223270416
1242
+ },
1243
+ {
1244
+ "epoch": 1.5568181818181817,
1245
+ "grad_norm": 0.8045542338117103,
1246
+ "kl": 0.22720679640769958,
1247
+ "learning_rate": 4.05272027707666e-06,
1248
+ "loss": 0.2688,
1249
+ "step": 137,
1250
+ "step_loss": 0.2093893587589264
1251
+ },
1252
+ {
1253
+ "epoch": 1.5681818181818183,
1254
+ "grad_norm": 0.8059325354646184,
1255
+ "kl": 0.33818334341049194,
1256
+ "learning_rate": 4.039437505872661e-06,
1257
+ "loss": 0.2755,
1258
+ "step": 138,
1259
+ "step_loss": 0.25241315364837646
1260
+ },
1261
+ {
1262
+ "epoch": 1.5795454545454546,
1263
+ "grad_norm": 0.7947964956021049,
1264
+ "kl": 0.2659541666507721,
1265
+ "learning_rate": 4.026087480432867e-06,
1266
+ "loss": 0.2714,
1267
+ "step": 139,
1268
+ "step_loss": 0.22505882382392883
1269
+ },
1270
+ {
1271
+ "epoch": 1.5909090909090908,
1272
+ "grad_norm": 0.7798080488748865,
1273
+ "kl": 0.3098128139972687,
1274
+ "learning_rate": 4.012670897065361e-06,
1275
+ "loss": 0.2645,
1276
+ "step": 140,
1277
+ "step_loss": 0.30545055866241455
1278
+ },
1279
+ {
1280
+ "epoch": 1.6022727272727273,
1281
+ "grad_norm": 0.775197771433234,
1282
+ "kl": 0.22397831082344055,
1283
+ "learning_rate": 3.999188455549743e-06,
1284
+ "loss": 0.2666,
1285
+ "step": 141,
1286
+ "step_loss": 0.23903930187225342
1287
+ },
1288
+ {
1289
+ "epoch": 1.6136363636363638,
1290
+ "grad_norm": 0.8077084029693482,
1291
+ "kl": 0.27500656247138977,
1292
+ "learning_rate": 3.98564085910063e-06,
1293
+ "loss": 0.2722,
1294
+ "step": 142,
1295
+ "step_loss": 0.35808488726615906
1296
+ },
1297
+ {
1298
+ "epoch": 1.625,
1299
+ "grad_norm": 0.8147386009423194,
1300
+ "kl": 0.267314612865448,
1301
+ "learning_rate": 3.972028814330974e-06,
1302
+ "loss": 0.2723,
1303
+ "step": 143,
1304
+ "step_loss": 0.22990119457244873
1305
+ },
1306
+ {
1307
+ "epoch": 1.6363636363636362,
1308
+ "grad_norm": 0.8458877608603808,
1309
+ "kl": 0.23753684759140015,
1310
+ "learning_rate": 3.958353031215216e-06,
1311
+ "loss": 0.2876,
1312
+ "step": 144,
1313
+ "step_loss": 0.2537928521633148
1314
+ },
1315
+ {
1316
+ "epoch": 1.6477272727272727,
1317
+ "grad_norm": 0.8197579462143825,
1318
+ "kl": 0.23161743581295013,
1319
+ "learning_rate": 3.944614223052246e-06,
1320
+ "loss": 0.2801,
1321
+ "step": 145,
1322
+ "step_loss": 0.2637965679168701
1323
+ },
1324
+ {
1325
+ "epoch": 1.6590909090909092,
1326
+ "grad_norm": 0.8314592069504814,
1327
+ "kl": 0.24659006297588348,
1328
+ "learning_rate": 3.930813106428202e-06,
1329
+ "loss": 0.2817,
1330
+ "step": 146,
1331
+ "step_loss": 0.2755964696407318
1332
+ },
1333
+ {
1334
+ "epoch": 1.6704545454545454,
1335
+ "grad_norm": 0.7638963920533027,
1336
+ "kl": 0.20747093856334686,
1337
+ "learning_rate": 3.916950401179096e-06,
1338
+ "loss": 0.2635,
1339
+ "step": 147,
1340
+ "step_loss": 0.22498083114624023
1341
+ },
1342
+ {
1343
+ "epoch": 1.6818181818181817,
1344
+ "grad_norm": 0.8172422080755228,
1345
+ "kl": 0.3187533915042877,
1346
+ "learning_rate": 3.903026830353268e-06,
1347
+ "loss": 0.273,
1348
+ "step": 148,
1349
+ "step_loss": 0.3263009190559387
1350
+ },
1351
+ {
1352
+ "epoch": 1.6931818181818183,
1353
+ "grad_norm": 0.8620536672122645,
1354
+ "kl": 0.27937936782836914,
1355
+ "learning_rate": 3.8890431201736715e-06,
1356
+ "loss": 0.2776,
1357
+ "step": 149,
1358
+ "step_loss": 0.3091718554496765
1359
+ },
1360
+ {
1361
+ "epoch": 1.7045454545454546,
1362
+ "grad_norm": 0.8127977485887442,
1363
+ "kl": 0.3105573356151581,
1364
+ "learning_rate": 3.875e-06,
1365
+ "loss": 0.2668,
1366
+ "step": 150,
1367
+ "step_loss": 0.3028494715690613
1368
+ },
1369
+ {
1370
+ "epoch": 1.7159090909090908,
1371
+ "grad_norm": 0.8201951442514309,
1372
+ "kl": 0.3465476334095001,
1373
+ "learning_rate": 3.86089820229064e-06,
1374
+ "loss": 0.2791,
1375
+ "step": 151,
1376
+ "step_loss": 0.31831085681915283
1377
+ },
1378
+ {
1379
+ "epoch": 1.7272727272727273,
1380
+ "grad_norm": 0.835516351157446,
1381
+ "kl": 0.21952536702156067,
1382
+ "learning_rate": 3.846738462564469e-06,
1383
+ "loss": 0.2721,
1384
+ "step": 152,
1385
+ "step_loss": 0.2234291136264801
1386
+ },
1387
+ {
1388
+ "epoch": 1.7386363636363638,
1389
+ "grad_norm": 0.8665975677625136,
1390
+ "kl": 0.29508858919143677,
1391
+ "learning_rate": 3.8325215193624945e-06,
1392
+ "loss": 0.2802,
1393
+ "step": 153,
1394
+ "step_loss": 0.3162890076637268
1395
+ },
1396
+ {
1397
+ "epoch": 1.75,
1398
+ "grad_norm": 0.8064955980472845,
1399
+ "kl": 0.32985877990722656,
1400
+ "learning_rate": 3.8182481142093315e-06,
1401
+ "loss": 0.2566,
1402
+ "step": 154,
1403
+ "step_loss": 0.2641649842262268
1404
+ },
1405
+ {
1406
+ "epoch": 1.7613636363636362,
1407
+ "grad_norm": 0.826451499999824,
1408
+ "kl": 0.2728135287761688,
1409
+ "learning_rate": 3.8039189915745286e-06,
1410
+ "loss": 0.292,
1411
+ "step": 155,
1412
+ "step_loss": 0.32532957196235657
1413
+ },
1414
+ {
1415
+ "epoch": 1.7727272727272727,
1416
+ "grad_norm": 0.8336078231467312,
1417
+ "kl": 0.38967686891555786,
1418
+ "learning_rate": 3.789534898833732e-06,
1419
+ "loss": 0.278,
1420
+ "step": 156,
1421
+ "step_loss": 0.3321007192134857
1422
+ },
1423
+ {
1424
+ "epoch": 1.7840909090909092,
1425
+ "grad_norm": 0.7893976689434017,
1426
+ "kl": 0.2202274650335312,
1427
+ "learning_rate": 3.775096586229713e-06,
1428
+ "loss": 0.2696,
1429
+ "step": 157,
1430
+ "step_loss": 0.2540920376777649
1431
+ },
1432
+ {
1433
+ "epoch": 1.7954545454545454,
1434
+ "grad_norm": 0.9319185366269114,
1435
+ "kl": 0.4245775043964386,
1436
+ "learning_rate": 3.760604806833228e-06,
1437
+ "loss": 0.288,
1438
+ "step": 158,
1439
+ "step_loss": 0.35646578669548035
1440
+ },
1441
+ {
1442
+ "epoch": 1.8068181818181817,
1443
+ "grad_norm": 0.744000278965067,
1444
+ "kl": 0.21765930950641632,
1445
+ "learning_rate": 3.7460603165037475e-06,
1446
+ "loss": 0.262,
1447
+ "step": 159,
1448
+ "step_loss": 0.2947049140930176
1449
+ },
1450
+ {
1451
+ "epoch": 1.8181818181818183,
1452
+ "grad_norm": 0.7890825930010562,
1453
+ "kl": 0.2992360591888428,
1454
+ "learning_rate": 3.7314638738500275e-06,
1455
+ "loss": 0.2797,
1456
+ "step": 160,
1457
+ "step_loss": 0.30612078309059143
1458
+ },
1459
+ {
1460
+ "epoch": 1.8295454545454546,
1461
+ "grad_norm": 0.806422206319446,
1462
+ "kl": 0.2850240468978882,
1463
+ "learning_rate": 3.7168162401905415e-06,
1464
+ "loss": 0.2643,
1465
+ "step": 161,
1466
+ "step_loss": 0.25350436568260193
1467
+ },
1468
+ {
1469
+ "epoch": 1.8409090909090908,
1470
+ "grad_norm": 0.7772092463231446,
1471
+ "kl": 0.294902503490448,
1472
+ "learning_rate": 3.7021181795137777e-06,
1473
+ "loss": 0.2752,
1474
+ "step": 162,
1475
+ "step_loss": 0.3195292353630066
1476
+ },
1477
+ {
1478
+ "epoch": 1.8522727272727273,
1479
+ "grad_norm": 0.8137138542667633,
1480
+ "kl": 0.3464955985546112,
1481
+ "learning_rate": 3.6873704584383834e-06,
1482
+ "loss": 0.2879,
1483
+ "step": 163,
1484
+ "step_loss": 0.3319052755832672
1485
+ },
1486
+ {
1487
+ "epoch": 1.8636363636363638,
1488
+ "grad_norm": 0.8158519268417352,
1489
+ "kl": 0.2651825547218323,
1490
+ "learning_rate": 3.6725738461731865e-06,
1491
+ "loss": 0.2698,
1492
+ "step": 164,
1493
+ "step_loss": 0.3068053722381592
1494
+ },
1495
+ {
1496
+ "epoch": 1.875,
1497
+ "grad_norm": 0.7751669380913654,
1498
+ "kl": 0.2937452793121338,
1499
+ "learning_rate": 3.65772911447707e-06,
1500
+ "loss": 0.2701,
1501
+ "step": 165,
1502
+ "step_loss": 0.2569812834262848
1503
+ },
1504
+ {
1505
+ "epoch": 1.8863636363636362,
1506
+ "grad_norm": 0.7494161240442716,
1507
+ "kl": 0.27101945877075195,
1508
+ "learning_rate": 3.6428370376187212e-06,
1509
+ "loss": 0.2756,
1510
+ "step": 166,
1511
+ "step_loss": 0.3467923402786255
1512
+ },
1513
+ {
1514
+ "epoch": 1.8977272727272727,
1515
+ "grad_norm": 0.8176861818718908,
1516
+ "kl": 0.27005308866500854,
1517
+ "learning_rate": 3.627898392336248e-06,
1518
+ "loss": 0.2652,
1519
+ "step": 167,
1520
+ "step_loss": 0.27606719732284546
1521
+ },
1522
+ {
1523
+ "epoch": 1.9090909090909092,
1524
+ "grad_norm": 0.7568912608938045,
1525
+ "kl": 0.23509696125984192,
1526
+ "learning_rate": 3.6129139577966665e-06,
1527
+ "loss": 0.2764,
1528
+ "step": 168,
1529
+ "step_loss": 0.27201592922210693
1530
+ },
1531
+ {
1532
+ "epoch": 1.9204545454545454,
1533
+ "grad_norm": 0.8229709961416729,
1534
+ "kl": 0.28099095821380615,
1535
+ "learning_rate": 3.597884515555258e-06,
1536
+ "loss": 0.2685,
1537
+ "step": 169,
1538
+ "step_loss": 0.29871946573257446
1539
+ },
1540
+ {
1541
+ "epoch": 1.9318181818181817,
1542
+ "grad_norm": 0.7594413163226815,
1543
+ "kl": 0.2222573161125183,
1544
+ "learning_rate": 3.5828108495148077e-06,
1545
+ "loss": 0.2601,
1546
+ "step": 170,
1547
+ "step_loss": 0.262919157743454
1548
+ },
1549
+ {
1550
+ "epoch": 1.9431818181818183,
1551
+ "grad_norm": 0.7658440412811187,
1552
+ "kl": 0.2369879186153412,
1553
+ "learning_rate": 3.5676937458847177e-06,
1554
+ "loss": 0.2898,
1555
+ "step": 171,
1556
+ "step_loss": 0.2267894744873047
1557
+ },
1558
+ {
1559
+ "epoch": 1.9545454545454546,
1560
+ "grad_norm": 0.7855144082392459,
1561
+ "kl": 0.24906377494335175,
1562
+ "learning_rate": 3.55253399314e-06,
1563
+ "loss": 0.2927,
1564
+ "step": 172,
1565
+ "step_loss": 0.33061373233795166
1566
+ },
1567
+ {
1568
+ "epoch": 1.9659090909090908,
1569
+ "grad_norm": 0.793142140040205,
1570
+ "kl": 0.24075445532798767,
1571
+ "learning_rate": 3.5373323819801493e-06,
1572
+ "loss": 0.2788,
1573
+ "step": 173,
1574
+ "step_loss": 0.3006718158721924
1575
+ },
1576
+ {
1577
+ "epoch": 1.9772727272727273,
1578
+ "grad_norm": 0.7402321203997657,
1579
+ "kl": 0.2078879177570343,
1580
+ "learning_rate": 3.5220897052879047e-06,
1581
+ "loss": 0.283,
1582
+ "step": 174,
1583
+ "step_loss": 0.2104087769985199
1584
+ },
1585
+ {
1586
+ "epoch": 1.9886363636363638,
1587
+ "grad_norm": 0.7547346712459372,
1588
+ "kl": 0.20877879858016968,
1589
+ "learning_rate": 3.5068067580878947e-06,
1590
+ "loss": 0.2724,
1591
+ "step": 175,
1592
+ "step_loss": 0.23320713639259338
1593
+ },
1594
+ {
1595
+ "epoch": 2.0,
1596
+ "grad_norm": 0.7771753483379468,
1597
+ "kl": 0.26442065834999084,
1598
+ "learning_rate": 3.491484337505166e-06,
1599
+ "loss": 0.268,
1600
+ "step": 176,
1601
+ "step_loss": 0.2616370916366577
1602
+ },
1603
+ {
1604
+ "epoch": 2.0,
1605
+ "eval_test_transformed.json_loss": 0.6573941707611084,
1606
+ "eval_test_transformed.json_runtime": 57.072,
1607
+ "eval_test_transformed.json_samples_per_second": 8.761,
1608
+ "eval_test_transformed.json_steps_per_second": 0.561,
1609
+ "step": 176
1610
+ },
1611
+ {
1612
+ "epoch": 2.0113636363636362,
1613
+ "grad_norm": 0.8267860023888801,
1614
+ "kl": 0.10590674728155136,
1615
+ "learning_rate": 3.476123242723614e-06,
1616
+ "loss": 0.2097,
1617
+ "step": 177,
1618
+ "step_loss": 0.5581972599029541
1619
+ },
1620
+ {
1621
+ "epoch": 2.022727272727273,
1622
+ "grad_norm": 0.856141962071338,
1623
+ "kl": 0.3062549829483032,
1624
+ "learning_rate": 3.460724274944294e-06,
1625
+ "loss": 0.2173,
1626
+ "step": 178,
1627
+ "step_loss": 0.23314087092876434
1628
+ },
1629
+ {
1630
+ "epoch": 2.034090909090909,
1631
+ "grad_norm": 0.7361155640769321,
1632
+ "kl": 0.3152432143688202,
1633
+ "learning_rate": 3.445288237343632e-06,
1634
+ "loss": 0.1978,
1635
+ "step": 179,
1636
+ "step_loss": 0.20342102646827698
1637
+ },
1638
+ {
1639
+ "epoch": 2.0454545454545454,
1640
+ "grad_norm": 0.732358232912068,
1641
+ "kl": 0.382126122713089,
1642
+ "learning_rate": 3.4298159350315398e-06,
1643
+ "loss": 0.2032,
1644
+ "step": 180,
1645
+ "step_loss": 0.24822968244552612
1646
+ },
1647
+ {
1648
+ "epoch": 2.0568181818181817,
1649
+ "grad_norm": 0.7942400733536357,
1650
+ "kl": 0.3069852590560913,
1651
+ "learning_rate": 3.4143081750094107e-06,
1652
+ "loss": 0.1976,
1653
+ "step": 181,
1654
+ "step_loss": 0.21024365723133087
1655
+ },
1656
+ {
1657
+ "epoch": 2.0681818181818183,
1658
+ "grad_norm": 0.9225206215680616,
1659
+ "kl": 0.4743329882621765,
1660
+ "learning_rate": 3.3987657661280393e-06,
1661
+ "loss": 0.2133,
1662
+ "step": 182,
1663
+ "step_loss": 0.22629733383655548
1664
+ },
1665
+ {
1666
+ "epoch": 2.0795454545454546,
1667
+ "grad_norm": 0.9790953481687389,
1668
+ "kl": 0.31061556935310364,
1669
+ "learning_rate": 3.383189519045428e-06,
1670
+ "loss": 0.2031,
1671
+ "step": 183,
1672
+ "step_loss": 0.21077898144721985
1673
+ },
1674
+ {
1675
+ "epoch": 2.090909090909091,
1676
+ "grad_norm": 0.9744424313842567,
1677
+ "kl": 0.380555659532547,
1678
+ "learning_rate": 3.3675802461845036e-06,
1679
+ "loss": 0.2004,
1680
+ "step": 184,
1681
+ "step_loss": 0.22242428362369537
1682
+ },
1683
+ {
1684
+ "epoch": 2.102272727272727,
1685
+ "grad_norm": 0.916179520314943,
1686
+ "kl": 0.43431419134140015,
1687
+ "learning_rate": 3.351938761690747e-06,
1688
+ "loss": 0.1966,
1689
+ "step": 185,
1690
+ "step_loss": 0.2207513451576233
1691
+ },
1692
+ {
1693
+ "epoch": 2.1136363636363638,
1694
+ "grad_norm": 0.8004844301509703,
1695
+ "kl": 0.28789108991622925,
1696
+ "learning_rate": 3.3362658813897274e-06,
1697
+ "loss": 0.1942,
1698
+ "step": 186,
1699
+ "step_loss": 0.26408788561820984
1700
+ },
1701
+ {
1702
+ "epoch": 2.125,
1703
+ "grad_norm": 0.8955852845271478,
1704
+ "kl": 0.28126734495162964,
1705
+ "learning_rate": 3.320562422744548e-06,
1706
+ "loss": 0.2053,
1707
+ "step": 187,
1708
+ "step_loss": 0.2404702603816986
1709
+ },
1710
+ {
1711
+ "epoch": 2.1363636363636362,
1712
+ "grad_norm": 0.8109199492626206,
1713
+ "kl": 0.31442955136299133,
1714
+ "learning_rate": 3.3048292048132153e-06,
1715
+ "loss": 0.2011,
1716
+ "step": 188,
1717
+ "step_loss": 0.21545666456222534
1718
+ },
1719
+ {
1720
+ "epoch": 2.147727272727273,
1721
+ "grad_norm": 0.8741546702827006,
1722
+ "kl": 0.2675096094608307,
1723
+ "learning_rate": 3.289067048205912e-06,
1724
+ "loss": 0.2088,
1725
+ "step": 189,
1726
+ "step_loss": 0.1575331836938858
1727
+ },
1728
+ {
1729
+ "epoch": 2.159090909090909,
1730
+ "grad_norm": 0.8080813493615443,
1731
+ "kl": 0.3244311213493347,
1732
+ "learning_rate": 3.273276775042199e-06,
1733
+ "loss": 0.2003,
1734
+ "step": 190,
1735
+ "step_loss": 0.187534362077713
1736
+ },
1737
+ {
1738
+ "epoch": 2.1704545454545454,
1739
+ "grad_norm": 0.8677916956527729,
1740
+ "kl": 0.2513880729675293,
1741
+ "learning_rate": 3.2574592089081375e-06,
1742
+ "loss": 0.1989,
1743
+ "step": 191,
1744
+ "step_loss": 0.17420931160449982
1745
+ },
1746
+ {
1747
+ "epoch": 2.1818181818181817,
1748
+ "grad_norm": 0.798718321325761,
1749
+ "kl": 0.291971892118454,
1750
+ "learning_rate": 3.241615174813327e-06,
1751
+ "loss": 0.207,
1752
+ "step": 192,
1753
+ "step_loss": 0.19951367378234863
1754
+ },
1755
+ {
1756
+ "epoch": 2.1931818181818183,
1757
+ "grad_norm": 0.8266125308725523,
1758
+ "kl": 0.3032814562320709,
1759
+ "learning_rate": 3.2257454991478825e-06,
1760
+ "loss": 0.1893,
1761
+ "step": 193,
1762
+ "step_loss": 0.17084187269210815
1763
+ },
1764
+ {
1765
+ "epoch": 2.2045454545454546,
1766
+ "grad_norm": 0.7812137976841603,
1767
+ "kl": 0.38334983587265015,
1768
+ "learning_rate": 3.2098510096393214e-06,
1769
+ "loss": 0.2027,
1770
+ "step": 194,
1771
+ "step_loss": 0.20809711515903473
1772
+ },
1773
+ {
1774
+ "epoch": 2.215909090909091,
1775
+ "grad_norm": 0.9554319759849772,
1776
+ "kl": 0.3265298306941986,
1777
+ "learning_rate": 3.1939325353094004e-06,
1778
+ "loss": 0.2052,
1779
+ "step": 195,
1780
+ "step_loss": 0.19203175604343414
1781
+ },
1782
+ {
1783
+ "epoch": 2.227272727272727,
1784
+ "grad_norm": 0.8249089393067537,
1785
+ "kl": 0.35938209295272827,
1786
+ "learning_rate": 3.177990906430871e-06,
1787
+ "loss": 0.1967,
1788
+ "step": 196,
1789
+ "step_loss": 0.2233177125453949
1790
+ },
1791
+ {
1792
+ "epoch": 2.2386363636363638,
1793
+ "grad_norm": 0.7933030950436119,
1794
+ "kl": 0.32349923253059387,
1795
+ "learning_rate": 3.1620269544841764e-06,
1796
+ "loss": 0.1913,
1797
+ "step": 197,
1798
+ "step_loss": 0.1729939877986908
1799
+ },
1800
+ {
1801
+ "epoch": 2.25,
1802
+ "grad_norm": 0.8197164640788506,
1803
+ "kl": 0.3547500669956207,
1804
+ "learning_rate": 3.1460415121140804e-06,
1805
+ "loss": 0.2006,
1806
+ "step": 198,
1807
+ "step_loss": 0.2586993873119354
1808
+ },
1809
+ {
1810
+ "epoch": 2.2613636363636362,
1811
+ "grad_norm": 0.8495735950170649,
1812
+ "kl": 0.3509565591812134,
1813
+ "learning_rate": 3.1300354130862404e-06,
1814
+ "loss": 0.2045,
1815
+ "step": 199,
1816
+ "step_loss": 0.21880128979682922
1817
+ },
1818
+ {
1819
+ "epoch": 2.2727272727272725,
1820
+ "grad_norm": 0.7758237844371901,
1821
+ "kl": 0.3566822409629822,
1822
+ "learning_rate": 3.1140094922437213e-06,
1823
+ "loss": 0.1906,
1824
+ "step": 200,
1825
+ "step_loss": 0.15825271606445312
1826
+ },
1827
+ {
1828
+ "epoch": 2.284090909090909,
1829
+ "grad_norm": 0.7748859598486534,
1830
+ "kl": 0.23674319684505463,
1831
+ "learning_rate": 3.097964585463449e-06,
1832
+ "loss": 0.1904,
1833
+ "step": 201,
1834
+ "step_loss": 0.15398302674293518
1835
+ },
1836
+ {
1837
+ "epoch": 2.2954545454545454,
1838
+ "grad_norm": 0.8150881114674452,
1839
+ "kl": 0.32412102818489075,
1840
+ "learning_rate": 3.081901529612614e-06,
1841
+ "loss": 0.2015,
1842
+ "step": 202,
1843
+ "step_loss": 0.1894824057817459
1844
+ },
1845
+ {
1846
+ "epoch": 2.3068181818181817,
1847
+ "grad_norm": 0.777056310216207,
1848
+ "kl": 0.33722126483917236,
1849
+ "learning_rate": 3.065821162505024e-06,
1850
+ "loss": 0.2094,
1851
+ "step": 203,
1852
+ "step_loss": 0.24027691781520844
1853
+ },
1854
+ {
1855
+ "epoch": 2.3181818181818183,
1856
+ "grad_norm": 0.7521221020569652,
1857
+ "kl": 0.30370503664016724,
1858
+ "learning_rate": 3.0497243228574054e-06,
1859
+ "loss": 0.2033,
1860
+ "step": 204,
1861
+ "step_loss": 0.2159876674413681
1862
+ },
1863
+ {
1864
+ "epoch": 2.3295454545454546,
1865
+ "grad_norm": 0.8056198200446986,
1866
+ "kl": 0.27457597851753235,
1867
+ "learning_rate": 3.0336118502456515e-06,
1868
+ "loss": 0.2057,
1869
+ "step": 205,
1870
+ "step_loss": 0.1882285177707672
1871
+ },
1872
+ {
1873
+ "epoch": 2.340909090909091,
1874
+ "grad_norm": 0.7864857515183022,
1875
+ "kl": 0.35345762968063354,
1876
+ "learning_rate": 3.0174845850610395e-06,
1877
+ "loss": 0.1896,
1878
+ "step": 206,
1879
+ "step_loss": 0.1616518199443817
1880
+ },
1881
+ {
1882
+ "epoch": 2.3522727272727275,
1883
+ "grad_norm": 0.7347377124860899,
1884
+ "kl": 0.26013386249542236,
1885
+ "learning_rate": 3.001343368466396e-06,
1886
+ "loss": 0.1931,
1887
+ "step": 207,
1888
+ "step_loss": 0.15433846414089203
1889
+ },
1890
+ {
1891
+ "epoch": 2.3636363636363638,
1892
+ "grad_norm": 0.8262277498582172,
1893
+ "kl": 0.41462039947509766,
1894
+ "learning_rate": 2.9851890423522205e-06,
1895
+ "loss": 0.1946,
1896
+ "step": 208,
1897
+ "step_loss": 0.17125703394412994
1898
+ },
1899
+ {
1900
+ "epoch": 2.375,
1901
+ "grad_norm": 0.8440169159473123,
1902
+ "kl": 0.30189239978790283,
1903
+ "learning_rate": 2.9690224492927777e-06,
1904
+ "loss": 0.1972,
1905
+ "step": 209,
1906
+ "step_loss": 0.1643592119216919
1907
+ },
1908
+ {
1909
+ "epoch": 2.3863636363636362,
1910
+ "grad_norm": 0.7902010267144333,
1911
+ "kl": 0.30659422278404236,
1912
+ "learning_rate": 2.9528444325021475e-06,
1913
+ "loss": 0.196,
1914
+ "step": 210,
1915
+ "step_loss": 0.16432619094848633
1916
+ },
1917
+ {
1918
+ "epoch": 2.3977272727272725,
1919
+ "grad_norm": 0.7897263557587403,
1920
+ "kl": 0.35797473788261414,
1921
+ "learning_rate": 2.9366558357902485e-06,
1922
+ "loss": 0.2104,
1923
+ "step": 211,
1924
+ "step_loss": 0.18551866710186005
1925
+ },
1926
+ {
1927
+ "epoch": 2.409090909090909,
1928
+ "grad_norm": 0.8139541524586551,
1929
+ "kl": 0.5444263815879822,
1930
+ "learning_rate": 2.920457503518824e-06,
1931
+ "loss": 0.2149,
1932
+ "step": 212,
1933
+ "step_loss": 0.2275647521018982
1934
+ },
1935
+ {
1936
+ "epoch": 2.4204545454545454,
1937
+ "grad_norm": 0.779793908267749,
1938
+ "kl": 0.26403847336769104,
1939
+ "learning_rate": 2.9042502805574022e-06,
1940
+ "loss": 0.195,
1941
+ "step": 213,
1942
+ "step_loss": 0.16895370185375214
1943
+ },
1944
+ {
1945
+ "epoch": 2.4318181818181817,
1946
+ "grad_norm": 0.8129577814286397,
1947
+ "kl": 0.3593398630619049,
1948
+ "learning_rate": 2.8880350122392327e-06,
1949
+ "loss": 0.1991,
1950
+ "step": 214,
1951
+ "step_loss": 0.19971898198127747
1952
+ },
1953
+ {
1954
+ "epoch": 2.4431818181818183,
1955
+ "grad_norm": 0.819141896928592,
1956
+ "kl": 0.40604791045188904,
1957
+ "learning_rate": 2.87181254431719e-06,
1958
+ "loss": 0.1916,
1959
+ "step": 215,
1960
+ "step_loss": 0.19662940502166748
1961
+ },
1962
+ {
1963
+ "epoch": 2.4545454545454546,
1964
+ "grad_norm": 0.8326566611196083,
1965
+ "kl": 0.30143654346466064,
1966
+ "learning_rate": 2.8555837229196654e-06,
1967
+ "loss": 0.2012,
1968
+ "step": 216,
1969
+ "step_loss": 0.19791531562805176
1970
+ },
1971
+ {
1972
+ "epoch": 2.465909090909091,
1973
+ "grad_norm": 0.7971460218117707,
1974
+ "kl": 0.28109458088874817,
1975
+ "learning_rate": 2.839349394506435e-06,
1976
+ "loss": 0.2047,
1977
+ "step": 217,
1978
+ "step_loss": 0.1851027011871338
1979
+ },
1980
+ {
1981
+ "epoch": 2.4772727272727275,
1982
+ "grad_norm": 0.8160202720148206,
1983
+ "kl": 0.3231932520866394,
1984
+ "learning_rate": 2.8231104058245066e-06,
1985
+ "loss": 0.2046,
1986
+ "step": 218,
1987
+ "step_loss": 0.1588630974292755
1988
+ },
1989
+ {
1990
+ "epoch": 2.4886363636363638,
1991
+ "grad_norm": 0.8870641900955384,
1992
+ "kl": 0.39819225668907166,
1993
+ "learning_rate": 2.8068676038639584e-06,
1994
+ "loss": 0.2045,
1995
+ "step": 219,
1996
+ "step_loss": 0.21049059927463531
1997
+ },
1998
+ {
1999
+ "epoch": 2.5,
2000
+ "grad_norm": 0.8580982781435952,
2001
+ "kl": 0.21048355102539062,
2002
+ "learning_rate": 2.790621835813761e-06,
2003
+ "loss": 0.1954,
2004
+ "step": 220,
2005
+ "step_loss": 0.15752212703227997
2006
+ },
2007
+ {
2008
+ "epoch": 2.5113636363636362,
2009
+ "grad_norm": 0.8332029161126598,
2010
+ "kl": 0.3022167980670929,
2011
+ "learning_rate": 2.7743739490175902e-06,
2012
+ "loss": 0.1993,
2013
+ "step": 221,
2014
+ "step_loss": 0.18184006214141846
2015
+ },
2016
+ {
2017
+ "epoch": 2.5227272727272725,
2018
+ "grad_norm": 0.7915764221822466,
2019
+ "kl": 0.3532565236091614,
2020
+ "learning_rate": 2.75812479092963e-06,
2021
+ "loss": 0.2028,
2022
+ "step": 222,
2023
+ "step_loss": 0.2090645432472229
2024
+ },
2025
+ {
2026
+ "epoch": 2.534090909090909,
2027
+ "grad_norm": 0.816127163580774,
2028
+ "kl": 0.3357287645339966,
2029
+ "learning_rate": 2.7418752090703716e-06,
2030
+ "loss": 0.1993,
2031
+ "step": 223,
2032
+ "step_loss": 0.22028760612010956
2033
+ },
2034
+ {
2035
+ "epoch": 2.5454545454545454,
2036
+ "grad_norm": 0.8169798227897933,
2037
+ "kl": 0.3894638121128082,
2038
+ "learning_rate": 2.72562605098241e-06,
2039
+ "loss": 0.2095,
2040
+ "step": 224,
2041
+ "step_loss": 0.3154832422733307
2042
+ },
2043
+ {
2044
+ "epoch": 2.5568181818181817,
2045
+ "grad_norm": 0.8178116233042594,
2046
+ "kl": 0.4051194190979004,
2047
+ "learning_rate": 2.7093781641862387e-06,
2048
+ "loss": 0.215,
2049
+ "step": 225,
2050
+ "step_loss": 0.21542856097221375
2051
+ },
2052
+ {
2053
+ "epoch": 2.5681818181818183,
2054
+ "grad_norm": 0.7927440832417105,
2055
+ "kl": 0.48752185702323914,
2056
+ "learning_rate": 2.6931323961360423e-06,
2057
+ "loss": 0.1982,
2058
+ "step": 226,
2059
+ "step_loss": 0.2092168629169464
2060
+ },
2061
+ {
2062
+ "epoch": 2.5795454545454546,
2063
+ "grad_norm": 0.8036623600570535,
2064
+ "kl": 0.25240644812583923,
2065
+ "learning_rate": 2.6768895941754945e-06,
2066
+ "loss": 0.1875,
2067
+ "step": 227,
2068
+ "step_loss": 0.1589215099811554
2069
+ },
2070
+ {
2071
+ "epoch": 2.590909090909091,
2072
+ "grad_norm": 0.8374058314659513,
2073
+ "kl": 0.3620951473712921,
2074
+ "learning_rate": 2.660650605493566e-06,
2075
+ "loss": 0.1882,
2076
+ "step": 228,
2077
+ "step_loss": 0.19974978268146515
2078
+ },
2079
+ {
2080
+ "epoch": 2.6022727272727275,
2081
+ "grad_norm": 0.8335380700060886,
2082
+ "kl": 0.41594362258911133,
2083
+ "learning_rate": 2.644416277080335e-06,
2084
+ "loss": 0.2165,
2085
+ "step": 229,
2086
+ "step_loss": 0.24422059953212738
2087
+ },
2088
+ {
2089
+ "epoch": 2.6136363636363638,
2090
+ "grad_norm": 0.8100345325173146,
2091
+ "kl": 0.4320451319217682,
2092
+ "learning_rate": 2.6281874556828106e-06,
2093
+ "loss": 0.2252,
2094
+ "step": 230,
2095
+ "step_loss": 0.2085280418395996
2096
+ },
2097
+ {
2098
+ "epoch": 2.625,
2099
+ "grad_norm": 0.8530910666847069,
2100
+ "kl": 0.3395635783672333,
2101
+ "learning_rate": 2.6119649877607684e-06,
2102
+ "loss": 0.2006,
2103
+ "step": 231,
2104
+ "step_loss": 0.18190529942512512
2105
+ },
2106
+ {
2107
+ "epoch": 2.6363636363636362,
2108
+ "grad_norm": 0.7566154700308811,
2109
+ "kl": 0.3144618272781372,
2110
+ "learning_rate": 2.5957497194425985e-06,
2111
+ "loss": 0.1887,
2112
+ "step": 232,
2113
+ "step_loss": 0.18467919528484344
2114
+ },
2115
+ {
2116
+ "epoch": 2.6477272727272725,
2117
+ "grad_norm": 0.7310945410825066,
2118
+ "kl": 0.3082126975059509,
2119
+ "learning_rate": 2.579542496481178e-06,
2120
+ "loss": 0.1922,
2121
+ "step": 233,
2122
+ "step_loss": 0.21097740530967712
2123
+ },
2124
+ {
2125
+ "epoch": 2.659090909090909,
2126
+ "grad_norm": 0.7837603862506226,
2127
+ "kl": 0.30413469672203064,
2128
+ "learning_rate": 2.5633441642097527e-06,
2129
+ "loss": 0.204,
2130
+ "step": 234,
2131
+ "step_loss": 0.2184579074382782
2132
+ },
2133
+ {
2134
+ "epoch": 2.6704545454545454,
2135
+ "grad_norm": 0.7849444203230034,
2136
+ "kl": 0.32521089911460876,
2137
+ "learning_rate": 2.5471555674978536e-06,
2138
+ "loss": 0.1902,
2139
+ "step": 235,
2140
+ "step_loss": 0.1784965693950653
2141
+ },
2142
+ {
2143
+ "epoch": 2.6818181818181817,
2144
+ "grad_norm": 0.8978400192531096,
2145
+ "kl": 0.4359068274497986,
2146
+ "learning_rate": 2.530977550707223e-06,
2147
+ "loss": 0.1998,
2148
+ "step": 236,
2149
+ "step_loss": 0.24568131566047668
2150
+ },
2151
+ {
2152
+ "epoch": 2.6931818181818183,
2153
+ "grad_norm": 0.8296558697377163,
2154
+ "kl": 0.34526827931404114,
2155
+ "learning_rate": 2.5148109576477798e-06,
2156
+ "loss": 0.2051,
2157
+ "step": 237,
2158
+ "step_loss": 0.1845228672027588
2159
+ },
2160
+ {
2161
+ "epoch": 2.7045454545454546,
2162
+ "grad_norm": 0.8456638318243491,
2163
+ "kl": 0.4374793767929077,
2164
+ "learning_rate": 2.4986566315336047e-06,
2165
+ "loss": 0.2099,
2166
+ "step": 238,
2167
+ "step_loss": 0.2226126492023468
2168
+ },
2169
+ {
2170
+ "epoch": 2.715909090909091,
2171
+ "grad_norm": 0.7855160396523918,
2172
+ "kl": 0.35535740852355957,
2173
+ "learning_rate": 2.4825154149389608e-06,
2174
+ "loss": 0.2064,
2175
+ "step": 239,
2176
+ "step_loss": 0.2260066717863083
2177
+ },
2178
+ {
2179
+ "epoch": 2.7272727272727275,
2180
+ "grad_norm": 0.7687481608795249,
2181
+ "kl": 0.3926181495189667,
2182
+ "learning_rate": 2.4663881497543497e-06,
2183
+ "loss": 0.1978,
2184
+ "step": 240,
2185
+ "step_loss": 0.183305025100708
2186
+ },
2187
+ {
2188
+ "epoch": 2.7386363636363638,
2189
+ "grad_norm": 0.8743610433319449,
2190
+ "kl": 0.3105931580066681,
2191
+ "learning_rate": 2.450275677142595e-06,
2192
+ "loss": 0.1982,
2193
+ "step": 241,
2194
+ "step_loss": 0.1785978525876999
2195
+ },
2196
+ {
2197
+ "epoch": 2.75,
2198
+ "grad_norm": 0.8103030286089026,
2199
+ "kl": 0.28116321563720703,
2200
+ "learning_rate": 2.4341788374949753e-06,
2201
+ "loss": 0.2028,
2202
+ "step": 242,
2203
+ "step_loss": 0.16758720576763153
2204
+ },
2205
+ {
2206
+ "epoch": 2.7613636363636362,
2207
+ "grad_norm": 0.7780046576774838,
2208
+ "kl": 0.31231576204299927,
2209
+ "learning_rate": 2.418098470387387e-06,
2210
+ "loss": 0.204,
2211
+ "step": 243,
2212
+ "step_loss": 0.21919600665569305
2213
+ },
2214
+ {
2215
+ "epoch": 2.7727272727272725,
2216
+ "grad_norm": 0.7900342339932793,
2217
+ "kl": 0.36211156845092773,
2218
+ "learning_rate": 2.4020354145365526e-06,
2219
+ "loss": 0.1925,
2220
+ "step": 244,
2221
+ "step_loss": 0.22099542617797852
2222
+ },
2223
+ {
2224
+ "epoch": 2.784090909090909,
2225
+ "grad_norm": 0.7782246567974114,
2226
+ "kl": 0.24455486238002777,
2227
+ "learning_rate": 2.3859905077562802e-06,
2228
+ "loss": 0.1871,
2229
+ "step": 245,
2230
+ "step_loss": 0.13276106119155884
2231
+ },
2232
+ {
2233
+ "epoch": 2.7954545454545454,
2234
+ "grad_norm": 0.7780058068595647,
2235
+ "kl": 0.3040383756160736,
2236
+ "learning_rate": 2.36996458691376e-06,
2237
+ "loss": 0.203,
2238
+ "step": 246,
2239
+ "step_loss": 0.18567970395088196
2240
+ },
2241
+ {
2242
+ "epoch": 2.8068181818181817,
2243
+ "grad_norm": 0.797452119268861,
2244
+ "kl": 0.3017336428165436,
2245
+ "learning_rate": 2.35395848788592e-06,
2246
+ "loss": 0.2045,
2247
+ "step": 247,
2248
+ "step_loss": 0.18115977942943573
2249
+ },
2250
+ {
2251
+ "epoch": 2.8181818181818183,
2252
+ "grad_norm": 0.8291981778954278,
2253
+ "kl": 0.31822529435157776,
2254
+ "learning_rate": 2.337973045515824e-06,
2255
+ "loss": 0.2063,
2256
+ "step": 248,
2257
+ "step_loss": 0.18958526849746704
2258
+ },
2259
+ {
2260
+ "epoch": 2.8295454545454546,
2261
+ "grad_norm": 0.8192468169601297,
2262
+ "kl": 0.36042526364326477,
2263
+ "learning_rate": 2.3220090935691284e-06,
2264
+ "loss": 0.2078,
2265
+ "step": 249,
2266
+ "step_loss": 0.198805570602417
2267
+ },
2268
+ {
2269
+ "epoch": 2.840909090909091,
2270
+ "grad_norm": 0.8386142691384693,
2271
+ "kl": 0.3129850924015045,
2272
+ "learning_rate": 2.3060674646906007e-06,
2273
+ "loss": 0.1976,
2274
+ "step": 250,
2275
+ "step_loss": 0.15486395359039307
2276
+ },
2277
+ {
2278
+ "epoch": 2.8522727272727275,
2279
+ "grad_norm": 0.8542094258716569,
2280
+ "kl": 0.328252911567688,
2281
+ "learning_rate": 2.2901489903606793e-06,
2282
+ "loss": 0.2094,
2283
+ "step": 251,
2284
+ "step_loss": 0.22234201431274414
2285
+ },
2286
+ {
2287
+ "epoch": 2.8636363636363638,
2288
+ "grad_norm": 0.8235027946049533,
2289
+ "kl": 0.33431679010391235,
2290
+ "learning_rate": 2.274254500852118e-06,
2291
+ "loss": 0.2108,
2292
+ "step": 252,
2293
+ "step_loss": 0.23872962594032288
2294
+ },
2295
+ {
2296
+ "epoch": 2.875,
2297
+ "grad_norm": 0.7826979380094895,
2298
+ "kl": 0.35612499713897705,
2299
+ "learning_rate": 2.258384825186673e-06,
2300
+ "loss": 0.2018,
2301
+ "step": 253,
2302
+ "step_loss": 0.22147932648658752
2303
+ },
2304
+ {
2305
+ "epoch": 2.8863636363636362,
2306
+ "grad_norm": 0.7727887293657175,
2307
+ "kl": 0.4257417321205139,
2308
+ "learning_rate": 2.2425407910918632e-06,
2309
+ "loss": 0.1996,
2310
+ "step": 254,
2311
+ "step_loss": 0.25106555223464966
2312
+ },
2313
+ {
2314
+ "epoch": 2.8977272727272725,
2315
+ "grad_norm": 0.7880191514694174,
2316
+ "kl": 0.3257736265659332,
2317
+ "learning_rate": 2.2267232249578026e-06,
2318
+ "loss": 0.1997,
2319
+ "step": 255,
2320
+ "step_loss": 0.17997223138809204
2321
+ },
2322
+ {
2323
+ "epoch": 2.909090909090909,
2324
+ "grad_norm": 0.8229368102750961,
2325
+ "kl": 0.32289835810661316,
2326
+ "learning_rate": 2.2109329517940897e-06,
2327
+ "loss": 0.2049,
2328
+ "step": 256,
2329
+ "step_loss": 0.19980621337890625
2330
+ },
2331
+ {
2332
+ "epoch": 2.9204545454545454,
2333
+ "grad_norm": 0.8649527821304737,
2334
+ "kl": 0.4314434826374054,
2335
+ "learning_rate": 2.1951707951867862e-06,
2336
+ "loss": 0.2071,
2337
+ "step": 257,
2338
+ "step_loss": 0.19861182570457458
2339
+ },
2340
+ {
2341
+ "epoch": 2.9318181818181817,
2342
+ "grad_norm": 0.7631295075779413,
2343
+ "kl": 0.2881592810153961,
2344
+ "learning_rate": 2.1794375772554525e-06,
2345
+ "loss": 0.195,
2346
+ "step": 258,
2347
+ "step_loss": 0.17643983662128448
2348
+ },
2349
+ {
2350
+ "epoch": 2.9431818181818183,
2351
+ "grad_norm": 0.8176775074066636,
2352
+ "kl": 0.2888239324092865,
2353
+ "learning_rate": 2.163734118610274e-06,
2354
+ "loss": 0.2033,
2355
+ "step": 259,
2356
+ "step_loss": 0.22650499641895294
2357
+ },
2358
+ {
2359
+ "epoch": 2.9545454545454546,
2360
+ "grad_norm": 0.7857239601852497,
2361
+ "kl": 0.39291509985923767,
2362
+ "learning_rate": 2.148061238309253e-06,
2363
+ "loss": 0.1934,
2364
+ "step": 260,
2365
+ "step_loss": 0.19493892788887024
2366
+ },
2367
+ {
2368
+ "epoch": 2.965909090909091,
2369
+ "grad_norm": 0.773095874284012,
2370
+ "kl": 0.37562623620033264,
2371
+ "learning_rate": 2.132419753815497e-06,
2372
+ "loss": 0.1945,
2373
+ "step": 261,
2374
+ "step_loss": 0.2021428793668747
2375
+ },
2376
+ {
2377
+ "epoch": 2.9772727272727275,
2378
+ "grad_norm": 0.8313683748212116,
2379
+ "kl": 0.3755533695220947,
2380
+ "learning_rate": 2.116810480954573e-06,
2381
+ "loss": 0.2116,
2382
+ "step": 262,
2383
+ "step_loss": 0.2229767143726349
2384
+ },
2385
+ {
2386
+ "epoch": 2.9886363636363638,
2387
+ "grad_norm": 0.7820076892211333,
2388
+ "kl": 0.32565972208976746,
2389
+ "learning_rate": 2.101234233871961e-06,
2390
+ "loss": 0.2024,
2391
+ "step": 263,
2392
+ "step_loss": 0.2286100536584854
2393
+ },
2394
+ {
2395
+ "epoch": 3.0,
2396
+ "grad_norm": 0.7846662975927288,
2397
+ "kl": 0.4572798013687134,
2398
+ "learning_rate": 2.0856918249905904e-06,
2399
+ "loss": 0.1966,
2400
+ "step": 264,
2401
+ "step_loss": 0.2366623431444168
2402
+ },
2403
+ {
2404
+ "epoch": 3.0,
2405
+ "eval_test_transformed.json_loss": 0.7202348113059998,
2406
+ "eval_test_transformed.json_runtime": 57.1103,
2407
+ "eval_test_transformed.json_samples_per_second": 8.755,
2408
+ "eval_test_transformed.json_steps_per_second": 0.56,
2409
+ "step": 264
2410
+ }
2411
+ ],
2412
+ "logging_steps": 1.0,
2413
+ "max_steps": 440,
2414
+ "num_input_tokens_seen": 0,
2415
+ "num_train_epochs": 5,
2416
+ "save_steps": 50.0,
2417
+ "stateful_callbacks": {
2418
+ "TrainerControl": {
2419
+ "args": {
2420
+ "should_epoch_stop": false,
2421
+ "should_evaluate": false,
2422
+ "should_log": false,
2423
+ "should_save": true,
2424
+ "should_training_stop": false
2425
+ },
2426
+ "attributes": {}
2427
+ }
2428
+ },
2429
+ "total_flos": 105951870517248.0,
2430
+ "train_batch_size": 1,
2431
+ "trial_name": null,
2432
+ "trial_params": null
2433
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70070ea7b8e7f33977358fe366ff1be0ffa42366cc9f04bff068425d226b4779
3
+ size 8888
vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
zero_to_fp32.py ADDED
@@ -0,0 +1,587 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: python zero_to_fp32.py . pytorch_model.bin
14
+
15
+ import argparse
16
+ import torch
17
+ import glob
18
+ import math
19
+ import os
20
+ import re
21
+ from collections import OrderedDict
22
+ from dataclasses import dataclass
23
+
24
+ # while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
25
+ # DeepSpeed data structures it has to be available in the current python environment.
26
+ from deepspeed.utils import logger
27
+ from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
28
+ FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
29
+ FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
30
+
31
+
32
+ @dataclass
33
+ class zero_model_state:
34
+ buffers: dict()
35
+ param_shapes: dict()
36
+ shared_params: list
37
+ ds_version: int
38
+ frozen_param_shapes: dict()
39
+ frozen_param_fragments: dict()
40
+
41
+
42
+ debug = 0
43
+
44
+ # load to cpu
45
+ device = torch.device('cpu')
46
+
47
+
48
+ def atoi(text):
49
+ return int(text) if text.isdigit() else text
50
+
51
+
52
+ def natural_keys(text):
53
+ '''
54
+ alist.sort(key=natural_keys) sorts in human order
55
+ http://nedbatchelder.com/blog/200712/human_sorting.html
56
+ (See Toothy's implementation in the comments)
57
+ '''
58
+ return [atoi(c) for c in re.split(r'(\d+)', text)]
59
+
60
+
61
+ def get_model_state_file(checkpoint_dir, zero_stage):
62
+ if not os.path.isdir(checkpoint_dir):
63
+ raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
64
+
65
+ # there should be only one file
66
+ if zero_stage <= 2:
67
+ file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
68
+ elif zero_stage == 3:
69
+ file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
70
+
71
+ if not os.path.exists(file):
72
+ raise FileNotFoundError(f"can't find model states file at '{file}'")
73
+
74
+ return file
75
+
76
+
77
+ def get_checkpoint_files(checkpoint_dir, glob_pattern):
78
+ # XXX: need to test that this simple glob rule works for multi-node setup too
79
+ ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
80
+
81
+ if len(ckpt_files) == 0:
82
+ raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
83
+
84
+ return ckpt_files
85
+
86
+
87
+ def get_optim_files(checkpoint_dir):
88
+ return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
89
+
90
+
91
+ def get_model_state_files(checkpoint_dir):
92
+ return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
93
+
94
+
95
+ def parse_model_states(files):
96
+ zero_model_states = []
97
+ for file in files:
98
+ state_dict = torch.load(file, map_location=device)
99
+
100
+ if BUFFER_NAMES not in state_dict:
101
+ raise ValueError(f"{file} is not a model state checkpoint")
102
+ buffer_names = state_dict[BUFFER_NAMES]
103
+ if debug:
104
+ print("Found buffers:", buffer_names)
105
+
106
+ # recover just the buffers while restoring them to fp32 if they were saved in fp16
107
+ buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
108
+ param_shapes = state_dict[PARAM_SHAPES]
109
+
110
+ # collect parameters that are included in param_shapes
111
+ param_names = []
112
+ for s in param_shapes:
113
+ for name in s.keys():
114
+ param_names.append(name)
115
+
116
+ # update with frozen parameters
117
+ frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
118
+ if frozen_param_shapes is not None:
119
+ if debug:
120
+ print(f"Found frozen_param_shapes: {frozen_param_shapes}")
121
+ param_names += list(frozen_param_shapes.keys())
122
+
123
+ # handle shared params
124
+ shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
125
+
126
+ ds_version = state_dict.get(DS_VERSION, None)
127
+
128
+ frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
129
+
130
+ z_model_state = zero_model_state(buffers=buffers,
131
+ param_shapes=param_shapes,
132
+ shared_params=shared_params,
133
+ ds_version=ds_version,
134
+ frozen_param_shapes=frozen_param_shapes,
135
+ frozen_param_fragments=frozen_param_fragments)
136
+ zero_model_states.append(z_model_state)
137
+
138
+ return zero_model_states
139
+
140
+
141
+ def parse_optim_states(files, ds_checkpoint_dir):
142
+
143
+ total_files = len(files)
144
+ state_dicts = []
145
+ for f in files:
146
+ state_dict = torch.load(f, map_location=device)
147
+ # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
148
+ # and also handle the case where it was already removed by another helper script
149
+ state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
150
+ state_dicts.append(state_dict)
151
+
152
+ if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
153
+ raise ValueError(f"{files[0]} is not a zero checkpoint")
154
+ zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
155
+ world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
156
+
157
+ # For ZeRO-2 each param group can have different partition_count as data parallelism for expert
158
+ # parameters can be different from data parallelism for non-expert parameters. So we can just
159
+ # use the max of the partition_count to get the dp world_size.
160
+
161
+ if type(world_size) is list:
162
+ world_size = max(world_size)
163
+
164
+ if world_size != total_files:
165
+ raise ValueError(
166
+ f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
167
+ "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
168
+ )
169
+
170
+ # the groups are named differently in each stage
171
+ if zero_stage <= 2:
172
+ fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
173
+ elif zero_stage == 3:
174
+ fp32_groups_key = FP32_FLAT_GROUPS
175
+ else:
176
+ raise ValueError(f"unknown zero stage {zero_stage}")
177
+
178
+ if zero_stage <= 2:
179
+ fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
180
+ elif zero_stage == 3:
181
+ # if there is more than one param group, there will be multiple flattened tensors - one
182
+ # flattened tensor per group - for simplicity merge them into a single tensor
183
+ #
184
+ # XXX: could make the script more memory efficient for when there are multiple groups - it
185
+ # will require matching the sub-lists of param_shapes for each param group flattened tensor
186
+
187
+ fp32_flat_groups = [
188
+ torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts))
189
+ ]
190
+
191
+ return zero_stage, world_size, fp32_flat_groups
192
+
193
+
194
+ def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir):
195
+ """
196
+ Returns fp32 state_dict reconstructed from ds checkpoint
197
+
198
+ Args:
199
+ - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
200
+
201
+ """
202
+ print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
203
+
204
+ optim_files = get_optim_files(ds_checkpoint_dir)
205
+ zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
206
+ print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
207
+
208
+ model_files = get_model_state_files(ds_checkpoint_dir)
209
+
210
+ zero_model_states = parse_model_states(model_files)
211
+ print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
212
+
213
+ if zero_stage <= 2:
214
+ return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states)
215
+ elif zero_stage == 3:
216
+ return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states)
217
+
218
+
219
+ def _zero2_merge_frozen_params(state_dict, zero_model_states):
220
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
221
+ return
222
+
223
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
224
+ frozen_param_fragments = zero_model_states[0].frozen_param_fragments
225
+
226
+ if debug:
227
+ num_elem = sum(s.numel() for s in frozen_param_shapes.values())
228
+ print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
229
+
230
+ wanted_params = len(frozen_param_shapes)
231
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
232
+ avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
233
+ print(f'Frozen params: Have {avail_numel} numels to process.')
234
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
235
+
236
+ total_params = 0
237
+ total_numel = 0
238
+ for name, shape in frozen_param_shapes.items():
239
+ total_params += 1
240
+ unpartitioned_numel = shape.numel()
241
+ total_numel += unpartitioned_numel
242
+
243
+ state_dict[name] = frozen_param_fragments[name]
244
+
245
+ if debug:
246
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
247
+
248
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
249
+
250
+
251
+ def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
252
+ param_shapes = zero_model_states[0].param_shapes
253
+
254
+ # Reconstruction protocol:
255
+ #
256
+ # XXX: document this
257
+
258
+ if debug:
259
+ for i in range(world_size):
260
+ for j in range(len(fp32_flat_groups[0])):
261
+ print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
262
+
263
+ # XXX: memory usage doubles here (zero2)
264
+ num_param_groups = len(fp32_flat_groups[0])
265
+ merged_single_partition_of_fp32_groups = []
266
+ for i in range(num_param_groups):
267
+ merged_partitions = [sd[i] for sd in fp32_flat_groups]
268
+ full_single_fp32_vector = torch.cat(merged_partitions, 0)
269
+ merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
270
+ avail_numel = sum(
271
+ [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
272
+
273
+ if debug:
274
+ wanted_params = sum([len(shapes) for shapes in param_shapes])
275
+ wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
276
+ # not asserting if there is a mismatch due to possible padding
277
+ print(f"Have {avail_numel} numels to process.")
278
+ print(f"Need {wanted_numel} numels in {wanted_params} params.")
279
+
280
+ # params
281
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
282
+ # out-of-core computing solution
283
+ total_numel = 0
284
+ total_params = 0
285
+ for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
286
+ offset = 0
287
+ avail_numel = full_single_fp32_vector.numel()
288
+ for name, shape in shapes.items():
289
+
290
+ unpartitioned_numel = shape.numel()
291
+ total_numel += unpartitioned_numel
292
+ total_params += 1
293
+
294
+ if debug:
295
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
296
+ state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
297
+ offset += unpartitioned_numel
298
+
299
+ # Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
300
+ # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
301
+ # paddings performed in the code it's almost impossible to predict the exact numbers w/o the
302
+ # live optimizer object, so we are checking that the numbers are within the right range
303
+ align_to = 2 * world_size
304
+
305
+ def zero2_align(x):
306
+ return align_to * math.ceil(x / align_to)
307
+
308
+ if debug:
309
+ print(f"original offset={offset}, avail_numel={avail_numel}")
310
+
311
+ offset = zero2_align(offset)
312
+ avail_numel = zero2_align(avail_numel)
313
+
314
+ if debug:
315
+ print(f"aligned offset={offset}, avail_numel={avail_numel}")
316
+
317
+ # Sanity check
318
+ if offset != avail_numel:
319
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
320
+
321
+ print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
322
+
323
+
324
+ def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states):
325
+ state_dict = OrderedDict()
326
+
327
+ # buffers
328
+ buffers = zero_model_states[0].buffers
329
+ state_dict.update(buffers)
330
+ if debug:
331
+ print(f"added {len(buffers)} buffers")
332
+
333
+ _zero2_merge_frozen_params(state_dict, zero_model_states)
334
+
335
+ _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
336
+
337
+ # recover shared parameters
338
+ for pair in zero_model_states[0].shared_params:
339
+ if pair[1] in state_dict:
340
+ state_dict[pair[0]] = state_dict[pair[1]]
341
+
342
+ return state_dict
343
+
344
+
345
+ def zero3_partitioned_param_info(unpartitioned_numel, world_size):
346
+ remainder = unpartitioned_numel % world_size
347
+ padding_numel = (world_size - remainder) if remainder else 0
348
+ partitioned_numel = math.ceil(unpartitioned_numel / world_size)
349
+ return partitioned_numel, padding_numel
350
+
351
+
352
+ def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
353
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
354
+ return
355
+
356
+ if debug:
357
+ for i in range(world_size):
358
+ num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
359
+ print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
360
+
361
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
362
+ wanted_params = len(frozen_param_shapes)
363
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
364
+ avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
365
+ print(f'Frozen params: Have {avail_numel} numels to process.')
366
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
367
+
368
+ total_params = 0
369
+ total_numel = 0
370
+ for name, shape in zero_model_states[0].frozen_param_shapes.items():
371
+ total_params += 1
372
+ unpartitioned_numel = shape.numel()
373
+ total_numel += unpartitioned_numel
374
+
375
+ param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
376
+ state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
377
+
378
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
379
+
380
+ if debug:
381
+ print(
382
+ f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
383
+ )
384
+
385
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
386
+
387
+
388
+ def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
389
+ param_shapes = zero_model_states[0].param_shapes
390
+ avail_numel = fp32_flat_groups[0].numel() * world_size
391
+ # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
392
+ # param, re-consolidating each param, while dealing with padding if any
393
+
394
+ # merge list of dicts, preserving order
395
+ param_shapes = {k: v for d in param_shapes for k, v in d.items()}
396
+
397
+ if debug:
398
+ for i in range(world_size):
399
+ print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
400
+
401
+ wanted_params = len(param_shapes)
402
+ wanted_numel = sum(shape.numel() for shape in param_shapes.values())
403
+ # not asserting if there is a mismatch due to possible padding
404
+ avail_numel = fp32_flat_groups[0].numel() * world_size
405
+ print(f"Trainable params: Have {avail_numel} numels to process.")
406
+ print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
407
+
408
+ # params
409
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
410
+ # out-of-core computing solution
411
+ offset = 0
412
+ total_numel = 0
413
+ total_params = 0
414
+ for name, shape in param_shapes.items():
415
+
416
+ unpartitioned_numel = shape.numel()
417
+ total_numel += unpartitioned_numel
418
+ total_params += 1
419
+
420
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
421
+
422
+ if debug:
423
+ print(
424
+ f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
425
+ )
426
+
427
+ # XXX: memory usage doubles here
428
+ state_dict[name] = torch.cat(
429
+ tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)),
430
+ 0).narrow(0, 0, unpartitioned_numel).view(shape)
431
+ offset += partitioned_numel
432
+
433
+ offset *= world_size
434
+
435
+ # Sanity check
436
+ if offset != avail_numel:
437
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
438
+
439
+ print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
440
+
441
+
442
+ def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states):
443
+ state_dict = OrderedDict()
444
+
445
+ # buffers
446
+ buffers = zero_model_states[0].buffers
447
+ state_dict.update(buffers)
448
+ if debug:
449
+ print(f"added {len(buffers)} buffers")
450
+
451
+ _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
452
+
453
+ _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
454
+
455
+ # recover shared parameters
456
+ for pair in zero_model_states[0].shared_params:
457
+ if pair[1] in state_dict:
458
+ state_dict[pair[0]] = state_dict[pair[1]]
459
+
460
+ return state_dict
461
+
462
+
463
+ def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None):
464
+ """
465
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
466
+ ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
467
+ via a model hub.
468
+
469
+ Args:
470
+ - ``checkpoint_dir``: path to the desired checkpoint folder
471
+ - ``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``
472
+
473
+ Returns:
474
+ - pytorch ``state_dict``
475
+
476
+ Note: this approach may not work if your application doesn't have sufficient free CPU memory and
477
+ you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
478
+ the checkpoint.
479
+
480
+ A typical usage might be ::
481
+
482
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
483
+ # do the training and checkpoint saving
484
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
485
+ model = model.cpu() # move to cpu
486
+ model.load_state_dict(state_dict)
487
+ # submit to model hub or save the model to share with others
488
+
489
+ In this example the ``model`` will no longer be usable in the deepspeed context of the same
490
+ application. i.e. you will need to re-initialize the deepspeed engine, since
491
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
492
+
493
+ If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
494
+
495
+ """
496
+ if tag is None:
497
+ latest_path = os.path.join(checkpoint_dir, 'latest')
498
+ if os.path.isfile(latest_path):
499
+ with open(latest_path, 'r') as fd:
500
+ tag = fd.read().strip()
501
+ else:
502
+ raise ValueError(f"Unable to find 'latest' file at {latest_path}")
503
+
504
+ ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
505
+
506
+ if not os.path.isdir(ds_checkpoint_dir):
507
+ raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
508
+
509
+ return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir)
510
+
511
+
512
+ def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_file, tag=None):
513
+ """
514
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
515
+ loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
516
+
517
+ Args:
518
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
519
+ - ``output_file``: path to the pytorch fp32 state_dict output file (e.g. path/pytorch_model.bin)
520
+ - ``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``
521
+ """
522
+
523
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
524
+ print(f"Saving fp32 state dict to {output_file}")
525
+ torch.save(state_dict, output_file)
526
+
527
+
528
+ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
529
+ """
530
+ 1. Put the provided model to cpu
531
+ 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
532
+ 3. Load it into the provided model
533
+
534
+ Args:
535
+ - ``model``: the model object to update
536
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
537
+ - ``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``
538
+
539
+ Returns:
540
+ - ``model`: modified model
541
+
542
+ Make sure you have plenty of CPU memory available before you call this function. If you don't
543
+ have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
544
+ conveniently placed for you in the checkpoint folder.
545
+
546
+ A typical usage might be ::
547
+
548
+ from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
549
+ model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
550
+ # submit to model hub or save the model to share with others
551
+
552
+ Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
553
+ of the same application. i.e. you will need to re-initialize the deepspeed engine, since
554
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
555
+
556
+ """
557
+ logger.info(f"Extracting fp32 weights")
558
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
559
+
560
+ logger.info(f"Overwriting model with fp32 weights")
561
+ model = model.cpu()
562
+ model.load_state_dict(state_dict, strict=False)
563
+
564
+ return model
565
+
566
+
567
+ if __name__ == "__main__":
568
+
569
+ parser = argparse.ArgumentParser()
570
+ parser.add_argument("checkpoint_dir",
571
+ type=str,
572
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
573
+ parser.add_argument(
574
+ "output_file",
575
+ type=str,
576
+ help="path to the pytorch fp32 state_dict output file (e.g. path/checkpoint-12/pytorch_model.bin)")
577
+ parser.add_argument("-t",
578
+ "--tag",
579
+ type=str,
580
+ default=None,
581
+ help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
582
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
583
+ args = parser.parse_args()
584
+
585
+ debug = args.debug
586
+
587
+ convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir, args.output_file, tag=args.tag)