tp140205 commited on
Commit
941e439
·
verified ·
1 Parent(s): 4a8f10b

Upload checkpoint-600

Browse files
Files changed (25) hide show
  1. .gitattributes +1 -0
  2. ARM-7B-Pruned/checkpoint-600/added_tokens.json +24 -0
  3. ARM-7B-Pruned/checkpoint-600/config.json +30 -0
  4. ARM-7B-Pruned/checkpoint-600/generation_config.json +6 -0
  5. ARM-7B-Pruned/checkpoint-600/global_step600/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  6. ARM-7B-Pruned/checkpoint-600/global_step600/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
  7. ARM-7B-Pruned/checkpoint-600/global_step600/zero_pp_rank_0_mp_rank_00_model_states.pt +3 -0
  8. ARM-7B-Pruned/checkpoint-600/global_step600/zero_pp_rank_1_mp_rank_00_model_states.pt +3 -0
  9. ARM-7B-Pruned/checkpoint-600/latest +1 -0
  10. ARM-7B-Pruned/checkpoint-600/merges.txt +0 -0
  11. ARM-7B-Pruned/checkpoint-600/model-00001-of-00004.safetensors +3 -0
  12. ARM-7B-Pruned/checkpoint-600/model-00002-of-00004.safetensors +3 -0
  13. ARM-7B-Pruned/checkpoint-600/model-00003-of-00004.safetensors +3 -0
  14. ARM-7B-Pruned/checkpoint-600/model-00004-of-00004.safetensors +3 -0
  15. ARM-7B-Pruned/checkpoint-600/model.safetensors.index.json +346 -0
  16. ARM-7B-Pruned/checkpoint-600/rng_state_0.pth +3 -0
  17. ARM-7B-Pruned/checkpoint-600/rng_state_1.pth +3 -0
  18. ARM-7B-Pruned/checkpoint-600/scheduler.pt +3 -0
  19. ARM-7B-Pruned/checkpoint-600/special_tokens_map.json +31 -0
  20. ARM-7B-Pruned/checkpoint-600/tokenizer.json +3 -0
  21. ARM-7B-Pruned/checkpoint-600/tokenizer_config.json +209 -0
  22. ARM-7B-Pruned/checkpoint-600/trainer_state.json +2133 -0
  23. ARM-7B-Pruned/checkpoint-600/training_args.bin +3 -0
  24. ARM-7B-Pruned/checkpoint-600/vocab.json +0 -0
  25. ARM-7B-Pruned/checkpoint-600/zero_to_fp32.py +760 -0
.gitattributes CHANGED
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  ARM-7B-Test/checkpoint-5/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
  ARM-7B-Test/checkpoint-6/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  ARM-7B-Test/checkpoint-5/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
  ARM-7B-Test/checkpoint-6/tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
