gg676 commited on
Commit
a021a36
·
verified ·
1 Parent(s): e096f19

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +6 -0
  2. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/adapter_config.json +46 -0
  3. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/adapter_model.safetensors +3 -0
  4. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/added_tokens.json +24 -0
  5. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/chat_template.jinja +54 -0
  6. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/global_step1000/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
  7. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/global_step1000/mp_rank_00_model_states.pt +3 -0
  8. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/latest +1 -0
  9. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/merges.txt +0 -0
  10. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/special_tokens_map.json +31 -0
  11. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/tokenizer.json +3 -0
  12. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/tokenizer_config.json +207 -0
  13. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/trainer_state.json +234 -0
  14. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/vocab.json +0 -0
  15. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/zero_to_fp32.py +760 -0
  16. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/adapter_model.safetensors +3 -0
  17. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/global_step10000/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  18. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/global_step10000/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
  19. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/global_step10000/mp_rank_00_model_states.pt +3 -0
  20. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/rng_state_0.pth +3 -0
  21. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/rng_state_1.pth +3 -0
  22. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/scheduler.pt +3 -0
  23. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/special_tokens_map.json +31 -0
  24. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/tokenizer.json +3 -0
  25. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/trainer_state.json +2034 -0
  26. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/training_args.bin +3 -0
  27. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/adapter_model.safetensors +3 -0
  28. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/global_step2000/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  29. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/global_step2000/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
  30. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/rng_state_0.pth +3 -0
  31. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/rng_state_1.pth +3 -0
  32. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/scheduler.pt +3 -0
  33. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/tokenizer.json +3 -0
  34. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/training_args.bin +3 -0
  35. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/adapter_model.safetensors +3 -0
  36. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/global_step3000/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  37. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/global_step3000/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
  38. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/global_step3000/mp_rank_00_model_states.pt +3 -0
  39. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/rng_state_0.pth +3 -0
  40. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/rng_state_1.pth +3 -0
  41. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/scheduler.pt +3 -0
  42. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/tokenizer.json +3 -0
  43. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/training_args.bin +3 -0
  44. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/adapter_config.json +46 -0
  45. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/chat_template.jinja +54 -0
  46. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/global_step4000/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
  47. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/global_step4000/mp_rank_00_model_states.pt +3 -0
  48. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/latest +1 -0
  49. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/tokenizer_config.json +207 -0
  50. qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/trainer_state.json +834 -0
.gitattributes CHANGED
@@ -129,3 +129,9 @@ D1E/qwen2.5-coder-3B_r16_lr3e-4/checkpoint-1500/tokenizer.json filter=lfs diff=l
129
  D1E/qwen2.5-coder-3B_r16_lr3e-4/merged_model_temp/tokenizer.json filter=lfs diff=lfs merge=lfs -text
130
  D1E/qwen2.5-coder-3B_r16_lr3e-4/checkpoint-2500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
131
  D1E/qwen2.5-coder-3B_r16_lr3e-4/checkpoint-1000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
129
  D1E/qwen2.5-coder-3B_r16_lr3e-4/merged_model_temp/tokenizer.json filter=lfs diff=lfs merge=lfs -text
130
  D1E/qwen2.5-coder-3B_r16_lr3e-4/checkpoint-2500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
131
  D1E/qwen2.5-coder-3B_r16_lr3e-4/checkpoint-1000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