+ ARM-7B-Pruned/checkpoint-600/tokenizer.json filter=lfs diff=lfs merge=lfs -text
ARM-7B-Pruned/checkpoint-600/added_tokens.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|box_end|>": 151649,
5
+ "<|box_start|>": 151648,
6
+ "<|endoftext|>": 151643,
7
+ "<|file_sep|>": 151664,
8
+ "<|fim_middle|>": 151660,
9
+ "<|fim_pad|>": 151662,
10
+ "<|fim_prefix|>": 151659,
11
+ "<|fim_suffix|>": 151661,
12
+ "<|im_end|>": 151645,
13
+ "<|im_start|>": 151644,
14
+ "<|image_pad|>": 151655,
15
+ "<|object_ref_end|>": 151647,
16
+ "<|object_ref_start|>": 151646,
17
+ "<|quad_end|>": 151651,
18
+ "<|quad_start|>": 151650,
19
+ "<|repo_name|>": 151663,
20
+ "<|video_pad|>": 151656,
21
+ "<|vision_end|>": 151653,
22
+ "<|vision_pad|>": 151654,
23
+ "<|vision_start|>": 151652
24
+ }
ARM-7B-Pruned/checkpoint-600/config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "arm-team/ARM-7B",
3
+ "architectures": [
4
+ "Qwen2ForCausalLM"
5
+ ],
6
+ "attention_dropout": 0.0,
7
+ "eos_token_id": 151643,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 3584,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 18944,
12
+ "max_position_embeddings": 131072,
13
+ "max_window_layers": 28,
14
+ "model_type": "qwen2",
15
+ "num_attention_heads": 28,
16
+ "num_hidden_layers": 28,
17
+ "num_key_value_heads": 4,
18
+ "pad_token_id": 151643,
19
+ "rms_norm_eps": 1e-06,
20
+ "rope_scaling": null,
21
+ "rope_theta": 1000000.0,
22
+ "sliding_window": null,
23
+ "tie_word_embeddings": false,
24
+ "torch_dtype": "bfloat16",
25
+ "transformers_version": "4.46.1",
26
+ "use_cache": false,
27
+ "use_mrope": false,
28
+ "use_sliding_window": false,
29
+ "vocab_size": 152064
30
+ }
ARM-7B-Pruned/checkpoint-600/generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": 151643,
4
+ "pad_token_id": 151643,
5
+ "transformers_version": "4.46.1"
6
+ }
ARM-7B-Pruned/checkpoint-600/global_step600/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e5787d7fbd89f2b8aaa2b2ec9062eecbef407117b9aed364900639f6666f370
3
+ size 45693708006
ARM-7B-Pruned/checkpoint-600/global_step600/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4967d68c29b707d82754ad12c05a2d0512607b92ca28c5362288387ab9908ca4
3
+ size 45693708006
ARM-7B-Pruned/checkpoint-600/global_step600/zero_pp_rank_0_mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd4746e892d0c29df6548515f35a25fb82c768981ee39da0de6c02d30d001764
3
+ size 168277
ARM-7B-Pruned/checkpoint-600/global_step600/zero_pp_rank_1_mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33b24fa9d7f397981ba3b63d93dadf9f6f5ea3549e8c4a5f1362081657e3a96c
3
+ size 168277
ARM-7B-Pruned/checkpoint-600/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step600
ARM-7B-Pruned/checkpoint-600/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
ARM-7B-Pruned/checkpoint-600/model-00001-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a7c65ac4614fb2823e2c74fe56b5a85f915ee7f9be2b1fe4cc8c2e2c7bd680d
3
+ size 4877660776
ARM-7B-Pruned/checkpoint-600/model-00002-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1e7b49ee50721dfae01e9705127ddf94e0178d56666efdf8d6875a510fc2baa
3
+ size 4932751008
ARM-7B-Pruned/checkpoint-600/model-00003-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18a42b7f5a1bd1db6756e8d6bb9d98bbc0ac1e967a4844937c5e50993611f7e5
3
+ size 4330865200
ARM-7B-Pruned/checkpoint-600/model-00004-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de4062ce4cc52d6628a1838480ee1ba2e673dc1a4ac78f19a13c0c1ee1151689
3
+ size 1089994880
ARM-7B-Pruned/checkpoint-600/model.safetensors.index.json ADDED
@@ -0,0 +1,346 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_size": 15231233024
4
+ },
5
+ "weight_map": {
6
+ "lm_head.weight": "model-00004-of-00004.safetensors",
7
+ "model.embed_tokens.weight": "model-00001-of-00004.safetensors",
8
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00004.safetensors",
9
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
10
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
11
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
12
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
13
+ "model.layers.0.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
14
+ "model.layers.0.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
15
+ "model.layers.0.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
16
+ "model.layers.0.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
17
+ "model.layers.0.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
18
+ "model.layers.0.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
19
+ "model.layers.0.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
20
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00004.safetensors",
21
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
22
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
23
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
24
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
25
+ "model.layers.1.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
26
+ "model.layers.1.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
27
+ "model.layers.1.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
28
+ "model.layers.1.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
29
+ "model.layers.1.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
30
+ "model.layers.1.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
31
+ "model.layers.1.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
32
+ "model.layers.10.input_layernorm.weight": "model-00002-of-00004.safetensors",
33
+ "model.layers.10.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
34
+ "model.layers.10.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
35
+ "model.layers.10.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
36
+ "model.layers.10.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
37
+ "model.layers.10.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
38
+ "model.layers.10.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
39
+ "model.layers.10.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
40
+ "model.layers.10.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
41
+ "model.layers.10.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
42
+ "model.layers.10.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
43
+ "model.layers.10.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
44
+ "model.layers.11.input_layernorm.weight": "model-00002-of-00004.safetensors",
45
+ "model.layers.11.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
46
+ "model.layers.11.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
47
+ "model.layers.11.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
48
+ "model.layers.11.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
49
+ "model.layers.11.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
50
+ "model.layers.11.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
51
+ "model.layers.11.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
52
+ "model.layers.11.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
53
+ "model.layers.11.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
54
+ "model.layers.11.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
55
+ "model.layers.11.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
56
+ "model.layers.12.input_layernorm.weight": "model-00002-of-00004.safetensors",
57
+ "model.layers.12.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
58
+ "model.layers.12.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
59
+ "model.layers.12.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
60
+ "model.layers.12.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
61
+ "model.layers.12.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
62
+ "model.layers.12.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
63
+ "model.layers.12.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
64
+ "model.layers.12.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
65
+ "model.layers.12.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
66
+ "model.layers.12.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
67
+ "model.layers.12.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
68
+ "model.layers.13.input_layernorm.weight": "model-00002-of-00004.safetensors",
69
+ "model.layers.13.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
70
+ "model.layers.13.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
71
+ "model.layers.13.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
72
+ "model.layers.13.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
73
+ "model.layers.13.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
74
+ "model.layers.13.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
75
+ "model.layers.13.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
76
+ "model.layers.13.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
77
+ "model.layers.13.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
78
+ "model.layers.13.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
79
+ "model.layers.13.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
80
+ "model.layers.14.input_layernorm.weight": "model-00002-of-00004.safetensors",
81
+ "model.layers.14.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
82
+ "model.layers.14.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
83
+ "model.layers.14.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
84
+ "model.layers.14.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
85
+ "model.layers.14.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
86
+ "model.layers.14.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
87
+ "model.layers.14.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
88
+ "model.layers.14.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
89
+ "model.layers.14.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
90
+ "model.layers.14.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
91
+ "model.layers.14.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
92
+ "model.layers.15.input_layernorm.weight": "model-00002-of-00004.safetensors",
93
+ "model.layers.15.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
94
+ "model.layers.15.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
95
+ "model.layers.15.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
96
+ "model.layers.15.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
97
+ "model.layers.15.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
98
+ "model.layers.15.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
99
+ "model.layers.15.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
100
+ "model.layers.15.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
101
+ "model.layers.15.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
102
+ "model.layers.15.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
103
+ "model.layers.15.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
104
+ "model.layers.16.input_layernorm.weight": "model-00002-of-00004.safetensors",
105
+ "model.layers.16.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
106
+ "model.layers.16.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
107
+ "model.layers.16.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
108
+ "model.layers.16.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
109
+ "model.layers.16.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
110
+ "model.layers.16.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
111
+ "model.layers.16.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
112
+ "model.layers.16.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
113
+ "model.layers.16.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
114
+ "model.layers.16.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
115
+ "model.layers.16.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
116
+ "model.layers.17.input_layernorm.weight": "model-00002-of-00004.safetensors",
117
+ "model.layers.17.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
118
+ "model.layers.17.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
119
+ "model.layers.17.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
120
+ "model.layers.17.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
121
+ "model.layers.17.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
122
+ "model.layers.17.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
123
+ "model.layers.17.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
124
+ "model.layers.17.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
125
+ "model.layers.17.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
126
+ "model.layers.17.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
127
+ "model.layers.17.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
128
+ "model.layers.18.input_layernorm.weight": "model-00003-of-00004.safetensors",
129
+ "model.layers.18.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
130
+ "model.layers.18.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
131
+ "model.layers.18.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
132
+ "model.layers.18.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
133
+ "model.layers.18.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
134
+ "model.layers.18.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
135
+ "model.layers.18.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
136
+ "model.layers.18.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
137
+ "model.layers.18.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
138
+ "model.layers.18.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
139
+ "model.layers.18.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
140
+ "model.layers.19.input_layernorm.weight": "model-00003-of-00004.safetensors",
141
+ "model.layers.19.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
142
+ "model.layers.19.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
143
+ "model.layers.19.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
144
+ "model.layers.19.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
145
+ "model.layers.19.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
146
+ "model.layers.19.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
147
+ "model.layers.19.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
148
+ "model.layers.19.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
149
+ "model.layers.19.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
150
+ "model.layers.19.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
151
+ "model.layers.19.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
152
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00004.safetensors",
153
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
154
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
155
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
156
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
157
+ "model.layers.2.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
158
+ "model.layers.2.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
159
+ "model.layers.2.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
160
+ "model.layers.2.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
161
+ "model.layers.2.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
162
+ "model.layers.2.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
163
+ "model.layers.2.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
164
+ "model.layers.20.input_layernorm.weight": "model-00003-of-00004.safetensors",
165
+ "model.layers.20.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
166
+ "model.layers.20.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
167
+ "model.layers.20.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
168
+ "model.layers.20.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
169
+ "model.layers.20.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
170
+ "model.layers.20.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
171
+ "model.layers.20.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
172
+ "model.layers.20.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
173
+ "model.layers.20.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
174
+ "model.layers.20.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
175
+ "model.layers.20.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
176
+ "model.layers.21.input_layernorm.weight": "model-00003-of-00004.safetensors",
177
+ "model.layers.21.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
178
+ "model.layers.21.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
179
+ "model.layers.21.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
180
+ "model.layers.21.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
181
+ "model.layers.21.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
182
+ "model.layers.21.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
183
+ "model.layers.21.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
184
+ "model.layers.21.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
185
+ "model.layers.21.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
186
+ "model.layers.21.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
187
+ "model.layers.21.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
188
+ "model.layers.22.input_layernorm.weight": "model-00003-of-00004.safetensors",
189
+ "model.layers.22.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
190
+ "model.layers.22.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
191
+ "model.layers.22.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
192
+ "model.layers.22.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
193
+ "model.layers.22.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
194
+ "model.layers.22.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
195
+ "model.layers.22.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
196
+ "model.layers.22.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
197
+ "model.layers.22.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
198
+ "model.layers.22.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
199
+ "model.layers.22.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
200
+ "model.layers.23.input_layernorm.weight": "model-00003-of-00004.safetensors",
201
+ "model.layers.23.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
202
+ "model.layers.23.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
203
+ "model.layers.23.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
204
+ "model.layers.23.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
205
+ "model.layers.23.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
206
+ "model.layers.23.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
207
+ "model.layers.23.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
208
+ "model.layers.23.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
209
+ "model.layers.23.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
210
+ "model.layers.23.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
211
+ "model.layers.23.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
212
+ "model.layers.24.input_layernorm.weight": "model-00003-of-00004.safetensors",
213
+ "model.layers.24.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
214
+ "model.layers.24.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
215
+ "model.layers.24.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
216
+ "model.layers.24.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
217
+ "model.layers.24.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
218
+ "model.layers.24.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
219
+ "model.layers.24.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
220
+ "model.layers.24.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
221
+ "model.layers.24.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
222
+ "model.layers.24.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
223
+ "model.layers.24.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
224
+ "model.layers.25.input_layernorm.weight": "model-00003-of-00004.safetensors",
225
+ "model.layers.25.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
226
+ "model.layers.25.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
227
+ "model.layers.25.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
228
+ "model.layers.25.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
229
+ "model.layers.25.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
230
+ "model.layers.25.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
231
+ "model.layers.25.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
232
+ "model.layers.25.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
233
+ "model.layers.25.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
234
+ "model.layers.25.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
235
+ "model.layers.25.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
236
+ "model.layers.26.input_layernorm.weight": "model-00003-of-00004.safetensors",
237
+ "model.layers.26.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
238
+ "model.layers.26.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
239
+ "model.layers.26.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
240
+ "model.layers.26.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
241
+ "model.layers.26.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
242
+ "model.layers.26.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
243
+ "model.layers.26.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
244
+ "model.layers.26.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
245
+ "model.layers.26.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
246
+ "model.layers.26.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
247
+ "model.layers.26.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
248
+ "model.layers.27.input_layernorm.weight": "model-00003-of-00004.safetensors",
249
+ "model.layers.27.mlp.down_proj.weight": "model-00003-of-00004.safetensors",
250
+ "model.layers.27.mlp.gate_proj.weight": "model-00003-of-00004.safetensors",
251
+ "model.layers.27.mlp.up_proj.weight": "model-00003-of-00004.safetensors",
252
+ "model.layers.27.post_attention_layernorm.weight": "model-00003-of-00004.safetensors",
253
+ "model.layers.27.self_attn.k_proj.bias": "model-00003-of-00004.safetensors",
254
+ "model.layers.27.self_attn.k_proj.weight": "model-00003-of-00004.safetensors",
255
+ "model.layers.27.self_attn.o_proj.weight": "model-00003-of-00004.safetensors",
256
+ "model.layers.27.self_attn.q_proj.bias": "model-00003-of-00004.safetensors",
257
+ "model.layers.27.self_attn.q_proj.weight": "model-00003-of-00004.safetensors",
258
+ "model.layers.27.self_attn.v_proj.bias": "model-00003-of-00004.safetensors",
259
+ "model.layers.27.self_attn.v_proj.weight": "model-00003-of-00004.safetensors",
260
+ "model.layers.3.input_layernorm.weight": "model-00001-of-00004.safetensors",
261
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
262
+ "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
263
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
264
+ "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
265
+ "model.layers.3.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
266
+ "model.layers.3.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
267
+ "model.layers.3.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
268
+ "model.layers.3.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
269
+ "model.layers.3.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
270
+ "model.layers.3.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
271
+ "model.layers.3.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
272
+ "model.layers.4.input_layernorm.weight": "model-00001-of-00004.safetensors",
273
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
274
+ "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
275
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
276
+ "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
277
+ "model.layers.4.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
278
+ "model.layers.4.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
279
+ "model.layers.4.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
280
+ "model.layers.4.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
281
+ "model.layers.4.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
282
+ "model.layers.4.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
283
+ "model.layers.4.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
284
+ "model.layers.5.input_layernorm.weight": "model-00001-of-00004.safetensors",
285
+ "model.layers.5.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
286
+ "model.layers.5.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
287
+ "model.layers.5.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
288
+ "model.layers.5.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
289
+ "model.layers.5.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
290
+ "model.layers.5.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
291
+ "model.layers.5.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
292
+ "model.layers.5.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
293
+ "model.layers.5.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
294
+ "model.layers.5.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
295
+ "model.layers.5.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
296
+ "model.layers.6.input_layernorm.weight": "model-00001-of-00004.safetensors",
297
+ "model.layers.6.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
298
+ "model.layers.6.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
299
+ "model.layers.6.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
300
+ "model.layers.6.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
301
+ "model.layers.6.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
302
+ "model.layers.6.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
303
+ "model.layers.6.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
304
+ "model.layers.6.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
305
+ "model.layers.6.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
306
+ "model.layers.6.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
307
+ "model.layers.6.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
308
+ "model.layers.7.input_layernorm.weight": "model-00001-of-00004.safetensors",
309
+ "model.layers.7.mlp.down_proj.weight": "model-00001-of-00004.safetensors",
310
+ "model.layers.7.mlp.gate_proj.weight": "model-00001-of-00004.safetensors",
311
+ "model.layers.7.mlp.up_proj.weight": "model-00001-of-00004.safetensors",
312
+ "model.layers.7.post_attention_layernorm.weight": "model-00001-of-00004.safetensors",
313
+ "model.layers.7.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
314
+ "model.layers.7.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
315
+ "model.layers.7.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
316
+ "model.layers.7.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
317
+ "model.layers.7.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
318
+ "model.layers.7.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
319
+ "model.layers.7.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
320
+ "model.layers.8.input_layernorm.weight": "model-00002-of-00004.safetensors",
321
+ "model.layers.8.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
322
+ "model.layers.8.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
323
+ "model.layers.8.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
324
+ "model.layers.8.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
325
+ "model.layers.8.self_attn.k_proj.bias": "model-00001-of-00004.safetensors",
326
+ "model.layers.8.self_attn.k_proj.weight": "model-00001-of-00004.safetensors",
327
+ "model.layers.8.self_attn.o_proj.weight": "model-00001-of-00004.safetensors",
328
+ "model.layers.8.self_attn.q_proj.bias": "model-00001-of-00004.safetensors",
329
+ "model.layers.8.self_attn.q_proj.weight": "model-00001-of-00004.safetensors",
330
+ "model.layers.8.self_attn.v_proj.bias": "model-00001-of-00004.safetensors",
331
+ "model.layers.8.self_attn.v_proj.weight": "model-00001-of-00004.safetensors",
332
+ "model.layers.9.input_layernorm.weight": "model-00002-of-00004.safetensors",
333
+ "model.layers.9.mlp.down_proj.weight": "model-00002-of-00004.safetensors",
334
+ "model.layers.9.mlp.gate_proj.weight": "model-00002-of-00004.safetensors",
335
+ "model.layers.9.mlp.up_proj.weight": "model-00002-of-00004.safetensors",
336
+ "model.layers.9.post_attention_layernorm.weight": "model-00002-of-00004.safetensors",
337
+ "model.layers.9.self_attn.k_proj.bias": "model-00002-of-00004.safetensors",
338
+ "model.layers.9.self_attn.k_proj.weight": "model-00002-of-00004.safetensors",
339
+ "model.layers.9.self_attn.o_proj.weight": "model-00002-of-00004.safetensors",
340
+ "model.layers.9.self_attn.q_proj.bias": "model-00002-of-00004.safetensors",
341
+ "model.layers.9.self_attn.q_proj.weight": "model-00002-of-00004.safetensors",
342
+ "model.layers.9.self_attn.v_proj.bias": "model-00002-of-00004.safetensors",
343
+ "model.layers.9.self_attn.v_proj.weight": "model-00002-of-00004.safetensors",
344
+ "model.norm.weight": "model-00003-of-00004.safetensors"
345
+ }
346
+ }
ARM-7B-Pruned/checkpoint-600/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8d6a959372d5e0c2ea025dd26c9d0ad2046fce19352056cae8074dcbd0a6fd4
3
+ size 14512
ARM-7B-Pruned/checkpoint-600/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f68a37892a1b445d21bb35cc10bf7a058a6f9ec8c363f5ed156ff4f49d90fb6
3
+ size 14512
ARM-7B-Pruned/checkpoint-600/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00011a11caf446f8f330335e6ee23f7ebb2deff91b76544883e322fad1e22f1d
3
+ size 1064
ARM-7B-Pruned/checkpoint-600/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|endoftext|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
ARM-7B-Pruned/checkpoint-600/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
3
+ size 11421896
ARM-7B-Pruned/checkpoint-600/tokenizer_config.json ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ }
181
+ },
182
+ "additional_special_tokens": [
183
+ "<|im_start|>",
184
+ "<|im_end|>",
185
+ "<|object_ref_start|>",
186
+ "<|object_ref_end|>",
187
+ "<|box_start|>",
188
+ "<|box_end|>",
189
+ "<|quad_start|>",
190
+ "<|quad_end|>",
191
+ "<|vision_start|>",
192
+ "<|vision_end|>",
193
+ "<|vision_pad|>",
194
+ "<|image_pad|>",
195
+ "<|video_pad|>"
196
+ ],
197
+ "bos_token": null,
198
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{% if system_message is defined %}{{ system_message + '\n' }}{% endif %}{% for message in loop_messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ 'Human: ' + content + '\nAssistant:' }}{% elif message['role'] == 'assistant' %}{{ content + '<|endoftext|>' + '\n' }}{% endif %}{% endfor %}",
199
+ "clean_up_tokenization_spaces": false,
200
+ "eos_token": "<|endoftext|>",
201
+ "errors": "replace",
202
+ "extra_special_tokens": {},
203
+ "model_max_length": 131072,
204
+ "pad_token": "<|endoftext|>",
205
+ "padding_side": "right",
206
+ "split_special_tokens": false,
207
+ "tokenizer_class": "Qwen2Tokenizer",
208
+ "unk_token": null
209
+ }
ARM-7B-Pruned/checkpoint-600/trainer_state.json ADDED
@@ -0,0 +1,2133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.06400512040963277,
5
+ "eval_steps": 50000,
6
+ "global_step": 600,
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.00021335040136544257,
13
+ "grad_norm": 42.684086970967954,
14
+ "learning_rate": 4.264392324093816e-09,
15
+ "loss": 0.5986,
16
+ "step": 2
17
+ },
18
+ {
19
+ "epoch": 0.00042670080273088514,
20
+ "grad_norm": 42.537918257537875,
21
+ "learning_rate": 8.528784648187632e-09,
22
+ "loss": 0.6957,
23
+ "step": 4
24
+ },
25
+ {
26
+ "epoch": 0.0006400512040963277,
27
+ "grad_norm": 58.765999906046574,
28
+ "learning_rate": 1.2793176972281448e-08,
29
+ "loss": 0.047,
30
+ "step": 6
31
+ },
32
+ {
33
+ "epoch": 0.0008534016054617703,
34
+ "grad_norm": 154.70890416675192,
35
+ "learning_rate": 1.7057569296375264e-08,
36
+ "loss": -0.6682,
37
+ "step": 8
38
+ },
39
+ {
40
+ "epoch": 0.0010667520068272129,
41
+ "grad_norm": 315.97286091458943,
42
+ "learning_rate": 2.1321961620469082e-08,
43
+ "loss": 0.0971,
44
+ "step": 10
45
+ },
46
+ {
47
+ "epoch": 0.0012801024081926554,
48
+ "grad_norm": 102.37154058019046,
49
+ "learning_rate": 2.5586353944562897e-08,
50
+ "loss": 1.0541,
51
+ "step": 12
52
+ },
53
+ {
54
+ "epoch": 0.001493452809558098,
55
+ "grad_norm": 105.127529829733,
56
+ "learning_rate": 2.9850746268656714e-08,
57
+ "loss": 0.4648,
58
+ "step": 14
59
+ },
60
+ {
61
+ "epoch": 0.0017068032109235406,
62
+ "grad_norm": 48.013196159706226,
63
+ "learning_rate": 3.411513859275053e-08,
64
+ "loss": -0.4529,
65
+ "step": 16
66
+ },
67
+ {
68
+ "epoch": 0.0019201536122889832,
69
+ "grad_norm": 55.69084727420936,
70
+ "learning_rate": 3.837953091684435e-08,
71
+ "loss": -0.1927,
72
+ "step": 18
73
+ },
74
+ {
75
+ "epoch": 0.0021335040136544257,
76
+ "grad_norm": 33.25875332287273,
77
+ "learning_rate": 4.2643923240938164e-08,
78
+ "loss": 0.2517,
79
+ "step": 20
80
+ },
81
+ {
82
+ "epoch": 0.002346854415019868,
83
+ "grad_norm": 245.94604658609376,
84
+ "learning_rate": 4.6908315565031985e-08,
85
+ "loss": -0.8646,
86
+ "step": 22
87
+ },
88
+ {
89
+ "epoch": 0.002560204816385311,
90
+ "grad_norm": 33.35694659794871,
91
+ "learning_rate": 5.117270788912579e-08,
92
+ "loss": 0.7383,
93
+ "step": 24
94
+ },
95
+ {
96
+ "epoch": 0.0027735552177507532,
97
+ "grad_norm": 193.28196705366508,
98
+ "learning_rate": 5.5437100213219614e-08,
99
+ "loss": -0.9655,
100
+ "step": 26
101
+ },
102
+ {
103
+ "epoch": 0.002986905619116196,
104
+ "grad_norm": 50.147398314622684,
105
+ "learning_rate": 5.970149253731343e-08,
106
+ "loss": -0.5218,
107
+ "step": 28
108
+ },
109
+ {
110
+ "epoch": 0.0032002560204816384,
111
+ "grad_norm": 75.21413198410397,
112
+ "learning_rate": 6.396588486140725e-08,
113
+ "loss": 0.1629,
114
+ "step": 30
115
+ },
116
+ {
117
+ "epoch": 0.003413606421847081,
118
+ "grad_norm": 103.01315028563378,
119
+ "learning_rate": 6.823027718550106e-08,
120
+ "loss": -0.7119,
121
+ "step": 32
122
+ },
123
+ {
124
+ "epoch": 0.0036269568232125235,
125
+ "grad_norm": 36.63545743331723,
126
+ "learning_rate": 7.249466950959488e-08,
127
+ "loss": 0.3538,
128
+ "step": 34
129
+ },
130
+ {
131
+ "epoch": 0.0038403072245779663,
132
+ "grad_norm": 39.002709650329486,
133
+ "learning_rate": 7.67590618336887e-08,
134
+ "loss": -0.6754,
135
+ "step": 36
136
+ },
137
+ {
138
+ "epoch": 0.004053657625943409,
139
+ "grad_norm": 23.502647009611,
140
+ "learning_rate": 8.102345415778252e-08,
141
+ "loss": 0.1865,
142
+ "step": 38
143
+ },
144
+ {
145
+ "epoch": 0.0042670080273088514,
146
+ "grad_norm": 26.139670413986497,
147
+ "learning_rate": 8.528784648187633e-08,
148
+ "loss": -0.3739,
149
+ "step": 40
150
+ },
151
+ {
152
+ "epoch": 0.004480358428674294,
153
+ "grad_norm": 30.02660527440867,
154
+ "learning_rate": 8.955223880597014e-08,
155
+ "loss": -0.0359,
156
+ "step": 42
157
+ },
158
+ {
159
+ "epoch": 0.004693708830039736,
160
+ "grad_norm": 13.980962042551367,
161
+ "learning_rate": 9.381663113006397e-08,
162
+ "loss": 0.4169,
163
+ "step": 44
164
+ },
165
+ {
166
+ "epoch": 0.004907059231405179,
167
+ "grad_norm": 94.42191623111091,
168
+ "learning_rate": 9.808102345415778e-08,
169
+ "loss": -1.4962,
170
+ "step": 46
171
+ },
172
+ {
173
+ "epoch": 0.005120409632770622,
174
+ "grad_norm": 36.146349198898875,
175
+ "learning_rate": 1.0234541577825159e-07,
176
+ "loss": 0.8652,
177
+ "step": 48
178
+ },
179
+ {
180
+ "epoch": 0.0053337600341360645,
181
+ "grad_norm": 34.112375662585286,
182
+ "learning_rate": 1.0660980810234541e-07,
183
+ "loss": 0.4556,
184
+ "step": 50
185
+ },
186
+ {
187
+ "epoch": 0.0055471104355015064,
188
+ "grad_norm": 54.41510979168854,
189
+ "learning_rate": 1.1087420042643923e-07,
190
+ "loss": 0.2452,
191
+ "step": 52
192
+ },
193
+ {
194
+ "epoch": 0.005760460836866949,
195
+ "grad_norm": 27.31961709504184,
196
+ "learning_rate": 1.1513859275053305e-07,
197
+ "loss": 0.3131,
198
+ "step": 54
199
+ },
200
+ {
201
+ "epoch": 0.005973811238232392,
202
+ "grad_norm": 77.00896363994629,
203
+ "learning_rate": 1.1940298507462686e-07,
204
+ "loss": -0.0289,
205
+ "step": 56
206
+ },
207
+ {
208
+ "epoch": 0.006187161639597835,
209
+ "grad_norm": 21.8781170195382,
210
+ "learning_rate": 1.2366737739872068e-07,
211
+ "loss": -0.6188,
212
+ "step": 58
213
+ },
214
+ {
215
+ "epoch": 0.006400512040963277,
216
+ "grad_norm": 16.368843761461356,
217
+ "learning_rate": 1.279317697228145e-07,
218
+ "loss": 0.2618,
219
+ "step": 60
220
+ },
221
+ {
222
+ "epoch": 0.0066138624423287195,
223
+ "grad_norm": 17.051752922162727,
224
+ "learning_rate": 1.3219616204690832e-07,
225
+ "loss": -0.1717,
226
+ "step": 62
227
+ },
228
+ {
229
+ "epoch": 0.006827212843694162,
230
+ "grad_norm": 99.13064855085295,
231
+ "learning_rate": 1.3646055437100212e-07,
232
+ "loss": -0.449,
233
+ "step": 64
234
+ },
235
+ {
236
+ "epoch": 0.007040563245059605,
237
+ "grad_norm": 136.3486847826033,
238
+ "learning_rate": 1.4072494669509594e-07,
239
+ "loss": 0.2984,
240
+ "step": 66
241
+ },
242
+ {
243
+ "epoch": 0.007253913646425047,
244
+ "grad_norm": 62.554463250965604,
245
+ "learning_rate": 1.4498933901918976e-07,
246
+ "loss": -0.2482,
247
+ "step": 68
248
+ },
249
+ {
250
+ "epoch": 0.00746726404779049,
251
+ "grad_norm": 51.515904581548206,
252
+ "learning_rate": 1.4925373134328355e-07,
253
+ "loss": -0.8223,
254
+ "step": 70
255
+ },
256
+ {
257
+ "epoch": 0.007680614449155933,
258
+ "grad_norm": 113.86732871533368,
259
+ "learning_rate": 1.535181236673774e-07,
260
+ "loss": -0.0383,
261
+ "step": 72
262
+ },
263
+ {
264
+ "epoch": 0.007893964850521375,
265
+ "grad_norm": 26.087446116741575,
266
+ "learning_rate": 1.5778251599147122e-07,
267
+ "loss": 0.7253,
268
+ "step": 74
269
+ },
270
+ {
271
+ "epoch": 0.008107315251886817,
272
+ "grad_norm": 24.131096654425452,
273
+ "learning_rate": 1.6204690831556504e-07,
274
+ "loss": -0.0834,
275
+ "step": 76
276
+ },
277
+ {
278
+ "epoch": 0.008320665653252261,
279
+ "grad_norm": 74.42536774731673,
280
+ "learning_rate": 1.6631130063965884e-07,
281
+ "loss": -0.2997,
282
+ "step": 78
283
+ },
284
+ {
285
+ "epoch": 0.008534016054617703,
286
+ "grad_norm": 71.52938681964571,
287
+ "learning_rate": 1.7057569296375266e-07,
288
+ "loss": 0.0944,
289
+ "step": 80
290
+ },
291
+ {
292
+ "epoch": 0.008747366455983145,
293
+ "grad_norm": 29.241243114282817,
294
+ "learning_rate": 1.7484008528784648e-07,
295
+ "loss": -0.7054,
296
+ "step": 82
297
+ },
298
+ {
299
+ "epoch": 0.008960716857348588,
300
+ "grad_norm": 134.58638764428474,
301
+ "learning_rate": 1.7910447761194027e-07,
302
+ "loss": -0.338,
303
+ "step": 84
304
+ },
305
+ {
306
+ "epoch": 0.00917406725871403,
307
+ "grad_norm": 109.66885361053902,
308
+ "learning_rate": 1.8336886993603412e-07,
309
+ "loss": -0.1817,
310
+ "step": 86
311
+ },
312
+ {
313
+ "epoch": 0.009387417660079472,
314
+ "grad_norm": 27.969535103995202,
315
+ "learning_rate": 1.8763326226012794e-07,
316
+ "loss": -0.9258,
317
+ "step": 88
318
+ },
319
+ {
320
+ "epoch": 0.009600768061444916,
321
+ "grad_norm": 27.49676445944368,
322
+ "learning_rate": 1.9189765458422174e-07,
323
+ "loss": 0.3309,
324
+ "step": 90
325
+ },
326
+ {
327
+ "epoch": 0.009814118462810358,
328
+ "grad_norm": 25.544238337228855,
329
+ "learning_rate": 1.9616204690831556e-07,
330
+ "loss": -0.0894,
331
+ "step": 92
332
+ },
333
+ {
334
+ "epoch": 0.010027468864175802,
335
+ "grad_norm": 26.09909186001115,
336
+ "learning_rate": 2.0042643923240938e-07,
337
+ "loss": -0.1209,
338
+ "step": 94
339
+ },
340
+ {
341
+ "epoch": 0.010240819265541243,
342
+ "grad_norm": 32.632466828944544,
343
+ "learning_rate": 2.0469083155650317e-07,
344
+ "loss": 0.4736,
345
+ "step": 96
346
+ },
347
+ {
348
+ "epoch": 0.010454169666906685,
349
+ "grad_norm": 50.68481961380247,
350
+ "learning_rate": 2.08955223880597e-07,
351
+ "loss": -0.6321,
352
+ "step": 98
353
+ },
354
+ {
355
+ "epoch": 0.010667520068272129,
356
+ "grad_norm": 25.00088670078768,
357
+ "learning_rate": 2.1321961620469082e-07,
358
+ "loss": -0.3787,
359
+ "step": 100
360
+ },
361
+ {
362
+ "epoch": 0.010880870469637571,
363
+ "grad_norm": 21.25939551515176,
364
+ "learning_rate": 2.1748400852878466e-07,
365
+ "loss": 0.1969,
366
+ "step": 102
367
+ },
368
+ {
369
+ "epoch": 0.011094220871003013,
370
+ "grad_norm": 23.873098687717384,
371
+ "learning_rate": 2.2174840085287846e-07,
372
+ "loss": -0.0885,
373
+ "step": 104
374
+ },
375
+ {
376
+ "epoch": 0.011307571272368457,
377
+ "grad_norm": 17.01811754764777,
378
+ "learning_rate": 2.2601279317697228e-07,
379
+ "loss": 0.0203,
380
+ "step": 106
381
+ },
382
+ {
383
+ "epoch": 0.011520921673733898,
384
+ "grad_norm": 31.009663505522784,
385
+ "learning_rate": 2.302771855010661e-07,
386
+ "loss": -0.817,
387
+ "step": 108
388
+ },
389
+ {
390
+ "epoch": 0.011734272075099342,
391
+ "grad_norm": 33.200887615423774,
392
+ "learning_rate": 2.345415778251599e-07,
393
+ "loss": 0.0471,
394
+ "step": 110
395
+ },
396
+ {
397
+ "epoch": 0.011947622476464784,
398
+ "grad_norm": 32.63042973424626,
399
+ "learning_rate": 2.388059701492537e-07,
400
+ "loss": -1.5996,
401
+ "step": 112
402
+ },
403
+ {
404
+ "epoch": 0.012160972877830226,
405
+ "grad_norm": 30.22918533639733,
406
+ "learning_rate": 2.4307036247334754e-07,
407
+ "loss": -0.2466,
408
+ "step": 114
409
+ },
410
+ {
411
+ "epoch": 0.01237432327919567,
412
+ "grad_norm": 27.145400816572458,
413
+ "learning_rate": 2.4733475479744136e-07,
414
+ "loss": -0.3294,
415
+ "step": 116
416
+ },
417
+ {
418
+ "epoch": 0.012587673680561112,
419
+ "grad_norm": 19.75203303790041,
420
+ "learning_rate": 2.515991471215352e-07,
421
+ "loss": -0.7427,
422
+ "step": 118
423
+ },
424
+ {
425
+ "epoch": 0.012801024081926553,
426
+ "grad_norm": 16.441388594403527,
427
+ "learning_rate": 2.55863539445629e-07,
428
+ "loss": -0.2637,
429
+ "step": 120
430
+ },
431
+ {
432
+ "epoch": 0.013014374483291997,
433
+ "grad_norm": 23.81603976262189,
434
+ "learning_rate": 2.601279317697228e-07,
435
+ "loss": -0.07,
436
+ "step": 122
437
+ },
438
+ {
439
+ "epoch": 0.013227724884657439,
440
+ "grad_norm": 80.42145460011395,
441
+ "learning_rate": 2.6439232409381664e-07,
442
+ "loss": -0.1647,
443
+ "step": 124
444
+ },
445
+ {
446
+ "epoch": 0.013441075286022881,
447
+ "grad_norm": 28.328954293896295,
448
+ "learning_rate": 2.686567164179104e-07,
449
+ "loss": -0.1786,
450
+ "step": 126
451
+ },
452
+ {
453
+ "epoch": 0.013654425687388325,
454
+ "grad_norm": 44.29342497352258,
455
+ "learning_rate": 2.7292110874200423e-07,
456
+ "loss": 0.6337,
457
+ "step": 128
458
+ },
459
+ {
460
+ "epoch": 0.013867776088753767,
461
+ "grad_norm": 14.247744370026695,
462
+ "learning_rate": 2.7718550106609805e-07,
463
+ "loss": -0.7468,
464
+ "step": 130
465
+ },
466
+ {
467
+ "epoch": 0.01408112649011921,
468
+ "grad_norm": 30.909935252567514,
469
+ "learning_rate": 2.8144989339019187e-07,
470
+ "loss": 0.2444,
471
+ "step": 132
472
+ },
473
+ {
474
+ "epoch": 0.014294476891484652,
475
+ "grad_norm": 19.951382058960338,
476
+ "learning_rate": 2.857142857142857e-07,
477
+ "loss": -0.0888,
478
+ "step": 134
479
+ },
480
+ {
481
+ "epoch": 0.014507827292850094,
482
+ "grad_norm": 19.451243521855947,
483
+ "learning_rate": 2.899786780383795e-07,
484
+ "loss": 0.0622,
485
+ "step": 136
486
+ },
487
+ {
488
+ "epoch": 0.014721177694215538,
489
+ "grad_norm": 44.543818203511506,
490
+ "learning_rate": 2.9424307036247334e-07,
491
+ "loss": -0.5024,
492
+ "step": 138
493
+ },
494
+ {
495
+ "epoch": 0.01493452809558098,
496
+ "grad_norm": 33.99708212815377,
497
+ "learning_rate": 2.985074626865671e-07,
498
+ "loss": 0.3096,
499
+ "step": 140
500
+ },
501
+ {
502
+ "epoch": 0.015147878496946422,
503
+ "grad_norm": 23.05447566893894,
504
+ "learning_rate": 3.02771855010661e-07,
505
+ "loss": 0.3329,
506
+ "step": 142
507
+ },
508
+ {
509
+ "epoch": 0.015361228898311865,
510
+ "grad_norm": 16.88015370164898,
511
+ "learning_rate": 3.070362473347548e-07,
512
+ "loss": -0.1371,
513
+ "step": 144
514
+ },
515
+ {
516
+ "epoch": 0.015574579299677307,
517
+ "grad_norm": 26.13573562942401,
518
+ "learning_rate": 3.113006396588486e-07,
519
+ "loss": -0.4183,
520
+ "step": 146
521
+ },
522
+ {
523
+ "epoch": 0.01578792970104275,
524
+ "grad_norm": 22.309803740611596,
525
+ "learning_rate": 3.1556503198294244e-07,
526
+ "loss": -0.3246,
527
+ "step": 148
528
+ },
529
+ {
530
+ "epoch": 0.016001280102408193,
531
+ "grad_norm": 22.52244155087573,
532
+ "learning_rate": 3.1982942430703626e-07,
533
+ "loss": -0.5349,
534
+ "step": 150
535
+ },
536
+ {
537
+ "epoch": 0.016214630503773635,
538
+ "grad_norm": 18.473624086858514,
539
+ "learning_rate": 3.240938166311301e-07,
540
+ "loss": 0.2352,
541
+ "step": 152
542
+ },
543
+ {
544
+ "epoch": 0.016427980905139077,
545
+ "grad_norm": 7.7748886163241355,
546
+ "learning_rate": 3.2835820895522385e-07,
547
+ "loss": 0.2151,
548
+ "step": 154
549
+ },
550
+ {
551
+ "epoch": 0.016641331306504522,
552
+ "grad_norm": 10.802467734897878,
553
+ "learning_rate": 3.3262260127931767e-07,
554
+ "loss": 0.2848,
555
+ "step": 156
556
+ },
557
+ {
558
+ "epoch": 0.016854681707869964,
559
+ "grad_norm": 18.162628483420374,
560
+ "learning_rate": 3.368869936034115e-07,
561
+ "loss": -0.168,
562
+ "step": 158
563
+ },
564
+ {
565
+ "epoch": 0.017068032109235406,
566
+ "grad_norm": 40.528567461071695,
567
+ "learning_rate": 3.411513859275053e-07,
568
+ "loss": -0.4126,
569
+ "step": 160
570
+ },
571
+ {
572
+ "epoch": 0.017281382510600848,
573
+ "grad_norm": 35.36550572570942,
574
+ "learning_rate": 3.4541577825159914e-07,
575
+ "loss": 0.0287,
576
+ "step": 162
577
+ },
578
+ {
579
+ "epoch": 0.01749473291196629,
580
+ "grad_norm": 10.892875403462355,
581
+ "learning_rate": 3.4968017057569296e-07,
582
+ "loss": -0.613,
583
+ "step": 164
584
+ },
585
+ {
586
+ "epoch": 0.01770808331333173,
587
+ "grad_norm": 27.141686915753116,
588
+ "learning_rate": 3.539445628997867e-07,
589
+ "loss": -0.9305,
590
+ "step": 166
591
+ },
592
+ {
593
+ "epoch": 0.017921433714697177,
594
+ "grad_norm": 37.37206055456951,
595
+ "learning_rate": 3.5820895522388055e-07,
596
+ "loss": -0.3178,
597
+ "step": 168
598
+ },
599
+ {
600
+ "epoch": 0.01813478411606262,
601
+ "grad_norm": 52.89469341474386,
602
+ "learning_rate": 3.6247334754797437e-07,
603
+ "loss": -0.6419,
604
+ "step": 170
605
+ },
606
+ {
607
+ "epoch": 0.01834813451742806,
608
+ "grad_norm": 23.215765487324806,
609
+ "learning_rate": 3.6673773987206824e-07,
610
+ "loss": -0.0533,
611
+ "step": 172
612
+ },
613
+ {
614
+ "epoch": 0.018561484918793503,
615
+ "grad_norm": 21.171847082083467,
616
+ "learning_rate": 3.7100213219616206e-07,
617
+ "loss": -1.0652,
618
+ "step": 174
619
+ },
620
+ {
621
+ "epoch": 0.018774835320158945,
622
+ "grad_norm": 17.335722663927694,
623
+ "learning_rate": 3.752665245202559e-07,
624
+ "loss": -0.169,
625
+ "step": 176
626
+ },
627
+ {
628
+ "epoch": 0.01898818572152439,
629
+ "grad_norm": 13.15039858318736,
630
+ "learning_rate": 3.795309168443497e-07,
631
+ "loss": 0.4414,
632
+ "step": 178
633
+ },
634
+ {
635
+ "epoch": 0.019201536122889832,
636
+ "grad_norm": 9.293181092571949,
637
+ "learning_rate": 3.8379530916844347e-07,
638
+ "loss": 0.1714,
639
+ "step": 180
640
+ },
641
+ {
642
+ "epoch": 0.019414886524255274,
643
+ "grad_norm": 27.253514499053658,
644
+ "learning_rate": 3.880597014925373e-07,
645
+ "loss": -0.3719,
646
+ "step": 182
647
+ },
648
+ {
649
+ "epoch": 0.019628236925620716,
650
+ "grad_norm": 11.179212679495947,
651
+ "learning_rate": 3.923240938166311e-07,
652
+ "loss": -1.5775,
653
+ "step": 184
654
+ },
655
+ {
656
+ "epoch": 0.019841587326986158,
657
+ "grad_norm": 28.002238164167814,
658
+ "learning_rate": 3.9658848614072494e-07,
659
+ "loss": -0.9116,
660
+ "step": 186
661
+ },
662
+ {
663
+ "epoch": 0.020054937728351603,
664
+ "grad_norm": 20.304811169854457,
665
+ "learning_rate": 4.0085287846481876e-07,
666
+ "loss": -0.6315,
667
+ "step": 188
668
+ },
669
+ {
670
+ "epoch": 0.020268288129717045,
671
+ "grad_norm": 43.26972545321108,
672
+ "learning_rate": 4.051172707889126e-07,
673
+ "loss": 0.0818,
674
+ "step": 190
675
+ },
676
+ {
677
+ "epoch": 0.020481638531082487,
678
+ "grad_norm": 23.280256775268967,
679
+ "learning_rate": 4.0938166311300635e-07,
680
+ "loss": -0.2754,
681
+ "step": 192
682
+ },
683
+ {
684
+ "epoch": 0.02069498893244793,
685
+ "grad_norm": 25.086595962784372,
686
+ "learning_rate": 4.1364605543710017e-07,
687
+ "loss": 0.1783,
688
+ "step": 194
689
+ },
690
+ {
691
+ "epoch": 0.02090833933381337,
692
+ "grad_norm": 17.929854339567687,
693
+ "learning_rate": 4.17910447761194e-07,
694
+ "loss": -0.3967,
695
+ "step": 196
696
+ },
697
+ {
698
+ "epoch": 0.021121689735178813,
699
+ "grad_norm": 26.684280905377257,
700
+ "learning_rate": 4.221748400852878e-07,
701
+ "loss": -0.2432,
702
+ "step": 198
703
+ },
704
+ {
705
+ "epoch": 0.021335040136544258,
706
+ "grad_norm": 20.811875320249584,
707
+ "learning_rate": 4.2643923240938163e-07,
708
+ "loss": -0.6011,
709
+ "step": 200
710
+ },
711
+ {
712
+ "epoch": 0.0215483905379097,
713
+ "grad_norm": 28.776367397287462,
714
+ "learning_rate": 4.3070362473347545e-07,
715
+ "loss": -1.6853,
716
+ "step": 202
717
+ },
718
+ {
719
+ "epoch": 0.021761740939275142,
720
+ "grad_norm": 22.23424675819631,
721
+ "learning_rate": 4.349680170575693e-07,
722
+ "loss": 0.2222,
723
+ "step": 204
724
+ },
725
+ {
726
+ "epoch": 0.021975091340640584,
727
+ "grad_norm": 15.408003573608147,
728
+ "learning_rate": 4.392324093816631e-07,
729
+ "loss": -0.0164,
730
+ "step": 206
731
+ },
732
+ {
733
+ "epoch": 0.022188441742006026,
734
+ "grad_norm": 8.60164597442568,
735
+ "learning_rate": 4.434968017057569e-07,
736
+ "loss": -0.5671,
737
+ "step": 208
738
+ },
739
+ {
740
+ "epoch": 0.02240179214337147,
741
+ "grad_norm": 10.343966416597475,
742
+ "learning_rate": 4.4776119402985074e-07,
743
+ "loss": -0.815,
744
+ "step": 210
745
+ },
746
+ {
747
+ "epoch": 0.022615142544736913,
748
+ "grad_norm": 15.741330211675757,
749
+ "learning_rate": 4.5202558635394456e-07,
750
+ "loss": -1.0932,
751
+ "step": 212
752
+ },
753
+ {
754
+ "epoch": 0.022828492946102355,
755
+ "grad_norm": 16.39054521840376,
756
+ "learning_rate": 4.562899786780384e-07,
757
+ "loss": -1.7177,
758
+ "step": 214
759
+ },
760
+ {
761
+ "epoch": 0.023041843347467797,
762
+ "grad_norm": 11.781875373813582,
763
+ "learning_rate": 4.605543710021322e-07,
764
+ "loss": 0.3606,
765
+ "step": 216
766
+ },
767
+ {
768
+ "epoch": 0.02325519374883324,
769
+ "grad_norm": 10.097449683599512,
770
+ "learning_rate": 4.64818763326226e-07,
771
+ "loss": -0.7045,
772
+ "step": 218
773
+ },
774
+ {
775
+ "epoch": 0.023468544150198684,
776
+ "grad_norm": 15.715275415653137,
777
+ "learning_rate": 4.690831556503198e-07,
778
+ "loss": -0.0658,
779
+ "step": 220
780
+ },
781
+ {
782
+ "epoch": 0.023681894551564126,
783
+ "grad_norm": 26.933594441832767,
784
+ "learning_rate": 4.733475479744136e-07,
785
+ "loss": -0.1298,
786
+ "step": 222
787
+ },
788
+ {
789
+ "epoch": 0.023895244952929568,
790
+ "grad_norm": 8.712912536861461,
791
+ "learning_rate": 4.776119402985074e-07,
792
+ "loss": 0.095,
793
+ "step": 224
794
+ },
795
+ {
796
+ "epoch": 0.02410859535429501,
797
+ "grad_norm": 21.120479987680937,
798
+ "learning_rate": 4.818763326226012e-07,
799
+ "loss": -0.0818,
800
+ "step": 226
801
+ },
802
+ {
803
+ "epoch": 0.024321945755660452,
804
+ "grad_norm": 10.071445207074044,
805
+ "learning_rate": 4.861407249466951e-07,
806
+ "loss": -0.1419,
807
+ "step": 228
808
+ },
809
+ {
810
+ "epoch": 0.024535296157025894,
811
+ "grad_norm": 10.801668877306875,
812
+ "learning_rate": 4.904051172707888e-07,
813
+ "loss": -0.3432,
814
+ "step": 230
815
+ },
816
+ {
817
+ "epoch": 0.02474864655839134,
818
+ "grad_norm": 13.692305863205236,
819
+ "learning_rate": 4.946695095948827e-07,
820
+ "loss": -0.1519,
821
+ "step": 232
822
+ },
823
+ {
824
+ "epoch": 0.02496199695975678,
825
+ "grad_norm": 22.11353305341118,
826
+ "learning_rate": 4.989339019189765e-07,
827
+ "loss": -0.0445,
828
+ "step": 234
829
+ },
830
+ {
831
+ "epoch": 0.025175347361122223,
832
+ "grad_norm": 25.883156385523233,
833
+ "learning_rate": 5.031982942430704e-07,
834
+ "loss": -0.4949,
835
+ "step": 236
836
+ },
837
+ {
838
+ "epoch": 0.025388697762487665,
839
+ "grad_norm": 61.080118987133744,
840
+ "learning_rate": 5.074626865671642e-07,
841
+ "loss": -1.1921,
842
+ "step": 238
843
+ },
844
+ {
845
+ "epoch": 0.025602048163853107,
846
+ "grad_norm": 9.282902236974593,
847
+ "learning_rate": 5.11727078891258e-07,
848
+ "loss": 0.1989,
849
+ "step": 240
850
+ },
851
+ {
852
+ "epoch": 0.025815398565218552,
853
+ "grad_norm": 9.781179043931736,
854
+ "learning_rate": 5.159914712153518e-07,
855
+ "loss": 0.9967,
856
+ "step": 242
857
+ },
858
+ {
859
+ "epoch": 0.026028748966583994,
860
+ "grad_norm": 12.216217874660604,
861
+ "learning_rate": 5.202558635394456e-07,
862
+ "loss": -0.3518,
863
+ "step": 244
864
+ },
865
+ {
866
+ "epoch": 0.026242099367949436,
867
+ "grad_norm": 24.42587736751593,
868
+ "learning_rate": 5.245202558635394e-07,
869
+ "loss": -1.0814,
870
+ "step": 246
871
+ },
872
+ {
873
+ "epoch": 0.026455449769314878,
874
+ "grad_norm": 38.12352896449889,
875
+ "learning_rate": 5.287846481876333e-07,
876
+ "loss": 0.0811,
877
+ "step": 248
878
+ },
879
+ {
880
+ "epoch": 0.02666880017068032,
881
+ "grad_norm": 24.52163737825959,
882
+ "learning_rate": 5.33049040511727e-07,
883
+ "loss": -0.8824,
884
+ "step": 250
885
+ },
886
+ {
887
+ "epoch": 0.026882150572045762,
888
+ "grad_norm": 19.231993611076483,
889
+ "learning_rate": 5.373134328358208e-07,
890
+ "loss": 0.5571,
891
+ "step": 252
892
+ },
893
+ {
894
+ "epoch": 0.027095500973411207,
895
+ "grad_norm": 17.129505372417224,
896
+ "learning_rate": 5.415778251599147e-07,
897
+ "loss": -0.6865,
898
+ "step": 254
899
+ },
900
+ {
901
+ "epoch": 0.02730885137477665,
902
+ "grad_norm": 19.406038647540843,
903
+ "learning_rate": 5.458422174840085e-07,
904
+ "loss": -0.4991,
905
+ "step": 256
906
+ },
907
+ {
908
+ "epoch": 0.02752220177614209,
909
+ "grad_norm": 6.847722005977987,
910
+ "learning_rate": 5.501066098081023e-07,
911
+ "loss": 0.1979,
912
+ "step": 258
913
+ },
914
+ {
915
+ "epoch": 0.027735552177507533,
916
+ "grad_norm": 13.405288361475698,
917
+ "learning_rate": 5.543710021321961e-07,
918
+ "loss": -0.3812,
919
+ "step": 260
920
+ },
921
+ {
922
+ "epoch": 0.027948902578872975,
923
+ "grad_norm": 21.529785897303153,
924
+ "learning_rate": 5.5863539445629e-07,
925
+ "loss": -0.6946,
926
+ "step": 262
927
+ },
928
+ {
929
+ "epoch": 0.02816225298023842,
930
+ "grad_norm": 14.20190258955381,
931
+ "learning_rate": 5.628997867803837e-07,
932
+ "loss": -0.7182,
933
+ "step": 264
934
+ },
935
+ {
936
+ "epoch": 0.028375603381603862,
937
+ "grad_norm": 20.09792579726273,
938
+ "learning_rate": 5.671641791044775e-07,
939
+ "loss": -0.2583,
940
+ "step": 266
941
+ },
942
+ {
943
+ "epoch": 0.028588953782969304,
944
+ "grad_norm": 17.213177542585473,
945
+ "learning_rate": 5.714285714285714e-07,
946
+ "loss": 0.3218,
947
+ "step": 268
948
+ },
949
+ {
950
+ "epoch": 0.028802304184334746,
951
+ "grad_norm": 11.185587231889192,
952
+ "learning_rate": 5.756929637526652e-07,
953
+ "loss": -0.0663,
954
+ "step": 270
955
+ },
956
+ {
957
+ "epoch": 0.029015654585700188,
958
+ "grad_norm": 27.722334316990437,
959
+ "learning_rate": 5.79957356076759e-07,
960
+ "loss": 0.1254,
961
+ "step": 272
962
+ },
963
+ {
964
+ "epoch": 0.029229004987065633,
965
+ "grad_norm": 20.49167387185228,
966
+ "learning_rate": 5.842217484008528e-07,
967
+ "loss": -0.3077,
968
+ "step": 274
969
+ },
970
+ {
971
+ "epoch": 0.029442355388431075,
972
+ "grad_norm": 17.084103781873182,
973
+ "learning_rate": 5.884861407249467e-07,
974
+ "loss": -1.0397,
975
+ "step": 276
976
+ },
977
+ {
978
+ "epoch": 0.029655705789796517,
979
+ "grad_norm": 23.870809301137577,
980
+ "learning_rate": 5.927505330490404e-07,
981
+ "loss": -0.401,
982
+ "step": 278
983
+ },
984
+ {
985
+ "epoch": 0.02986905619116196,
986
+ "grad_norm": 11.313699213427757,
987
+ "learning_rate": 5.970149253731342e-07,
988
+ "loss": -1.1555,
989
+ "step": 280
990
+ },
991
+ {
992
+ "epoch": 0.0300824065925274,
993
+ "grad_norm": 9.331131563295791,
994
+ "learning_rate": 6.012793176972282e-07,
995
+ "loss": -0.5128,
996
+ "step": 282
997
+ },
998
+ {
999
+ "epoch": 0.030295756993892843,
1000
+ "grad_norm": 10.71153796479133,
1001
+ "learning_rate": 6.05543710021322e-07,
1002
+ "loss": 0.239,
1003
+ "step": 284
1004
+ },
1005
+ {
1006
+ "epoch": 0.03050910739525829,
1007
+ "grad_norm": 28.31484795145744,
1008
+ "learning_rate": 6.098081023454158e-07,
1009
+ "loss": -0.2084,
1010
+ "step": 286
1011
+ },
1012
+ {
1013
+ "epoch": 0.03072245779662373,
1014
+ "grad_norm": 11.917796878106765,
1015
+ "learning_rate": 6.140724946695096e-07,
1016
+ "loss": -0.2701,
1017
+ "step": 288
1018
+ },
1019
+ {
1020
+ "epoch": 0.030935808197989172,
1021
+ "grad_norm": 15.31345988143714,
1022
+ "learning_rate": 6.183368869936035e-07,
1023
+ "loss": -0.9096,
1024
+ "step": 290
1025
+ },
1026
+ {
1027
+ "epoch": 0.031149158599354614,
1028
+ "grad_norm": 49.77491988047747,
1029
+ "learning_rate": 6.226012793176972e-07,
1030
+ "loss": 0.1465,
1031
+ "step": 292
1032
+ },
1033
+ {
1034
+ "epoch": 0.03136250900072006,
1035
+ "grad_norm": 12.884205486410131,
1036
+ "learning_rate": 6.26865671641791e-07,
1037
+ "loss": 0.5899,
1038
+ "step": 294
1039
+ },
1040
+ {
1041
+ "epoch": 0.0315758594020855,
1042
+ "grad_norm": 22.77696725291766,
1043
+ "learning_rate": 6.311300639658849e-07,
1044
+ "loss": -0.3255,
1045
+ "step": 296
1046
+ },
1047
+ {
1048
+ "epoch": 0.031789209803450943,
1049
+ "grad_norm": 14.760034845954518,
1050
+ "learning_rate": 6.353944562899787e-07,
1051
+ "loss": 0.2191,
1052
+ "step": 298
1053
+ },
1054
+ {
1055
+ "epoch": 0.032002560204816385,
1056
+ "grad_norm": 16.04873208614678,
1057
+ "learning_rate": 6.396588486140725e-07,
1058
+ "loss": 0.9425,
1059
+ "step": 300
1060
+ },
1061
+ {
1062
+ "epoch": 0.03221591060618183,
1063
+ "grad_norm": 21.948692800323336,
1064
+ "learning_rate": 6.439232409381663e-07,
1065
+ "loss": 0.4721,
1066
+ "step": 302
1067
+ },
1068
+ {
1069
+ "epoch": 0.03242926100754727,
1070
+ "grad_norm": 17.475770533963207,
1071
+ "learning_rate": 6.481876332622602e-07,
1072
+ "loss": -0.8516,
1073
+ "step": 304
1074
+ },
1075
+ {
1076
+ "epoch": 0.03264261140891271,
1077
+ "grad_norm": 21.938554689368157,
1078
+ "learning_rate": 6.524520255863539e-07,
1079
+ "loss": 0.1675,
1080
+ "step": 306
1081
+ },
1082
+ {
1083
+ "epoch": 0.03285596181027815,
1084
+ "grad_norm": 46.95903237109459,
1085
+ "learning_rate": 6.567164179104477e-07,
1086
+ "loss": 0.7013,
1087
+ "step": 308
1088
+ },
1089
+ {
1090
+ "epoch": 0.033069312211643595,
1091
+ "grad_norm": 21.7738424183671,
1092
+ "learning_rate": 6.609808102345416e-07,
1093
+ "loss": -0.8641,
1094
+ "step": 310
1095
+ },
1096
+ {
1097
+ "epoch": 0.033282662613009044,
1098
+ "grad_norm": 20.818736283324778,
1099
+ "learning_rate": 6.652452025586353e-07,
1100
+ "loss": -0.2203,
1101
+ "step": 312
1102
+ },
1103
+ {
1104
+ "epoch": 0.033496013014374486,
1105
+ "grad_norm": 12.191027612540129,
1106
+ "learning_rate": 6.695095948827292e-07,
1107
+ "loss": -0.2385,
1108
+ "step": 314
1109
+ },
1110
+ {
1111
+ "epoch": 0.03370936341573993,
1112
+ "grad_norm": 17.485900290878302,
1113
+ "learning_rate": 6.73773987206823e-07,
1114
+ "loss": -0.6482,
1115
+ "step": 316
1116
+ },
1117
+ {
1118
+ "epoch": 0.03392271381710537,
1119
+ "grad_norm": 12.365985112237825,
1120
+ "learning_rate": 6.780383795309168e-07,
1121
+ "loss": -0.0618,
1122
+ "step": 318
1123
+ },
1124
+ {
1125
+ "epoch": 0.03413606421847081,
1126
+ "grad_norm": 19.889441682727426,
1127
+ "learning_rate": 6.823027718550106e-07,
1128
+ "loss": 0.255,
1129
+ "step": 320
1130
+ },
1131
+ {
1132
+ "epoch": 0.034349414619836253,
1133
+ "grad_norm": 19.5015710993416,
1134
+ "learning_rate": 6.865671641791044e-07,
1135
+ "loss": -0.6494,
1136
+ "step": 322
1137
+ },
1138
+ {
1139
+ "epoch": 0.034562765021201695,
1140
+ "grad_norm": 21.45614945706602,
1141
+ "learning_rate": 6.908315565031983e-07,
1142
+ "loss": -0.4695,
1143
+ "step": 324
1144
+ },
1145
+ {
1146
+ "epoch": 0.03477611542256714,
1147
+ "grad_norm": 11.714892632525226,
1148
+ "learning_rate": 6.95095948827292e-07,
1149
+ "loss": -0.6134,
1150
+ "step": 326
1151
+ },
1152
+ {
1153
+ "epoch": 0.03498946582393258,
1154
+ "grad_norm": 17.08341230963109,
1155
+ "learning_rate": 6.993603411513859e-07,
1156
+ "loss": -0.9212,
1157
+ "step": 328
1158
+ },
1159
+ {
1160
+ "epoch": 0.03520281622529802,
1161
+ "grad_norm": 18.71372293407707,
1162
+ "learning_rate": 7.036247334754797e-07,
1163
+ "loss": -0.1783,
1164
+ "step": 330
1165
+ },
1166
+ {
1167
+ "epoch": 0.03541616662666346,
1168
+ "grad_norm": 40.394000763247476,
1169
+ "learning_rate": 7.078891257995734e-07,
1170
+ "loss": -0.1696,
1171
+ "step": 332
1172
+ },
1173
+ {
1174
+ "epoch": 0.03562951702802891,
1175
+ "grad_norm": 16.851717713795054,
1176
+ "learning_rate": 7.121535181236673e-07,
1177
+ "loss": -0.168,
1178
+ "step": 334
1179
+ },
1180
+ {
1181
+ "epoch": 0.035842867429394354,
1182
+ "grad_norm": 20.980121165459167,
1183
+ "learning_rate": 7.164179104477611e-07,
1184
+ "loss": -0.1898,
1185
+ "step": 336
1186
+ },
1187
+ {
1188
+ "epoch": 0.036056217830759796,
1189
+ "grad_norm": 5.128039309618372,
1190
+ "learning_rate": 7.20682302771855e-07,
1191
+ "loss": -0.3406,
1192
+ "step": 338
1193
+ },
1194
+ {
1195
+ "epoch": 0.03626956823212524,
1196
+ "grad_norm": 17.130506401349365,
1197
+ "learning_rate": 7.249466950959487e-07,
1198
+ "loss": -0.2751,
1199
+ "step": 340
1200
+ },
1201
+ {
1202
+ "epoch": 0.03648291863349068,
1203
+ "grad_norm": 17.383816800029777,
1204
+ "learning_rate": 7.292110874200426e-07,
1205
+ "loss": -0.0005,
1206
+ "step": 342
1207
+ },
1208
+ {
1209
+ "epoch": 0.03669626903485612,
1210
+ "grad_norm": 43.198248806456,
1211
+ "learning_rate": 7.334754797441365e-07,
1212
+ "loss": -0.2181,
1213
+ "step": 344
1214
+ },
1215
+ {
1216
+ "epoch": 0.036909619436221563,
1217
+ "grad_norm": 16.46060851996884,
1218
+ "learning_rate": 7.377398720682303e-07,
1219
+ "loss": 0.2075,
1220
+ "step": 346
1221
+ },
1222
+ {
1223
+ "epoch": 0.037122969837587005,
1224
+ "grad_norm": 12.986350336767204,
1225
+ "learning_rate": 7.420042643923241e-07,
1226
+ "loss": -0.5395,
1227
+ "step": 348
1228
+ },
1229
+ {
1230
+ "epoch": 0.03733632023895245,
1231
+ "grad_norm": 19.883036986347154,
1232
+ "learning_rate": 7.462686567164179e-07,
1233
+ "loss": -0.047,
1234
+ "step": 350
1235
+ },
1236
+ {
1237
+ "epoch": 0.03754967064031789,
1238
+ "grad_norm": 8.289068924690984,
1239
+ "learning_rate": 7.505330490405118e-07,
1240
+ "loss": 0.9832,
1241
+ "step": 352
1242
+ },
1243
+ {
1244
+ "epoch": 0.03776302104168334,
1245
+ "grad_norm": 10.173680365988295,
1246
+ "learning_rate": 7.547974413646055e-07,
1247
+ "loss": -0.4718,
1248
+ "step": 354
1249
+ },
1250
+ {
1251
+ "epoch": 0.03797637144304878,
1252
+ "grad_norm": 29.406476571062164,
1253
+ "learning_rate": 7.590618336886994e-07,
1254
+ "loss": -0.3167,
1255
+ "step": 356
1256
+ },
1257
+ {
1258
+ "epoch": 0.03818972184441422,
1259
+ "grad_norm": 27.934726009197963,
1260
+ "learning_rate": 7.633262260127932e-07,
1261
+ "loss": -0.1972,
1262
+ "step": 358
1263
+ },
1264
+ {
1265
+ "epoch": 0.038403072245779664,
1266
+ "grad_norm": 25.076744001467002,
1267
+ "learning_rate": 7.675906183368869e-07,
1268
+ "loss": 0.2433,
1269
+ "step": 360
1270
+ },
1271
+ {
1272
+ "epoch": 0.038616422647145106,
1273
+ "grad_norm": 17.034753146666695,
1274
+ "learning_rate": 7.718550106609808e-07,
1275
+ "loss": -0.6862,
1276
+ "step": 362
1277
+ },
1278
+ {
1279
+ "epoch": 0.03882977304851055,
1280
+ "grad_norm": 30.28266067136412,
1281
+ "learning_rate": 7.761194029850746e-07,
1282
+ "loss": 0.0555,
1283
+ "step": 364
1284
+ },
1285
+ {
1286
+ "epoch": 0.03904312344987599,
1287
+ "grad_norm": 15.433190582955902,
1288
+ "learning_rate": 7.803837953091685e-07,
1289
+ "loss": -0.6999,
1290
+ "step": 366
1291
+ },
1292
+ {
1293
+ "epoch": 0.03925647385124143,
1294
+ "grad_norm": 16.705763291209895,
1295
+ "learning_rate": 7.846481876332622e-07,
1296
+ "loss": 0.145,
1297
+ "step": 368
1298
+ },
1299
+ {
1300
+ "epoch": 0.039469824252606873,
1301
+ "grad_norm": 7.207700811021795,
1302
+ "learning_rate": 7.889125799573561e-07,
1303
+ "loss": 0.4911,
1304
+ "step": 370
1305
+ },
1306
+ {
1307
+ "epoch": 0.039683174653972315,
1308
+ "grad_norm": 12.58245126026889,
1309
+ "learning_rate": 7.931769722814499e-07,
1310
+ "loss": -0.4105,
1311
+ "step": 372
1312
+ },
1313
+ {
1314
+ "epoch": 0.03989652505533776,
1315
+ "grad_norm": 9.727684047283205,
1316
+ "learning_rate": 7.974413646055436e-07,
1317
+ "loss": -0.4456,
1318
+ "step": 374
1319
+ },
1320
+ {
1321
+ "epoch": 0.040109875456703206,
1322
+ "grad_norm": 37.82883818815438,
1323
+ "learning_rate": 8.017057569296375e-07,
1324
+ "loss": -1.003,
1325
+ "step": 376
1326
+ },
1327
+ {
1328
+ "epoch": 0.04032322585806865,
1329
+ "grad_norm": 9.205831543930358,
1330
+ "learning_rate": 8.059701492537313e-07,
1331
+ "loss": -0.9034,
1332
+ "step": 378
1333
+ },
1334
+ {
1335
+ "epoch": 0.04053657625943409,
1336
+ "grad_norm": 17.5439627015,
1337
+ "learning_rate": 8.102345415778252e-07,
1338
+ "loss": -0.3568,
1339
+ "step": 380
1340
+ },
1341
+ {
1342
+ "epoch": 0.04074992666079953,
1343
+ "grad_norm": 15.109693571978122,
1344
+ "learning_rate": 8.144989339019189e-07,
1345
+ "loss": -0.3776,
1346
+ "step": 382
1347
+ },
1348
+ {
1349
+ "epoch": 0.040963277062164974,
1350
+ "grad_norm": 10.552742457862886,
1351
+ "learning_rate": 8.187633262260127e-07,
1352
+ "loss": 0.2015,
1353
+ "step": 384
1354
+ },
1355
+ {
1356
+ "epoch": 0.041176627463530416,
1357
+ "grad_norm": 19.08793342231466,
1358
+ "learning_rate": 8.230277185501066e-07,
1359
+ "loss": -1.4421,
1360
+ "step": 386
1361
+ },
1362
+ {
1363
+ "epoch": 0.04138997786489586,
1364
+ "grad_norm": 34.056443898662884,
1365
+ "learning_rate": 8.272921108742003e-07,
1366
+ "loss": -0.197,
1367
+ "step": 388
1368
+ },
1369
+ {
1370
+ "epoch": 0.0416033282662613,
1371
+ "grad_norm": 7.384540107176898,
1372
+ "learning_rate": 8.315565031982942e-07,
1373
+ "loss": 0.7544,
1374
+ "step": 390
1375
+ },
1376
+ {
1377
+ "epoch": 0.04181667866762674,
1378
+ "grad_norm": 23.683836639585067,
1379
+ "learning_rate": 8.35820895522388e-07,
1380
+ "loss": -0.3735,
1381
+ "step": 392
1382
+ },
1383
+ {
1384
+ "epoch": 0.042030029068992183,
1385
+ "grad_norm": 19.629725497894157,
1386
+ "learning_rate": 8.400852878464819e-07,
1387
+ "loss": -0.6826,
1388
+ "step": 394
1389
+ },
1390
+ {
1391
+ "epoch": 0.042243379470357625,
1392
+ "grad_norm": 13.85103939830437,
1393
+ "learning_rate": 8.443496801705756e-07,
1394
+ "loss": -0.2708,
1395
+ "step": 396
1396
+ },
1397
+ {
1398
+ "epoch": 0.042456729871723074,
1399
+ "grad_norm": 19.710815160612455,
1400
+ "learning_rate": 8.486140724946694e-07,
1401
+ "loss": 0.0877,
1402
+ "step": 398
1403
+ },
1404
+ {
1405
+ "epoch": 0.042670080273088516,
1406
+ "grad_norm": 4.706110486614041,
1407
+ "learning_rate": 8.528784648187633e-07,
1408
+ "loss": 0.1916,
1409
+ "step": 400
1410
+ },
1411
+ {
1412
+ "epoch": 0.04288343067445396,
1413
+ "grad_norm": 12.864617887211866,
1414
+ "learning_rate": 8.57142857142857e-07,
1415
+ "loss": 0.0179,
1416
+ "step": 402
1417
+ },
1418
+ {
1419
+ "epoch": 0.0430967810758194,
1420
+ "grad_norm": 9.560466147390757,
1421
+ "learning_rate": 8.614072494669509e-07,
1422
+ "loss": -0.0813,
1423
+ "step": 404
1424
+ },
1425
+ {
1426
+ "epoch": 0.04331013147718484,
1427
+ "grad_norm": 21.130991357317583,
1428
+ "learning_rate": 8.656716417910447e-07,
1429
+ "loss": -1.1384,
1430
+ "step": 406
1431
+ },
1432
+ {
1433
+ "epoch": 0.043523481878550284,
1434
+ "grad_norm": 19.392285709372985,
1435
+ "learning_rate": 8.699360341151387e-07,
1436
+ "loss": 0.1794,
1437
+ "step": 408
1438
+ },
1439
+ {
1440
+ "epoch": 0.043736832279915726,
1441
+ "grad_norm": 9.266238784116867,
1442
+ "learning_rate": 8.742004264392324e-07,
1443
+ "loss": -1.768,
1444
+ "step": 410
1445
+ },
1446
+ {
1447
+ "epoch": 0.04395018268128117,
1448
+ "grad_norm": 40.16756332202219,
1449
+ "learning_rate": 8.784648187633262e-07,
1450
+ "loss": -0.8232,
1451
+ "step": 412
1452
+ },
1453
+ {
1454
+ "epoch": 0.04416353308264661,
1455
+ "grad_norm": 39.24330802424692,
1456
+ "learning_rate": 8.827292110874201e-07,
1457
+ "loss": -1.6178,
1458
+ "step": 414
1459
+ },
1460
+ {
1461
+ "epoch": 0.04437688348401205,
1462
+ "grad_norm": 11.88082478788392,
1463
+ "learning_rate": 8.869936034115138e-07,
1464
+ "loss": -0.3053,
1465
+ "step": 416
1466
+ },
1467
+ {
1468
+ "epoch": 0.044590233885377493,
1469
+ "grad_norm": 6.357526673930185,
1470
+ "learning_rate": 8.912579957356077e-07,
1471
+ "loss": -1.0471,
1472
+ "step": 418
1473
+ },
1474
+ {
1475
+ "epoch": 0.04480358428674294,
1476
+ "grad_norm": 16.303453044925423,
1477
+ "learning_rate": 8.955223880597015e-07,
1478
+ "loss": -0.1262,
1479
+ "step": 420
1480
+ },
1481
+ {
1482
+ "epoch": 0.045016934688108384,
1483
+ "grad_norm": 14.6518934802552,
1484
+ "learning_rate": 8.997867803837953e-07,
1485
+ "loss": -0.2323,
1486
+ "step": 422
1487
+ },
1488
+ {
1489
+ "epoch": 0.045230285089473826,
1490
+ "grad_norm": 8.02837999022306,
1491
+ "learning_rate": 9.040511727078891e-07,
1492
+ "loss": 0.1657,
1493
+ "step": 424
1494
+ },
1495
+ {
1496
+ "epoch": 0.04544363549083927,
1497
+ "grad_norm": 15.64582877736265,
1498
+ "learning_rate": 9.083155650319829e-07,
1499
+ "loss": -0.1882,
1500
+ "step": 426
1501
+ },
1502
+ {
1503
+ "epoch": 0.04565698589220471,
1504
+ "grad_norm": 16.363233536467853,
1505
+ "learning_rate": 9.125799573560768e-07,
1506
+ "loss": -0.4399,
1507
+ "step": 428
1508
+ },
1509
+ {
1510
+ "epoch": 0.04587033629357015,
1511
+ "grad_norm": 15.548489913061752,
1512
+ "learning_rate": 9.168443496801705e-07,
1513
+ "loss": 0.3602,
1514
+ "step": 430
1515
+ },
1516
+ {
1517
+ "epoch": 0.046083686694935594,
1518
+ "grad_norm": 7.007708536573836,
1519
+ "learning_rate": 9.211087420042644e-07,
1520
+ "loss": -0.2646,
1521
+ "step": 432
1522
+ },
1523
+ {
1524
+ "epoch": 0.046297037096301036,
1525
+ "grad_norm": 13.687256516704583,
1526
+ "learning_rate": 9.253731343283582e-07,
1527
+ "loss": -1.0053,
1528
+ "step": 434
1529
+ },
1530
+ {
1531
+ "epoch": 0.04651038749766648,
1532
+ "grad_norm": 30.306488264414572,
1533
+ "learning_rate": 9.29637526652452e-07,
1534
+ "loss": -0.3203,
1535
+ "step": 436
1536
+ },
1537
+ {
1538
+ "epoch": 0.04672373789903192,
1539
+ "grad_norm": 26.094659474249983,
1540
+ "learning_rate": 9.339019189765458e-07,
1541
+ "loss": -0.6359,
1542
+ "step": 438
1543
+ },
1544
+ {
1545
+ "epoch": 0.04693708830039737,
1546
+ "grad_norm": 13.796812579064204,
1547
+ "learning_rate": 9.381663113006396e-07,
1548
+ "loss": -0.3471,
1549
+ "step": 440
1550
+ },
1551
+ {
1552
+ "epoch": 0.04715043870176281,
1553
+ "grad_norm": 14.69389520446514,
1554
+ "learning_rate": 9.424307036247334e-07,
1555
+ "loss": -0.8145,
1556
+ "step": 442
1557
+ },
1558
+ {
1559
+ "epoch": 0.04736378910312825,
1560
+ "grad_norm": 16.918575972701632,
1561
+ "learning_rate": 9.466950959488272e-07,
1562
+ "loss": 0.2185,
1563
+ "step": 444
1564
+ },
1565
+ {
1566
+ "epoch": 0.047577139504493694,
1567
+ "grad_norm": 10.422480971977198,
1568
+ "learning_rate": 9.509594882729211e-07,
1569
+ "loss": -0.4649,
1570
+ "step": 446
1571
+ },
1572
+ {
1573
+ "epoch": 0.047790489905859136,
1574
+ "grad_norm": 7.03443725132983,
1575
+ "learning_rate": 9.552238805970149e-07,
1576
+ "loss": -0.3627,
1577
+ "step": 448
1578
+ },
1579
+ {
1580
+ "epoch": 0.04800384030722458,
1581
+ "grad_norm": 18.359610314742397,
1582
+ "learning_rate": 9.594882729211086e-07,
1583
+ "loss": -0.9404,
1584
+ "step": 450
1585
+ },
1586
+ {
1587
+ "epoch": 0.04821719070859002,
1588
+ "grad_norm": 8.277072501759134,
1589
+ "learning_rate": 9.637526652452024e-07,
1590
+ "loss": 0.2409,
1591
+ "step": 452
1592
+ },
1593
+ {
1594
+ "epoch": 0.04843054110995546,
1595
+ "grad_norm": 13.071634752922243,
1596
+ "learning_rate": 9.680170575692964e-07,
1597
+ "loss": 0.3506,
1598
+ "step": 454
1599
+ },
1600
+ {
1601
+ "epoch": 0.048643891511320904,
1602
+ "grad_norm": 36.801112890968085,
1603
+ "learning_rate": 9.722814498933901e-07,
1604
+ "loss": -0.3961,
1605
+ "step": 456
1606
+ },
1607
+ {
1608
+ "epoch": 0.048857241912686346,
1609
+ "grad_norm": 40.38991240984631,
1610
+ "learning_rate": 9.76545842217484e-07,
1611
+ "loss": -0.3497,
1612
+ "step": 458
1613
+ },
1614
+ {
1615
+ "epoch": 0.04907059231405179,
1616
+ "grad_norm": 8.414591188760289,
1617
+ "learning_rate": 9.808102345415777e-07,
1618
+ "loss": -0.5775,
1619
+ "step": 460
1620
+ },
1621
+ {
1622
+ "epoch": 0.04928394271541724,
1623
+ "grad_norm": 8.76108225719733,
1624
+ "learning_rate": 9.850746268656714e-07,
1625
+ "loss": 0.0839,
1626
+ "step": 462
1627
+ },
1628
+ {
1629
+ "epoch": 0.04949729311678268,
1630
+ "grad_norm": 9.275399140799998,
1631
+ "learning_rate": 9.893390191897654e-07,
1632
+ "loss": 0.0137,
1633
+ "step": 464
1634
+ },
1635
+ {
1636
+ "epoch": 0.04971064351814812,
1637
+ "grad_norm": 9.832501914571974,
1638
+ "learning_rate": 9.936034115138592e-07,
1639
+ "loss": 0.1014,
1640
+ "step": 466
1641
+ },
1642
+ {
1643
+ "epoch": 0.04992399391951356,
1644
+ "grad_norm": 19.204369086700787,
1645
+ "learning_rate": 9.97867803837953e-07,
1646
+ "loss": -0.31,
1647
+ "step": 468
1648
+ },
1649
+ {
1650
+ "epoch": 0.050137344320879004,
1651
+ "grad_norm": 6.109980991190154,
1652
+ "learning_rate": 1.0021321961620467e-06,
1653
+ "loss": -0.26,
1654
+ "step": 470
1655
+ },
1656
+ {
1657
+ "epoch": 0.050350694722244446,
1658
+ "grad_norm": 31.865612558858906,
1659
+ "learning_rate": 1.0063965884861407e-06,
1660
+ "loss": -0.1208,
1661
+ "step": 472
1662
+ },
1663
+ {
1664
+ "epoch": 0.05056404512360989,
1665
+ "grad_norm": 10.044184014650897,
1666
+ "learning_rate": 1.0106609808102345e-06,
1667
+ "loss": -0.2205,
1668
+ "step": 474
1669
+ },
1670
+ {
1671
+ "epoch": 0.05077739552497533,
1672
+ "grad_norm": 21.875745094199374,
1673
+ "learning_rate": 1.0149253731343285e-06,
1674
+ "loss": -0.0812,
1675
+ "step": 476
1676
+ },
1677
+ {
1678
+ "epoch": 0.05099074592634077,
1679
+ "grad_norm": 11.995975513229988,
1680
+ "learning_rate": 1.019189765458422e-06,
1681
+ "loss": -1.7783,
1682
+ "step": 478
1683
+ },
1684
+ {
1685
+ "epoch": 0.051204096327706214,
1686
+ "grad_norm": 7.696707350691998,
1687
+ "learning_rate": 1.023454157782516e-06,
1688
+ "loss": 0.2012,
1689
+ "step": 480
1690
+ },
1691
+ {
1692
+ "epoch": 0.051417446729071656,
1693
+ "grad_norm": 72.33916217166278,
1694
+ "learning_rate": 1.0277185501066098e-06,
1695
+ "loss": 0.0427,
1696
+ "step": 482
1697
+ },
1698
+ {
1699
+ "epoch": 0.051630797130437105,
1700
+ "grad_norm": 13.569652394718384,
1701
+ "learning_rate": 1.0319829424307035e-06,
1702
+ "loss": 0.0953,
1703
+ "step": 484
1704
+ },
1705
+ {
1706
+ "epoch": 0.05184414753180255,
1707
+ "grad_norm": 6.640484086255635,
1708
+ "learning_rate": 1.0362473347547973e-06,
1709
+ "loss": -1.0771,
1710
+ "step": 486
1711
+ },
1712
+ {
1713
+ "epoch": 0.05205749793316799,
1714
+ "grad_norm": 16.284392321889953,
1715
+ "learning_rate": 1.0405117270788913e-06,
1716
+ "loss": -0.661,
1717
+ "step": 488
1718
+ },
1719
+ {
1720
+ "epoch": 0.05227084833453343,
1721
+ "grad_norm": 10.396345506952937,
1722
+ "learning_rate": 1.0447761194029848e-06,
1723
+ "loss": -0.3095,
1724
+ "step": 490
1725
+ },
1726
+ {
1727
+ "epoch": 0.05248419873589887,
1728
+ "grad_norm": 12.867700984841619,
1729
+ "learning_rate": 1.0490405117270788e-06,
1730
+ "loss": 0.4289,
1731
+ "step": 492
1732
+ },
1733
+ {
1734
+ "epoch": 0.052697549137264314,
1735
+ "grad_norm": 18.31825168601856,
1736
+ "learning_rate": 1.0533049040511726e-06,
1737
+ "loss": 0.1729,
1738
+ "step": 494
1739
+ },
1740
+ {
1741
+ "epoch": 0.052910899538629756,
1742
+ "grad_norm": 17.248690968213506,
1743
+ "learning_rate": 1.0575692963752666e-06,
1744
+ "loss": -1.1607,
1745
+ "step": 496
1746
+ },
1747
+ {
1748
+ "epoch": 0.0531242499399952,
1749
+ "grad_norm": 8.51928074224459,
1750
+ "learning_rate": 1.0618336886993601e-06,
1751
+ "loss": -0.3654,
1752
+ "step": 498
1753
+ },
1754
+ {
1755
+ "epoch": 0.05333760034136064,
1756
+ "grad_norm": 20.639043194792887,
1757
+ "learning_rate": 1.066098081023454e-06,
1758
+ "loss": -0.4893,
1759
+ "step": 500
1760
+ },
1761
+ {
1762
+ "epoch": 0.05355095074272608,
1763
+ "grad_norm": 14.990753207547238,
1764
+ "learning_rate": 1.070362473347548e-06,
1765
+ "loss": -0.468,
1766
+ "step": 502
1767
+ },
1768
+ {
1769
+ "epoch": 0.053764301144091524,
1770
+ "grad_norm": 24.695774003905925,
1771
+ "learning_rate": 1.0746268656716416e-06,
1772
+ "loss": -1.2465,
1773
+ "step": 504
1774
+ },
1775
+ {
1776
+ "epoch": 0.05397765154545697,
1777
+ "grad_norm": 17.81220746000941,
1778
+ "learning_rate": 1.0788912579957356e-06,
1779
+ "loss": -0.232,
1780
+ "step": 506
1781
+ },
1782
+ {
1783
+ "epoch": 0.054191001946822415,
1784
+ "grad_norm": 7.6840011548352924,
1785
+ "learning_rate": 1.0831556503198294e-06,
1786
+ "loss": 0.1394,
1787
+ "step": 508
1788
+ },
1789
+ {
1790
+ "epoch": 0.05440435234818786,
1791
+ "grad_norm": 17.135280175028917,
1792
+ "learning_rate": 1.0874200426439234e-06,
1793
+ "loss": -0.1113,
1794
+ "step": 510
1795
+ },
1796
+ {
1797
+ "epoch": 0.0546177027495533,
1798
+ "grad_norm": 21.577778290948245,
1799
+ "learning_rate": 1.091684434968017e-06,
1800
+ "loss": 0.1389,
1801
+ "step": 512
1802
+ },
1803
+ {
1804
+ "epoch": 0.05483105315091874,
1805
+ "grad_norm": 26.22719409585662,
1806
+ "learning_rate": 1.095948827292111e-06,
1807
+ "loss": -0.1216,
1808
+ "step": 514
1809
+ },
1810
+ {
1811
+ "epoch": 0.05504440355228418,
1812
+ "grad_norm": 8.763214398721058,
1813
+ "learning_rate": 1.1002132196162047e-06,
1814
+ "loss": -0.6157,
1815
+ "step": 516
1816
+ },
1817
+ {
1818
+ "epoch": 0.055257753953649624,
1819
+ "grad_norm": 14.925448860683707,
1820
+ "learning_rate": 1.1044776119402984e-06,
1821
+ "loss": 0.0356,
1822
+ "step": 518
1823
+ },
1824
+ {
1825
+ "epoch": 0.055471104355015066,
1826
+ "grad_norm": 14.365407282055516,
1827
+ "learning_rate": 1.1087420042643922e-06,
1828
+ "loss": -0.0624,
1829
+ "step": 520
1830
+ },
1831
+ {
1832
+ "epoch": 0.05568445475638051,
1833
+ "grad_norm": 8.802366004297667,
1834
+ "learning_rate": 1.1130063965884862e-06,
1835
+ "loss": 0.5658,
1836
+ "step": 522
1837
+ },
1838
+ {
1839
+ "epoch": 0.05589780515774595,
1840
+ "grad_norm": 24.251203850442998,
1841
+ "learning_rate": 1.11727078891258e-06,
1842
+ "loss": -0.0644,
1843
+ "step": 524
1844
+ },
1845
+ {
1846
+ "epoch": 0.0561111555591114,
1847
+ "grad_norm": 16.632568797956132,
1848
+ "learning_rate": 1.1215351812366737e-06,
1849
+ "loss": -1.0315,
1850
+ "step": 526
1851
+ },
1852
+ {
1853
+ "epoch": 0.05632450596047684,
1854
+ "grad_norm": 15.777059103835,
1855
+ "learning_rate": 1.1257995735607675e-06,
1856
+ "loss": 0.6824,
1857
+ "step": 528
1858
+ },
1859
+ {
1860
+ "epoch": 0.05653785636184228,
1861
+ "grad_norm": 6.521931225844872,
1862
+ "learning_rate": 1.1300639658848615e-06,
1863
+ "loss": -0.2547,
1864
+ "step": 530
1865
+ },
1866
+ {
1867
+ "epoch": 0.056751206763207725,
1868
+ "grad_norm": 16.18907262330339,
1869
+ "learning_rate": 1.134328358208955e-06,
1870
+ "loss": -0.714,
1871
+ "step": 532
1872
+ },
1873
+ {
1874
+ "epoch": 0.05696455716457317,
1875
+ "grad_norm": 17.05716262320914,
1876
+ "learning_rate": 1.138592750533049e-06,
1877
+ "loss": -1.1937,
1878
+ "step": 534
1879
+ },
1880
+ {
1881
+ "epoch": 0.05717790756593861,
1882
+ "grad_norm": 8.560189061728243,
1883
+ "learning_rate": 1.1428571428571428e-06,
1884
+ "loss": -0.3703,
1885
+ "step": 536
1886
+ },
1887
+ {
1888
+ "epoch": 0.05739125796730405,
1889
+ "grad_norm": 11.56228500281614,
1890
+ "learning_rate": 1.1471215351812368e-06,
1891
+ "loss": -0.8073,
1892
+ "step": 538
1893
+ },
1894
+ {
1895
+ "epoch": 0.05760460836866949,
1896
+ "grad_norm": 13.24672543046646,
1897
+ "learning_rate": 1.1513859275053303e-06,
1898
+ "loss": -0.3222,
1899
+ "step": 540
1900
+ },
1901
+ {
1902
+ "epoch": 0.057817958770034934,
1903
+ "grad_norm": 14.035481073008786,
1904
+ "learning_rate": 1.1556503198294243e-06,
1905
+ "loss": 0.286,
1906
+ "step": 542
1907
+ },
1908
+ {
1909
+ "epoch": 0.058031309171400376,
1910
+ "grad_norm": 28.95516126438781,
1911
+ "learning_rate": 1.159914712153518e-06,
1912
+ "loss": -1.189,
1913
+ "step": 544
1914
+ },
1915
+ {
1916
+ "epoch": 0.05824465957276582,
1917
+ "grad_norm": 20.850060598425877,
1918
+ "learning_rate": 1.1641791044776118e-06,
1919
+ "loss": -0.6204,
1920
+ "step": 546
1921
+ },
1922
+ {
1923
+ "epoch": 0.05845800997413127,
1924
+ "grad_norm": 21.211499139014034,
1925
+ "learning_rate": 1.1684434968017056e-06,
1926
+ "loss": -0.5428,
1927
+ "step": 548
1928
+ },
1929
+ {
1930
+ "epoch": 0.05867136037549671,
1931
+ "grad_norm": 16.101447224508938,
1932
+ "learning_rate": 1.1727078891257996e-06,
1933
+ "loss": -0.7822,
1934
+ "step": 550
1935
+ },
1936
+ {
1937
+ "epoch": 0.05888471077686215,
1938
+ "grad_norm": 60.24925771229807,
1939
+ "learning_rate": 1.1769722814498933e-06,
1940
+ "loss": -0.5338,
1941
+ "step": 552
1942
+ },
1943
+ {
1944
+ "epoch": 0.05909806117822759,
1945
+ "grad_norm": 10.911944544305852,
1946
+ "learning_rate": 1.1812366737739871e-06,
1947
+ "loss": -0.1546,
1948
+ "step": 554
1949
+ },
1950
+ {
1951
+ "epoch": 0.059311411579593035,
1952
+ "grad_norm": 20.123496073532923,
1953
+ "learning_rate": 1.1855010660980809e-06,
1954
+ "loss": 0.1078,
1955
+ "step": 556
1956
+ },
1957
+ {
1958
+ "epoch": 0.05952476198095848,
1959
+ "grad_norm": 8.077431875506283,
1960
+ "learning_rate": 1.1897654584221749e-06,
1961
+ "loss": 0.6775,
1962
+ "step": 558
1963
+ },
1964
+ {
1965
+ "epoch": 0.05973811238232392,
1966
+ "grad_norm": 20.69430693950377,
1967
+ "learning_rate": 1.1940298507462684e-06,
1968
+ "loss": -0.1531,
1969
+ "step": 560
1970
+ },
1971
+ {
1972
+ "epoch": 0.05995146278368936,
1973
+ "grad_norm": 9.149229771649699,
1974
+ "learning_rate": 1.1982942430703624e-06,
1975
+ "loss": 0.2026,
1976
+ "step": 562
1977
+ },
1978
+ {
1979
+ "epoch": 0.0601648131850548,
1980
+ "grad_norm": 35.409517307149535,
1981
+ "learning_rate": 1.2025586353944564e-06,
1982
+ "loss": 0.2081,
1983
+ "step": 564
1984
+ },
1985
+ {
1986
+ "epoch": 0.060378163586420244,
1987
+ "grad_norm": 18.732961050530974,
1988
+ "learning_rate": 1.2068230277185501e-06,
1989
+ "loss": -0.4564,
1990
+ "step": 566
1991
+ },
1992
+ {
1993
+ "epoch": 0.060591513987785686,
1994
+ "grad_norm": 18.17521906003365,
1995
+ "learning_rate": 1.211087420042644e-06,
1996
+ "loss": -0.4694,
1997
+ "step": 568
1998
+ },
1999
+ {
2000
+ "epoch": 0.060804864389151135,
2001
+ "grad_norm": 15.950240307469345,
2002
+ "learning_rate": 1.2153518123667377e-06,
2003
+ "loss": -0.7607,
2004
+ "step": 570
2005
+ },
2006
+ {
2007
+ "epoch": 0.06101821479051658,
2008
+ "grad_norm": 27.667171128676177,
2009
+ "learning_rate": 1.2196162046908317e-06,
2010
+ "loss": -0.4962,
2011
+ "step": 572
2012
+ },
2013
+ {
2014
+ "epoch": 0.06123156519188202,
2015
+ "grad_norm": 6.875981558346762,
2016
+ "learning_rate": 1.2238805970149252e-06,
2017
+ "loss": 0.1071,
2018
+ "step": 574
2019
+ },
2020
+ {
2021
+ "epoch": 0.06144491559324746,
2022
+ "grad_norm": 23.330801092034456,
2023
+ "learning_rate": 1.2281449893390192e-06,
2024
+ "loss": -1.1081,
2025
+ "step": 576
2026
+ },
2027
+ {
2028
+ "epoch": 0.0616582659946129,
2029
+ "grad_norm": 18.097087985455573,
2030
+ "learning_rate": 1.232409381663113e-06,
2031
+ "loss": 0.292,
2032
+ "step": 578
2033
+ },
2034
+ {
2035
+ "epoch": 0.061871616395978345,
2036
+ "grad_norm": 44.96075507661794,
2037
+ "learning_rate": 1.236673773987207e-06,
2038
+ "loss": -1.8344,
2039
+ "step": 580
2040
+ },
2041
+ {
2042
+ "epoch": 0.06208496679734379,
2043
+ "grad_norm": 11.33849063045387,
2044
+ "learning_rate": 1.2409381663113005e-06,
2045
+ "loss": -0.5339,
2046
+ "step": 582
2047
+ },
2048
+ {
2049
+ "epoch": 0.06229831719870923,
2050
+ "grad_norm": 25.655929914012017,
2051
+ "learning_rate": 1.2452025586353945e-06,
2052
+ "loss": 0.2773,
2053
+ "step": 584
2054
+ },
2055
+ {
2056
+ "epoch": 0.06251166760007468,
2057
+ "grad_norm": 19.518509371933693,
2058
+ "learning_rate": 1.2494669509594882e-06,
2059
+ "loss": -0.3635,
2060
+ "step": 586
2061
+ },
2062
+ {
2063
+ "epoch": 0.06272501800144012,
2064
+ "grad_norm": 19.337178836658445,
2065
+ "learning_rate": 1.253731343283582e-06,
2066
+ "loss": -0.4397,
2067
+ "step": 588
2068
+ },
2069
+ {
2070
+ "epoch": 0.06293836840280556,
2071
+ "grad_norm": 15.629253302757428,
2072
+ "learning_rate": 1.2579957356076758e-06,
2073
+ "loss": -0.3098,
2074
+ "step": 590
2075
+ },
2076
+ {
2077
+ "epoch": 0.063151718804171,
2078
+ "grad_norm": 35.95259160255183,
2079
+ "learning_rate": 1.2622601279317698e-06,
2080
+ "loss": -0.9708,
2081
+ "step": 592
2082
+ },
2083
+ {
2084
+ "epoch": 0.06336506920553645,
2085
+ "grad_norm": 27.574715730226895,
2086
+ "learning_rate": 1.2665245202558633e-06,
2087
+ "loss": -0.5131,
2088
+ "step": 594
2089
+ },
2090
+ {
2091
+ "epoch": 0.06357841960690189,
2092
+ "grad_norm": 47.74900017442824,
2093
+ "learning_rate": 1.2707889125799573e-06,
2094
+ "loss": 0.3332,
2095
+ "step": 596
2096
+ },
2097
+ {
2098
+ "epoch": 0.06379177000826733,
2099
+ "grad_norm": 20.309365479498744,
2100
+ "learning_rate": 1.275053304904051e-06,
2101
+ "loss": -1.2309,
2102
+ "step": 598
2103
+ },
2104
+ {
2105
+ "epoch": 0.06400512040963277,
2106
+ "grad_norm": 11.40208623029672,
2107
+ "learning_rate": 1.279317697228145e-06,
2108
+ "loss": -0.5857,
2109
+ "step": 600
2110
+ }
2111
+ ],
2112
+ "logging_steps": 2,
2113
+ "max_steps": 9374,
2114
+ "num_input_tokens_seen": 0,
2115
+ "num_train_epochs": 1,
2116
+ "save_steps": 600,
2117
+ "stateful_callbacks": {
2118
+ "TrainerControl": {
2119
+ "args": {
2120
+ "should_epoch_stop": false,
2121
+ "should_evaluate": false,
2122
+ "should_log": false,
2123
+ "should_save": true,
2124
+ "should_training_stop": false
2125
+ },
2126
+ "attributes": {}
2127
+ }
2128
+ },
2129
+ "total_flos": 51407077736448.0,
2130
+ "train_batch_size": 4,
2131
+ "trial_name": null,
2132
+ "trial_params": null
2133
+ }
ARM-7B-Pruned/checkpoint-600/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a81db8d15143df8bb94c1c2a8705c726095471d7f688ad728817d29193bb0eba
3
+ size 7096
ARM-7B-Pruned/checkpoint-600/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
ARM-7B-Pruned/checkpoint-600/zero_to_fp32.py ADDED
@@ -0,0 +1,760 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+
3
+ # Copyright (c) Microsoft Corporation.
4
+ # SPDX-License-Identifier: Apache-2.0
5
+
6
+ # DeepSpeed Team
7
+
8
+ # This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
9
+ # copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
10
+ # the future. Once extracted, the weights don't require DeepSpeed and can be used in any
11
+ # application.
12
+ #
13
+ # example:
14
+ # python zero_to_fp32.py . output_dir/
15
+ # or
16
+ # python zero_to_fp32.py . output_dir/ --safe_serialization
17
+
18
+ import argparse
19
+ import torch
20
+ import glob
21
+ import math
22
+ import os
23
+ import re
24
+ import gc
25
+ import json
26
+ import numpy as np
27
+ from tqdm import tqdm
28
+ from collections import OrderedDict
29
+ from dataclasses import dataclass
30
+
31
+ # while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
32
+ # DeepSpeed data structures it has to be available in the current python environment.
33
+ from deepspeed.utils import logger
34
+ from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
35
+ FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
36
+ FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
37
+
38
+
39
+ @dataclass
40
+ class zero_model_state:
41
+ buffers: dict()
42
+ param_shapes: dict()
43
+ shared_params: list
44
+ ds_version: int
45
+ frozen_param_shapes: dict()
46
+ frozen_param_fragments: dict()
47
+
48
+
49
+ debug = 0
50
+
51
+ # load to cpu
52
+ device = torch.device('cpu')
53
+
54
+
55
+ def atoi(text):
56
+ return int(text) if text.isdigit() else text
57
+
58
+
59
+ def natural_keys(text):
60
+ '''
61
+ alist.sort(key=natural_keys) sorts in human order
62
+ http://nedbatchelder.com/blog/200712/human_sorting.html
63
+ (See Toothy's implementation in the comments)
64
+ '''
65
+ return [atoi(c) for c in re.split(r'(\d+)', text)]
66
+
67
+
68
+ def get_model_state_file(checkpoint_dir, zero_stage):
69
+ if not os.path.isdir(checkpoint_dir):
70
+ raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
71
+
72
+ # there should be only one file
73
+ if zero_stage <= 2:
74
+ file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
75
+ elif zero_stage == 3:
76
+ file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
77
+
78
+ if not os.path.exists(file):
79
+ raise FileNotFoundError(f"can't find model states file at '{file}'")
80
+
81
+ return file
82
+
83
+
84
+ def get_checkpoint_files(checkpoint_dir, glob_pattern):
85
+ # XXX: need to test that this simple glob rule works for multi-node setup too
86
+ ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
87
+
88
+ if len(ckpt_files) == 0:
89
+ raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
90
+
91
+ return ckpt_files
92
+
93
+
94
+ def get_optim_files(checkpoint_dir):
95
+ return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
96
+
97
+
98
+ def get_model_state_files(checkpoint_dir):
99
+ return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
100
+
101
+
102
+ def parse_model_states(files):
103
+ zero_model_states = []
104
+ for file in files:
105
+ state_dict = torch.load(file, map_location=device, weights_only=False)
106
+
107
+ if BUFFER_NAMES not in state_dict:
108
+ raise ValueError(f"{file} is not a model state checkpoint")
109
+ buffer_names = state_dict[BUFFER_NAMES]
110
+ if debug:
111
+ print("Found buffers:", buffer_names)
112
+
113
+ # recover just the buffers while restoring them to fp32 if they were saved in fp16
114
+ buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
115
+ param_shapes = state_dict[PARAM_SHAPES]
116
+
117
+ # collect parameters that are included in param_shapes
118
+ param_names = []
119
+ for s in param_shapes:
120
+ for name in s.keys():
121
+ param_names.append(name)
122
+
123
+ # update with frozen parameters
124
+ frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
125
+ if frozen_param_shapes is not None:
126
+ if debug:
127
+ print(f"Found frozen_param_shapes: {frozen_param_shapes}")
128
+ param_names += list(frozen_param_shapes.keys())
129
+
130
+ # handle shared params
131
+ shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
132
+
133
+ ds_version = state_dict.get(DS_VERSION, None)
134
+
135
+ frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
136
+
137
+ z_model_state = zero_model_state(buffers=buffers,
138
+ param_shapes=param_shapes,
139
+ shared_params=shared_params,
140
+ ds_version=ds_version,
141
+ frozen_param_shapes=frozen_param_shapes,
142
+ frozen_param_fragments=frozen_param_fragments)
143
+ zero_model_states.append(z_model_state)
144
+
145
+ return zero_model_states
146
+
147
+
148
+ def parse_optim_states(files, ds_checkpoint_dir):
149
+ total_files = len(files)
150
+ state_dicts = []
151
+ for f in tqdm(files, desc='Loading checkpoint shards'):
152
+ state_dict = torch.load(f, map_location=device, mmap=True, weights_only=False)
153
+ # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
154
+ # and also handle the case where it was already removed by another helper script
155
+ state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
156
+ state_dicts.append(state_dict)
157
+
158
+ if ZERO_STAGE not in state_dicts[0][OPTIMIZER_STATE_DICT]:
159
+ raise ValueError(f"{files[0]} is not a zero checkpoint")
160
+ zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
161
+ world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
162
+
163
+ # For ZeRO-2 each param group can have different partition_count as data parallelism for expert
164
+ # parameters can be different from data parallelism for non-expert parameters. So we can just
165
+ # use the max of the partition_count to get the dp world_size.
166
+
167
+ if type(world_size) is list:
168
+ world_size = max(world_size)
169
+
170
+ if world_size != total_files:
171
+ raise ValueError(
172
+ f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
173
+ "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
174
+ )
175
+
176
+ # the groups are named differently in each stage
177
+ if zero_stage <= 2:
178
+ fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
179
+ elif zero_stage == 3:
180
+ fp32_groups_key = FP32_FLAT_GROUPS
181
+ else:
182
+ raise ValueError(f"unknown zero stage {zero_stage}")
183
+
184
+ fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
185
+ return zero_stage, world_size, fp32_flat_groups
186
+
187
+
188
+ def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
189
+ """
190
+ Returns fp32 state_dict reconstructed from ds checkpoint
191
+
192
+ Args:
193
+ - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
194
+
195
+ """
196
+ print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
197
+
198
+ optim_files = get_optim_files(ds_checkpoint_dir)
199
+ zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
200
+ print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
201
+
202
+ model_files = get_model_state_files(ds_checkpoint_dir)
203
+
204
+ zero_model_states = parse_model_states(model_files)
205
+ print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
206
+
207
+ if zero_stage <= 2:
208
+ return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
209
+ exclude_frozen_parameters)
210
+ elif zero_stage == 3:
211
+ return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
212
+ exclude_frozen_parameters)
213
+
214
+
215
+ def _zero2_merge_frozen_params(state_dict, zero_model_states):
216
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
217
+ return
218
+
219
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
220
+ frozen_param_fragments = zero_model_states[0].frozen_param_fragments
221
+
222
+ if debug:
223
+ num_elem = sum(s.numel() for s in frozen_param_shapes.values())
224
+ print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
225
+
226
+ wanted_params = len(frozen_param_shapes)
227
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
228
+ avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
229
+ print(f'Frozen params: Have {avail_numel} numels to process.')
230
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
231
+
232
+ total_params = 0
233
+ total_numel = 0
234
+ for name, shape in frozen_param_shapes.items():
235
+ total_params += 1
236
+ unpartitioned_numel = shape.numel()
237
+ total_numel += unpartitioned_numel
238
+
239
+ state_dict[name] = frozen_param_fragments[name]
240
+
241
+ if debug:
242
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
243
+
244
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
245
+
246
+
247
+ def _has_callable(obj, fn):
248
+ attr = getattr(obj, fn, None)
249
+ return callable(attr)
250
+
251
+
252
+ def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
253
+ param_shapes = zero_model_states[0].param_shapes
254
+
255
+ # Reconstruction protocol:
256
+ #
257
+ # XXX: document this
258
+
259
+ if debug:
260
+ for i in range(world_size):
261
+ for j in range(len(fp32_flat_groups[0])):
262
+ print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
263
+
264
+ # XXX: memory usage doubles here (zero2)
265
+ num_param_groups = len(fp32_flat_groups[0])
266
+ merged_single_partition_of_fp32_groups = []
267
+ for i in range(num_param_groups):
268
+ merged_partitions = [sd[i] for sd in fp32_flat_groups]
269
+ full_single_fp32_vector = torch.cat(merged_partitions, 0)
270
+ merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
271
+ avail_numel = sum(
272
+ [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
273
+
274
+ if debug:
275
+ wanted_params = sum([len(shapes) for shapes in param_shapes])
276
+ wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
277
+ # not asserting if there is a mismatch due to possible padding
278
+ print(f"Have {avail_numel} numels to process.")
279
+ print(f"Need {wanted_numel} numels in {wanted_params} params.")
280
+
281
+ # params
282
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
283
+ # out-of-core computing solution
284
+ total_numel = 0
285
+ total_params = 0
286
+ for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
287
+ offset = 0
288
+ avail_numel = full_single_fp32_vector.numel()
289
+ for name, shape in shapes.items():
290
+
291
+ unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
292
+ total_numel += unpartitioned_numel
293
+ total_params += 1
294
+
295
+ if debug:
296
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
297
+ state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
298
+ offset += unpartitioned_numel
299
+
300
+ # Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
301
+ # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
302
+ # paddings performed in the code it's almost impossible to predict the exact numbers w/o the
303
+ # live optimizer object, so we are checking that the numbers are within the right range
304
+ align_to = 2 * world_size
305
+
306
+ def zero2_align(x):
307
+ return align_to * math.ceil(x / align_to)
308
+
309
+ if debug:
310
+ print(f"original offset={offset}, avail_numel={avail_numel}")
311
+
312
+ offset = zero2_align(offset)
313
+ avail_numel = zero2_align(avail_numel)
314
+
315
+ if debug:
316
+ print(f"aligned offset={offset}, avail_numel={avail_numel}")
317
+
318
+ # Sanity check
319
+ if offset != avail_numel:
320
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
321
+
322
+ print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
323
+
324
+
325
+ def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
326
+ exclude_frozen_parameters):
327
+ state_dict = OrderedDict()
328
+
329
+ # buffers
330
+ buffers = zero_model_states[0].buffers
331
+ state_dict.update(buffers)
332
+ if debug:
333
+ print(f"added {len(buffers)} buffers")
334
+
335
+ if not exclude_frozen_parameters:
336
+ _zero2_merge_frozen_params(state_dict, zero_model_states)
337
+
338
+ _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
339
+
340
+ # recover shared parameters
341
+ for pair in zero_model_states[0].shared_params:
342
+ if pair[1] in state_dict:
343
+ state_dict[pair[0]] = state_dict[pair[1]]
344
+
345
+ return state_dict
346
+
347
+
348
+ def zero3_partitioned_param_info(unpartitioned_numel, world_size):
349
+ remainder = unpartitioned_numel % world_size
350
+ padding_numel = (world_size - remainder) if remainder else 0
351
+ partitioned_numel = math.ceil(unpartitioned_numel / world_size)
352
+ return partitioned_numel, padding_numel
353
+
354
+
355
+ def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
356
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
357
+ return
358
+
359
+ if debug:
360
+ for i in range(world_size):
361
+ num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
362
+ print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
363
+
364
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
365
+ wanted_params = len(frozen_param_shapes)
366
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
367
+ avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
368
+ print(f'Frozen params: Have {avail_numel} numels to process.')
369
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
370
+
371
+ total_params = 0
372
+ total_numel = 0
373
+ for name, shape in zero_model_states[0].frozen_param_shapes.items():
374
+ total_params += 1
375
+ unpartitioned_numel = shape.numel()
376
+ total_numel += unpartitioned_numel
377
+
378
+ param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
379
+ state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
380
+
381
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
382
+
383
+ if debug:
384
+ print(
385
+ f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
386
+ )
387
+
388
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
389
+
390
+
391
+ class GatheredTensor:
392
+ """
393
+ A pseudo tensor that collects partitioned weights.
394
+ It is more memory efficient when there are multiple groups.
395
+ """
396
+
397
+ def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape):
398
+ self.flat_groups = flat_groups
399
+ self.flat_groups_offset = flat_groups_offset
400
+ self.offset = offset
401
+ self.partitioned_numel = partitioned_numel
402
+ self.shape = shape
403
+ self.dtype = self.flat_groups[0][0].dtype
404
+
405
+ def contiguous(self):
406
+ """
407
+ Merge partitioned weights from flat_groups into a single tensor.
408
+ """
409
+ end_idx = self.offset + self.partitioned_numel
410
+ world_size = len(self.flat_groups)
411
+ pad_flat_param_chunks = []
412
+
413
+ for rank_i in range(world_size):
414
+ # for each rank, we need to collect weights from related group/groups
415
+ flat_groups_at_rank_i = self.flat_groups[rank_i]
416
+ start_group_id = None
417
+ end_group_id = None
418
+ for group_id in range(len(self.flat_groups_offset)):
419
+ if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]:
420
+ start_group_id = group_id
421
+ if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]:
422
+ end_group_id = group_id
423
+ break
424
+ # collect weights from related group/groups
425
+ for group_id in range(start_group_id, end_group_id + 1):
426
+ flat_tensor = flat_groups_at_rank_i[group_id]
427
+ start_offset = self.offset - self.flat_groups_offset[group_id]
428
+ end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id]
429
+ pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
430
+
431
+ # collect weights from all ranks
432
+ pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0)
433
+ param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous()
434
+ return param
435
+
436
+
437
+ def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
438
+ param_shapes = zero_model_states[0].param_shapes
439
+ avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
440
+
441
+ # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
442
+ # param, re-consolidating each param, while dealing with padding if any
443
+
444
+ # merge list of dicts, preserving order
445
+ param_shapes = {k: v for d in param_shapes for k, v in d.items()}
446
+
447
+ if debug:
448
+ for i in range(world_size):
449
+ print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
450
+
451
+ wanted_params = len(param_shapes)
452
+ wanted_numel = sum(shape.numel() for shape in param_shapes.values())
453
+ # not asserting if there is a mismatch due to possible padding
454
+ avail_numel = fp32_flat_groups[0].numel() * world_size
455
+ print(f"Trainable params: Have {avail_numel} numels to process.")
456
+ print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
457
+
458
+ # params
459
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
460
+ # out-of-core computing solution
461
+ offset = 0
462
+ total_numel = 0
463
+ total_params = 0
464
+ flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]]))
465
+ for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'):
466
+ unpartitioned_numel = shape.numel()
467
+ total_numel += unpartitioned_numel
468
+ total_params += 1
469
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
470
+
471
+ if debug:
472
+ print(
473
+ f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
474
+ )
475
+
476
+ # memory efficient tensor
477
+ tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape)
478
+ state_dict[name] = tensor
479
+ offset += partitioned_numel
480
+
481
+ offset *= world_size
482
+
483
+ # Sanity check
484
+ if offset != avail_numel:
485
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
486
+
487
+ print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
488
+
489
+
490
+ def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
491
+ exclude_frozen_parameters):
492
+ state_dict = OrderedDict()
493
+
494
+ # buffers
495
+ buffers = zero_model_states[0].buffers
496
+ state_dict.update(buffers)
497
+ if debug:
498
+ print(f"added {len(buffers)} buffers")
499
+
500
+ if not exclude_frozen_parameters:
501
+ _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
502
+
503
+ _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
504
+
505
+ # recover shared parameters
506
+ for pair in zero_model_states[0].shared_params:
507
+ if pair[1] in state_dict:
508
+ state_dict[pair[0]] = state_dict[pair[1]]
509
+
510
+ return state_dict
511
+
512
+
513
+ def to_torch_tensor(state_dict, return_empty_tensor=False):
514
+ """
515
+ Convert state_dict of GatheredTensor to torch tensor
516
+ """
517
+ torch_state_dict = {}
518
+ converted_tensors = {}
519
+ for name, tensor in state_dict.items():
520
+ tensor_id = id(tensor)
521
+ if tensor_id in converted_tensors: # shared tensors
522
+ shared_tensor = torch_state_dict[converted_tensors[tensor_id]]
523
+ torch_state_dict[name] = shared_tensor
524
+ else:
525
+ converted_tensors[tensor_id] = name
526
+ if return_empty_tensor:
527
+ torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype)
528
+ else:
529
+ torch_state_dict[name] = tensor.contiguous()
530
+ return torch_state_dict
531
+
532
+
533
+ def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
534
+ tag=None,
535
+ exclude_frozen_parameters=False,
536
+ lazy_mode=False):
537
+ """
538
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
539
+ ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
540
+ via a model hub.
541
+
542
+ Args:
543
+ - ``checkpoint_dir``: path to the desired checkpoint folder
544
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14``
545
+ - ``exclude_frozen_parameters``: exclude frozen parameters
546
+ - ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient.
547
+ Convert the pesduo tensor to torch tensor by ``.contiguous()``
548
+
549
+ Returns:
550
+ - pytorch ``state_dict``
551
+
552
+ A typical usage might be ::
553
+
554
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
555
+ # do the training and checkpoint saving
556
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
557
+ model = model.cpu() # move to cpu
558
+ model.load_state_dict(state_dict)
559
+ # submit to model hub or save the model to share with others
560
+
561
+ In this example the ``model`` will no longer be usable in the deepspeed context of the same
562
+ application. i.e. you will need to re-initialize the deepspeed engine, since
563
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
564
+
565
+ If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
566
+
567
+ Note: the above usage may not work if your application doesn't have sufficient free CPU memory.
568
+ You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
569
+ the checkpoint. Or you can load state_dict in lazy mode ::
570
+
571
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
572
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu
573
+ for name, lazy_tensor in state_dict.item():
574
+ tensor = lazy_tensor.contiguous() # to cpu
575
+ print(name, tensor)
576
+ # del tensor to release memory if it no longer in use
577
+ """
578
+ if tag is None:
579
+ latest_path = os.path.join(checkpoint_dir, 'latest')
580
+ if os.path.isfile(latest_path):
581
+ with open(latest_path, 'r') as fd:
582
+ tag = fd.read().strip()
583
+ else:
584
+ raise ValueError(f"Unable to find 'latest' file at {latest_path}")
585
+
586
+ ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
587
+
588
+ if not os.path.isdir(ds_checkpoint_dir):
589
+ raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
590
+
591
+ state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
592
+ if lazy_mode:
593
+ return state_dict
594
+ else:
595
+ return to_torch_tensor(state_dict)
596
+
597
+
598
+ def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
599
+ output_dir,
600
+ max_shard_size="5GB",
601
+ safe_serialization=False,
602
+ tag=None,
603
+ exclude_frozen_parameters=False):
604
+ """
605
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
606
+ loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
607
+
608
+ Args:
609
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
610
+ - ``output_dir``: directory to the pytorch fp32 state_dict output files
611
+ - ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
612
+ - ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
613
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
614
+ - ``exclude_frozen_parameters``: exclude frozen parameters
615
+ """
616
+
617
+ # Dependency pre-check
618
+ if safe_serialization:
619
+ try:
620
+ from safetensors.torch import save_file
621
+ except ImportError:
622
+ print('If you want to use `safe_serialization`, please `pip install safetensors`')
623
+ raise
624
+ if max_shard_size is not None:
625
+ try:
626
+ from huggingface_hub import split_torch_state_dict_into_shards
627
+ except ImportError:
628
+ print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
629
+ raise
630
+
631
+ # Convert zero checkpoint to state_dict
632
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
633
+ tag,
634
+ exclude_frozen_parameters,
635
+ lazy_mode=True)
636
+
637
+ # Shard the model if it is too big.
638
+ weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
639
+ if max_shard_size is not None:
640
+ filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
641
+ # an memory-efficient approach for sharding
642
+ empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True)
643
+ state_dict_split = split_torch_state_dict_into_shards(empty_state_dict,
644
+ filename_pattern=filename_pattern,
645
+ max_shard_size=max_shard_size)
646
+ else:
647
+ from collections import namedtuple
648
+ StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
649
+ state_dict_split = StateDictSplit(is_sharded=False,
650
+ filename_to_tensors={weights_name: list(state_dict.keys())})
651
+
652
+ # Save the model by shard
653
+ os.makedirs(output_dir, exist_ok=True)
654
+ filename_to_tensors = state_dict_split.filename_to_tensors.items()
655
+ for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
656
+ shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors}
657
+ shard_state_dict = to_torch_tensor(shard_state_dict)
658
+ output_path = os.path.join(output_dir, shard_file)
659
+ if safe_serialization:
660
+ save_file(shard_state_dict, output_path, metadata={"format": "pt"})
661
+ else:
662
+ torch.save(shard_state_dict, output_path)
663
+ # release the memory of current shard
664
+ for tensor_name in list(shard_state_dict.keys()):
665
+ del state_dict[tensor_name]
666
+ del shard_state_dict[tensor_name]
667
+ del shard_state_dict
668
+ gc.collect()
669
+
670
+ # Save index if sharded
671
+ if state_dict_split.is_sharded:
672
+ index = {
673
+ "metadata": state_dict_split.metadata,
674
+ "weight_map": state_dict_split.tensor_to_filename,
675
+ }
676
+ save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
677
+ save_index_file = os.path.join(output_dir, save_index_file)
678
+ with open(save_index_file, "w", encoding="utf-8") as f:
679
+ content = json.dumps(index, indent=2, sort_keys=True) + "\n"
680
+ f.write(content)
681
+
682
+
683
+ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
684
+ """
685
+ 1. Put the provided model to cpu
686
+ 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
687
+ 3. Load it into the provided model
688
+
689
+ Args:
690
+ - ``model``: the model object to update
691
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
692
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
693
+
694
+ Returns:
695
+ - ``model`: modified model
696
+
697
+ Make sure you have plenty of CPU memory available before you call this function. If you don't
698
+ have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
699
+ conveniently placed for you in the checkpoint folder.
700
+
701
+ A typical usage might be ::
702
+
703
+ from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
704
+ model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
705
+ # submit to model hub or save the model to share with others
706
+
707
+ Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
708
+ of the same application. i.e. you will need to re-initialize the deepspeed engine, since
709
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
710
+
711
+ """
712
+ logger.info("Extracting fp32 weights")
713
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
714
+
715
+ logger.info("Overwriting model with fp32 weights")
716
+ model = model.cpu()
717
+ model.load_state_dict(state_dict, strict=False)
718
+
719
+ return model
720
+
721
+
722
+ if __name__ == "__main__":
723
+ parser = argparse.ArgumentParser()
724
+ parser.add_argument("checkpoint_dir",
725
+ type=str,
726
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
727
+ parser.add_argument("output_dir",
728
+ type=str,
729
+ help="directory to the pytorch fp32 state_dict output files"
730
+ "(e.g. path/checkpoint-12-output/)")
731
+ parser.add_argument(
732
+ "--max_shard_size",
733
+ type=str,
734
+ default="5GB",
735
+ help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
736
+ "lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
737
+ "We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
738
+ "without CPU OOM issues.")
739
+ parser.add_argument(
740
+ "--safe_serialization",
741
+ default=False,
742
+ action='store_true',
743
+ help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
744
+ parser.add_argument("-t",
745
+ "--tag",
746
+ type=str,
747
+ default=None,
748
+ help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
749
+ parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
750
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
751
+ args = parser.parse_args()
752
+
753
+ debug = args.debug
754
+
755
+ convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
756
+ args.output_dir,
757
+ max_shard_size=args.max_shard_size,
758
+ safe_serialization=args.safe_serialization,
759
+ tag=args.tag,
760
+ exclude_frozen_parameters=args.exclude_frozen_parameters)