132
+ qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
133
+ qwen2.5-coder-3B_r64_lr2e-4/checkpoint-9500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
134
+ qwen2.5-coder-3B_r64_lr4e-4/checkpoint-9000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
135
+ qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
136
+ qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
137
+ qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/tokenizer.json filter=lfs diff=lfs merge=lfs -text
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/adapter_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen2.5-Coder-3B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 128,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.0",
27
+ "qalora_group_size": 16,
28
+ "r": 64,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "v_proj",
33
+ "q_proj",
34
+ "gate_proj",
35
+ "down_proj",
36
+ "k_proj",
37
+ "o_proj",
38
+ "up_proj"
39
+ ],
40
+ "target_parameters": null,
41
+ "task_type": "CAUSAL_LM",
42
+ "trainable_token_indices": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false
46
+ }
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fba45f3e156d9200d2c6f67199820a503d11cfc6f0c59b24d992edaa98de156a
3
+ size 239536776
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/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
+ }
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/chat_template.jinja ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}
19
+ {%- endif %}
20
+ {%- endif %}
21
+ {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + message.role }}
26
+ {%- if message.content %}
27
+ {{- '\n' + message.content }}
28
+ {%- endif %}
29
+ {%- for tool_call in message.tool_calls %}
30
+ {%- if tool_call.function is defined %}
31
+ {%- set tool_call = tool_call.function %}
32
+ {%- endif %}
33
+ {{- '\n<tool_call>\n{"name": "' }}
34
+ {{- tool_call.name }}
35
+ {{- '", "arguments": ' }}
36
+ {{- tool_call.arguments | tojson }}
37
+ {{- '}\n</tool_call>' }}
38
+ {%- endfor %}
39
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/global_step1000/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:bf3cb65e80ff08acb269ddf580025992bb453752574317b96f68b7599a014229
3
+ size 718437381
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/global_step1000/mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcd73c50184e630b33699fd1fd04008cf7a74c450373a2812f428ab47e0b480f
3
+ size 862187045
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step1000
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/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
+ }
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
3
+ size 11421896
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/tokenizer_config.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "clean_up_tokenization_spaces": false,
199
+ "eos_token": "<|endoftext|>",
200
+ "errors": "replace",
201
+ "extra_special_tokens": {},
202
+ "model_max_length": 32768,
203
+ "pad_token": "<|endoftext|>",
204
+ "split_special_tokens": false,
205
+ "tokenizer_class": "Qwen2Tokenizer",
206
+ "unk_token": null
207
+ }
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/trainer_state.json ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 0.2,
6
+ "eval_steps": 500,
7
+ "global_step": 1000,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 0.13992431640625,
14
+ "epoch": 0.01,
15
+ "grad_norm": 0.07415792346000671,
16
+ "learning_rate": 3.266666666666667e-05,
17
+ "loss": 0.1267,
18
+ "mean_token_accuracy": 0.9717467153072357,
19
+ "num_tokens": 973322.0,
20
+ "step": 50
21
+ },
22
+ {
23
+ "entropy": 0.034481201171875,
24
+ "epoch": 0.02,
25
+ "grad_norm": 0.04046332463622093,
26
+ "learning_rate": 6.6e-05,
27
+ "loss": 0.0304,
28
+ "mean_token_accuracy": 0.9923338234424591,
29
+ "num_tokens": 1965908.0,
30
+ "step": 100
31
+ },
32
+ {
33
+ "entropy": 0.026558837890625,
34
+ "epoch": 0.03,
35
+ "grad_norm": 0.05207290127873421,
36
+ "learning_rate": 9.933333333333334e-05,
37
+ "loss": 0.0222,
38
+ "mean_token_accuracy": 0.9942584156990051,
39
+ "num_tokens": 2931943.0,
40
+ "step": 150
41
+ },
42
+ {
43
+ "entropy": 0.0237799072265625,
44
+ "epoch": 0.04,
45
+ "grad_norm": 0.05697847530245781,
46
+ "learning_rate": 0.00013266666666666667,
47
+ "loss": 0.0205,
48
+ "mean_token_accuracy": 0.9945518994331359,
49
+ "num_tokens": 3906979.0,
50
+ "step": 200
51
+ },
52
+ {
53
+ "entropy": 0.021153564453125,
54
+ "epoch": 0.05,
55
+ "grad_norm": 0.018519293516874313,
56
+ "learning_rate": 0.000166,
57
+ "loss": 0.0181,
58
+ "mean_token_accuracy": 0.9951600968837738,
59
+ "num_tokens": 4891791.0,
60
+ "step": 250
61
+ },
62
+ {
63
+ "entropy": 0.0194329833984375,
64
+ "epoch": 0.06,
65
+ "grad_norm": 0.04633281007409096,
66
+ "learning_rate": 0.00019933333333333334,
67
+ "loss": 0.0173,
68
+ "mean_token_accuracy": 0.9954203897714615,
69
+ "num_tokens": 5923811.0,
70
+ "step": 300
71
+ },
72
+ {
73
+ "entropy": 0.0206915283203125,
74
+ "epoch": 0.07,
75
+ "grad_norm": 0.028644593432545662,
76
+ "learning_rate": 0.00019998740757634997,
77
+ "loss": 0.0178,
78
+ "mean_token_accuracy": 0.9951675140857696,
79
+ "num_tokens": 6923169.0,
80
+ "step": 350
81
+ },
82
+ {
83
+ "entropy": 0.0210107421875,
84
+ "epoch": 0.08,
85
+ "grad_norm": 0.03093401901423931,
86
+ "learning_rate": 0.00019994860043273915,
87
+ "loss": 0.0169,
88
+ "mean_token_accuracy": 0.9953666085004806,
89
+ "num_tokens": 7901360.0,
90
+ "step": 400
91
+ },
92
+ {
93
+ "entropy": 0.0185345458984375,
94
+ "epoch": 0.09,
95
+ "grad_norm": 0.0355745367705822,
96
+ "learning_rate": 0.00019988358350090047,
97
+ "loss": 0.0159,
98
+ "mean_token_accuracy": 0.9957600867748261,
99
+ "num_tokens": 8899074.0,
100
+ "step": 450
101
+ },
102
+ {
103
+ "entropy": 0.0172314453125,
104
+ "epoch": 0.1,
105
+ "grad_norm": 0.01078465860337019,
106
+ "learning_rate": 0.00019979237383039745,
107
+ "loss": 0.0149,
108
+ "mean_token_accuracy": 0.9960266047716141,
109
+ "num_tokens": 9909340.0,
110
+ "step": 500
111
+ },
112
+ {
113
+ "entropy": 0.018392333984375,
114
+ "epoch": 0.11,
115
+ "grad_norm": 0.02546997182071209,
116
+ "learning_rate": 0.00019967499533938543,
117
+ "loss": 0.0154,
118
+ "mean_token_accuracy": 0.9959233921766281,
119
+ "num_tokens": 10894801.0,
120
+ "step": 550
121
+ },
122
+ {
123
+ "entropy": 0.020382080078125,
124
+ "epoch": 0.12,
125
+ "grad_norm": 0.014133265241980553,
126
+ "learning_rate": 0.00019953147880833933,
127
+ "loss": 0.0155,
128
+ "mean_token_accuracy": 0.9958612543344497,
129
+ "num_tokens": 11862148.0,
130
+ "step": 600
131
+ },
132
+ {
133
+ "entropy": 0.0170843505859375,
134
+ "epoch": 0.13,
135
+ "grad_norm": 0.013547766953706741,
136
+ "learning_rate": 0.00019936186187198213,
137
+ "loss": 0.0149,
138
+ "mean_token_accuracy": 0.9959749585390091,
139
+ "num_tokens": 12851463.0,
140
+ "step": 650
141
+ },
142
+ {
143
+ "entropy": 0.018056640625,
144
+ "epoch": 0.14,
145
+ "grad_norm": 0.013980485498905182,
146
+ "learning_rate": 0.00019916618900941567,
147
+ "loss": 0.0146,
148
+ "mean_token_accuracy": 0.9961372888088227,
149
+ "num_tokens": 13849228.0,
150
+ "step": 700
151
+ },
152
+ {
153
+ "entropy": 0.01843017578125,
154
+ "epoch": 0.15,
155
+ "grad_norm": 0.019236328080296516,
156
+ "learning_rate": 0.00019894451153245693,
157
+ "loss": 0.0155,
158
+ "mean_token_accuracy": 0.995870366692543,
159
+ "num_tokens": 14812166.0,
160
+ "step": 750
161
+ },
162
+ {
163
+ "entropy": 0.01776611328125,
164
+ "epoch": 0.16,
165
+ "grad_norm": 0.01584303192794323,
166
+ "learning_rate": 0.00019869688757218233,
167
+ "loss": 0.0148,
168
+ "mean_token_accuracy": 0.9960641515254974,
169
+ "num_tokens": 15789120.0,
170
+ "step": 800
171
+ },
172
+ {
173
+ "entropy": 0.018167724609375,
174
+ "epoch": 0.17,
175
+ "grad_norm": 0.007502980995923281,
176
+ "learning_rate": 0.00019842338206368373,
177
+ "loss": 0.0145,
178
+ "mean_token_accuracy": 0.9961654812097549,
179
+ "num_tokens": 16764645.0,
180
+ "step": 850
181
+ },
182
+ {
183
+ "entropy": 0.0162567138671875,
184
+ "epoch": 0.18,
185
+ "grad_norm": 0.025812745094299316,
186
+ "learning_rate": 0.00019812406672904058,
187
+ "loss": 0.0144,
188
+ "mean_token_accuracy": 0.9961814099550247,
189
+ "num_tokens": 17730003.0,
190
+ "step": 900
191
+ },
192
+ {
193
+ "entropy": 0.0166925048828125,
194
+ "epoch": 0.19,
195
+ "grad_norm": 0.01129944622516632,
196
+ "learning_rate": 0.00019779902005851187,
197
+ "loss": 0.0141,
198
+ "mean_token_accuracy": 0.9962814956903457,
199
+ "num_tokens": 18723861.0,
200
+ "step": 950
201
+ },
202
+ {
203
+ "entropy": 0.016802978515625,
204
+ "epoch": 0.2,
205
+ "grad_norm": 0.010111505165696144,
206
+ "learning_rate": 0.0001974483272899535,
207
+ "loss": 0.0146,
208
+ "mean_token_accuracy": 0.9961066269874572,
209
+ "num_tokens": 19695091.0,
210
+ "step": 1000
211
+ }
212
+ ],
213
+ "logging_steps": 50,
214
+ "max_steps": 10000,
215
+ "num_input_tokens_seen": 0,
216
+ "num_train_epochs": 2,
217
+ "save_steps": 500,
218
+ "stateful_callbacks": {
219
+ "TrainerControl": {
220
+ "args": {
221
+ "should_epoch_stop": false,
222
+ "should_evaluate": false,
223
+ "should_log": false,
224
+ "should_save": true,
225
+ "should_training_stop": false
226
+ },
227
+ "attributes": {}
228
+ }
229
+ },
230
+ "total_flos": 3.4204559696356966e+17,
231
+ "train_batch_size": 1,
232
+ "trial_name": null,
233
+ "trial_params": null
234
+ }
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-1000/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)
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6c2ffc1c33e9c2ba3309d3138170914e9ba8701a410501a0d0b713da50bf1b7a
3
+ size 239536776
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/global_step10000/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:b2c880cef39ec2f22f78010ab6fc58d05394c90c9963a0c150274cc23a061b9e
3
+ size 718437253
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/global_step10000/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:b2abf7f561cffcf4fe5fc547a0f2485cd60d1c78fb8bc3b65dfb93902c2c68a6
3
+ size 718437381
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/global_step10000/mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8264176573eae300cb33fb547c1acf34a0d0339c65447669011133754c0b0eb2
3
+ size 862187045
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0afa1b34164ac99cc3a595327918553863a5b2c76b9e531e12705f3b27002b5b
3
+ size 14917
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e43467aee7a03a65a1884dd6d92b40b0eb6d8f0cdc44c3f89bbf724bd753542
3
+ size 14917
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c1b18c9d1038df280130dc39b793c78899eef4ab771c201e345b629939d8498b
3
+ size 1465
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/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
+ }
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
3
+ size 11421896
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/trainer_state.json ADDED
@@ -0,0 +1,2034 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.0,
6
+ "eval_steps": 500,
7
+ "global_step": 10000,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 0.13992431640625,
14
+ "epoch": 0.01,
15
+ "grad_norm": 0.07415792346000671,
16
+ "learning_rate": 3.266666666666667e-05,
17
+ "loss": 0.1267,
18
+ "mean_token_accuracy": 0.9717467153072357,
19
+ "num_tokens": 973322.0,
20
+ "step": 50
21
+ },
22
+ {
23
+ "entropy": 0.034481201171875,
24
+ "epoch": 0.02,
25
+ "grad_norm": 0.04046332463622093,
26
+ "learning_rate": 6.6e-05,
27
+ "loss": 0.0304,
28
+ "mean_token_accuracy": 0.9923338234424591,
29
+ "num_tokens": 1965908.0,
30
+ "step": 100
31
+ },
32
+ {
33
+ "entropy": 0.026558837890625,
34
+ "epoch": 0.03,
35
+ "grad_norm": 0.05207290127873421,
36
+ "learning_rate": 9.933333333333334e-05,
37
+ "loss": 0.0222,
38
+ "mean_token_accuracy": 0.9942584156990051,
39
+ "num_tokens": 2931943.0,
40
+ "step": 150
41
+ },
42
+ {
43
+ "entropy": 0.0237799072265625,
44
+ "epoch": 0.04,
45
+ "grad_norm": 0.05697847530245781,
46
+ "learning_rate": 0.00013266666666666667,
47
+ "loss": 0.0205,
48
+ "mean_token_accuracy": 0.9945518994331359,
49
+ "num_tokens": 3906979.0,
50
+ "step": 200
51
+ },
52
+ {
53
+ "entropy": 0.021153564453125,
54
+ "epoch": 0.05,
55
+ "grad_norm": 0.018519293516874313,
56
+ "learning_rate": 0.000166,
57
+ "loss": 0.0181,
58
+ "mean_token_accuracy": 0.9951600968837738,
59
+ "num_tokens": 4891791.0,
60
+ "step": 250
61
+ },
62
+ {
63
+ "entropy": 0.0194329833984375,
64
+ "epoch": 0.06,
65
+ "grad_norm": 0.04633281007409096,
66
+ "learning_rate": 0.00019933333333333334,
67
+ "loss": 0.0173,
68
+ "mean_token_accuracy": 0.9954203897714615,
69
+ "num_tokens": 5923811.0,
70
+ "step": 300
71
+ },
72
+ {
73
+ "entropy": 0.0206915283203125,
74
+ "epoch": 0.07,
75
+ "grad_norm": 0.028644593432545662,
76
+ "learning_rate": 0.00019998740757634997,
77
+ "loss": 0.0178,
78
+ "mean_token_accuracy": 0.9951675140857696,
79
+ "num_tokens": 6923169.0,
80
+ "step": 350
81
+ },
82
+ {
83
+ "entropy": 0.0210107421875,
84
+ "epoch": 0.08,
85
+ "grad_norm": 0.03093401901423931,
86
+ "learning_rate": 0.00019994860043273915,
87
+ "loss": 0.0169,
88
+ "mean_token_accuracy": 0.9953666085004806,
89
+ "num_tokens": 7901360.0,
90
+ "step": 400
91
+ },
92
+ {
93
+ "entropy": 0.0185345458984375,
94
+ "epoch": 0.09,
95
+ "grad_norm": 0.0355745367705822,
96
+ "learning_rate": 0.00019988358350090047,
97
+ "loss": 0.0159,
98
+ "mean_token_accuracy": 0.9957600867748261,
99
+ "num_tokens": 8899074.0,
100
+ "step": 450
101
+ },
102
+ {
103
+ "entropy": 0.0172314453125,
104
+ "epoch": 0.1,
105
+ "grad_norm": 0.01078465860337019,
106
+ "learning_rate": 0.00019979237383039745,
107
+ "loss": 0.0149,
108
+ "mean_token_accuracy": 0.9960266047716141,
109
+ "num_tokens": 9909340.0,
110
+ "step": 500
111
+ },
112
+ {
113
+ "entropy": 0.018392333984375,
114
+ "epoch": 0.11,
115
+ "grad_norm": 0.02546997182071209,
116
+ "learning_rate": 0.00019967499533938543,
117
+ "loss": 0.0154,
118
+ "mean_token_accuracy": 0.9959233921766281,
119
+ "num_tokens": 10894801.0,
120
+ "step": 550
121
+ },
122
+ {
123
+ "entropy": 0.020382080078125,
124
+ "epoch": 0.12,
125
+ "grad_norm": 0.014133265241980553,
126
+ "learning_rate": 0.00019953147880833933,
127
+ "loss": 0.0155,
128
+ "mean_token_accuracy": 0.9958612543344497,
129
+ "num_tokens": 11862148.0,
130
+ "step": 600
131
+ },
132
+ {
133
+ "entropy": 0.0170843505859375,
134
+ "epoch": 0.13,
135
+ "grad_norm": 0.013547766953706741,
136
+ "learning_rate": 0.00019936186187198213,
137
+ "loss": 0.0149,
138
+ "mean_token_accuracy": 0.9959749585390091,
139
+ "num_tokens": 12851463.0,
140
+ "step": 650
141
+ },
142
+ {
143
+ "entropy": 0.018056640625,
144
+ "epoch": 0.14,
145
+ "grad_norm": 0.013980485498905182,
146
+ "learning_rate": 0.00019916618900941567,
147
+ "loss": 0.0146,
148
+ "mean_token_accuracy": 0.9961372888088227,
149
+ "num_tokens": 13849228.0,
150
+ "step": 700
151
+ },
152
+ {
153
+ "entropy": 0.01843017578125,
154
+ "epoch": 0.15,
155
+ "grad_norm": 0.019236328080296516,
156
+ "learning_rate": 0.00019894451153245693,
157
+ "loss": 0.0155,
158
+ "mean_token_accuracy": 0.995870366692543,
159
+ "num_tokens": 14812166.0,
160
+ "step": 750
161
+ },
162
+ {
163
+ "entropy": 0.01776611328125,
164
+ "epoch": 0.16,
165
+ "grad_norm": 0.01584303192794323,
166
+ "learning_rate": 0.00019869688757218233,
167
+ "loss": 0.0148,
168
+ "mean_token_accuracy": 0.9960641515254974,
169
+ "num_tokens": 15789120.0,
170
+ "step": 800
171
+ },
172
+ {
173
+ "entropy": 0.018167724609375,
174
+ "epoch": 0.17,
175
+ "grad_norm": 0.007502980995923281,
176
+ "learning_rate": 0.00019842338206368373,
177
+ "loss": 0.0145,
178
+ "mean_token_accuracy": 0.9961654812097549,
179
+ "num_tokens": 16764645.0,
180
+ "step": 850
181
+ },
182
+ {
183
+ "entropy": 0.0162567138671875,
184
+ "epoch": 0.18,
185
+ "grad_norm": 0.025812745094299316,
186
+ "learning_rate": 0.00019812406672904058,
187
+ "loss": 0.0144,
188
+ "mean_token_accuracy": 0.9961814099550247,
189
+ "num_tokens": 17730003.0,
190
+ "step": 900
191
+ },
192
+ {
193
+ "entropy": 0.0166925048828125,
194
+ "epoch": 0.19,
195
+ "grad_norm": 0.01129944622516632,
196
+ "learning_rate": 0.00019779902005851187,
197
+ "loss": 0.0141,
198
+ "mean_token_accuracy": 0.9962814956903457,
199
+ "num_tokens": 18723861.0,
200
+ "step": 950
201
+ },
202
+ {
203
+ "entropy": 0.016802978515625,
204
+ "epoch": 0.2,
205
+ "grad_norm": 0.010111505165696144,
206
+ "learning_rate": 0.0001974483272899535,
207
+ "loss": 0.0146,
208
+ "mean_token_accuracy": 0.9961066269874572,
209
+ "num_tokens": 19695091.0,
210
+ "step": 1000
211
+ },
212
+ {
213
+ "entropy": 0.0173785400390625,
214
+ "epoch": 0.21,
215
+ "grad_norm": 0.014308207668364048,
216
+ "learning_rate": 0.00019707208038646602,
217
+ "loss": 0.0143,
218
+ "mean_token_accuracy": 0.9962161642313003,
219
+ "num_tokens": 20662255.0,
220
+ "step": 1050
221
+ },
222
+ {
223
+ "entropy": 0.016761474609375,
224
+ "epoch": 0.22,
225
+ "grad_norm": 0.008552557788789272,
226
+ "learning_rate": 0.0001966703780122791,
227
+ "loss": 0.0139,
228
+ "mean_token_accuracy": 0.9962283843755722,
229
+ "num_tokens": 21642092.0,
230
+ "step": 1100
231
+ },
232
+ {
233
+ "entropy": 0.0194580078125,
234
+ "epoch": 0.23,
235
+ "grad_norm": 0.017318639904260635,
236
+ "learning_rate": 0.00019624332550687834,
237
+ "loss": 0.0147,
238
+ "mean_token_accuracy": 0.996121798157692,
239
+ "num_tokens": 22607505.0,
240
+ "step": 1150
241
+ },
242
+ {
243
+ "entropy": 0.0168377685546875,
244
+ "epoch": 0.24,
245
+ "grad_norm": 0.023380566388368607,
246
+ "learning_rate": 0.0001957910348573819,
247
+ "loss": 0.0141,
248
+ "mean_token_accuracy": 0.9962751477956772,
249
+ "num_tokens": 23584579.0,
250
+ "step": 1200
251
+ },
252
+ {
253
+ "entropy": 0.0168145751953125,
254
+ "epoch": 0.25,
255
+ "grad_norm": 0.03495066240429878,
256
+ "learning_rate": 0.00019531362466917386,
257
+ "loss": 0.0143,
258
+ "mean_token_accuracy": 0.9962228804826736,
259
+ "num_tokens": 24580285.0,
260
+ "step": 1250
261
+ },
262
+ {
263
+ "entropy": 0.0200946044921875,
264
+ "epoch": 0.26,
265
+ "grad_norm": 0.056234363466501236,
266
+ "learning_rate": 0.00019481122013480196,
267
+ "loss": 0.0149,
268
+ "mean_token_accuracy": 0.9959270429611206,
269
+ "num_tokens": 25525513.0,
270
+ "step": 1300
271
+ },
272
+ {
273
+ "entropy": 0.226702880859375,
274
+ "epoch": 0.27,
275
+ "grad_norm": 0.5915283560752869,
276
+ "learning_rate": 0.000194283953001148,
277
+ "loss": 0.3575,
278
+ "mean_token_accuracy": 0.9630927595775575,
279
+ "num_tokens": 26523426.0,
280
+ "step": 1350
281
+ },
282
+ {
283
+ "entropy": 0.3616259765625,
284
+ "epoch": 0.28,
285
+ "grad_norm": 0.05585862696170807,
286
+ "learning_rate": 0.00019373196153487962,
287
+ "loss": 0.4834,
288
+ "mean_token_accuracy": 0.922457065274939,
289
+ "num_tokens": 27493091.0,
290
+ "step": 1400
291
+ },
292
+ {
293
+ "entropy": 0.032896728515625,
294
+ "epoch": 0.29,
295
+ "grad_norm": 0.015423770062625408,
296
+ "learning_rate": 0.0001931553904861921,
297
+ "loss": 0.0361,
298
+ "mean_token_accuracy": 0.9919799596071244,
299
+ "num_tokens": 28458553.0,
300
+ "step": 1450
301
+ },
302
+ {
303
+ "entropy": 0.017860107421875,
304
+ "epoch": 0.3,
305
+ "grad_norm": 0.008802004158496857,
306
+ "learning_rate": 0.0001925543910508503,
307
+ "loss": 0.0147,
308
+ "mean_token_accuracy": 0.9960576659440994,
309
+ "num_tokens": 29430497.0,
310
+ "step": 1500
311
+ },
312
+ {
313
+ "entropy": 0.016207275390625,
314
+ "epoch": 0.31,
315
+ "grad_norm": 0.01611204445362091,
316
+ "learning_rate": 0.00019192912083054002,
317
+ "loss": 0.014,
318
+ "mean_token_accuracy": 0.996290831565857,
319
+ "num_tokens": 30414152.0,
320
+ "step": 1550
321
+ },
322
+ {
323
+ "entropy": 0.016380615234375,
324
+ "epoch": 0.32,
325
+ "grad_norm": 0.026660647243261337,
326
+ "learning_rate": 0.00019127974379153982,
327
+ "loss": 0.0135,
328
+ "mean_token_accuracy": 0.9963940876722336,
329
+ "num_tokens": 31396417.0,
330
+ "step": 1600
331
+ },
332
+ {
333
+ "entropy": 0.0166357421875,
334
+ "epoch": 0.33,
335
+ "grad_norm": 0.007346960715949535,
336
+ "learning_rate": 0.00019060643022172365,
337
+ "loss": 0.0136,
338
+ "mean_token_accuracy": 0.9963644134998322,
339
+ "num_tokens": 32364443.0,
340
+ "step": 1650
341
+ },
342
+ {
343
+ "entropy": 0.0140234375,
344
+ "epoch": 0.34,
345
+ "grad_norm": 0.007081303279846907,
346
+ "learning_rate": 0.00018990935668590581,
347
+ "loss": 0.0129,
348
+ "mean_token_accuracy": 0.9965172445774079,
349
+ "num_tokens": 33374821.0,
350
+ "step": 1700
351
+ },
352
+ {
353
+ "entropy": 0.0175,
354
+ "epoch": 0.35,
355
+ "grad_norm": 0.01651921682059765,
356
+ "learning_rate": 0.00018918870597953996,
357
+ "loss": 0.0135,
358
+ "mean_token_accuracy": 0.9964259153604508,
359
+ "num_tokens": 34338570.0,
360
+ "step": 1750
361
+ },
362
+ {
363
+ "entropy": 0.0165570068359375,
364
+ "epoch": 0.36,
365
+ "grad_norm": 0.06110697612166405,
366
+ "learning_rate": 0.00018844466708078396,
367
+ "loss": 0.021,
368
+ "mean_token_accuracy": 0.995423709154129,
369
+ "num_tokens": 35333253.0,
370
+ "step": 1800
371
+ },
372
+ {
373
+ "entropy": 0.018714599609375,
374
+ "epoch": 0.37,
375
+ "grad_norm": 0.014176812954246998,
376
+ "learning_rate": 0.00018767743510094396,
377
+ "loss": 0.014,
378
+ "mean_token_accuracy": 0.99625692486763,
379
+ "num_tokens": 36316255.0,
380
+ "step": 1850
381
+ },
382
+ {
383
+ "entropy": 0.0153717041015625,
384
+ "epoch": 0.38,
385
+ "grad_norm": 0.03263692930340767,
386
+ "learning_rate": 0.00018688721123330952,
387
+ "loss": 0.0134,
388
+ "mean_token_accuracy": 0.9964441621303558,
389
+ "num_tokens": 37303247.0,
390
+ "step": 1900
391
+ },
392
+ {
393
+ "entropy": 0.0149493408203125,
394
+ "epoch": 0.39,
395
+ "grad_norm": 0.006613259203732014,
396
+ "learning_rate": 0.0001860742027003944,
397
+ "loss": 0.0133,
398
+ "mean_token_accuracy": 0.9965205788612366,
399
+ "num_tokens": 38287463.0,
400
+ "step": 1950
401
+ },
402
+ {
403
+ "entropy": 0.0151849365234375,
404
+ "epoch": 0.4,
405
+ "grad_norm": 0.013149562291800976,
406
+ "learning_rate": 0.00018523862269959583,
407
+ "loss": 0.0132,
408
+ "mean_token_accuracy": 0.9965434390306472,
409
+ "num_tokens": 39273383.0,
410
+ "step": 2000
411
+ },
412
+ {
413
+ "entropy": 0.0161175537109375,
414
+ "epoch": 0.41,
415
+ "grad_norm": 0.014459224417805672,
416
+ "learning_rate": 0.00018438069034728739,
417
+ "loss": 0.013,
418
+ "mean_token_accuracy": 0.9965963387489318,
419
+ "num_tokens": 40251665.0,
420
+ "step": 2050
421
+ },
422
+ {
423
+ "entropy": 0.0144482421875,
424
+ "epoch": 0.42,
425
+ "grad_norm": 0.006077172700315714,
426
+ "learning_rate": 0.0001835006306213594,
427
+ "loss": 0.0128,
428
+ "mean_token_accuracy": 0.9965920424461365,
429
+ "num_tokens": 41243731.0,
430
+ "step": 2100
431
+ },
432
+ {
433
+ "entropy": 0.0148297119140625,
434
+ "epoch": 0.43,
435
+ "grad_norm": 0.0054248967207968235,
436
+ "learning_rate": 0.0001825986743022225,
437
+ "loss": 0.0128,
438
+ "mean_token_accuracy": 0.9965362721681594,
439
+ "num_tokens": 42247346.0,
440
+ "step": 2150
441
+ },
442
+ {
443
+ "entropy": 0.0157464599609375,
444
+ "epoch": 0.44,
445
+ "grad_norm": 0.007285145577043295,
446
+ "learning_rate": 0.0001816750579122893,
447
+ "loss": 0.0132,
448
+ "mean_token_accuracy": 0.9964449483156205,
449
+ "num_tokens": 43220001.0,
450
+ "step": 2200
451
+ },
452
+ {
453
+ "entropy": 0.0147015380859375,
454
+ "epoch": 0.45,
455
+ "grad_norm": 0.01308107003569603,
456
+ "learning_rate": 0.0001807300236539506,
457
+ "loss": 0.0131,
458
+ "mean_token_accuracy": 0.9965626937150955,
459
+ "num_tokens": 44205197.0,
460
+ "step": 2250
461
+ },
462
+ {
463
+ "entropy": 0.0149774169921875,
464
+ "epoch": 0.46,
465
+ "grad_norm": 0.008238991722464561,
466
+ "learning_rate": 0.00017976381934606202,
467
+ "loss": 0.013,
468
+ "mean_token_accuracy": 0.9965445536375046,
469
+ "num_tokens": 45185181.0,
470
+ "step": 2300
471
+ },
472
+ {
473
+ "entropy": 0.0153643798828125,
474
+ "epoch": 0.47,
475
+ "grad_norm": 0.006222889292985201,
476
+ "learning_rate": 0.00017877669835895778,
477
+ "loss": 0.0129,
478
+ "mean_token_accuracy": 0.9965794909000397,
479
+ "num_tokens": 46170545.0,
480
+ "step": 2350
481
+ },
482
+ {
483
+ "entropy": 0.0146527099609375,
484
+ "epoch": 0.48,
485
+ "grad_norm": 0.0058044977486133575,
486
+ "learning_rate": 0.0001777689195480087,
487
+ "loss": 0.0131,
488
+ "mean_token_accuracy": 0.9965272891521454,
489
+ "num_tokens": 47152165.0,
490
+ "step": 2400
491
+ },
492
+ {
493
+ "entropy": 0.0149383544921875,
494
+ "epoch": 0.49,
495
+ "grad_norm": 0.0066731953993439674,
496
+ "learning_rate": 0.00017674074718574185,
497
+ "loss": 0.0131,
498
+ "mean_token_accuracy": 0.9965432262420655,
499
+ "num_tokens": 48122023.0,
500
+ "step": 2450
501
+ },
502
+ {
503
+ "entropy": 0.0154571533203125,
504
+ "epoch": 0.5,
505
+ "grad_norm": 0.00943196564912796,
506
+ "learning_rate": 0.0001756924508925397,
507
+ "loss": 0.013,
508
+ "mean_token_accuracy": 0.9965236240625381,
509
+ "num_tokens": 49094218.0,
510
+ "step": 2500
511
+ },
512
+ {
513
+ "entropy": 0.014625244140625,
514
+ "epoch": 0.51,
515
+ "grad_norm": 0.01604033261537552,
516
+ "learning_rate": 0.00017462430556593685,
517
+ "loss": 0.0128,
518
+ "mean_token_accuracy": 0.9965505039691925,
519
+ "num_tokens": 50090248.0,
520
+ "step": 2550
521
+ },
522
+ {
523
+ "entropy": 0.0170452880859375,
524
+ "epoch": 0.52,
525
+ "grad_norm": 0.006134673021733761,
526
+ "learning_rate": 0.0001735365913085329,
527
+ "loss": 0.0133,
528
+ "mean_token_accuracy": 0.9964285892248154,
529
+ "num_tokens": 51055771.0,
530
+ "step": 2600
531
+ },
532
+ {
533
+ "entropy": 0.0144781494140625,
534
+ "epoch": 0.53,
535
+ "grad_norm": 0.006857218220829964,
536
+ "learning_rate": 0.0001724295933545404,
537
+ "loss": 0.013,
538
+ "mean_token_accuracy": 0.9966075003147126,
539
+ "num_tokens": 52051029.0,
540
+ "step": 2650
541
+ },
542
+ {
543
+ "entropy": 0.0141400146484375,
544
+ "epoch": 0.54,
545
+ "grad_norm": 0.00432049622759223,
546
+ "learning_rate": 0.0001713036019949871,
547
+ "loss": 0.0125,
548
+ "mean_token_accuracy": 0.9966482019424439,
549
+ "num_tokens": 53064519.0,
550
+ "step": 2700
551
+ },
552
+ {
553
+ "entropy": 0.0157073974609375,
554
+ "epoch": 0.55,
555
+ "grad_norm": 0.011981231160461903,
556
+ "learning_rate": 0.0001701589125015922,
557
+ "loss": 0.013,
558
+ "mean_token_accuracy": 0.9965185868740082,
559
+ "num_tokens": 54043844.0,
560
+ "step": 2750
561
+ },
562
+ {
563
+ "entropy": 0.015498046875,
564
+ "epoch": 0.56,
565
+ "grad_norm": 0.004674599040299654,
566
+ "learning_rate": 0.00016899582504933638,
567
+ "loss": 0.0129,
568
+ "mean_token_accuracy": 0.9965594351291657,
569
+ "num_tokens": 55026422.0,
570
+ "step": 2800
571
+ },
572
+ {
573
+ "entropy": 0.01620849609375,
574
+ "epoch": 0.57,
575
+ "grad_norm": 0.007724366616457701,
576
+ "learning_rate": 0.00016781464463774628,
577
+ "loss": 0.0128,
578
+ "mean_token_accuracy": 0.9965313857793808,
579
+ "num_tokens": 56009908.0,
580
+ "step": 2850
581
+ },
582
+ {
583
+ "entropy": 0.0163592529296875,
584
+ "epoch": 0.58,
585
+ "grad_norm": 0.01893342286348343,
586
+ "learning_rate": 0.00016661568101091344,
587
+ "loss": 0.0134,
588
+ "mean_token_accuracy": 0.9964901131391525,
589
+ "num_tokens": 56948904.0,
590
+ "step": 2900
591
+ },
592
+ {
593
+ "entropy": 0.0152777099609375,
594
+ "epoch": 0.59,
595
+ "grad_norm": 0.004910571966320276,
596
+ "learning_rate": 0.00016539924857626948,
597
+ "loss": 0.013,
598
+ "mean_token_accuracy": 0.9965794110298156,
599
+ "num_tokens": 57925745.0,
600
+ "step": 2950
601
+ },
602
+ {
603
+ "entropy": 0.01528564453125,
604
+ "epoch": 0.6,
605
+ "grad_norm": 0.005053428467363119,
606
+ "learning_rate": 0.00016416566632213803,
607
+ "loss": 0.0129,
608
+ "mean_token_accuracy": 0.9966023367643356,
609
+ "num_tokens": 58902798.0,
610
+ "step": 3000
611
+ },
612
+ {
613
+ "entropy": 0.015601806640625,
614
+ "epoch": 0.61,
615
+ "grad_norm": 0.005704319104552269,
616
+ "learning_rate": 0.00016291525773408572,
617
+ "loss": 0.0131,
618
+ "mean_token_accuracy": 0.9965651720762253,
619
+ "num_tokens": 59860890.0,
620
+ "step": 3050
621
+ },
622
+ {
623
+ "entropy": 0.0148992919921875,
624
+ "epoch": 0.62,
625
+ "grad_norm": 0.007756650447845459,
626
+ "learning_rate": 0.00016164835071009366,
627
+ "loss": 0.013,
628
+ "mean_token_accuracy": 0.9965194767713547,
629
+ "num_tokens": 60845473.0,
630
+ "step": 3100
631
+ },
632
+ {
633
+ "entropy": 0.016544189453125,
634
+ "epoch": 0.63,
635
+ "grad_norm": 0.018275247886776924,
636
+ "learning_rate": 0.0001603652774745717,
637
+ "loss": 0.0133,
638
+ "mean_token_accuracy": 0.9964882332086563,
639
+ "num_tokens": 61784192.0,
640
+ "step": 3150
641
+ },
642
+ {
643
+ "entropy": 0.0161798095703125,
644
+ "epoch": 0.64,
645
+ "grad_norm": 0.006753214169293642,
646
+ "learning_rate": 0.00015906637449123864,
647
+ "loss": 0.0129,
648
+ "mean_token_accuracy": 0.9964922845363617,
649
+ "num_tokens": 62766207.0,
650
+ "step": 3200
651
+ },
652
+ {
653
+ "entropy": 0.015382080078125,
654
+ "epoch": 0.65,
655
+ "grad_norm": 0.00608098367229104,
656
+ "learning_rate": 0.00015775198237489018,
657
+ "loss": 0.0127,
658
+ "mean_token_accuracy": 0.9966323018074036,
659
+ "num_tokens": 63762073.0,
660
+ "step": 3250
661
+ },
662
+ {
663
+ "entropy": 0.0181597900390625,
664
+ "epoch": 0.66,
665
+ "grad_norm": 0.01049011666327715,
666
+ "learning_rate": 0.00015642244580207877,
667
+ "loss": 0.0135,
668
+ "mean_token_accuracy": 0.9963980942964554,
669
+ "num_tokens": 64710323.0,
670
+ "step": 3300
671
+ },
672
+ {
673
+ "entropy": 0.015638427734375,
674
+ "epoch": 0.67,
675
+ "grad_norm": 0.004341293126344681,
676
+ "learning_rate": 0.00015507811342072806,
677
+ "loss": 0.0127,
678
+ "mean_token_accuracy": 0.996646745800972,
679
+ "num_tokens": 65703355.0,
680
+ "step": 3350
681
+ },
682
+ {
683
+ "entropy": 0.01593994140625,
684
+ "epoch": 0.68,
685
+ "grad_norm": 0.007901697419583797,
686
+ "learning_rate": 0.00015371933775870617,
687
+ "loss": 0.0128,
688
+ "mean_token_accuracy": 0.9965831112861633,
689
+ "num_tokens": 66693270.0,
690
+ "step": 3400
691
+ },
692
+ {
693
+ "entropy": 0.01538330078125,
694
+ "epoch": 0.69,
695
+ "grad_norm": 0.007365482859313488,
696
+ "learning_rate": 0.00015234647513138105,
697
+ "loss": 0.013,
698
+ "mean_token_accuracy": 0.9965004408359528,
699
+ "num_tokens": 67662491.0,
700
+ "step": 3450
701
+ },
702
+ {
703
+ "entropy": 0.015172119140625,
704
+ "epoch": 0.7,
705
+ "grad_norm": 0.020998502150177956,
706
+ "learning_rate": 0.00015095988554818336,
707
+ "loss": 0.0127,
708
+ "mean_token_accuracy": 0.9966106575727463,
709
+ "num_tokens": 68643197.0,
710
+ "step": 3500
711
+ },
712
+ {
713
+ "entropy": 0.015364990234375,
714
+ "epoch": 0.71,
715
+ "grad_norm": 0.00521464366465807,
716
+ "learning_rate": 0.00014955993261819988,
717
+ "loss": 0.0126,
718
+ "mean_token_accuracy": 0.996662226319313,
719
+ "num_tokens": 69638359.0,
720
+ "step": 3550
721
+ },
722
+ {
723
+ "entropy": 0.015697021484375,
724
+ "epoch": 0.72,
725
+ "grad_norm": 0.005901532247662544,
726
+ "learning_rate": 0.0001481469834548236,
727
+ "loss": 0.0127,
728
+ "mean_token_accuracy": 0.9966626572608948,
729
+ "num_tokens": 70621331.0,
730
+ "step": 3600
731
+ },
732
+ {
733
+ "entropy": 0.0149017333984375,
734
+ "epoch": 0.73,
735
+ "grad_norm": 0.00644026231020689,
736
+ "learning_rate": 0.00014672140857948437,
737
+ "loss": 0.0127,
738
+ "mean_token_accuracy": 0.9965668493509292,
739
+ "num_tokens": 71609172.0,
740
+ "step": 3650
741
+ },
742
+ {
743
+ "entropy": 0.0162841796875,
744
+ "epoch": 0.74,
745
+ "grad_norm": 0.01100741047412157,
746
+ "learning_rate": 0.0001452835818244862,
747
+ "loss": 0.0128,
748
+ "mean_token_accuracy": 0.9965676218271255,
749
+ "num_tokens": 72589978.0,
750
+ "step": 3700
751
+ },
752
+ {
753
+ "entropy": 0.013609619140625,
754
+ "epoch": 0.75,
755
+ "grad_norm": 0.005025969818234444,
756
+ "learning_rate": 0.00014383388023497636,
757
+ "loss": 0.0125,
758
+ "mean_token_accuracy": 0.9966188007593155,
759
+ "num_tokens": 73606622.0,
760
+ "step": 3750
761
+ },
762
+ {
763
+ "entropy": 0.0144757080078125,
764
+ "epoch": 0.76,
765
+ "grad_norm": 0.0038383277133107185,
766
+ "learning_rate": 0.00014237268397007143,
767
+ "loss": 0.0123,
768
+ "mean_token_accuracy": 0.9966813570261002,
769
+ "num_tokens": 74626982.0,
770
+ "step": 3800
771
+ },
772
+ {
773
+ "entropy": 0.01580078125,
774
+ "epoch": 0.77,
775
+ "grad_norm": 0.007798527367413044,
776
+ "learning_rate": 0.0001409003762031675,
777
+ "loss": 0.0125,
778
+ "mean_token_accuracy": 0.9966514509916305,
779
+ "num_tokens": 75622857.0,
780
+ "step": 3850
781
+ },
782
+ {
783
+ "entropy": 0.0155902099609375,
784
+ "epoch": 0.78,
785
+ "grad_norm": 0.005989857483655214,
786
+ "learning_rate": 0.0001394173430214596,
787
+ "loss": 0.0128,
788
+ "mean_token_accuracy": 0.9966724860668182,
789
+ "num_tokens": 76601614.0,
790
+ "step": 3900
791
+ },
792
+ {
793
+ "entropy": 0.0153021240234375,
794
+ "epoch": 0.79,
795
+ "grad_norm": 0.004942392464727163,
796
+ "learning_rate": 0.00013792397332469667,
797
+ "loss": 0.0127,
798
+ "mean_token_accuracy": 0.9966010391712189,
799
+ "num_tokens": 77598059.0,
800
+ "step": 3950
801
+ },
802
+ {
803
+ "entropy": 0.015704345703125,
804
+ "epoch": 0.8,
805
+ "grad_norm": 0.04649922624230385,
806
+ "learning_rate": 0.0001364206587231997,
807
+ "loss": 0.0133,
808
+ "mean_token_accuracy": 0.9965157604217529,
809
+ "num_tokens": 78570180.0,
810
+ "step": 4000
811
+ },
812
+ {
813
+ "entropy": 0.01604248046875,
814
+ "epoch": 0.81,
815
+ "grad_norm": 0.020404120907187462,
816
+ "learning_rate": 0.0001349077934351687,
817
+ "loss": 0.0133,
818
+ "mean_token_accuracy": 0.9963881254196167,
819
+ "num_tokens": 79561943.0,
820
+ "step": 4050
821
+ },
822
+ {
823
+ "entropy": 0.0146820068359375,
824
+ "epoch": 0.82,
825
+ "grad_norm": 0.02299899235367775,
826
+ "learning_rate": 0.00013338577418330551,
827
+ "loss": 0.0128,
828
+ "mean_token_accuracy": 0.9966168141365052,
829
+ "num_tokens": 80576757.0,
830
+ "step": 4100
831
+ },
832
+ {
833
+ "entropy": 0.0158648681640625,
834
+ "epoch": 0.83,
835
+ "grad_norm": 0.00823818240314722,
836
+ "learning_rate": 0.0001318550000907804,
837
+ "loss": 0.0132,
838
+ "mean_token_accuracy": 0.9964745897054672,
839
+ "num_tokens": 81549255.0,
840
+ "step": 4150
841
+ },
842
+ {
843
+ "entropy": 0.016348876953125,
844
+ "epoch": 0.84,
845
+ "grad_norm": 0.008878524415194988,
846
+ "learning_rate": 0.00013031587257656893,
847
+ "loss": 0.0138,
848
+ "mean_token_accuracy": 0.9963663834333419,
849
+ "num_tokens": 82499683.0,
850
+ "step": 4200
851
+ },
852
+ {
853
+ "entropy": 0.01611328125,
854
+ "epoch": 0.85,
855
+ "grad_norm": 0.008941142819821835,
856
+ "learning_rate": 0.00012876879525018664,
857
+ "loss": 0.013,
858
+ "mean_token_accuracy": 0.9965634542703629,
859
+ "num_tokens": 83475810.0,
860
+ "step": 4250
861
+ },
862
+ {
863
+ "entropy": 0.0158050537109375,
864
+ "epoch": 0.86,
865
+ "grad_norm": 0.0055212583392858505,
866
+ "learning_rate": 0.00012721417380584957,
867
+ "loss": 0.0132,
868
+ "mean_token_accuracy": 0.9965286755561829,
869
+ "num_tokens": 84432102.0,
870
+ "step": 4300
871
+ },
872
+ {
873
+ "entropy": 0.0146826171875,
874
+ "epoch": 0.87,
875
+ "grad_norm": 0.026449987664818764,
876
+ "learning_rate": 0.000125652415916088,
877
+ "loss": 0.0129,
878
+ "mean_token_accuracy": 0.9965681248903274,
879
+ "num_tokens": 85429626.0,
880
+ "step": 4350
881
+ },
882
+ {
883
+ "entropy": 0.014139404296875,
884
+ "epoch": 0.88,
885
+ "grad_norm": 0.00660849642008543,
886
+ "learning_rate": 0.00012408393112484122,
887
+ "loss": 0.0122,
888
+ "mean_token_accuracy": 0.9967298436164856,
889
+ "num_tokens": 86450572.0,
890
+ "step": 4400
891
+ },
892
+ {
893
+ "entropy": 0.014090576171875,
894
+ "epoch": 0.89,
895
+ "grad_norm": 0.0070551736280322075,
896
+ "learning_rate": 0.0001225091307400619,
897
+ "loss": 0.0125,
898
+ "mean_token_accuracy": 0.9967121458053589,
899
+ "num_tokens": 87458843.0,
900
+ "step": 4450
901
+ },
902
+ {
903
+ "entropy": 0.0152215576171875,
904
+ "epoch": 0.9,
905
+ "grad_norm": 0.004244523588567972,
906
+ "learning_rate": 0.00012092842772585773,
907
+ "loss": 0.0126,
908
+ "mean_token_accuracy": 0.9966535359621048,
909
+ "num_tokens": 88453316.0,
910
+ "step": 4500
911
+ },
912
+ {
913
+ "entropy": 0.0164434814453125,
914
+ "epoch": 0.91,
915
+ "grad_norm": 0.008157999254763126,
916
+ "learning_rate": 0.00011934223659419855,
917
+ "loss": 0.0126,
918
+ "mean_token_accuracy": 0.9965788000822067,
919
+ "num_tokens": 89427450.0,
920
+ "step": 4550
921
+ },
922
+ {
923
+ "entropy": 0.0158038330078125,
924
+ "epoch": 0.92,
925
+ "grad_norm": 0.0045329672284424305,
926
+ "learning_rate": 0.00011775097329621792,
927
+ "loss": 0.0127,
928
+ "mean_token_accuracy": 0.9966169935464859,
929
+ "num_tokens": 90400676.0,
930
+ "step": 4600
931
+ },
932
+ {
933
+ "entropy": 0.0144769287109375,
934
+ "epoch": 0.93,
935
+ "grad_norm": 0.005577821284532547,
936
+ "learning_rate": 0.00011615505511313723,
937
+ "loss": 0.0125,
938
+ "mean_token_accuracy": 0.9966784137487411,
939
+ "num_tokens": 91394757.0,
940
+ "step": 4650
941
+ },
942
+ {
943
+ "entropy": 0.0153118896484375,
944
+ "epoch": 0.94,
945
+ "grad_norm": 0.005967387463897467,
946
+ "learning_rate": 0.00011455490054684062,
947
+ "loss": 0.0126,
948
+ "mean_token_accuracy": 0.9965827184915542,
949
+ "num_tokens": 92386137.0,
950
+ "step": 4700
951
+ },
952
+ {
953
+ "entropy": 0.0148541259765625,
954
+ "epoch": 0.95,
955
+ "grad_norm": 0.008161577396094799,
956
+ "learning_rate": 0.0001129509292101304,
957
+ "loss": 0.0126,
958
+ "mean_token_accuracy": 0.9965520149469376,
959
+ "num_tokens": 93374756.0,
960
+ "step": 4750
961
+ },
962
+ {
963
+ "entropy": 0.0134844970703125,
964
+ "epoch": 0.96,
965
+ "grad_norm": 0.0085891829803586,
966
+ "learning_rate": 0.00011134356171669084,
967
+ "loss": 0.0122,
968
+ "mean_token_accuracy": 0.9966898727416992,
969
+ "num_tokens": 94389846.0,
970
+ "step": 4800
971
+ },
972
+ {
973
+ "entropy": 0.0150384521484375,
974
+ "epoch": 0.97,
975
+ "grad_norm": 0.005678275600075722,
976
+ "learning_rate": 0.00010973321957078935,
977
+ "loss": 0.0124,
978
+ "mean_token_accuracy": 0.996696051955223,
979
+ "num_tokens": 95378637.0,
980
+ "step": 4850
981
+ },
982
+ {
983
+ "entropy": 0.015399169921875,
984
+ "epoch": 0.98,
985
+ "grad_norm": 0.01579667255282402,
986
+ "learning_rate": 0.00010812032505674438,
987
+ "loss": 0.0127,
988
+ "mean_token_accuracy": 0.9966134440898895,
989
+ "num_tokens": 96357363.0,
990
+ "step": 4900
991
+ },
992
+ {
993
+ "entropy": 0.017197265625,
994
+ "epoch": 0.99,
995
+ "grad_norm": 0.005984202027320862,
996
+ "learning_rate": 0.00010650530112818884,
997
+ "loss": 0.013,
998
+ "mean_token_accuracy": 0.9965381968021393,
999
+ "num_tokens": 97295349.0,
1000
+ "step": 4950
1001
+ },
1002
+ {
1003
+ "entropy": 0.0159613037109375,
1004
+ "epoch": 1.0,
1005
+ "grad_norm": 0.02548937126994133,
1006
+ "learning_rate": 0.00010488857129715748,
1007
+ "loss": 0.0132,
1008
+ "mean_token_accuracy": 0.9964933425188065,
1009
+ "num_tokens": 98262502.0,
1010
+ "step": 5000
1011
+ },
1012
+ {
1013
+ "entropy": 0.0154974365234375,
1014
+ "epoch": 1.01,
1015
+ "grad_norm": 0.004612665623426437,
1016
+ "learning_rate": 0.00010327055952302856,
1017
+ "loss": 0.013,
1018
+ "mean_token_accuracy": 0.9965017592906952,
1019
+ "num_tokens": 99235771.0,
1020
+ "step": 5050
1021
+ },
1022
+ {
1023
+ "entropy": 0.0153509521484375,
1024
+ "epoch": 1.02,
1025
+ "grad_norm": 0.004607018548995256,
1026
+ "learning_rate": 0.00010165169010134767,
1027
+ "loss": 0.0133,
1028
+ "mean_token_accuracy": 0.9964613664150238,
1029
+ "num_tokens": 100195990.0,
1030
+ "step": 5100
1031
+ },
1032
+ {
1033
+ "entropy": 0.0163897705078125,
1034
+ "epoch": 1.03,
1035
+ "grad_norm": 0.0059122079983353615,
1036
+ "learning_rate": 0.00010003238755256359,
1037
+ "loss": 0.0133,
1038
+ "mean_token_accuracy": 0.9963795179128647,
1039
+ "num_tokens": 101140160.0,
1040
+ "step": 5150
1041
+ },
1042
+ {
1043
+ "entropy": 0.0150555419921875,
1044
+ "epoch": 1.04,
1045
+ "grad_norm": 0.007985059171915054,
1046
+ "learning_rate": 9.841307651070516e-05,
1047
+ "loss": 0.0127,
1048
+ "mean_token_accuracy": 0.9966312313079834,
1049
+ "num_tokens": 102128346.0,
1050
+ "step": 5200
1051
+ },
1052
+ {
1053
+ "entropy": 0.0147113037109375,
1054
+ "epoch": 1.05,
1055
+ "grad_norm": 0.007239114958792925,
1056
+ "learning_rate": 9.679418161202838e-05,
1057
+ "loss": 0.0127,
1058
+ "mean_token_accuracy": 0.9966469115018844,
1059
+ "num_tokens": 103125113.0,
1060
+ "step": 5250
1061
+ },
1062
+ {
1063
+ "entropy": 0.0140301513671875,
1064
+ "epoch": 1.06,
1065
+ "grad_norm": 0.005679773166775703,
1066
+ "learning_rate": 9.517612738366298e-05,
1067
+ "loss": 0.0123,
1068
+ "mean_token_accuracy": 0.9966468936204911,
1069
+ "num_tokens": 104136988.0,
1070
+ "step": 5300
1071
+ },
1072
+ {
1073
+ "entropy": 0.0151898193359375,
1074
+ "epoch": 1.07,
1075
+ "grad_norm": 0.005022724159061909,
1076
+ "learning_rate": 9.355933813228743e-05,
1077
+ "loss": 0.0126,
1078
+ "mean_token_accuracy": 0.9966062486171723,
1079
+ "num_tokens": 105122070.0,
1080
+ "step": 5350
1081
+ },
1082
+ {
1083
+ "entropy": 0.0142633056640625,
1084
+ "epoch": 1.08,
1085
+ "grad_norm": 0.004745182115584612,
1086
+ "learning_rate": 9.194423783286186e-05,
1087
+ "loss": 0.0124,
1088
+ "mean_token_accuracy": 0.9967345565557479,
1089
+ "num_tokens": 106117109.0,
1090
+ "step": 5400
1091
+ },
1092
+ {
1093
+ "entropy": 0.0140283203125,
1094
+ "epoch": 1.09,
1095
+ "grad_norm": 0.013100003823637962,
1096
+ "learning_rate": 9.033125001744807e-05,
1097
+ "loss": 0.0124,
1098
+ "mean_token_accuracy": 0.9966571825742722,
1099
+ "num_tokens": 107110319.0,
1100
+ "step": 5450
1101
+ },
1102
+ {
1103
+ "entropy": 0.01464599609375,
1104
+ "epoch": 1.1,
1105
+ "grad_norm": 0.0032440433278679848,
1106
+ "learning_rate": 8.872079766414553e-05,
1107
+ "loss": 0.0125,
1108
+ "mean_token_accuracy": 0.9966195952892304,
1109
+ "num_tokens": 108104820.0,
1110
+ "step": 5500
1111
+ },
1112
+ {
1113
+ "entropy": 0.01467529296875,
1114
+ "epoch": 1.11,
1115
+ "grad_norm": 0.005622612312436104,
1116
+ "learning_rate": 8.711330308617273e-05,
1117
+ "loss": 0.0127,
1118
+ "mean_token_accuracy": 0.9966023224592209,
1119
+ "num_tokens": 109091493.0,
1120
+ "step": 5550
1121
+ },
1122
+ {
1123
+ "entropy": 0.0144769287109375,
1124
+ "epoch": 1.12,
1125
+ "grad_norm": 0.0047898199409246445,
1126
+ "learning_rate": 8.550918782112284e-05,
1127
+ "loss": 0.0126,
1128
+ "mean_token_accuracy": 0.9966290771961213,
1129
+ "num_tokens": 110077375.0,
1130
+ "step": 5600
1131
+ },
1132
+ {
1133
+ "entropy": 0.0159698486328125,
1134
+ "epoch": 1.13,
1135
+ "grad_norm": 0.00270559242926538,
1136
+ "learning_rate": 8.390887252042278e-05,
1137
+ "loss": 0.0129,
1138
+ "mean_token_accuracy": 0.9966305750608444,
1139
+ "num_tokens": 111042295.0,
1140
+ "step": 5650
1141
+ },
1142
+ {
1143
+ "entropy": 0.01397216796875,
1144
+ "epoch": 1.1400000000000001,
1145
+ "grad_norm": 0.004541980568319559,
1146
+ "learning_rate": 8.231277683902465e-05,
1147
+ "loss": 0.0125,
1148
+ "mean_token_accuracy": 0.9966504108905793,
1149
+ "num_tokens": 112033836.0,
1150
+ "step": 5700
1151
+ },
1152
+ {
1153
+ "entropy": 0.0146875,
1154
+ "epoch": 1.15,
1155
+ "grad_norm": 0.00969141535460949,
1156
+ "learning_rate": 8.072131932535853e-05,
1157
+ "loss": 0.0126,
1158
+ "mean_token_accuracy": 0.9966700273752213,
1159
+ "num_tokens": 113006848.0,
1160
+ "step": 5750
1161
+ },
1162
+ {
1163
+ "entropy": 0.0143511962890625,
1164
+ "epoch": 1.16,
1165
+ "grad_norm": 0.00436286861076951,
1166
+ "learning_rate": 7.913491731157546e-05,
1167
+ "loss": 0.0125,
1168
+ "mean_token_accuracy": 0.9966748082637786,
1169
+ "num_tokens": 113998253.0,
1170
+ "step": 5800
1171
+ },
1172
+ {
1173
+ "entropy": 0.014384765625,
1174
+ "epoch": 1.17,
1175
+ "grad_norm": 0.004280556924641132,
1176
+ "learning_rate": 7.75539868041091e-05,
1177
+ "loss": 0.0125,
1178
+ "mean_token_accuracy": 0.9966614800691604,
1179
+ "num_tokens": 114979026.0,
1180
+ "step": 5850
1181
+ },
1182
+ {
1183
+ "entropy": 0.015126953125,
1184
+ "epoch": 1.18,
1185
+ "grad_norm": 0.003953795880079269,
1186
+ "learning_rate": 7.597894237458564e-05,
1187
+ "loss": 0.0126,
1188
+ "mean_token_accuracy": 0.9966736274957657,
1189
+ "num_tokens": 115947279.0,
1190
+ "step": 5900
1191
+ },
1192
+ {
1193
+ "entropy": 0.0151934814453125,
1194
+ "epoch": 1.19,
1195
+ "grad_norm": 0.0030158027075231075,
1196
+ "learning_rate": 7.441019705110911e-05,
1197
+ "loss": 0.0127,
1198
+ "mean_token_accuracy": 0.9966179466247559,
1199
+ "num_tokens": 116911661.0,
1200
+ "step": 5950
1201
+ },
1202
+ {
1203
+ "entropy": 0.0138433837890625,
1204
+ "epoch": 1.2,
1205
+ "grad_norm": 0.004342342726886272,
1206
+ "learning_rate": 7.284816220995232e-05,
1207
+ "loss": 0.0126,
1208
+ "mean_token_accuracy": 0.9966727274656296,
1209
+ "num_tokens": 117890306.0,
1210
+ "step": 6000
1211
+ },
1212
+ {
1213
+ "entropy": 0.0154425048828125,
1214
+ "epoch": 1.21,
1215
+ "grad_norm": 0.0032860836945474148,
1216
+ "learning_rate": 7.129324746768027e-05,
1217
+ "loss": 0.0127,
1218
+ "mean_token_accuracy": 0.9966699439287185,
1219
+ "num_tokens": 118844495.0,
1220
+ "step": 6050
1221
+ },
1222
+ {
1223
+ "entropy": 0.0142547607421875,
1224
+ "epoch": 1.22,
1225
+ "grad_norm": 0.0035270454827696085,
1226
+ "learning_rate": 6.974586057373553e-05,
1227
+ "loss": 0.0128,
1228
+ "mean_token_accuracy": 0.9965970575809479,
1229
+ "num_tokens": 119807321.0,
1230
+ "step": 6100
1231
+ },
1232
+ {
1233
+ "entropy": 0.014140625,
1234
+ "epoch": 1.23,
1235
+ "grad_norm": 0.003928528167307377,
1236
+ "learning_rate": 6.820640730351281e-05,
1237
+ "loss": 0.0124,
1238
+ "mean_token_accuracy": 0.9966894084215164,
1239
+ "num_tokens": 120794059.0,
1240
+ "step": 6150
1241
+ },
1242
+ {
1243
+ "entropy": 0.015126953125,
1244
+ "epoch": 1.24,
1245
+ "grad_norm": 0.00652494840323925,
1246
+ "learning_rate": 6.667529135195158e-05,
1247
+ "loss": 0.0126,
1248
+ "mean_token_accuracy": 0.9966612446308136,
1249
+ "num_tokens": 121765426.0,
1250
+ "step": 6200
1251
+ },
1252
+ {
1253
+ "entropy": 0.014786376953125,
1254
+ "epoch": 1.25,
1255
+ "grad_norm": 0.0035996190272271633,
1256
+ "learning_rate": 6.515291422767398e-05,
1257
+ "loss": 0.0124,
1258
+ "mean_token_accuracy": 0.9967038828134537,
1259
+ "num_tokens": 122747186.0,
1260
+ "step": 6250
1261
+ },
1262
+ {
1263
+ "entropy": 0.014442138671875,
1264
+ "epoch": 1.26,
1265
+ "grad_norm": 0.003601992269977927,
1266
+ "learning_rate": 6.363967514769611e-05,
1267
+ "loss": 0.0125,
1268
+ "mean_token_accuracy": 0.996647121310234,
1269
+ "num_tokens": 123735045.0,
1270
+ "step": 6300
1271
+ },
1272
+ {
1273
+ "entropy": 0.0143670654296875,
1274
+ "epoch": 1.27,
1275
+ "grad_norm": 0.004377322271466255,
1276
+ "learning_rate": 6.213597093274038e-05,
1277
+ "loss": 0.012,
1278
+ "mean_token_accuracy": 0.9968274879455566,
1279
+ "num_tokens": 124748439.0,
1280
+ "step": 6350
1281
+ },
1282
+ {
1283
+ "entropy": 0.014041748046875,
1284
+ "epoch": 1.28,
1285
+ "grad_norm": 0.01565692573785782,
1286
+ "learning_rate": 6.064219590317603e-05,
1287
+ "loss": 0.0125,
1288
+ "mean_token_accuracy": 0.9966846120357513,
1289
+ "num_tokens": 125723365.0,
1290
+ "step": 6400
1291
+ },
1292
+ {
1293
+ "entropy": 0.0149078369140625,
1294
+ "epoch": 1.29,
1295
+ "grad_norm": 0.004699499346315861,
1296
+ "learning_rate": 5.915874177561558e-05,
1297
+ "loss": 0.0127,
1298
+ "mean_token_accuracy": 0.9965779095888138,
1299
+ "num_tokens": 126678062.0,
1300
+ "step": 6450
1301
+ },
1302
+ {
1303
+ "entropy": 0.0139715576171875,
1304
+ "epoch": 1.3,
1305
+ "grad_norm": 0.01126203965395689,
1306
+ "learning_rate": 5.768599756019379e-05,
1307
+ "loss": 0.0123,
1308
+ "mean_token_accuracy": 0.9967708003520965,
1309
+ "num_tokens": 127675372.0,
1310
+ "step": 6500
1311
+ },
1312
+ {
1313
+ "entropy": 0.014539794921875,
1314
+ "epoch": 1.31,
1315
+ "grad_norm": 0.004304393660277128,
1316
+ "learning_rate": 5.62243494585567e-05,
1317
+ "loss": 0.0123,
1318
+ "mean_token_accuracy": 0.9967282289266586,
1319
+ "num_tokens": 128665669.0,
1320
+ "step": 6550
1321
+ },
1322
+ {
1323
+ "entropy": 0.0155072021484375,
1324
+ "epoch": 1.32,
1325
+ "grad_norm": 0.005392490420490503,
1326
+ "learning_rate": 5.4774180762586744e-05,
1327
+ "loss": 0.0127,
1328
+ "mean_token_accuracy": 0.9966940140724182,
1329
+ "num_tokens": 129622542.0,
1330
+ "step": 6600
1331
+ },
1332
+ {
1333
+ "entropy": 0.0158233642578125,
1334
+ "epoch": 1.33,
1335
+ "grad_norm": 0.004567895550280809,
1336
+ "learning_rate": 5.3335871753891164e-05,
1337
+ "loss": 0.0125,
1338
+ "mean_token_accuracy": 0.9966335827112198,
1339
+ "num_tokens": 130598823.0,
1340
+ "step": 6650
1341
+ },
1342
+ {
1343
+ "entropy": 0.0174981689453125,
1344
+ "epoch": 1.34,
1345
+ "grad_norm": 0.004116595257073641,
1346
+ "learning_rate": 5.19097996040798e-05,
1347
+ "loss": 0.0129,
1348
+ "mean_token_accuracy": 0.9965625661611557,
1349
+ "num_tokens": 131552204.0,
1350
+ "step": 6700
1351
+ },
1352
+ {
1353
+ "entropy": 0.0147027587890625,
1354
+ "epoch": 1.35,
1355
+ "grad_norm": 0.0056161340326070786,
1356
+ "learning_rate": 5.049633827585831e-05,
1357
+ "loss": 0.0127,
1358
+ "mean_token_accuracy": 0.9966204452514649,
1359
+ "num_tokens": 132526021.0,
1360
+ "step": 6750
1361
+ },
1362
+ {
1363
+ "entropy": 0.015428466796875,
1364
+ "epoch": 1.3599999999999999,
1365
+ "grad_norm": 0.004651419818401337,
1366
+ "learning_rate": 4.909585842496287e-05,
1367
+ "loss": 0.0128,
1368
+ "mean_token_accuracy": 0.99664146900177,
1369
+ "num_tokens": 133483207.0,
1370
+ "step": 6800
1371
+ },
1372
+ {
1373
+ "entropy": 0.014569091796875,
1374
+ "epoch": 1.37,
1375
+ "grad_norm": 0.003079394344240427,
1376
+ "learning_rate": 4.770872730296239e-05,
1377
+ "loss": 0.0122,
1378
+ "mean_token_accuracy": 0.9966962742805481,
1379
+ "num_tokens": 134482802.0,
1380
+ "step": 6850
1381
+ },
1382
+ {
1383
+ "entropy": 0.014830322265625,
1384
+ "epoch": 1.38,
1385
+ "grad_norm": 0.004251058679074049,
1386
+ "learning_rate": 4.6335308660952824e-05,
1387
+ "loss": 0.0122,
1388
+ "mean_token_accuracy": 0.9967555969953537,
1389
+ "num_tokens": 135484861.0,
1390
+ "step": 6900
1391
+ },
1392
+ {
1393
+ "entropy": 0.0134014892578125,
1394
+ "epoch": 1.3900000000000001,
1395
+ "grad_norm": 0.004191310610622168,
1396
+ "learning_rate": 4.497596265416999e-05,
1397
+ "loss": 0.012,
1398
+ "mean_token_accuracy": 0.9967229264974594,
1399
+ "num_tokens": 136499177.0,
1400
+ "step": 6950
1401
+ },
1402
+ {
1403
+ "entropy": 0.013759765625,
1404
+ "epoch": 1.4,
1405
+ "grad_norm": 0.0054672956466674805,
1406
+ "learning_rate": 4.363104574754495e-05,
1407
+ "loss": 0.0122,
1408
+ "mean_token_accuracy": 0.9966703844070435,
1409
+ "num_tokens": 137503523.0,
1410
+ "step": 7000
1411
+ },
1412
+ {
1413
+ "entropy": 0.0140313720703125,
1414
+ "epoch": 1.41,
1415
+ "grad_norm": 0.004093808587640524,
1416
+ "learning_rate": 4.2300910622227416e-05,
1417
+ "loss": 0.0122,
1418
+ "mean_token_accuracy": 0.9967001950740815,
1419
+ "num_tokens": 138497821.0,
1420
+ "step": 7050
1421
+ },
1422
+ {
1423
+ "entropy": 0.0146978759765625,
1424
+ "epoch": 1.42,
1425
+ "grad_norm": 0.00476575642824173,
1426
+ "learning_rate": 4.0985906083100966e-05,
1427
+ "loss": 0.0124,
1428
+ "mean_token_accuracy": 0.9967030477523804,
1429
+ "num_tokens": 139480692.0,
1430
+ "step": 7100
1431
+ },
1432
+ {
1433
+ "entropy": 0.0145001220703125,
1434
+ "epoch": 1.43,
1435
+ "grad_norm": 0.003950368147343397,
1436
+ "learning_rate": 3.9686376967315394e-05,
1437
+ "loss": 0.0121,
1438
+ "mean_token_accuracy": 0.9967496973276139,
1439
+ "num_tokens": 140475746.0,
1440
+ "step": 7150
1441
+ },
1442
+ {
1443
+ "entropy": 0.01536376953125,
1444
+ "epoch": 1.44,
1445
+ "grad_norm": 0.004127435851842165,
1446
+ "learning_rate": 3.840266405385879e-05,
1447
+ "loss": 0.0125,
1448
+ "mean_token_accuracy": 0.9966651368141174,
1449
+ "num_tokens": 141443323.0,
1450
+ "step": 7200
1451
+ },
1452
+ {
1453
+ "entropy": 0.01494384765625,
1454
+ "epoch": 1.45,
1455
+ "grad_norm": 0.003764532972127199,
1456
+ "learning_rate": 3.7135103974194376e-05,
1457
+ "loss": 0.0122,
1458
+ "mean_token_accuracy": 0.9967313319444656,
1459
+ "num_tokens": 142442496.0,
1460
+ "step": 7250
1461
+ },
1462
+ {
1463
+ "entropy": 0.014307861328125,
1464
+ "epoch": 1.46,
1465
+ "grad_norm": 0.005464118905365467,
1466
+ "learning_rate": 3.588402912398462e-05,
1467
+ "loss": 0.0122,
1468
+ "mean_token_accuracy": 0.9967530632019043,
1469
+ "num_tokens": 143436493.0,
1470
+ "step": 7300
1471
+ },
1472
+ {
1473
+ "entropy": 0.0158319091796875,
1474
+ "epoch": 1.47,
1475
+ "grad_norm": 0.003613516455516219,
1476
+ "learning_rate": 3.464976757592622e-05,
1477
+ "loss": 0.0126,
1478
+ "mean_token_accuracy": 0.9967059594392776,
1479
+ "num_tokens": 144400422.0,
1480
+ "step": 7350
1481
+ },
1482
+ {
1483
+ "entropy": 0.0143316650390625,
1484
+ "epoch": 1.48,
1485
+ "grad_norm": 0.004592793993651867,
1486
+ "learning_rate": 3.343264299371886e-05,
1487
+ "loss": 0.0121,
1488
+ "mean_token_accuracy": 0.996718077659607,
1489
+ "num_tokens": 145397669.0,
1490
+ "step": 7400
1491
+ },
1492
+ {
1493
+ "entropy": 0.013739013671875,
1494
+ "epoch": 1.49,
1495
+ "grad_norm": 0.01254718191921711,
1496
+ "learning_rate": 3.223297454718996e-05,
1497
+ "loss": 0.0122,
1498
+ "mean_token_accuracy": 0.9967107629776001,
1499
+ "num_tokens": 146393328.0,
1500
+ "step": 7450
1501
+ },
1502
+ {
1503
+ "entropy": 0.0153228759765625,
1504
+ "epoch": 1.5,
1505
+ "grad_norm": 0.003723025554791093,
1506
+ "learning_rate": 3.105107682859785e-05,
1507
+ "loss": 0.0126,
1508
+ "mean_token_accuracy": 0.9966357213258743,
1509
+ "num_tokens": 147355946.0,
1510
+ "step": 7500
1511
+ },
1512
+ {
1513
+ "entropy": 0.0139459228515625,
1514
+ "epoch": 1.51,
1515
+ "grad_norm": 0.00447842525318265,
1516
+ "learning_rate": 2.9887259770135412e-05,
1517
+ "loss": 0.0122,
1518
+ "mean_token_accuracy": 0.9967737764120101,
1519
+ "num_tokens": 148349601.0,
1520
+ "step": 7550
1521
+ },
1522
+ {
1523
+ "entropy": 0.0168817138671875,
1524
+ "epoch": 1.52,
1525
+ "grad_norm": 0.005081506446003914,
1526
+ "learning_rate": 2.874182856265586e-05,
1527
+ "loss": 0.0124,
1528
+ "mean_token_accuracy": 0.9966859549283982,
1529
+ "num_tokens": 149313070.0,
1530
+ "step": 7600
1531
+ },
1532
+ {
1533
+ "entropy": 0.0144049072265625,
1534
+ "epoch": 1.53,
1535
+ "grad_norm": 0.0047925361432135105,
1536
+ "learning_rate": 2.761508357564151e-05,
1537
+ "loss": 0.0123,
1538
+ "mean_token_accuracy": 0.9967344826459885,
1539
+ "num_tokens": 150295432.0,
1540
+ "step": 7650
1541
+ },
1542
+ {
1543
+ "entropy": 0.0135223388671875,
1544
+ "epoch": 1.54,
1545
+ "grad_norm": 0.00431723752990365,
1546
+ "learning_rate": 2.6507320278437298e-05,
1547
+ "loss": 0.0122,
1548
+ "mean_token_accuracy": 0.9967335122823715,
1549
+ "num_tokens": 151287796.0,
1550
+ "step": 7700
1551
+ },
1552
+ {
1553
+ "entropy": 0.01418701171875,
1554
+ "epoch": 1.55,
1555
+ "grad_norm": 0.004691008944064379,
1556
+ "learning_rate": 2.5418829162769054e-05,
1557
+ "loss": 0.0119,
1558
+ "mean_token_accuracy": 0.9967724394798279,
1559
+ "num_tokens": 152301411.0,
1560
+ "step": 7750
1561
+ },
1562
+ {
1563
+ "entropy": 0.0155633544921875,
1564
+ "epoch": 1.56,
1565
+ "grad_norm": 0.003728409530594945,
1566
+ "learning_rate": 2.4349895666566867e-05,
1567
+ "loss": 0.0125,
1568
+ "mean_token_accuracy": 0.9967007279396057,
1569
+ "num_tokens": 153267430.0,
1570
+ "step": 7800
1571
+ },
1572
+ {
1573
+ "entropy": 0.016041259765625,
1574
+ "epoch": 1.5699999999999998,
1575
+ "grad_norm": 0.0042374576441943645,
1576
+ "learning_rate": 2.3300800099114184e-05,
1577
+ "loss": 0.0125,
1578
+ "mean_token_accuracy": 0.9966525429487229,
1579
+ "num_tokens": 154223984.0,
1580
+ "step": 7850
1581
+ },
1582
+ {
1583
+ "entropy": 0.0153436279296875,
1584
+ "epoch": 1.58,
1585
+ "grad_norm": 0.0034420567099004984,
1586
+ "learning_rate": 2.2271817567541432e-05,
1587
+ "loss": 0.0124,
1588
+ "mean_token_accuracy": 0.9966917681694031,
1589
+ "num_tokens": 155196164.0,
1590
+ "step": 7900
1591
+ },
1592
+ {
1593
+ "entropy": 0.0175311279296875,
1594
+ "epoch": 1.5899999999999999,
1595
+ "grad_norm": 0.005147083662450314,
1596
+ "learning_rate": 2.1263217904683886e-05,
1597
+ "loss": 0.0126,
1598
+ "mean_token_accuracy": 0.9966441369056702,
1599
+ "num_tokens": 156148276.0,
1600
+ "step": 7950
1601
+ },
1602
+ {
1603
+ "entropy": 0.0145745849609375,
1604
+ "epoch": 1.6,
1605
+ "grad_norm": 0.005488451104611158,
1606
+ "learning_rate": 2.0275265598322823e-05,
1607
+ "loss": 0.0121,
1608
+ "mean_token_accuracy": 0.9967311358451844,
1609
+ "num_tokens": 157142308.0,
1610
+ "step": 8000
1611
+ },
1612
+ {
1613
+ "entropy": 0.0149676513671875,
1614
+ "epoch": 1.6099999999999999,
1615
+ "grad_norm": 0.0033040742855519056,
1616
+ "learning_rate": 1.930821972182819e-05,
1617
+ "loss": 0.0123,
1618
+ "mean_token_accuracy": 0.9967239224910736,
1619
+ "num_tokens": 158121229.0,
1620
+ "step": 8050
1621
+ },
1622
+ {
1623
+ "entropy": 0.014188232421875,
1624
+ "epoch": 1.62,
1625
+ "grad_norm": 0.00513071333989501,
1626
+ "learning_rate": 1.8362333866220936e-05,
1627
+ "loss": 0.0124,
1628
+ "mean_token_accuracy": 0.9967366445064545,
1629
+ "num_tokens": 159092550.0,
1630
+ "step": 8100
1631
+ },
1632
+ {
1633
+ "entropy": 0.0139642333984375,
1634
+ "epoch": 1.63,
1635
+ "grad_norm": 0.0035197800025343895,
1636
+ "learning_rate": 1.743785607367332e-05,
1637
+ "loss": 0.0122,
1638
+ "mean_token_accuracy": 0.9967178416252136,
1639
+ "num_tokens": 160079462.0,
1640
+ "step": 8150
1641
+ },
1642
+ {
1643
+ "entropy": 0.0162518310546875,
1644
+ "epoch": 1.6400000000000001,
1645
+ "grad_norm": 0.0042403023689985275,
1646
+ "learning_rate": 1.6535028772464012e-05,
1647
+ "loss": 0.012,
1648
+ "mean_token_accuracy": 0.9968054836988449,
1649
+ "num_tokens": 161078873.0,
1650
+ "step": 8200
1651
+ },
1652
+ {
1653
+ "entropy": 0.0145245361328125,
1654
+ "epoch": 1.65,
1655
+ "grad_norm": 0.0042230915278196335,
1656
+ "learning_rate": 1.5654088713405646e-05,
1657
+ "loss": 0.0121,
1658
+ "mean_token_accuracy": 0.996728510260582,
1659
+ "num_tokens": 162066123.0,
1660
+ "step": 8250
1661
+ },
1662
+ {
1663
+ "entropy": 0.0133587646484375,
1664
+ "epoch": 1.6600000000000001,
1665
+ "grad_norm": 0.004976911004632711,
1666
+ "learning_rate": 1.4795266907760896e-05,
1667
+ "loss": 0.0121,
1668
+ "mean_token_accuracy": 0.9967916268110275,
1669
+ "num_tokens": 163064136.0,
1670
+ "step": 8300
1671
+ },
1672
+ {
1673
+ "entropy": 0.01419189453125,
1674
+ "epoch": 1.67,
1675
+ "grad_norm": 0.0036860681138932705,
1676
+ "learning_rate": 1.3958788566663849e-05,
1677
+ "loss": 0.0123,
1678
+ "mean_token_accuracy": 0.996702715754509,
1679
+ "num_tokens": 164044744.0,
1680
+ "step": 8350
1681
+ },
1682
+ {
1683
+ "entropy": 0.0144189453125,
1684
+ "epoch": 1.6800000000000002,
1685
+ "grad_norm": 0.006750128231942654,
1686
+ "learning_rate": 1.3144873042062223e-05,
1687
+ "loss": 0.0121,
1688
+ "mean_token_accuracy": 0.9967769056558609,
1689
+ "num_tokens": 165046152.0,
1690
+ "step": 8400
1691
+ },
1692
+ {
1693
+ "entropy": 0.01677490234375,
1694
+ "epoch": 1.69,
1695
+ "grad_norm": 0.004466187674552202,
1696
+ "learning_rate": 1.2353733769196175e-05,
1697
+ "loss": 0.0128,
1698
+ "mean_token_accuracy": 0.9966998451948166,
1699
+ "num_tokens": 165986955.0,
1700
+ "step": 8450
1701
+ },
1702
+ {
1703
+ "entropy": 0.0145159912109375,
1704
+ "epoch": 1.7,
1705
+ "grad_norm": 0.003819273319095373,
1706
+ "learning_rate": 1.1585578210628523e-05,
1707
+ "loss": 0.0121,
1708
+ "mean_token_accuracy": 0.9967687773704529,
1709
+ "num_tokens": 166977751.0,
1710
+ "step": 8500
1711
+ },
1712
+ {
1713
+ "entropy": 0.0144268798828125,
1714
+ "epoch": 1.71,
1715
+ "grad_norm": 0.004326715599745512,
1716
+ "learning_rate": 1.0840607801841429e-05,
1717
+ "loss": 0.0123,
1718
+ "mean_token_accuracy": 0.996715075969696,
1719
+ "num_tokens": 167953599.0,
1720
+ "step": 8550
1721
+ },
1722
+ {
1723
+ "entropy": 0.01399658203125,
1724
+ "epoch": 1.72,
1725
+ "grad_norm": 0.0042991251684725285,
1726
+ "learning_rate": 1.0119017898413286e-05,
1727
+ "loss": 0.012,
1728
+ "mean_token_accuracy": 0.9967698639631272,
1729
+ "num_tokens": 168959690.0,
1730
+ "step": 8600
1731
+ },
1732
+ {
1733
+ "entropy": 0.0139202880859375,
1734
+ "epoch": 1.73,
1735
+ "grad_norm": 0.006231272127479315,
1736
+ "learning_rate": 9.420997724790237e-06,
1737
+ "loss": 0.012,
1738
+ "mean_token_accuracy": 0.9968384945392609,
1739
+ "num_tokens": 169960239.0,
1740
+ "step": 8650
1741
+ },
1742
+ {
1743
+ "entropy": 0.0153900146484375,
1744
+ "epoch": 1.74,
1745
+ "grad_norm": 0.005297319032251835,
1746
+ "learning_rate": 8.746730324665265e-06,
1747
+ "loss": 0.0124,
1748
+ "mean_token_accuracy": 0.9967301696538925,
1749
+ "num_tokens": 170919546.0,
1750
+ "step": 8700
1751
+ },
1752
+ {
1753
+ "entropy": 0.0150830078125,
1754
+ "epoch": 1.75,
1755
+ "grad_norm": 0.00413165707141161,
1756
+ "learning_rate": 8.09639251297809e-06,
1757
+ "loss": 0.0122,
1758
+ "mean_token_accuracy": 0.9967681872844696,
1759
+ "num_tokens": 171904243.0,
1760
+ "step": 8750
1761
+ },
1762
+ {
1763
+ "entropy": 0.0135552978515625,
1764
+ "epoch": 1.76,
1765
+ "grad_norm": 0.003842999693006277,
1766
+ "learning_rate": 7.47015482954867e-06,
1767
+ "loss": 0.012,
1768
+ "mean_token_accuracy": 0.9968301928043366,
1769
+ "num_tokens": 172906287.0,
1770
+ "step": 8800
1771
+ },
1772
+ {
1773
+ "entropy": 0.0152777099609375,
1774
+ "epoch": 1.77,
1775
+ "grad_norm": 0.0050763715989887714,
1776
+ "learning_rate": 6.868181494355997e-06,
1777
+ "loss": 0.012,
1778
+ "mean_token_accuracy": 0.9967879450321198,
1779
+ "num_tokens": 173893909.0,
1780
+ "step": 8850
1781
+ },
1782
+ {
1783
+ "entropy": 0.014722900390625,
1784
+ "epoch": 1.78,
1785
+ "grad_norm": 0.004473579116165638,
1786
+ "learning_rate": 6.290630364474248e-06,
1787
+ "loss": 0.012,
1788
+ "mean_token_accuracy": 0.9968088346719742,
1789
+ "num_tokens": 174890261.0,
1790
+ "step": 8900
1791
+ },
1792
+ {
1793
+ "entropy": 0.0163031005859375,
1794
+ "epoch": 1.79,
1795
+ "grad_norm": 0.005811121314764023,
1796
+ "learning_rate": 5.7376528926775916e-06,
1797
+ "loss": 0.0124,
1798
+ "mean_token_accuracy": 0.9967192506790161,
1799
+ "num_tokens": 175854165.0,
1800
+ "step": 8950
1801
+ },
1802
+ {
1803
+ "entropy": 0.0155975341796875,
1804
+ "epoch": 1.8,
1805
+ "grad_norm": 0.004479851573705673,
1806
+ "learning_rate": 5.209394087724173e-06,
1807
+ "loss": 0.0125,
1808
+ "mean_token_accuracy": 0.9966700148582458,
1809
+ "num_tokens": 176810914.0,
1810
+ "step": 9000
1811
+ },
1812
+ {
1813
+ "entropy": 0.0157672119140625,
1814
+ "epoch": 1.81,
1815
+ "grad_norm": 0.004575815983116627,
1816
+ "learning_rate": 4.705992476330201e-06,
1817
+ "loss": 0.0125,
1818
+ "mean_token_accuracy": 0.9966740465164184,
1819
+ "num_tokens": 177771417.0,
1820
+ "step": 9050
1821
+ },
1822
+ {
1823
+ "entropy": 0.01646728515625,
1824
+ "epoch": 1.8199999999999998,
1825
+ "grad_norm": 0.005097329616546631,
1826
+ "learning_rate": 4.227580066843684e-06,
1827
+ "loss": 0.0126,
1828
+ "mean_token_accuracy": 0.9966765117645263,
1829
+ "num_tokens": 178723204.0,
1830
+ "step": 9100
1831
+ },
1832
+ {
1833
+ "entropy": 0.0165924072265625,
1834
+ "epoch": 1.83,
1835
+ "grad_norm": 0.007303583901375532,
1836
+ "learning_rate": 3.7742823146274973e-06,
1837
+ "loss": 0.0123,
1838
+ "mean_token_accuracy": 0.9967861211299897,
1839
+ "num_tokens": 179696113.0,
1840
+ "step": 9150
1841
+ },
1842
+ {
1843
+ "entropy": 0.0128680419921875,
1844
+ "epoch": 1.8399999999999999,
1845
+ "grad_norm": 0.0037688750308007,
1846
+ "learning_rate": 3.3462180891609576e-06,
1847
+ "loss": 0.0119,
1848
+ "mean_token_accuracy": 0.9968256890773773,
1849
+ "num_tokens": 180706266.0,
1850
+ "step": 9200
1851
+ },
1852
+ {
1853
+ "entropy": 0.0139013671875,
1854
+ "epoch": 1.85,
1855
+ "grad_norm": 0.004569464363157749,
1856
+ "learning_rate": 2.943499642868297e-06,
1857
+ "loss": 0.012,
1858
+ "mean_token_accuracy": 0.996815636754036,
1859
+ "num_tokens": 181699421.0,
1860
+ "step": 9250
1861
+ },
1862
+ {
1863
+ "entropy": 0.01381591796875,
1864
+ "epoch": 1.8599999999999999,
1865
+ "grad_norm": 0.009979119524359703,
1866
+ "learning_rate": 2.5662325816824485e-06,
1867
+ "loss": 0.0119,
1868
+ "mean_token_accuracy": 0.9967955452203751,
1869
+ "num_tokens": 182712460.0,
1870
+ "step": 9300
1871
+ },
1872
+ {
1873
+ "entropy": 0.01394287109375,
1874
+ "epoch": 1.87,
1875
+ "grad_norm": 0.0035487792920321226,
1876
+ "learning_rate": 2.2145158373516604e-06,
1877
+ "loss": 0.012,
1878
+ "mean_token_accuracy": 0.9967965346574783,
1879
+ "num_tokens": 183707370.0,
1880
+ "step": 9350
1881
+ },
1882
+ {
1883
+ "entropy": 0.0131964111328125,
1884
+ "epoch": 1.88,
1885
+ "grad_norm": 0.004314868710935116,
1886
+ "learning_rate": 1.8884416414964523e-06,
1887
+ "loss": 0.0117,
1888
+ "mean_token_accuracy": 0.9967964053153991,
1889
+ "num_tokens": 184727025.0,
1890
+ "step": 9400
1891
+ },
1892
+ {
1893
+ "entropy": 0.0150079345703125,
1894
+ "epoch": 1.8900000000000001,
1895
+ "grad_norm": 0.004273617174476385,
1896
+ "learning_rate": 1.5880955014234144e-06,
1897
+ "loss": 0.012,
1898
+ "mean_token_accuracy": 0.9967710012197495,
1899
+ "num_tokens": 185717464.0,
1900
+ "step": 9450
1901
+ },
1902
+ {
1903
+ "entropy": 0.0157025146484375,
1904
+ "epoch": 1.9,
1905
+ "grad_norm": 0.00345322722569108,
1906
+ "learning_rate": 1.3135561777024018e-06,
1907
+ "loss": 0.0123,
1908
+ "mean_token_accuracy": 0.996714026927948,
1909
+ "num_tokens": 186699086.0,
1910
+ "step": 9500
1911
+ },
1912
+ {
1913
+ "entropy": 0.015067138671875,
1914
+ "epoch": 1.9100000000000001,
1915
+ "grad_norm": 0.005028110928833485,
1916
+ "learning_rate": 1.0648956635129547e-06,
1917
+ "loss": 0.0121,
1918
+ "mean_token_accuracy": 0.9967602133750916,
1919
+ "num_tokens": 187677214.0,
1920
+ "step": 9550
1921
+ },
1922
+ {
1923
+ "entropy": 0.0151629638671875,
1924
+ "epoch": 1.92,
1925
+ "grad_norm": 0.00808985810726881,
1926
+ "learning_rate": 8.421791657652888e-07,
1927
+ "loss": 0.0123,
1928
+ "mean_token_accuracy": 0.9967530107498169,
1929
+ "num_tokens": 188656836.0,
1930
+ "step": 9600
1931
+ },
1932
+ {
1933
+ "entropy": 0.015286865234375,
1934
+ "epoch": 1.9300000000000002,
1935
+ "grad_norm": 0.0035104642156511545,
1936
+ "learning_rate": 6.454650880010182e-07,
1937
+ "loss": 0.0122,
1938
+ "mean_token_accuracy": 0.9967984110116959,
1939
+ "num_tokens": 189644075.0,
1940
+ "step": 9650
1941
+ },
1942
+ {
1943
+ "entropy": 0.0144696044921875,
1944
+ "epoch": 1.94,
1945
+ "grad_norm": 0.004455635789781809,
1946
+ "learning_rate": 4.74805015077695e-07,
1947
+ "loss": 0.0119,
1948
+ "mean_token_accuracy": 0.996801632642746,
1949
+ "num_tokens": 190652489.0,
1950
+ "step": 9700
1951
+ },
1952
+ {
1953
+ "entropy": 0.0142669677734375,
1954
+ "epoch": 1.95,
1955
+ "grad_norm": 0.005655024200677872,
1956
+ "learning_rate": 3.302436996417191e-07,
1957
+ "loss": 0.0122,
1958
+ "mean_token_accuracy": 0.9967820483446121,
1959
+ "num_tokens": 191635957.0,
1960
+ "step": 9750
1961
+ },
1962
+ {
1963
+ "entropy": 0.015091552734375,
1964
+ "epoch": 1.96,
1965
+ "grad_norm": 0.00480269268155098,
1966
+ "learning_rate": 2.118190503926143e-07,
1967
+ "loss": 0.0123,
1968
+ "mean_token_accuracy": 0.9967733544111251,
1969
+ "num_tokens": 192605918.0,
1970
+ "step": 9800
1971
+ },
1972
+ {
1973
+ "entropy": 0.0158013916015625,
1974
+ "epoch": 1.97,
1975
+ "grad_norm": 0.004706093575805426,
1976
+ "learning_rate": 1.1956212214221386e-07,
1977
+ "loss": 0.0125,
1978
+ "mean_token_accuracy": 0.9967078751325608,
1979
+ "num_tokens": 193565571.0,
1980
+ "step": 9850
1981
+ },
1982
+ {
1983
+ "entropy": 0.0151788330078125,
1984
+ "epoch": 1.98,
1985
+ "grad_norm": 0.00524482224136591,
1986
+ "learning_rate": 5.34971076710078e-08,
1987
+ "loss": 0.012,
1988
+ "mean_token_accuracy": 0.9967268723249435,
1989
+ "num_tokens": 194558732.0,
1990
+ "step": 9900
1991
+ },
1992
+ {
1993
+ "entropy": 0.01404052734375,
1994
+ "epoch": 1.99,
1995
+ "grad_norm": 0.005302683915942907,
1996
+ "learning_rate": 1.3641331384062206e-08,
1997
+ "loss": 0.0122,
1998
+ "mean_token_accuracy": 0.9967426937818528,
1999
+ "num_tokens": 195544901.0,
2000
+ "step": 9950
2001
+ },
2002
+ {
2003
+ "entropy": 0.0142694091796875,
2004
+ "epoch": 2.0,
2005
+ "grad_norm": 0.005861402954906225,
2006
+ "learning_rate": 5.244767942169659e-12,
2007
+ "loss": 0.0124,
2008
+ "mean_token_accuracy": 0.9967285883426666,
2009
+ "num_tokens": 196525004.0,
2010
+ "step": 10000
2011
+ }
2012
+ ],
2013
+ "logging_steps": 50,
2014
+ "max_steps": 10000,
2015
+ "num_input_tokens_seen": 0,
2016
+ "num_train_epochs": 2,
2017
+ "save_steps": 500,
2018
+ "stateful_callbacks": {
2019
+ "TrainerControl": {
2020
+ "args": {
2021
+ "should_epoch_stop": false,
2022
+ "should_evaluate": false,
2023
+ "should_log": false,
2024
+ "should_save": true,
2025
+ "should_training_stop": true
2026
+ },
2027
+ "attributes": {}
2028
+ }
2029
+ },
2030
+ "total_flos": 3.4130592242031657e+18,
2031
+ "train_batch_size": 1,
2032
+ "trial_name": null,
2033
+ "trial_params": null
2034
+ }
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-10000/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93675d6a099c082425c75ef2b9837f662a32949345347ffc46f63606e8f6dddf
3
+ size 7697
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5627d4aa6f37c4dbccd19675716f81504b815f6f1aa3c5ea042a80a58ef72a27
3
+ size 239536776
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/global_step2000/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:6ae2427f5161461017a9e3f65807740f0583f811fe38fd11c5ea15f9cc2985d7
3
+ size 718437253
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/global_step2000/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:1d18e0d01f8a0825b3695abff0b2f74823ed05640811a91c187ceae41102ed03
3
+ size 718437381
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6fce36892457d4c48ad237d82a3481686a106394a3a9a0ea8a7e8784adba299
3
+ size 14917
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a055f0ced376dbb73ecae39baf6c9ebc78b9c5abddedcd98efed8e402d65562c
3
+ size 14917
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:372323c4345ff0cd1145db87ce6783234e2ee45d1f457e6eb94223f8a1fbd6d5
3
+ size 1465
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
3
+ size 11421896
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-2000/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93675d6a099c082425c75ef2b9837f662a32949345347ffc46f63606e8f6dddf
3
+ size 7697
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ec8a30ff32eb1ab4e018489e2129df51e7bb2d78a75d01d667df60e3fe14d18
3
+ size 239536776
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/global_step3000/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:5bd9fa7eb9960ff86b17a6ec342949e6d800ac684bfad8127420cdc1f0d78ce2
3
+ size 718437253
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/global_step3000/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:3085aa6daa660f716d7996191634a47f018c894f42de654be8b4c713bfeee9ec
3
+ size 718437381
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/global_step3000/mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fd7108265090b39367b75dfbd5a9ad6e31b8cdd92bf8050514591dd1027a7e6
3
+ size 862187045
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05bbff64e7d847dc9771c23ea4e23b4b61d8a7bba84e1f30598db3b88039df04
3
+ size 14917
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fafb9ce24e4e480e701e85a31fad4c265955daf09208a07f1f348cf3a8df35b5
3
+ size 14917
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92560b558aac682758abd5a980680ff2d43da0fce1ea59dcd14dd49205bd5a69
3
+ size 1465
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
3
+ size 11421896
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-3000/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93675d6a099c082425c75ef2b9837f662a32949345347ffc46f63606e8f6dddf
3
+ size 7697
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/adapter_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen2.5-Coder-3B",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 128,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.0",
27
+ "qalora_group_size": 16,
28
+ "r": 64,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "v_proj",
33
+ "q_proj",
34
+ "gate_proj",
35
+ "down_proj",
36
+ "k_proj",
37
+ "o_proj",
38
+ "up_proj"
39
+ ],
40
+ "target_parameters": null,
41
+ "task_type": "CAUSAL_LM",
42
+ "trainable_token_indices": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false
46
+ }
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/chat_template.jinja ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}
19
+ {%- endif %}
20
+ {%- endif %}
21
+ {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + message.role }}
26
+ {%- if message.content %}
27
+ {{- '\n' + message.content }}
28
+ {%- endif %}
29
+ {%- for tool_call in message.tool_calls %}
30
+ {%- if tool_call.function is defined %}
31
+ {%- set tool_call = tool_call.function %}
32
+ {%- endif %}
33
+ {{- '\n<tool_call>\n{"name": "' }}
34
+ {{- tool_call.name }}
35
+ {{- '", "arguments": ' }}
36
+ {{- tool_call.arguments | tojson }}
37
+ {{- '}\n</tool_call>' }}
38
+ {%- endfor %}
39
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/global_step4000/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:dfd4564e8f42dafeea1dbcdd75c7e8a90f3185ddf6c8a168890d4c1e88059822
3
+ size 718437381
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/global_step4000/mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aca758f5d8443fe65998cf7299dd96a3b933540a12236ab94c39873016632499
3
+ size 862187045
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step4000
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/tokenizer_config.json ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "clean_up_tokenization_spaces": false,
199
+ "eos_token": "<|endoftext|>",
200
+ "errors": "replace",
201
+ "extra_special_tokens": {},
202
+ "model_max_length": 32768,
203
+ "pad_token": "<|endoftext|>",
204
+ "split_special_tokens": false,
205
+ "tokenizer_class": "Qwen2Tokenizer",
206
+ "unk_token": null
207
+ }
qwen2.5-coder-3B_r64_lr2e-4/checkpoint-4000/trainer_state.json ADDED
@@ -0,0 +1,834 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 0.8,
6
+ "eval_steps": 500,
7
+ "global_step": 4000,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 0.13992431640625,
14
+ "epoch": 0.01,
15
+ "grad_norm": 0.07415792346000671,
16
+ "learning_rate": 3.266666666666667e-05,
17
+ "loss": 0.1267,
18
+ "mean_token_accuracy": 0.9717467153072357,
19
+ "num_tokens": 973322.0,
20
+ "step": 50
21
+ },
22
+ {
23
+ "entropy": 0.034481201171875,
24
+ "epoch": 0.02,
25
+ "grad_norm": 0.04046332463622093,
26
+ "learning_rate": 6.6e-05,
27
+ "loss": 0.0304,
28
+ "mean_token_accuracy": 0.9923338234424591,
29
+ "num_tokens": 1965908.0,
30
+ "step": 100
31
+ },
32
+ {
33
+ "entropy": 0.026558837890625,
34
+ "epoch": 0.03,
35
+ "grad_norm": 0.05207290127873421,
36
+ "learning_rate": 9.933333333333334e-05,
37
+ "loss": 0.0222,
38
+ "mean_token_accuracy": 0.9942584156990051,
39
+ "num_tokens": 2931943.0,
40
+ "step": 150
41
+ },
42
+ {
43
+ "entropy": 0.0237799072265625,
44
+ "epoch": 0.04,
45
+ "grad_norm": 0.05697847530245781,
46
+ "learning_rate": 0.00013266666666666667,
47
+ "loss": 0.0205,
48
+ "mean_token_accuracy": 0.9945518994331359,
49
+ "num_tokens": 3906979.0,
50
+ "step": 200
51
+ },
52
+ {
53
+ "entropy": 0.021153564453125,
54
+ "epoch": 0.05,
55
+ "grad_norm": 0.018519293516874313,
56
+ "learning_rate": 0.000166,
57
+ "loss": 0.0181,
58
+ "mean_token_accuracy": 0.9951600968837738,
59
+ "num_tokens": 4891791.0,
60
+ "step": 250
61
+ },
62
+ {
63
+ "entropy": 0.0194329833984375,
64
+ "epoch": 0.06,
65
+ "grad_norm": 0.04633281007409096,
66
+ "learning_rate": 0.00019933333333333334,
67
+ "loss": 0.0173,
68
+ "mean_token_accuracy": 0.9954203897714615,
69
+ "num_tokens": 5923811.0,
70
+ "step": 300
71
+ },
72
+ {
73
+ "entropy": 0.0206915283203125,
74
+ "epoch": 0.07,
75
+ "grad_norm": 0.028644593432545662,
76
+ "learning_rate": 0.00019998740757634997,
77
+ "loss": 0.0178,
78
+ "mean_token_accuracy": 0.9951675140857696,
79
+ "num_tokens": 6923169.0,
80
+ "step": 350
81
+ },
82
+ {
83
+ "entropy": 0.0210107421875,
84
+ "epoch": 0.08,
85
+ "grad_norm": 0.03093401901423931,
86
+ "learning_rate": 0.00019994860043273915,
87
+ "loss": 0.0169,
88
+ "mean_token_accuracy": 0.9953666085004806,
89
+ "num_tokens": 7901360.0,
90
+ "step": 400
91
+ },
92
+ {
93
+ "entropy": 0.0185345458984375,
94
+ "epoch": 0.09,
95
+ "grad_norm": 0.0355745367705822,
96
+ "learning_rate": 0.00019988358350090047,
97
+ "loss": 0.0159,
98
+ "mean_token_accuracy": 0.9957600867748261,
99
+ "num_tokens": 8899074.0,
100
+ "step": 450
101
+ },
102
+ {
103
+ "entropy": 0.0172314453125,
104
+ "epoch": 0.1,
105
+ "grad_norm": 0.01078465860337019,
106
+ "learning_rate": 0.00019979237383039745,
107
+ "loss": 0.0149,
108
+ "mean_token_accuracy": 0.9960266047716141,
109
+ "num_tokens": 9909340.0,
110
+ "step": 500
111
+ },
112
+ {
113
+ "entropy": 0.018392333984375,
114
+ "epoch": 0.11,
115
+ "grad_norm": 0.02546997182071209,
116
+ "learning_rate": 0.00019967499533938543,
117
+ "loss": 0.0154,
118
+ "mean_token_accuracy": 0.9959233921766281,
119
+ "num_tokens": 10894801.0,
120
+ "step": 550
121
+ },
122
+ {
123
+ "entropy": 0.020382080078125,
124
+ "epoch": 0.12,
125
+ "grad_norm": 0.014133265241980553,
126
+ "learning_rate": 0.00019953147880833933,
127
+ "loss": 0.0155,
128
+ "mean_token_accuracy": 0.9958612543344497,
129
+ "num_tokens": 11862148.0,
130
+ "step": 600
131
+ },
132
+ {
133
+ "entropy": 0.0170843505859375,
134
+ "epoch": 0.13,
135
+ "grad_norm": 0.013547766953706741,
136
+ "learning_rate": 0.00019936186187198213,
137
+ "loss": 0.0149,
138
+ "mean_token_accuracy": 0.9959749585390091,
139
+ "num_tokens": 12851463.0,
140
+ "step": 650
141
+ },
142
+ {
143
+ "entropy": 0.018056640625,
144
+ "epoch": 0.14,
145
+ "grad_norm": 0.013980485498905182,
146
+ "learning_rate": 0.00019916618900941567,
147
+ "loss": 0.0146,
148
+ "mean_token_accuracy": 0.9961372888088227,
149
+ "num_tokens": 13849228.0,
150
+ "step": 700
151
+ },
152
+ {
153
+ "entropy": 0.01843017578125,
154
+ "epoch": 0.15,
155
+ "grad_norm": 0.019236328080296516,
156
+ "learning_rate": 0.00019894451153245693,
157
+ "loss": 0.0155,
158
+ "mean_token_accuracy": 0.995870366692543,
159
+ "num_tokens": 14812166.0,
160
+ "step": 750
161
+ },
162
+ {
163
+ "entropy": 0.01776611328125,
164
+ "epoch": 0.16,
165
+ "grad_norm": 0.01584303192794323,
166
+ "learning_rate": 0.00019869688757218233,
167
+ "loss": 0.0148,
168
+ "mean_token_accuracy": 0.9960641515254974,
169
+ "num_tokens": 15789120.0,
170
+ "step": 800
171
+ },
172
+ {
173
+ "entropy": 0.018167724609375,
174
+ "epoch": 0.17,
175
+ "grad_norm": 0.007502980995923281,
176
+ "learning_rate": 0.00019842338206368373,
177
+ "loss": 0.0145,
178
+ "mean_token_accuracy": 0.9961654812097549,
179
+ "num_tokens": 16764645.0,
180
+ "step": 850
181
+ },
182
+ {
183
+ "entropy": 0.0162567138671875,
184
+ "epoch": 0.18,
185
+ "grad_norm": 0.025812745094299316,
186
+ "learning_rate": 0.00019812406672904058,
187
+ "loss": 0.0144,
188
+ "mean_token_accuracy": 0.9961814099550247,
189
+ "num_tokens": 17730003.0,
190
+ "step": 900
191
+ },
192
+ {
193
+ "entropy": 0.0166925048828125,
194
+ "epoch": 0.19,
195
+ "grad_norm": 0.01129944622516632,
196
+ "learning_rate": 0.00019779902005851187,
197
+ "loss": 0.0141,
198
+ "mean_token_accuracy": 0.9962814956903457,
199
+ "num_tokens": 18723861.0,
200
+ "step": 950
201
+ },
202
+ {
203
+ "entropy": 0.016802978515625,
204
+ "epoch": 0.2,
205
+ "grad_norm": 0.010111505165696144,
206
+ "learning_rate": 0.0001974483272899535,
207
+ "loss": 0.0146,
208
+ "mean_token_accuracy": 0.9961066269874572,
209
+ "num_tokens": 19695091.0,
210
+ "step": 1000
211
+ },
212
+ {
213
+ "entropy": 0.0173785400390625,
214
+ "epoch": 0.21,
215
+ "grad_norm": 0.014308207668364048,
216
+ "learning_rate": 0.00019707208038646602,
217
+ "loss": 0.0143,
218
+ "mean_token_accuracy": 0.9962161642313003,
219
+ "num_tokens": 20662255.0,
220
+ "step": 1050
221
+ },
222
+ {
223
+ "entropy": 0.016761474609375,
224
+ "epoch": 0.22,
225
+ "grad_norm": 0.008552557788789272,
226
+ "learning_rate": 0.0001966703780122791,
227
+ "loss": 0.0139,
228
+ "mean_token_accuracy": 0.9962283843755722,
229
+ "num_tokens": 21642092.0,
230
+ "step": 1100
231
+ },
232
+ {
233
+ "entropy": 0.0194580078125,
234
+ "epoch": 0.23,
235
+ "grad_norm": 0.017318639904260635,
236
+ "learning_rate": 0.00019624332550687834,
237
+ "loss": 0.0147,
238
+ "mean_token_accuracy": 0.996121798157692,
239
+ "num_tokens": 22607505.0,
240
+ "step": 1150
241
+ },
242
+ {
243
+ "entropy": 0.0168377685546875,
244
+ "epoch": 0.24,
245
+ "grad_norm": 0.023380566388368607,
246
+ "learning_rate": 0.0001957910348573819,
247
+ "loss": 0.0141,
248
+ "mean_token_accuracy": 0.9962751477956772,
249
+ "num_tokens": 23584579.0,
250
+ "step": 1200
251
+ },
252
+ {
253
+ "entropy": 0.0168145751953125,
254
+ "epoch": 0.25,
255
+ "grad_norm": 0.03495066240429878,
256
+ "learning_rate": 0.00019531362466917386,
257
+ "loss": 0.0143,
258
+ "mean_token_accuracy": 0.9962228804826736,
259
+ "num_tokens": 24580285.0,
260
+ "step": 1250
261
+ },
262
+ {
263
+ "entropy": 0.0200946044921875,
264
+ "epoch": 0.26,
265
+ "grad_norm": 0.056234363466501236,
266
+ "learning_rate": 0.00019481122013480196,
267
+ "loss": 0.0149,
268
+ "mean_token_accuracy": 0.9959270429611206,
269
+ "num_tokens": 25525513.0,
270
+ "step": 1300
271
+ },
272
+ {
273
+ "entropy": 0.226702880859375,
274
+ "epoch": 0.27,
275
+ "grad_norm": 0.5915283560752869,
276
+ "learning_rate": 0.000194283953001148,
277
+ "loss": 0.3575,
278
+ "mean_token_accuracy": 0.9630927595775575,
279
+ "num_tokens": 26523426.0,
280
+ "step": 1350
281
+ },
282
+ {
283
+ "entropy": 0.3616259765625,
284
+ "epoch": 0.28,
285
+ "grad_norm": 0.05585862696170807,
286
+ "learning_rate": 0.00019373196153487962,
287
+ "loss": 0.4834,
288
+ "mean_token_accuracy": 0.922457065274939,
289
+ "num_tokens": 27493091.0,
290
+ "step": 1400
291
+ },
292
+ {
293
+ "entropy": 0.032896728515625,
294
+ "epoch": 0.29,
295
+ "grad_norm": 0.015423770062625408,
296
+ "learning_rate": 0.0001931553904861921,
297
+ "loss": 0.0361,
298
+ "mean_token_accuracy": 0.9919799596071244,
299
+ "num_tokens": 28458553.0,
300
+ "step": 1450
301
+ },
302
+ {
303
+ "entropy": 0.017860107421875,
304
+ "epoch": 0.3,
305
+ "grad_norm": 0.008802004158496857,
306
+ "learning_rate": 0.0001925543910508503,
307
+ "loss": 0.0147,
308
+ "mean_token_accuracy": 0.9960576659440994,
309
+ "num_tokens": 29430497.0,
310
+ "step": 1500
311
+ },
312
+ {
313
+ "entropy": 0.016207275390625,
314
+ "epoch": 0.31,
315
+ "grad_norm": 0.01611204445362091,
316
+ "learning_rate": 0.00019192912083054002,
317
+ "loss": 0.014,
318
+ "mean_token_accuracy": 0.996290831565857,
319
+ "num_tokens": 30414152.0,
320
+ "step": 1550
321
+ },
322
+ {
323
+ "entropy": 0.016380615234375,
324
+ "epoch": 0.32,
325
+ "grad_norm": 0.026660647243261337,
326
+ "learning_rate": 0.00019127974379153982,
327
+ "loss": 0.0135,
328
+ "mean_token_accuracy": 0.9963940876722336,
329
+ "num_tokens": 31396417.0,
330
+ "step": 1600
331
+ },
332
+ {
333
+ "entropy": 0.0166357421875,
334
+ "epoch": 0.33,
335
+ "grad_norm": 0.007346960715949535,
336
+ "learning_rate": 0.00019060643022172365,
337
+ "loss": 0.0136,
338
+ "mean_token_accuracy": 0.9963644134998322,
339
+ "num_tokens": 32364443.0,
340
+ "step": 1650
341
+ },
342
+ {
343
+ "entropy": 0.0140234375,
344
+ "epoch": 0.34,
345
+ "grad_norm": 0.007081303279846907,
346
+ "learning_rate": 0.00018990935668590581,
347
+ "loss": 0.0129,
348
+ "mean_token_accuracy": 0.9965172445774079,
349
+ "num_tokens": 33374821.0,
350
+ "step": 1700
351
+ },
352
+ {
353
+ "entropy": 0.0175,
354
+ "epoch": 0.35,
355
+ "grad_norm": 0.01651921682059765,
356
+ "learning_rate": 0.00018918870597953996,
357
+ "loss": 0.0135,
358
+ "mean_token_accuracy": 0.9964259153604508,
359
+ "num_tokens": 34338570.0,
360
+ "step": 1750
361
+ },
362
+ {
363
+ "entropy": 0.0165570068359375,
364
+ "epoch": 0.36,
365
+ "grad_norm": 0.06110697612166405,
366
+ "learning_rate": 0.00018844466708078396,
367
+ "loss": 0.021,
368
+ "mean_token_accuracy": 0.995423709154129,
369
+ "num_tokens": 35333253.0,
370
+ "step": 1800
371
+ },
372
+ {
373
+ "entropy": 0.018714599609375,
374
+ "epoch": 0.37,
375
+ "grad_norm": 0.014176812954246998,
376
+ "learning_rate": 0.00018767743510094396,
377
+ "loss": 0.014,
378
+ "mean_token_accuracy": 0.99625692486763,
379
+ "num_tokens": 36316255.0,
380
+ "step": 1850
381
+ },
382
+ {
383
+ "entropy": 0.0153717041015625,
384
+ "epoch": 0.38,
385
+ "grad_norm": 0.03263692930340767,
386
+ "learning_rate": 0.00018688721123330952,
387
+ "loss": 0.0134,
388
+ "mean_token_accuracy": 0.9964441621303558,
389
+ "num_tokens": 37303247.0,
390
+ "step": 1900
391
+ },
392
+ {
393
+ "entropy": 0.0149493408203125,
394
+ "epoch": 0.39,
395
+ "grad_norm": 0.006613259203732014,
396
+ "learning_rate": 0.0001860742027003944,
397
+ "loss": 0.0133,
398
+ "mean_token_accuracy": 0.9965205788612366,
399
+ "num_tokens": 38287463.0,
400
+ "step": 1950
401
+ },
402
+ {
403
+ "entropy": 0.0151849365234375,
404
+ "epoch": 0.4,
405
+ "grad_norm": 0.013149562291800976,
406
+ "learning_rate": 0.00018523862269959583,
407
+ "loss": 0.0132,
408
+ "mean_token_accuracy": 0.9965434390306472,
409
+ "num_tokens": 39273383.0,
410
+ "step": 2000
411
+ },
412
+ {
413
+ "entropy": 0.0161175537109375,
414
+ "epoch": 0.41,
415
+ "grad_norm": 0.014459224417805672,
416
+ "learning_rate": 0.00018438069034728739,
417
+ "loss": 0.013,
418
+ "mean_token_accuracy": 0.9965963387489318,
419
+ "num_tokens": 40251665.0,
420
+ "step": 2050
421
+ },
422
+ {
423
+ "entropy": 0.0144482421875,
424
+ "epoch": 0.42,
425
+ "grad_norm": 0.006077172700315714,
426
+ "learning_rate": 0.0001835006306213594,
427
+ "loss": 0.0128,
428
+ "mean_token_accuracy": 0.9965920424461365,
429
+ "num_tokens": 41243731.0,
430
+ "step": 2100
431
+ },
432
+ {
433
+ "entropy": 0.0148297119140625,
434
+ "epoch": 0.43,
435
+ "grad_norm": 0.0054248967207968235,
436
+ "learning_rate": 0.0001825986743022225,
437
+ "loss": 0.0128,
438
+ "mean_token_accuracy": 0.9965362721681594,
439
+ "num_tokens": 42247346.0,
440
+ "step": 2150
441
+ },
442
+ {
443
+ "entropy": 0.0157464599609375,
444
+ "epoch": 0.44,
445
+ "grad_norm": 0.007285145577043295,
446
+ "learning_rate": 0.0001816750579122893,
447
+ "loss": 0.0132,
448
+ "mean_token_accuracy": 0.9964449483156205,
449
+ "num_tokens": 43220001.0,
450
+ "step": 2200
451
+ },
452
+ {
453
+ "entropy": 0.0147015380859375,
454
+ "epoch": 0.45,
455
+ "grad_norm": 0.01308107003569603,
456
+ "learning_rate": 0.0001807300236539506,
457
+ "loss": 0.0131,
458
+ "mean_token_accuracy": 0.9965626937150955,
459
+ "num_tokens": 44205197.0,
460
+ "step": 2250
461
+ },
462
+ {
463
+ "entropy": 0.0149774169921875,
464
+ "epoch": 0.46,
465
+ "grad_norm": 0.008238991722464561,
466
+ "learning_rate": 0.00017976381934606202,
467
+ "loss": 0.013,
468
+ "mean_token_accuracy": 0.9965445536375046,
469
+ "num_tokens": 45185181.0,
470
+ "step": 2300
471
+ },
472
+ {
473
+ "entropy": 0.0153643798828125,
474
+ "epoch": 0.47,
475
+ "grad_norm": 0.006222889292985201,
476
+ "learning_rate": 0.00017877669835895778,
477
+ "loss": 0.0129,
478
+ "mean_token_accuracy": 0.9965794909000397,
479
+ "num_tokens": 46170545.0,
480
+ "step": 2350
481
+ },
482
+ {
483
+ "entropy": 0.0146527099609375,
484
+ "epoch": 0.48,
485
+ "grad_norm": 0.0058044977486133575,
486
+ "learning_rate": 0.0001777689195480087,
487
+ "loss": 0.0131,
488
+ "mean_token_accuracy": 0.9965272891521454,
489
+ "num_tokens": 47152165.0,
490
+ "step": 2400
491
+ },
492
+ {
493
+ "entropy": 0.0149383544921875,
494
+ "epoch": 0.49,
495
+ "grad_norm": 0.0066731953993439674,
496
+ "learning_rate": 0.00017674074718574185,
497
+ "loss": 0.0131,
498
+ "mean_token_accuracy": 0.9965432262420655,
499
+ "num_tokens": 48122023.0,
500
+ "step": 2450
501
+ },
502
+ {
503
+ "entropy": 0.0154571533203125,
504
+ "epoch": 0.5,
505
+ "grad_norm": 0.00943196564912796,
506
+ "learning_rate": 0.0001756924508925397,
507
+ "loss": 0.013,
508
+ "mean_token_accuracy": 0.9965236240625381,
509
+ "num_tokens": 49094218.0,
510
+ "step": 2500
511
+ },
512
+ {
513
+ "entropy": 0.014625244140625,
514
+ "epoch": 0.51,
515
+ "grad_norm": 0.01604033261537552,
516
+ "learning_rate": 0.00017462430556593685,
517
+ "loss": 0.0128,
518
+ "mean_token_accuracy": 0.9965505039691925,
519
+ "num_tokens": 50090248.0,
520
+ "step": 2550
521
+ },
522
+ {
523
+ "entropy": 0.0170452880859375,
524
+ "epoch": 0.52,
525
+ "grad_norm": 0.006134673021733761,
526
+ "learning_rate": 0.0001735365913085329,
527
+ "loss": 0.0133,
528
+ "mean_token_accuracy": 0.9964285892248154,
529
+ "num_tokens": 51055771.0,
530
+ "step": 2600
531
+ },
532
+ {
533
+ "entropy": 0.0144781494140625,
534
+ "epoch": 0.53,
535
+ "grad_norm": 0.006857218220829964,
536
+ "learning_rate": 0.0001724295933545404,
537
+ "loss": 0.013,
538
+ "mean_token_accuracy": 0.9966075003147126,
539
+ "num_tokens": 52051029.0,
540
+ "step": 2650
541
+ },
542
+ {
543
+ "entropy": 0.0141400146484375,
544
+ "epoch": 0.54,
545
+ "grad_norm": 0.00432049622759223,
546
+ "learning_rate": 0.0001713036019949871,
547
+ "loss": 0.0125,
548
+ "mean_token_accuracy": 0.9966482019424439,
549
+ "num_tokens": 53064519.0,
550
+ "step": 2700
551
+ },
552
+ {
553
+ "entropy": 0.0157073974609375,
554
+ "epoch": 0.55,
555
+ "grad_norm": 0.011981231160461903,
556
+ "learning_rate": 0.0001701589125015922,
557
+ "loss": 0.013,
558
+ "mean_token_accuracy": 0.9965185868740082,
559
+ "num_tokens": 54043844.0,
560
+ "step": 2750
561
+ },
562
+ {
563
+ "entropy": 0.015498046875,
564
+ "epoch": 0.56,
565
+ "grad_norm": 0.004674599040299654,
566
+ "learning_rate": 0.00016899582504933638,
567
+ "loss": 0.0129,
568
+ "mean_token_accuracy": 0.9965594351291657,
569
+ "num_tokens": 55026422.0,
570
+ "step": 2800
571
+ },
572
+ {
573
+ "entropy": 0.01620849609375,
574
+ "epoch": 0.57,
575
+ "grad_norm": 0.007724366616457701,
576
+ "learning_rate": 0.00016781464463774628,
577
+ "loss": 0.0128,
578
+ "mean_token_accuracy": 0.9965313857793808,
579
+ "num_tokens": 56009908.0,
580
+ "step": 2850
581
+ },
582
+ {
583
+ "entropy": 0.0163592529296875,
584
+ "epoch": 0.58,
585
+ "grad_norm": 0.01893342286348343,
586
+ "learning_rate": 0.00016661568101091344,
587
+ "loss": 0.0134,
588
+ "mean_token_accuracy": 0.9964901131391525,
589
+ "num_tokens": 56948904.0,
590
+ "step": 2900
591
+ },
592
+ {
593
+ "entropy": 0.0152777099609375,
594
+ "epoch": 0.59,
595
+ "grad_norm": 0.004910571966320276,
596
+ "learning_rate": 0.00016539924857626948,
597
+ "loss": 0.013,
598
+ "mean_token_accuracy": 0.9965794110298156,
599
+ "num_tokens": 57925745.0,
600
+ "step": 2950
601
+ },
602
+ {
603
+ "entropy": 0.01528564453125,
604
+ "epoch": 0.6,
605
+ "grad_norm": 0.005053428467363119,
606
+ "learning_rate": 0.00016416566632213803,
607
+ "loss": 0.0129,
608
+ "mean_token_accuracy": 0.9966023367643356,
609
+ "num_tokens": 58902798.0,
610
+ "step": 3000
611
+ },
612
+ {
613
+ "entropy": 0.015601806640625,
614
+ "epoch": 0.61,
615
+ "grad_norm": 0.005704319104552269,
616
+ "learning_rate": 0.00016291525773408572,
617
+ "loss": 0.0131,
618
+ "mean_token_accuracy": 0.9965651720762253,
619
+ "num_tokens": 59860890.0,
620
+ "step": 3050
621
+ },
622
+ {
623
+ "entropy": 0.0148992919921875,
624
+ "epoch": 0.62,
625
+ "grad_norm": 0.007756650447845459,
626
+ "learning_rate": 0.00016164835071009366,
627
+ "loss": 0.013,
628
+ "mean_token_accuracy": 0.9965194767713547,
629
+ "num_tokens": 60845473.0,
630
+ "step": 3100
631
+ },
632
+ {
633
+ "entropy": 0.016544189453125,
634
+ "epoch": 0.63,
635
+ "grad_norm": 0.018275247886776924,
636
+ "learning_rate": 0.0001603652774745717,
637
+ "loss": 0.0133,
638
+ "mean_token_accuracy": 0.9964882332086563,
639
+ "num_tokens": 61784192.0,
640
+ "step": 3150
641
+ },
642
+ {
643
+ "entropy": 0.0161798095703125,
644
+ "epoch": 0.64,
645
+ "grad_norm": 0.006753214169293642,
646
+ "learning_rate": 0.00015906637449123864,
647
+ "loss": 0.0129,
648
+ "mean_token_accuracy": 0.9964922845363617,
649
+ "num_tokens": 62766207.0,
650
+ "step": 3200
651
+ },
652
+ {
653
+ "entropy": 0.015382080078125,
654
+ "epoch": 0.65,
655
+ "grad_norm": 0.00608098367229104,
656
+ "learning_rate": 0.00015775198237489018,
657
+ "loss": 0.0127,
658
+ "mean_token_accuracy": 0.9966323018074036,
659
+ "num_tokens": 63762073.0,
660
+ "step": 3250
661
+ },
662
+ {
663
+ "entropy": 0.0181597900390625,
664
+ "epoch": 0.66,
665
+ "grad_norm": 0.01049011666327715,
666
+ "learning_rate": 0.00015642244580207877,
667
+ "loss": 0.0135,
668
+ "mean_token_accuracy": 0.9963980942964554,
669
+ "num_tokens": 64710323.0,
670
+ "step": 3300
671
+ },
672
+ {
673
+ "entropy": 0.015638427734375,
674
+ "epoch": 0.67,
675
+ "grad_norm": 0.004341293126344681,
676
+ "learning_rate": 0.00015507811342072806,
677
+ "loss": 0.0127,
678
+ "mean_token_accuracy": 0.996646745800972,
679
+ "num_tokens": 65703355.0,
680
+ "step": 3350
681
+ },
682
+ {
683
+ "entropy": 0.01593994140625,
684
+ "epoch": 0.68,
685
+ "grad_norm": 0.007901697419583797,
686
+ "learning_rate": 0.00015371933775870617,
687
+ "loss": 0.0128,
688
+ "mean_token_accuracy": 0.9965831112861633,
689
+ "num_tokens": 66693270.0,
690
+ "step": 3400
691
+ },
692
+ {
693
+ "entropy": 0.01538330078125,
694
+ "epoch": 0.69,
695
+ "grad_norm": 0.007365482859313488,
696
+ "learning_rate": 0.00015234647513138105,
697
+ "loss": 0.013,
698
+ "mean_token_accuracy": 0.9965004408359528,
699
+ "num_tokens": 67662491.0,
700
+ "step": 3450
701
+ },
702
+ {
703
+ "entropy": 0.015172119140625,
704
+ "epoch": 0.7,
705
+ "grad_norm": 0.020998502150177956,
706
+ "learning_rate": 0.00015095988554818336,
707
+ "loss": 0.0127,
708
+ "mean_token_accuracy": 0.9966106575727463,
709
+ "num_tokens": 68643197.0,
710
+ "step": 3500
711
+ },
712
+ {
713
+ "entropy": 0.015364990234375,
714
+ "epoch": 0.71,
715
+ "grad_norm": 0.00521464366465807,
716
+ "learning_rate": 0.00014955993261819988,
717
+ "loss": 0.0126,
718
+ "mean_token_accuracy": 0.996662226319313,
719
+ "num_tokens": 69638359.0,
720
+ "step": 3550
721
+ },
722
+ {
723
+ "entropy": 0.015697021484375,
724
+ "epoch": 0.72,
725
+ "grad_norm": 0.005901532247662544,
726
+ "learning_rate": 0.0001481469834548236,
727
+ "loss": 0.0127,
728
+ "mean_token_accuracy": 0.9966626572608948,
729
+ "num_tokens": 70621331.0,
730
+ "step": 3600
731
+ },
732
+ {
733
+ "entropy": 0.0149017333984375,
734
+ "epoch": 0.73,
735
+ "grad_norm": 0.00644026231020689,
736
+ "learning_rate": 0.00014672140857948437,
737
+ "loss": 0.0127,
738
+ "mean_token_accuracy": 0.9965668493509292,
739
+ "num_tokens": 71609172.0,
740
+ "step": 3650
741
+ },
742
+ {
743
+ "entropy": 0.0162841796875,
744
+ "epoch": 0.74,
745
+ "grad_norm": 0.01100741047412157,
746
+ "learning_rate": 0.0001452835818244862,
747
+ "loss": 0.0128,
748
+ "mean_token_accuracy": 0.9965676218271255,
749
+ "num_tokens": 72589978.0,
750
+ "step": 3700
751
+ },
752
+ {
753
+ "entropy": 0.013609619140625,
754
+ "epoch": 0.75,
755
+ "grad_norm": 0.005025969818234444,
756
+ "learning_rate": 0.00014383388023497636,
757
+ "loss": 0.0125,
758
+ "mean_token_accuracy": 0.9966188007593155,
759
+ "num_tokens": 73606622.0,
760
+ "step": 3750
761
+ },
762
+ {
763
+ "entropy": 0.0144757080078125,
764
+ "epoch": 0.76,
765
+ "grad_norm": 0.0038383277133107185,
766
+ "learning_rate": 0.00014237268397007143,
767
+ "loss": 0.0123,
768
+ "mean_token_accuracy": 0.9966813570261002,
769
+ "num_tokens": 74626982.0,
770
+ "step": 3800
771
+ },
772
+ {
773
+ "entropy": 0.01580078125,
774
+ "epoch": 0.77,
775
+ "grad_norm": 0.007798527367413044,
776
+ "learning_rate": 0.0001409003762031675,
777
+ "loss": 0.0125,
778
+ "mean_token_accuracy": 0.9966514509916305,
779
+ "num_tokens": 75622857.0,
780
+ "step": 3850
781
+ },
782
+ {
783
+ "entropy": 0.0155902099609375,
784
+ "epoch": 0.78,
785
+ "grad_norm": 0.005989857483655214,
786
+ "learning_rate": 0.0001394173430214596,
787
+ "loss": 0.0128,
788
+ "mean_token_accuracy": 0.9966724860668182,
789
+ "num_tokens": 76601614.0,
790
+ "step": 3900
791
+ },
792
+ {
793
+ "entropy": 0.0153021240234375,
794
+ "epoch": 0.79,
795
+ "grad_norm": 0.004942392464727163,
796
+ "learning_rate": 0.00013792397332469667,
797
+ "loss": 0.0127,
798
+ "mean_token_accuracy": 0.9966010391712189,
799
+ "num_tokens": 77598059.0,
800
+ "step": 3950
801
+ },
802
+ {
803
+ "entropy": 0.015704345703125,
804
+ "epoch": 0.8,
805
+ "grad_norm": 0.04649922624230385,
806
+ "learning_rate": 0.0001364206587231997,
807
+ "loss": 0.0133,
808
+ "mean_token_accuracy": 0.9965157604217529,
809
+ "num_tokens": 78570180.0,
810
+ "step": 4000
811
+ }
812
+ ],
813
+ "logging_steps": 50,
814
+ "max_steps": 10000,
815
+ "num_input_tokens_seen": 0,
816
+ "num_train_epochs": 2,
817
+ "save_steps": 500,
818
+ "stateful_callbacks": {
819
+ "TrainerControl": {
820
+ "args": {
821
+ "should_epoch_stop": false,
822
+ "should_evaluate": false,
823
+ "should_log": false,
824
+ "should_save": true,
825
+ "should_training_stop": false
826
+ },
827
+ "attributes": {}
828
+ }
829
+ },
830
+ "total_flos": 1.3645321080343101e+18,
831
+ "train_batch_size": 1,
832
+ "trial_name": null,
833
+ "trial_params": null
834
+ }