juvi21 commited on
Commit
058b354
·
verified ·
1 Parent(s): 0e951d1

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 +5 -0
  2. README.md +202 -0
  3. adapter_config.json +39 -0
  4. adapter_model.safetensors +3 -0
  5. checkpoint-342/README.md +202 -0
  6. checkpoint-342/adapter_config.json +39 -0
  7. checkpoint-342/adapter_model.safetensors +3 -0
  8. checkpoint-342/global_step342/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  9. checkpoint-342/global_step342/zero_pp_rank_0_mp_rank_00_model_states.pt +3 -0
  10. checkpoint-342/latest +1 -0
  11. checkpoint-342/rng_state.pth +3 -0
  12. checkpoint-342/scheduler.pt +3 -0
  13. checkpoint-342/special_tokens_map.json +33 -0
  14. checkpoint-342/tokenizer.json +3 -0
  15. checkpoint-342/tokenizer_config.json +0 -0
  16. checkpoint-342/trainer_state.json +2428 -0
  17. checkpoint-342/training_args.bin +3 -0
  18. checkpoint-342/zero_to_fp32.py +674 -0
  19. checkpoint-456/README.md +202 -0
  20. checkpoint-456/adapter_config.json +39 -0
  21. checkpoint-456/adapter_model.safetensors +3 -0
  22. checkpoint-456/global_step456/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  23. checkpoint-456/global_step456/zero_pp_rank_0_mp_rank_00_model_states.pt +3 -0
  24. checkpoint-456/latest +1 -0
  25. checkpoint-456/rng_state.pth +3 -0
  26. checkpoint-456/scheduler.pt +3 -0
  27. checkpoint-456/special_tokens_map.json +33 -0
  28. checkpoint-456/tokenizer.json +3 -0
  29. checkpoint-456/tokenizer_config.json +0 -0
  30. checkpoint-456/trainer_state.json +3226 -0
  31. checkpoint-456/training_args.bin +3 -0
  32. checkpoint-456/zero_to_fp32.py +674 -0
  33. checkpoint-570/README.md +202 -0
  34. checkpoint-570/adapter_config.json +39 -0
  35. checkpoint-570/adapter_model.safetensors +3 -0
  36. checkpoint-570/global_step570/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  37. checkpoint-570/global_step570/zero_pp_rank_0_mp_rank_00_model_states.pt +3 -0
  38. checkpoint-570/latest +1 -0
  39. checkpoint-570/rng_state.pth +3 -0
  40. checkpoint-570/scheduler.pt +3 -0
  41. checkpoint-570/special_tokens_map.json +33 -0
  42. checkpoint-570/tokenizer.json +3 -0
  43. checkpoint-570/tokenizer_config.json +0 -0
  44. checkpoint-570/trainer_state.json +0 -0
  45. checkpoint-570/training_args.bin +3 -0
  46. checkpoint-570/zero_to_fp32.py +674 -0
  47. checkpoint-684/README.md +202 -0
  48. checkpoint-684/adapter_config.json +39 -0
  49. checkpoint-684/adapter_model.safetensors +3 -0
  50. checkpoint-684/global_step685/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
.gitattributes CHANGED
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ checkpoint-684/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
+ checkpoint-456/tokenizer.json filter=lfs diff=lfs merge=lfs -text
39
+ checkpoint-570/tokenizer.json filter=lfs diff=lfs merge=lfs -text
40
+ checkpoint-342/tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: anthracite-core/Mistral-Small-3.2-24B-Instruct-2506-ChatML
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Gryphe/Codex-24B-Small-3.2",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": null,
10
+ "inference_mode": false,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.5,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 128,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "v_proj",
28
+ "k_proj",
29
+ "down_proj",
30
+ "up_proj",
31
+ "q_proj",
32
+ "o_proj",
33
+ "gate_proj"
34
+ ],
35
+ "task_type": "CAUSAL_LM",
36
+ "trainable_token_indices": null,
37
+ "use_dora": false,
38
+ "use_rslora": true
39
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:866acc0f7d32e7ea89fe355667d349175c12476b0e2777f78da44966deec3355
3
+ size 63984
checkpoint-342/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Gryphe/Codex-24B-Small-3.2
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.15.2
checkpoint-342/adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Gryphe/Codex-24B-Small-3.2",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": null,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.5,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 128,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "v_proj",
28
+ "k_proj",
29
+ "down_proj",
30
+ "up_proj",
31
+ "q_proj",
32
+ "o_proj",
33
+ "gate_proj"
34
+ ],
35
+ "task_type": "CAUSAL_LM",
36
+ "trainable_token_indices": null,
37
+ "use_dora": false,
38
+ "use_rslora": true
39
+ }
checkpoint-342/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b8b5b06469223b9ce309464eda3e6f334c8786eab0f073840e6923f088035e5
3
+ size 1478569432
checkpoint-342/global_step342/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:fbeca2d9f3ca2790f204aac7d55053d123ae322a58723a081066910bcc15df6f
3
+ size 4459517761
checkpoint-342/global_step342/zero_pp_rank_0_mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acec317f64766e754bb4b902816242338b3a77dbac7303be4d52929ee54aa8fa
3
+ size 557481
checkpoint-342/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step342
checkpoint-342/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8d53eaec910b7aa0fc2c4ce89ce1a23cae0d3aae8a6d137840114446995192f
3
+ size 14709
checkpoint-342/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f24f9ce72f8db3b91aa0e7cf6e4dbee35ae7716b75f8003ebc0864c49fee3597
3
+ size 1401
checkpoint-342/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>"
4
+ ],
5
+ "bos_token": {
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "eos_token": {
13
+ "content": "<|im_end|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false
18
+ },
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
checkpoint-342/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1e5daf1e619597fd56ff036925ea189916417c665d5bdd61b80199cf8d4e6d2
3
+ size 17078029
checkpoint-342/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-342/trainer_state.json ADDED
@@ -0,0 +1,2428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.505124450951684,
6
+ "eval_steps": 500,
7
+ "global_step": 342,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.004392386530014641,
14
+ "grad_norm": 2.023870796411983,
15
+ "learning_rate": 0.0,
16
+ "loss": 1.8021,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.008784773060029283,
21
+ "grad_norm": 2.0723948799697984,
22
+ "learning_rate": 2.0000000000000002e-07,
23
+ "loss": 1.8796,
24
+ "step": 2
25
+ },
26
+ {
27
+ "epoch": 0.013177159590043924,
28
+ "grad_norm": 2.0322569672979474,
29
+ "learning_rate": 4.0000000000000003e-07,
30
+ "loss": 1.855,
31
+ "step": 3
32
+ },
33
+ {
34
+ "epoch": 0.017569546120058566,
35
+ "grad_norm": 2.111472782868084,
36
+ "learning_rate": 6.000000000000001e-07,
37
+ "loss": 1.8545,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 0.021961932650073207,
42
+ "grad_norm": 2.096607607233168,
43
+ "learning_rate": 8.000000000000001e-07,
44
+ "loss": 1.807,
45
+ "step": 5
46
+ },
47
+ {
48
+ "epoch": 0.02635431918008785,
49
+ "grad_norm": 2.0771855831079518,
50
+ "learning_rate": 1.0000000000000002e-06,
51
+ "loss": 1.8208,
52
+ "step": 6
53
+ },
54
+ {
55
+ "epoch": 0.03074670571010249,
56
+ "grad_norm": 2.0341840619969567,
57
+ "learning_rate": 1.2000000000000002e-06,
58
+ "loss": 1.8754,
59
+ "step": 7
60
+ },
61
+ {
62
+ "epoch": 0.03513909224011713,
63
+ "grad_norm": 2.0564329237094356,
64
+ "learning_rate": 1.4000000000000001e-06,
65
+ "loss": 1.8882,
66
+ "step": 8
67
+ },
68
+ {
69
+ "epoch": 0.03953147877013177,
70
+ "grad_norm": 1.9900074702634307,
71
+ "learning_rate": 1.6000000000000001e-06,
72
+ "loss": 1.8733,
73
+ "step": 9
74
+ },
75
+ {
76
+ "epoch": 0.043923865300146414,
77
+ "grad_norm": 1.895599415585885,
78
+ "learning_rate": 1.8000000000000001e-06,
79
+ "loss": 1.8474,
80
+ "step": 10
81
+ },
82
+ {
83
+ "epoch": 0.048316251830161056,
84
+ "grad_norm": 1.9304209419460994,
85
+ "learning_rate": 2.0000000000000003e-06,
86
+ "loss": 1.884,
87
+ "step": 11
88
+ },
89
+ {
90
+ "epoch": 0.0527086383601757,
91
+ "grad_norm": 1.6511439041472846,
92
+ "learning_rate": 2.2e-06,
93
+ "loss": 1.8452,
94
+ "step": 12
95
+ },
96
+ {
97
+ "epoch": 0.05710102489019034,
98
+ "grad_norm": 1.6727753891125912,
99
+ "learning_rate": 2.4000000000000003e-06,
100
+ "loss": 1.8632,
101
+ "step": 13
102
+ },
103
+ {
104
+ "epoch": 0.06149341142020498,
105
+ "grad_norm": 1.6571693399048197,
106
+ "learning_rate": 2.6e-06,
107
+ "loss": 1.8419,
108
+ "step": 14
109
+ },
110
+ {
111
+ "epoch": 0.06588579795021962,
112
+ "grad_norm": 1.5588712723347087,
113
+ "learning_rate": 2.8000000000000003e-06,
114
+ "loss": 1.8163,
115
+ "step": 15
116
+ },
117
+ {
118
+ "epoch": 0.07027818448023426,
119
+ "grad_norm": 1.57706405792705,
120
+ "learning_rate": 3e-06,
121
+ "loss": 1.7808,
122
+ "step": 16
123
+ },
124
+ {
125
+ "epoch": 0.0746705710102489,
126
+ "grad_norm": 1.4841447475095337,
127
+ "learning_rate": 3.2000000000000003e-06,
128
+ "loss": 1.7854,
129
+ "step": 17
130
+ },
131
+ {
132
+ "epoch": 0.07906295754026355,
133
+ "grad_norm": 1.2785291394155553,
134
+ "learning_rate": 3.4000000000000005e-06,
135
+ "loss": 1.7531,
136
+ "step": 18
137
+ },
138
+ {
139
+ "epoch": 0.08345534407027819,
140
+ "grad_norm": 1.1759630521885338,
141
+ "learning_rate": 3.6000000000000003e-06,
142
+ "loss": 1.8185,
143
+ "step": 19
144
+ },
145
+ {
146
+ "epoch": 0.08784773060029283,
147
+ "grad_norm": 1.1188613513306425,
148
+ "learning_rate": 3.8000000000000005e-06,
149
+ "loss": 1.849,
150
+ "step": 20
151
+ },
152
+ {
153
+ "epoch": 0.09224011713030747,
154
+ "grad_norm": 1.008741263333265,
155
+ "learning_rate": 4.000000000000001e-06,
156
+ "loss": 1.775,
157
+ "step": 21
158
+ },
159
+ {
160
+ "epoch": 0.09663250366032211,
161
+ "grad_norm": 0.9240991279618896,
162
+ "learning_rate": 4.2000000000000004e-06,
163
+ "loss": 1.8253,
164
+ "step": 22
165
+ },
166
+ {
167
+ "epoch": 0.10102489019033675,
168
+ "grad_norm": 0.9015845652170666,
169
+ "learning_rate": 4.4e-06,
170
+ "loss": 1.7967,
171
+ "step": 23
172
+ },
173
+ {
174
+ "epoch": 0.1054172767203514,
175
+ "grad_norm": 0.8007281301128234,
176
+ "learning_rate": 4.600000000000001e-06,
177
+ "loss": 1.7958,
178
+ "step": 24
179
+ },
180
+ {
181
+ "epoch": 0.10980966325036604,
182
+ "grad_norm": 0.7263390923205475,
183
+ "learning_rate": 4.800000000000001e-06,
184
+ "loss": 1.7744,
185
+ "step": 25
186
+ },
187
+ {
188
+ "epoch": 0.11420204978038068,
189
+ "grad_norm": 0.6527771074756341,
190
+ "learning_rate": 5e-06,
191
+ "loss": 1.7502,
192
+ "step": 26
193
+ },
194
+ {
195
+ "epoch": 0.11859443631039532,
196
+ "grad_norm": 0.5943189060332841,
197
+ "learning_rate": 5.2e-06,
198
+ "loss": 1.7378,
199
+ "step": 27
200
+ },
201
+ {
202
+ "epoch": 0.12298682284040996,
203
+ "grad_norm": 0.5426800655727773,
204
+ "learning_rate": 5.400000000000001e-06,
205
+ "loss": 1.7372,
206
+ "step": 28
207
+ },
208
+ {
209
+ "epoch": 0.1273792093704246,
210
+ "grad_norm": 0.46887045607953654,
211
+ "learning_rate": 5.600000000000001e-06,
212
+ "loss": 1.7141,
213
+ "step": 29
214
+ },
215
+ {
216
+ "epoch": 0.13177159590043924,
217
+ "grad_norm": 0.4408809706079413,
218
+ "learning_rate": 5.8e-06,
219
+ "loss": 1.6977,
220
+ "step": 30
221
+ },
222
+ {
223
+ "epoch": 0.13616398243045388,
224
+ "grad_norm": 0.4867065604810947,
225
+ "learning_rate": 6e-06,
226
+ "loss": 1.7379,
227
+ "step": 31
228
+ },
229
+ {
230
+ "epoch": 0.14055636896046853,
231
+ "grad_norm": 0.40882779662256746,
232
+ "learning_rate": 6.200000000000001e-06,
233
+ "loss": 1.8064,
234
+ "step": 32
235
+ },
236
+ {
237
+ "epoch": 0.14494875549048317,
238
+ "grad_norm": 0.4363561706655908,
239
+ "learning_rate": 6.4000000000000006e-06,
240
+ "loss": 1.6835,
241
+ "step": 33
242
+ },
243
+ {
244
+ "epoch": 0.1493411420204978,
245
+ "grad_norm": 0.4443411222267533,
246
+ "learning_rate": 6.600000000000001e-06,
247
+ "loss": 1.7464,
248
+ "step": 34
249
+ },
250
+ {
251
+ "epoch": 0.15373352855051245,
252
+ "grad_norm": 0.4519702758206936,
253
+ "learning_rate": 6.800000000000001e-06,
254
+ "loss": 1.6891,
255
+ "step": 35
256
+ },
257
+ {
258
+ "epoch": 0.1581259150805271,
259
+ "grad_norm": 0.4174999907173025,
260
+ "learning_rate": 7e-06,
261
+ "loss": 1.7262,
262
+ "step": 36
263
+ },
264
+ {
265
+ "epoch": 0.16251830161054173,
266
+ "grad_norm": 0.46742969885702906,
267
+ "learning_rate": 7.2000000000000005e-06,
268
+ "loss": 1.7608,
269
+ "step": 37
270
+ },
271
+ {
272
+ "epoch": 0.16691068814055637,
273
+ "grad_norm": 0.4155692294314683,
274
+ "learning_rate": 7.4e-06,
275
+ "loss": 1.7211,
276
+ "step": 38
277
+ },
278
+ {
279
+ "epoch": 0.17130307467057102,
280
+ "grad_norm": 0.4123169421407387,
281
+ "learning_rate": 7.600000000000001e-06,
282
+ "loss": 1.6956,
283
+ "step": 39
284
+ },
285
+ {
286
+ "epoch": 0.17569546120058566,
287
+ "grad_norm": 0.3887606381731466,
288
+ "learning_rate": 7.800000000000002e-06,
289
+ "loss": 1.7391,
290
+ "step": 40
291
+ },
292
+ {
293
+ "epoch": 0.1800878477306003,
294
+ "grad_norm": 0.37535703391318914,
295
+ "learning_rate": 8.000000000000001e-06,
296
+ "loss": 1.751,
297
+ "step": 41
298
+ },
299
+ {
300
+ "epoch": 0.18448023426061494,
301
+ "grad_norm": 0.48621902751310403,
302
+ "learning_rate": 8.2e-06,
303
+ "loss": 1.7091,
304
+ "step": 42
305
+ },
306
+ {
307
+ "epoch": 0.18887262079062958,
308
+ "grad_norm": 0.39145172998871297,
309
+ "learning_rate": 8.400000000000001e-06,
310
+ "loss": 1.7764,
311
+ "step": 43
312
+ },
313
+ {
314
+ "epoch": 0.19326500732064422,
315
+ "grad_norm": 0.3735488902443606,
316
+ "learning_rate": 8.6e-06,
317
+ "loss": 1.7058,
318
+ "step": 44
319
+ },
320
+ {
321
+ "epoch": 0.19765739385065886,
322
+ "grad_norm": 0.33988576479414434,
323
+ "learning_rate": 8.8e-06,
324
+ "loss": 1.7305,
325
+ "step": 45
326
+ },
327
+ {
328
+ "epoch": 0.2020497803806735,
329
+ "grad_norm": 0.9733163465798257,
330
+ "learning_rate": 9e-06,
331
+ "loss": 1.7567,
332
+ "step": 46
333
+ },
334
+ {
335
+ "epoch": 0.20644216691068815,
336
+ "grad_norm": 0.3344321176956884,
337
+ "learning_rate": 9.200000000000002e-06,
338
+ "loss": 1.7277,
339
+ "step": 47
340
+ },
341
+ {
342
+ "epoch": 0.2108345534407028,
343
+ "grad_norm": 0.3647805237752918,
344
+ "learning_rate": 9.4e-06,
345
+ "loss": 1.7197,
346
+ "step": 48
347
+ },
348
+ {
349
+ "epoch": 0.21522693997071743,
350
+ "grad_norm": 0.36967036325253694,
351
+ "learning_rate": 9.600000000000001e-06,
352
+ "loss": 1.6994,
353
+ "step": 49
354
+ },
355
+ {
356
+ "epoch": 0.21961932650073207,
357
+ "grad_norm": 0.32386928338357696,
358
+ "learning_rate": 9.800000000000001e-06,
359
+ "loss": 1.6975,
360
+ "step": 50
361
+ },
362
+ {
363
+ "epoch": 0.2240117130307467,
364
+ "grad_norm": 0.33940794357965215,
365
+ "learning_rate": 1e-05,
366
+ "loss": 1.7278,
367
+ "step": 51
368
+ },
369
+ {
370
+ "epoch": 0.22840409956076135,
371
+ "grad_norm": 0.3396058372359069,
372
+ "learning_rate": 9.999966483034437e-06,
373
+ "loss": 1.6342,
374
+ "step": 52
375
+ },
376
+ {
377
+ "epoch": 0.232796486090776,
378
+ "grad_norm": 0.3395876900960321,
379
+ "learning_rate": 9.999865932587107e-06,
380
+ "loss": 1.6846,
381
+ "step": 53
382
+ },
383
+ {
384
+ "epoch": 0.23718887262079064,
385
+ "grad_norm": 0.3320830942903407,
386
+ "learning_rate": 9.999698350006063e-06,
387
+ "loss": 1.6744,
388
+ "step": 54
389
+ },
390
+ {
391
+ "epoch": 0.24158125915080528,
392
+ "grad_norm": 0.318642304519145,
393
+ "learning_rate": 9.999463737538054e-06,
394
+ "loss": 1.6633,
395
+ "step": 55
396
+ },
397
+ {
398
+ "epoch": 0.24597364568081992,
399
+ "grad_norm": 0.3302002388842341,
400
+ "learning_rate": 9.999162098328475e-06,
401
+ "loss": 1.6994,
402
+ "step": 56
403
+ },
404
+ {
405
+ "epoch": 0.25036603221083453,
406
+ "grad_norm": 0.30428798634415904,
407
+ "learning_rate": 9.998793436421342e-06,
408
+ "loss": 1.6728,
409
+ "step": 57
410
+ },
411
+ {
412
+ "epoch": 0.2547584187408492,
413
+ "grad_norm": 0.30662673120989614,
414
+ "learning_rate": 9.998357756759223e-06,
415
+ "loss": 1.6283,
416
+ "step": 58
417
+ },
418
+ {
419
+ "epoch": 0.2591508052708638,
420
+ "grad_norm": 0.34305953470241257,
421
+ "learning_rate": 9.997855065183185e-06,
422
+ "loss": 1.7269,
423
+ "step": 59
424
+ },
425
+ {
426
+ "epoch": 0.2635431918008785,
427
+ "grad_norm": 0.29647698247102616,
428
+ "learning_rate": 9.997285368432704e-06,
429
+ "loss": 1.6108,
430
+ "step": 60
431
+ },
432
+ {
433
+ "epoch": 0.2679355783308931,
434
+ "grad_norm": 0.30904144706299363,
435
+ "learning_rate": 9.996648674145584e-06,
436
+ "loss": 1.5925,
437
+ "step": 61
438
+ },
439
+ {
440
+ "epoch": 0.27232796486090777,
441
+ "grad_norm": 0.28294691041282544,
442
+ "learning_rate": 9.995944990857848e-06,
443
+ "loss": 1.7004,
444
+ "step": 62
445
+ },
446
+ {
447
+ "epoch": 0.2767203513909224,
448
+ "grad_norm": 0.4537316624659888,
449
+ "learning_rate": 9.99517432800363e-06,
450
+ "loss": 1.673,
451
+ "step": 63
452
+ },
453
+ {
454
+ "epoch": 0.28111273792093705,
455
+ "grad_norm": 0.33334142649617554,
456
+ "learning_rate": 9.994336695915041e-06,
457
+ "loss": 1.7305,
458
+ "step": 64
459
+ },
460
+ {
461
+ "epoch": 0.28550512445095166,
462
+ "grad_norm": 0.2906595328556503,
463
+ "learning_rate": 9.993432105822034e-06,
464
+ "loss": 1.6511,
465
+ "step": 65
466
+ },
467
+ {
468
+ "epoch": 0.28989751098096633,
469
+ "grad_norm": 0.30937353104293036,
470
+ "learning_rate": 9.992460569852256e-06,
471
+ "loss": 1.7055,
472
+ "step": 66
473
+ },
474
+ {
475
+ "epoch": 0.29428989751098095,
476
+ "grad_norm": 0.29714918983678074,
477
+ "learning_rate": 9.99142210103088e-06,
478
+ "loss": 1.6022,
479
+ "step": 67
480
+ },
481
+ {
482
+ "epoch": 0.2986822840409956,
483
+ "grad_norm": 0.3077061364082642,
484
+ "learning_rate": 9.99031671328044e-06,
485
+ "loss": 1.6167,
486
+ "step": 68
487
+ },
488
+ {
489
+ "epoch": 0.30307467057101023,
490
+ "grad_norm": 0.31797999416909106,
491
+ "learning_rate": 9.98914442142063e-06,
492
+ "loss": 1.6063,
493
+ "step": 69
494
+ },
495
+ {
496
+ "epoch": 0.3074670571010249,
497
+ "grad_norm": 0.28544810434107143,
498
+ "learning_rate": 9.987905241168117e-06,
499
+ "loss": 1.673,
500
+ "step": 70
501
+ },
502
+ {
503
+ "epoch": 0.3118594436310395,
504
+ "grad_norm": 0.3113516293182134,
505
+ "learning_rate": 9.986599189136325e-06,
506
+ "loss": 1.6759,
507
+ "step": 71
508
+ },
509
+ {
510
+ "epoch": 0.3162518301610542,
511
+ "grad_norm": 0.32958924621680397,
512
+ "learning_rate": 9.985226282835216e-06,
513
+ "loss": 1.6894,
514
+ "step": 72
515
+ },
516
+ {
517
+ "epoch": 0.3206442166910688,
518
+ "grad_norm": 0.3189944736085633,
519
+ "learning_rate": 9.983786540671052e-06,
520
+ "loss": 1.7762,
521
+ "step": 73
522
+ },
523
+ {
524
+ "epoch": 0.32503660322108346,
525
+ "grad_norm": 0.30229970638681786,
526
+ "learning_rate": 9.982279981946143e-06,
527
+ "loss": 1.709,
528
+ "step": 74
529
+ },
530
+ {
531
+ "epoch": 0.3294289897510981,
532
+ "grad_norm": 0.308085411523194,
533
+ "learning_rate": 9.980706626858607e-06,
534
+ "loss": 1.6741,
535
+ "step": 75
536
+ },
537
+ {
538
+ "epoch": 0.33382137628111275,
539
+ "grad_norm": 0.2851270169881767,
540
+ "learning_rate": 9.979066496502075e-06,
541
+ "loss": 1.656,
542
+ "step": 76
543
+ },
544
+ {
545
+ "epoch": 0.33821376281112736,
546
+ "grad_norm": 0.3115977673015286,
547
+ "learning_rate": 9.977359612865424e-06,
548
+ "loss": 1.6633,
549
+ "step": 77
550
+ },
551
+ {
552
+ "epoch": 0.34260614934114203,
553
+ "grad_norm": 0.2960787226189042,
554
+ "learning_rate": 9.97558599883248e-06,
555
+ "loss": 1.673,
556
+ "step": 78
557
+ },
558
+ {
559
+ "epoch": 0.34699853587115664,
560
+ "grad_norm": 0.35701812130442995,
561
+ "learning_rate": 9.973745678181705e-06,
562
+ "loss": 1.6103,
563
+ "step": 79
564
+ },
565
+ {
566
+ "epoch": 0.3513909224011713,
567
+ "grad_norm": 0.367868955812032,
568
+ "learning_rate": 9.971838675585888e-06,
569
+ "loss": 1.6768,
570
+ "step": 80
571
+ },
572
+ {
573
+ "epoch": 0.3557833089311859,
574
+ "grad_norm": 0.3295428259298103,
575
+ "learning_rate": 9.9698650166118e-06,
576
+ "loss": 1.6668,
577
+ "step": 81
578
+ },
579
+ {
580
+ "epoch": 0.3601756954612006,
581
+ "grad_norm": 0.3242883305567894,
582
+ "learning_rate": 9.96782472771987e-06,
583
+ "loss": 1.7152,
584
+ "step": 82
585
+ },
586
+ {
587
+ "epoch": 0.3645680819912152,
588
+ "grad_norm": 0.3070622417895325,
589
+ "learning_rate": 9.965717836263813e-06,
590
+ "loss": 1.5697,
591
+ "step": 83
592
+ },
593
+ {
594
+ "epoch": 0.3689604685212299,
595
+ "grad_norm": 0.27753629978682975,
596
+ "learning_rate": 9.96354437049027e-06,
597
+ "loss": 1.6453,
598
+ "step": 84
599
+ },
600
+ {
601
+ "epoch": 0.3733528550512445,
602
+ "grad_norm": 0.2723902519890988,
603
+ "learning_rate": 9.961304359538437e-06,
604
+ "loss": 1.7165,
605
+ "step": 85
606
+ },
607
+ {
608
+ "epoch": 0.37774524158125916,
609
+ "grad_norm": 0.29061586618994084,
610
+ "learning_rate": 9.958997833439658e-06,
611
+ "loss": 1.7135,
612
+ "step": 86
613
+ },
614
+ {
615
+ "epoch": 0.3821376281112738,
616
+ "grad_norm": 0.33085661251847487,
617
+ "learning_rate": 9.956624823117036e-06,
618
+ "loss": 1.6109,
619
+ "step": 87
620
+ },
621
+ {
622
+ "epoch": 0.38653001464128844,
623
+ "grad_norm": 0.2931612046141165,
624
+ "learning_rate": 9.954185360385013e-06,
625
+ "loss": 1.7048,
626
+ "step": 88
627
+ },
628
+ {
629
+ "epoch": 0.39092240117130306,
630
+ "grad_norm": 0.2900600158100116,
631
+ "learning_rate": 9.951679477948946e-06,
632
+ "loss": 1.6861,
633
+ "step": 89
634
+ },
635
+ {
636
+ "epoch": 0.3953147877013177,
637
+ "grad_norm": 0.2775954202644971,
638
+ "learning_rate": 9.949107209404664e-06,
639
+ "loss": 1.5706,
640
+ "step": 90
641
+ },
642
+ {
643
+ "epoch": 0.39970717423133234,
644
+ "grad_norm": 0.2733537235090247,
645
+ "learning_rate": 9.946468589238022e-06,
646
+ "loss": 1.7146,
647
+ "step": 91
648
+ },
649
+ {
650
+ "epoch": 0.404099560761347,
651
+ "grad_norm": 0.2710139549067813,
652
+ "learning_rate": 9.943763652824437e-06,
653
+ "loss": 1.6488,
654
+ "step": 92
655
+ },
656
+ {
657
+ "epoch": 0.4084919472913616,
658
+ "grad_norm": 0.27892641103107996,
659
+ "learning_rate": 9.94099243642841e-06,
660
+ "loss": 1.6002,
661
+ "step": 93
662
+ },
663
+ {
664
+ "epoch": 0.4128843338213763,
665
+ "grad_norm": 0.4570340740318857,
666
+ "learning_rate": 9.93815497720305e-06,
667
+ "loss": 1.6686,
668
+ "step": 94
669
+ },
670
+ {
671
+ "epoch": 0.4172767203513909,
672
+ "grad_norm": 0.2816582371174757,
673
+ "learning_rate": 9.935251313189564e-06,
674
+ "loss": 1.7531,
675
+ "step": 95
676
+ },
677
+ {
678
+ "epoch": 0.4216691068814056,
679
+ "grad_norm": 0.2886345479986427,
680
+ "learning_rate": 9.932281483316759e-06,
681
+ "loss": 1.744,
682
+ "step": 96
683
+ },
684
+ {
685
+ "epoch": 0.4260614934114202,
686
+ "grad_norm": 0.3178449956639589,
687
+ "learning_rate": 9.929245527400504e-06,
688
+ "loss": 1.6404,
689
+ "step": 97
690
+ },
691
+ {
692
+ "epoch": 0.43045387994143486,
693
+ "grad_norm": 0.31466032997182714,
694
+ "learning_rate": 9.926143486143216e-06,
695
+ "loss": 1.6583,
696
+ "step": 98
697
+ },
698
+ {
699
+ "epoch": 0.43484626647144947,
700
+ "grad_norm": 0.3406321749653024,
701
+ "learning_rate": 9.922975401133292e-06,
702
+ "loss": 1.7313,
703
+ "step": 99
704
+ },
705
+ {
706
+ "epoch": 0.43923865300146414,
707
+ "grad_norm": 0.33050248521276526,
708
+ "learning_rate": 9.919741314844577e-06,
709
+ "loss": 1.6518,
710
+ "step": 100
711
+ },
712
+ {
713
+ "epoch": 0.44363103953147875,
714
+ "grad_norm": 0.2886134577231967,
715
+ "learning_rate": 9.916441270635772e-06,
716
+ "loss": 1.6957,
717
+ "step": 101
718
+ },
719
+ {
720
+ "epoch": 0.4480234260614934,
721
+ "grad_norm": 0.27520985458354463,
722
+ "learning_rate": 9.913075312749867e-06,
723
+ "loss": 1.6052,
724
+ "step": 102
725
+ },
726
+ {
727
+ "epoch": 0.45241581259150804,
728
+ "grad_norm": 0.2649316531653303,
729
+ "learning_rate": 9.909643486313533e-06,
730
+ "loss": 1.6739,
731
+ "step": 103
732
+ },
733
+ {
734
+ "epoch": 0.4568081991215227,
735
+ "grad_norm": 0.27557834576379425,
736
+ "learning_rate": 9.90614583733654e-06,
737
+ "loss": 1.6584,
738
+ "step": 104
739
+ },
740
+ {
741
+ "epoch": 0.4612005856515373,
742
+ "grad_norm": 0.3243046224133678,
743
+ "learning_rate": 9.90258241271112e-06,
744
+ "loss": 1.6491,
745
+ "step": 105
746
+ },
747
+ {
748
+ "epoch": 0.465592972181552,
749
+ "grad_norm": 0.2601090357711318,
750
+ "learning_rate": 9.89895326021134e-06,
751
+ "loss": 1.6662,
752
+ "step": 106
753
+ },
754
+ {
755
+ "epoch": 0.4699853587115666,
756
+ "grad_norm": 0.2842151241183655,
757
+ "learning_rate": 9.895258428492475e-06,
758
+ "loss": 1.6501,
759
+ "step": 107
760
+ },
761
+ {
762
+ "epoch": 0.4743777452415813,
763
+ "grad_norm": 0.2594313373745908,
764
+ "learning_rate": 9.891497967090344e-06,
765
+ "loss": 1.6475,
766
+ "step": 108
767
+ },
768
+ {
769
+ "epoch": 0.4787701317715959,
770
+ "grad_norm": 0.2844945420500575,
771
+ "learning_rate": 9.887671926420649e-06,
772
+ "loss": 1.7204,
773
+ "step": 109
774
+ },
775
+ {
776
+ "epoch": 0.48316251830161056,
777
+ "grad_norm": 0.27655451441999607,
778
+ "learning_rate": 9.8837803577783e-06,
779
+ "loss": 1.6838,
780
+ "step": 110
781
+ },
782
+ {
783
+ "epoch": 0.48755490483162517,
784
+ "grad_norm": 0.3017150137441088,
785
+ "learning_rate": 9.879823313336723e-06,
786
+ "loss": 1.6688,
787
+ "step": 111
788
+ },
789
+ {
790
+ "epoch": 0.49194729136163984,
791
+ "grad_norm": 0.26575250791745125,
792
+ "learning_rate": 9.87580084614717e-06,
793
+ "loss": 1.6753,
794
+ "step": 112
795
+ },
796
+ {
797
+ "epoch": 0.49633967789165445,
798
+ "grad_norm": 0.2581989783149807,
799
+ "learning_rate": 9.871713010137998e-06,
800
+ "loss": 1.6244,
801
+ "step": 113
802
+ },
803
+ {
804
+ "epoch": 0.5007320644216691,
805
+ "grad_norm": 0.2622294231157268,
806
+ "learning_rate": 9.86755986011395e-06,
807
+ "loss": 1.6261,
808
+ "step": 114
809
+ },
810
+ {
811
+ "epoch": 0.5051244509516838,
812
+ "grad_norm": 0.26209513370076304,
813
+ "learning_rate": 9.86334145175542e-06,
814
+ "loss": 1.6397,
815
+ "step": 115
816
+ },
817
+ {
818
+ "epoch": 0.5095168374816984,
819
+ "grad_norm": 0.2846184522412747,
820
+ "learning_rate": 9.859057841617709e-06,
821
+ "loss": 1.7091,
822
+ "step": 116
823
+ },
824
+ {
825
+ "epoch": 0.513909224011713,
826
+ "grad_norm": 0.2528850826310284,
827
+ "learning_rate": 9.854709087130261e-06,
828
+ "loss": 1.6831,
829
+ "step": 117
830
+ },
831
+ {
832
+ "epoch": 0.5183016105417276,
833
+ "grad_norm": 0.32698350420324157,
834
+ "learning_rate": 9.850295246595898e-06,
835
+ "loss": 1.6431,
836
+ "step": 118
837
+ },
838
+ {
839
+ "epoch": 0.5226939970717424,
840
+ "grad_norm": 0.35727071053972576,
841
+ "learning_rate": 9.845816379190037e-06,
842
+ "loss": 1.7088,
843
+ "step": 119
844
+ },
845
+ {
846
+ "epoch": 0.527086383601757,
847
+ "grad_norm": 0.28971742333278044,
848
+ "learning_rate": 9.841272544959892e-06,
849
+ "loss": 1.7195,
850
+ "step": 120
851
+ },
852
+ {
853
+ "epoch": 0.5314787701317716,
854
+ "grad_norm": 0.468869869211724,
855
+ "learning_rate": 9.836663804823683e-06,
856
+ "loss": 1.6896,
857
+ "step": 121
858
+ },
859
+ {
860
+ "epoch": 0.5358711566617862,
861
+ "grad_norm": 0.3908944943187778,
862
+ "learning_rate": 9.831990220569801e-06,
863
+ "loss": 1.7406,
864
+ "step": 122
865
+ },
866
+ {
867
+ "epoch": 0.5402635431918009,
868
+ "grad_norm": 0.2665924461613152,
869
+ "learning_rate": 9.827251854855992e-06,
870
+ "loss": 1.6609,
871
+ "step": 123
872
+ },
873
+ {
874
+ "epoch": 0.5446559297218155,
875
+ "grad_norm": 0.28211372742262864,
876
+ "learning_rate": 9.82244877120851e-06,
877
+ "loss": 1.6684,
878
+ "step": 124
879
+ },
880
+ {
881
+ "epoch": 0.5490483162518301,
882
+ "grad_norm": 0.2623738132657017,
883
+ "learning_rate": 9.817581034021273e-06,
884
+ "loss": 1.6923,
885
+ "step": 125
886
+ },
887
+ {
888
+ "epoch": 0.5534407027818448,
889
+ "grad_norm": 0.35357676308356323,
890
+ "learning_rate": 9.812648708554991e-06,
891
+ "loss": 1.6467,
892
+ "step": 126
893
+ },
894
+ {
895
+ "epoch": 0.5578330893118595,
896
+ "grad_norm": 0.2555639734647961,
897
+ "learning_rate": 9.807651860936299e-06,
898
+ "loss": 1.6893,
899
+ "step": 127
900
+ },
901
+ {
902
+ "epoch": 0.5622254758418741,
903
+ "grad_norm": 0.26746261958597517,
904
+ "learning_rate": 9.802590558156863e-06,
905
+ "loss": 1.6754,
906
+ "step": 128
907
+ },
908
+ {
909
+ "epoch": 0.5666178623718887,
910
+ "grad_norm": 0.26383031628885084,
911
+ "learning_rate": 9.797464868072489e-06,
912
+ "loss": 1.6363,
913
+ "step": 129
914
+ },
915
+ {
916
+ "epoch": 0.5710102489019033,
917
+ "grad_norm": 0.319619389966322,
918
+ "learning_rate": 9.792274859402205e-06,
919
+ "loss": 1.636,
920
+ "step": 130
921
+ },
922
+ {
923
+ "epoch": 0.575402635431918,
924
+ "grad_norm": 0.2639308579990406,
925
+ "learning_rate": 9.787020601727353e-06,
926
+ "loss": 1.6079,
927
+ "step": 131
928
+ },
929
+ {
930
+ "epoch": 0.5797950219619327,
931
+ "grad_norm": 0.28226380411742236,
932
+ "learning_rate": 9.781702165490638e-06,
933
+ "loss": 1.657,
934
+ "step": 132
935
+ },
936
+ {
937
+ "epoch": 0.5841874084919473,
938
+ "grad_norm": 0.27157003543418035,
939
+ "learning_rate": 9.7763196219952e-06,
940
+ "loss": 1.7009,
941
+ "step": 133
942
+ },
943
+ {
944
+ "epoch": 0.5885797950219619,
945
+ "grad_norm": 0.28487209604498265,
946
+ "learning_rate": 9.770873043403648e-06,
947
+ "loss": 1.6236,
948
+ "step": 134
949
+ },
950
+ {
951
+ "epoch": 0.5929721815519766,
952
+ "grad_norm": 0.3009729998770739,
953
+ "learning_rate": 9.765362502737098e-06,
954
+ "loss": 1.6812,
955
+ "step": 135
956
+ },
957
+ {
958
+ "epoch": 0.5973645680819912,
959
+ "grad_norm": 0.2576811873616972,
960
+ "learning_rate": 9.759788073874188e-06,
961
+ "loss": 1.6885,
962
+ "step": 136
963
+ },
964
+ {
965
+ "epoch": 0.6017569546120058,
966
+ "grad_norm": 0.3108368566509119,
967
+ "learning_rate": 9.754149831550097e-06,
968
+ "loss": 1.6086,
969
+ "step": 137
970
+ },
971
+ {
972
+ "epoch": 0.6061493411420205,
973
+ "grad_norm": 0.3336050806293322,
974
+ "learning_rate": 9.748447851355534e-06,
975
+ "loss": 1.6773,
976
+ "step": 138
977
+ },
978
+ {
979
+ "epoch": 0.6105417276720352,
980
+ "grad_norm": 0.28918467659013913,
981
+ "learning_rate": 9.742682209735727e-06,
982
+ "loss": 1.7141,
983
+ "step": 139
984
+ },
985
+ {
986
+ "epoch": 0.6149341142020498,
987
+ "grad_norm": 0.25507889874035206,
988
+ "learning_rate": 9.736852983989405e-06,
989
+ "loss": 1.6335,
990
+ "step": 140
991
+ },
992
+ {
993
+ "epoch": 0.6193265007320644,
994
+ "grad_norm": 0.2712795343500641,
995
+ "learning_rate": 9.730960252267744e-06,
996
+ "loss": 1.6186,
997
+ "step": 141
998
+ },
999
+ {
1000
+ "epoch": 0.623718887262079,
1001
+ "grad_norm": 0.29326296437100124,
1002
+ "learning_rate": 9.725004093573343e-06,
1003
+ "loss": 1.6039,
1004
+ "step": 142
1005
+ },
1006
+ {
1007
+ "epoch": 0.6281112737920937,
1008
+ "grad_norm": 0.27412689936526563,
1009
+ "learning_rate": 9.718984587759148e-06,
1010
+ "loss": 1.594,
1011
+ "step": 143
1012
+ },
1013
+ {
1014
+ "epoch": 0.6325036603221084,
1015
+ "grad_norm": 0.28908560688778157,
1016
+ "learning_rate": 9.712901815527387e-06,
1017
+ "loss": 1.6458,
1018
+ "step": 144
1019
+ },
1020
+ {
1021
+ "epoch": 0.636896046852123,
1022
+ "grad_norm": 0.26538330998431864,
1023
+ "learning_rate": 9.706755858428487e-06,
1024
+ "loss": 1.6546,
1025
+ "step": 145
1026
+ },
1027
+ {
1028
+ "epoch": 0.6412884333821376,
1029
+ "grad_norm": 0.26498403141947585,
1030
+ "learning_rate": 9.70054679885998e-06,
1031
+ "loss": 1.6224,
1032
+ "step": 146
1033
+ },
1034
+ {
1035
+ "epoch": 0.6456808199121523,
1036
+ "grad_norm": 0.25028323667878993,
1037
+ "learning_rate": 9.6942747200654e-06,
1038
+ "loss": 1.6554,
1039
+ "step": 147
1040
+ },
1041
+ {
1042
+ "epoch": 0.6500732064421669,
1043
+ "grad_norm": 0.3077620507501807,
1044
+ "learning_rate": 9.687939706133168e-06,
1045
+ "loss": 1.6751,
1046
+ "step": 148
1047
+ },
1048
+ {
1049
+ "epoch": 0.6544655929721815,
1050
+ "grad_norm": 0.2738251492188122,
1051
+ "learning_rate": 9.68154184199546e-06,
1052
+ "loss": 1.6139,
1053
+ "step": 149
1054
+ },
1055
+ {
1056
+ "epoch": 0.6588579795021962,
1057
+ "grad_norm": 0.300766059001253,
1058
+ "learning_rate": 9.675081213427076e-06,
1059
+ "loss": 1.6783,
1060
+ "step": 150
1061
+ },
1062
+ {
1063
+ "epoch": 0.6632503660322109,
1064
+ "grad_norm": 0.2671963968809055,
1065
+ "learning_rate": 9.668557907044278e-06,
1066
+ "loss": 1.7028,
1067
+ "step": 151
1068
+ },
1069
+ {
1070
+ "epoch": 0.6676427525622255,
1071
+ "grad_norm": 0.27596191143138304,
1072
+ "learning_rate": 9.661972010303641e-06,
1073
+ "loss": 1.6279,
1074
+ "step": 152
1075
+ },
1076
+ {
1077
+ "epoch": 0.6720351390922401,
1078
+ "grad_norm": 0.2719766311854951,
1079
+ "learning_rate": 9.655323611500876e-06,
1080
+ "loss": 1.6634,
1081
+ "step": 153
1082
+ },
1083
+ {
1084
+ "epoch": 0.6764275256222547,
1085
+ "grad_norm": 0.2697612116557389,
1086
+ "learning_rate": 9.648612799769644e-06,
1087
+ "loss": 1.617,
1088
+ "step": 154
1089
+ },
1090
+ {
1091
+ "epoch": 0.6808199121522694,
1092
+ "grad_norm": 0.28137116472179047,
1093
+ "learning_rate": 9.641839665080363e-06,
1094
+ "loss": 1.6212,
1095
+ "step": 155
1096
+ },
1097
+ {
1098
+ "epoch": 0.6852122986822841,
1099
+ "grad_norm": 0.2599526010890989,
1100
+ "learning_rate": 9.635004298239004e-06,
1101
+ "loss": 1.6542,
1102
+ "step": 156
1103
+ },
1104
+ {
1105
+ "epoch": 0.6896046852122987,
1106
+ "grad_norm": 0.662388825119619,
1107
+ "learning_rate": 9.628106790885866e-06,
1108
+ "loss": 1.633,
1109
+ "step": 157
1110
+ },
1111
+ {
1112
+ "epoch": 0.6939970717423133,
1113
+ "grad_norm": 0.2913416852335614,
1114
+ "learning_rate": 9.621147235494357e-06,
1115
+ "loss": 1.6904,
1116
+ "step": 158
1117
+ },
1118
+ {
1119
+ "epoch": 0.698389458272328,
1120
+ "grad_norm": 0.26581120890113497,
1121
+ "learning_rate": 9.614125725369748e-06,
1122
+ "loss": 1.6583,
1123
+ "step": 159
1124
+ },
1125
+ {
1126
+ "epoch": 0.7027818448023426,
1127
+ "grad_norm": 0.26696083510238133,
1128
+ "learning_rate": 9.607042354647924e-06,
1129
+ "loss": 1.6354,
1130
+ "step": 160
1131
+ },
1132
+ {
1133
+ "epoch": 0.7071742313323572,
1134
+ "grad_norm": 0.2913753113559095,
1135
+ "learning_rate": 9.599897218294122e-06,
1136
+ "loss": 1.5914,
1137
+ "step": 161
1138
+ },
1139
+ {
1140
+ "epoch": 0.7115666178623719,
1141
+ "grad_norm": 0.2794317973029827,
1142
+ "learning_rate": 9.59269041210166e-06,
1143
+ "loss": 1.5732,
1144
+ "step": 162
1145
+ },
1146
+ {
1147
+ "epoch": 0.7159590043923866,
1148
+ "grad_norm": 0.27364398897711945,
1149
+ "learning_rate": 9.585422032690644e-06,
1150
+ "loss": 1.6796,
1151
+ "step": 163
1152
+ },
1153
+ {
1154
+ "epoch": 0.7203513909224012,
1155
+ "grad_norm": 0.2924137561125512,
1156
+ "learning_rate": 9.578092177506683e-06,
1157
+ "loss": 1.6921,
1158
+ "step": 164
1159
+ },
1160
+ {
1161
+ "epoch": 0.7247437774524158,
1162
+ "grad_norm": 0.27864643658701665,
1163
+ "learning_rate": 9.570700944819584e-06,
1164
+ "loss": 1.6442,
1165
+ "step": 165
1166
+ },
1167
+ {
1168
+ "epoch": 0.7291361639824304,
1169
+ "grad_norm": 0.3172135018133218,
1170
+ "learning_rate": 9.56324843372202e-06,
1171
+ "loss": 1.7003,
1172
+ "step": 166
1173
+ },
1174
+ {
1175
+ "epoch": 0.7335285505124451,
1176
+ "grad_norm": 0.33119379016577744,
1177
+ "learning_rate": 9.55573474412821e-06,
1178
+ "loss": 1.6277,
1179
+ "step": 167
1180
+ },
1181
+ {
1182
+ "epoch": 0.7379209370424598,
1183
+ "grad_norm": 0.24315818847358012,
1184
+ "learning_rate": 9.548159976772593e-06,
1185
+ "loss": 1.621,
1186
+ "step": 168
1187
+ },
1188
+ {
1189
+ "epoch": 0.7423133235724744,
1190
+ "grad_norm": 0.28066914391093295,
1191
+ "learning_rate": 9.540524233208449e-06,
1192
+ "loss": 1.6169,
1193
+ "step": 169
1194
+ },
1195
+ {
1196
+ "epoch": 0.746705710102489,
1197
+ "grad_norm": 0.3096372829142638,
1198
+ "learning_rate": 9.532827615806561e-06,
1199
+ "loss": 1.6425,
1200
+ "step": 170
1201
+ },
1202
+ {
1203
+ "epoch": 0.7510980966325037,
1204
+ "grad_norm": 0.3050362838238551,
1205
+ "learning_rate": 9.525070227753835e-06,
1206
+ "loss": 1.5835,
1207
+ "step": 171
1208
+ },
1209
+ {
1210
+ "epoch": 0.7554904831625183,
1211
+ "grad_norm": 0.27558198897100084,
1212
+ "learning_rate": 9.517252173051912e-06,
1213
+ "loss": 1.6866,
1214
+ "step": 172
1215
+ },
1216
+ {
1217
+ "epoch": 0.7598828696925329,
1218
+ "grad_norm": 0.3415215102331636,
1219
+ "learning_rate": 9.509373556515781e-06,
1220
+ "loss": 1.6954,
1221
+ "step": 173
1222
+ },
1223
+ {
1224
+ "epoch": 0.7642752562225475,
1225
+ "grad_norm": 0.2833145266859935,
1226
+ "learning_rate": 9.501434483772371e-06,
1227
+ "loss": 1.5642,
1228
+ "step": 174
1229
+ },
1230
+ {
1231
+ "epoch": 0.7686676427525623,
1232
+ "grad_norm": 0.261080979929468,
1233
+ "learning_rate": 9.49343506125913e-06,
1234
+ "loss": 1.6481,
1235
+ "step": 175
1236
+ },
1237
+ {
1238
+ "epoch": 0.7730600292825769,
1239
+ "grad_norm": 0.27528584249968596,
1240
+ "learning_rate": 9.48537539622261e-06,
1241
+ "loss": 1.6356,
1242
+ "step": 176
1243
+ },
1244
+ {
1245
+ "epoch": 0.7774524158125915,
1246
+ "grad_norm": 0.28493642680744213,
1247
+ "learning_rate": 9.477255596717012e-06,
1248
+ "loss": 1.617,
1249
+ "step": 177
1250
+ },
1251
+ {
1252
+ "epoch": 0.7818448023426061,
1253
+ "grad_norm": 0.250792323656803,
1254
+ "learning_rate": 9.469075771602756e-06,
1255
+ "loss": 1.7373,
1256
+ "step": 178
1257
+ },
1258
+ {
1259
+ "epoch": 0.7862371888726208,
1260
+ "grad_norm": 0.2815707976300464,
1261
+ "learning_rate": 9.460836030545007e-06,
1262
+ "loss": 1.7134,
1263
+ "step": 179
1264
+ },
1265
+ {
1266
+ "epoch": 0.7906295754026355,
1267
+ "grad_norm": 0.33965220402585167,
1268
+ "learning_rate": 9.452536484012212e-06,
1269
+ "loss": 1.66,
1270
+ "step": 180
1271
+ },
1272
+ {
1273
+ "epoch": 0.7950219619326501,
1274
+ "grad_norm": 0.337075115730111,
1275
+ "learning_rate": 9.444177243274619e-06,
1276
+ "loss": 1.7237,
1277
+ "step": 181
1278
+ },
1279
+ {
1280
+ "epoch": 0.7994143484626647,
1281
+ "grad_norm": 0.2652773355794464,
1282
+ "learning_rate": 9.43575842040278e-06,
1283
+ "loss": 1.7238,
1284
+ "step": 182
1285
+ },
1286
+ {
1287
+ "epoch": 0.8038067349926794,
1288
+ "grad_norm": 0.29569868187991866,
1289
+ "learning_rate": 9.427280128266049e-06,
1290
+ "loss": 1.6484,
1291
+ "step": 183
1292
+ },
1293
+ {
1294
+ "epoch": 0.808199121522694,
1295
+ "grad_norm": 0.2647366968721245,
1296
+ "learning_rate": 9.418742480531086e-06,
1297
+ "loss": 1.6557,
1298
+ "step": 184
1299
+ },
1300
+ {
1301
+ "epoch": 0.8125915080527086,
1302
+ "grad_norm": 0.2624692157687208,
1303
+ "learning_rate": 9.410145591660301e-06,
1304
+ "loss": 1.6501,
1305
+ "step": 185
1306
+ },
1307
+ {
1308
+ "epoch": 0.8169838945827232,
1309
+ "grad_norm": 0.2604406630602592,
1310
+ "learning_rate": 9.40148957691035e-06,
1311
+ "loss": 1.6205,
1312
+ "step": 186
1313
+ },
1314
+ {
1315
+ "epoch": 0.821376281112738,
1316
+ "grad_norm": 0.3809448031526879,
1317
+ "learning_rate": 9.392774552330567e-06,
1318
+ "loss": 1.6014,
1319
+ "step": 187
1320
+ },
1321
+ {
1322
+ "epoch": 0.8257686676427526,
1323
+ "grad_norm": 0.285104899301775,
1324
+ "learning_rate": 9.384000634761429e-06,
1325
+ "loss": 1.7119,
1326
+ "step": 188
1327
+ },
1328
+ {
1329
+ "epoch": 0.8301610541727672,
1330
+ "grad_norm": 0.3603217046093286,
1331
+ "learning_rate": 9.375167941832974e-06,
1332
+ "loss": 1.6129,
1333
+ "step": 189
1334
+ },
1335
+ {
1336
+ "epoch": 0.8345534407027818,
1337
+ "grad_norm": 0.26192371812461096,
1338
+ "learning_rate": 9.366276591963222e-06,
1339
+ "loss": 1.6648,
1340
+ "step": 190
1341
+ },
1342
+ {
1343
+ "epoch": 0.8389458272327965,
1344
+ "grad_norm": 0.27224376529649075,
1345
+ "learning_rate": 9.357326704356602e-06,
1346
+ "loss": 1.7368,
1347
+ "step": 191
1348
+ },
1349
+ {
1350
+ "epoch": 0.8433382137628112,
1351
+ "grad_norm": 0.267560205737413,
1352
+ "learning_rate": 9.348318399002347e-06,
1353
+ "loss": 1.6456,
1354
+ "step": 192
1355
+ },
1356
+ {
1357
+ "epoch": 0.8477306002928258,
1358
+ "grad_norm": 0.38772390686795116,
1359
+ "learning_rate": 9.339251796672878e-06,
1360
+ "loss": 1.6765,
1361
+ "step": 193
1362
+ },
1363
+ {
1364
+ "epoch": 0.8521229868228404,
1365
+ "grad_norm": 0.28624234868841525,
1366
+ "learning_rate": 9.330127018922195e-06,
1367
+ "loss": 1.6397,
1368
+ "step": 194
1369
+ },
1370
+ {
1371
+ "epoch": 0.8565153733528551,
1372
+ "grad_norm": 0.3517826456437289,
1373
+ "learning_rate": 9.320944188084241e-06,
1374
+ "loss": 1.6504,
1375
+ "step": 195
1376
+ },
1377
+ {
1378
+ "epoch": 0.8609077598828697,
1379
+ "grad_norm": 0.3054896957644684,
1380
+ "learning_rate": 9.31170342727127e-06,
1381
+ "loss": 1.6581,
1382
+ "step": 196
1383
+ },
1384
+ {
1385
+ "epoch": 0.8653001464128843,
1386
+ "grad_norm": 0.47217080493290625,
1387
+ "learning_rate": 9.302404860372185e-06,
1388
+ "loss": 1.6614,
1389
+ "step": 197
1390
+ },
1391
+ {
1392
+ "epoch": 0.8696925329428989,
1393
+ "grad_norm": 0.3744290659075852,
1394
+ "learning_rate": 9.293048612050883e-06,
1395
+ "loss": 1.6181,
1396
+ "step": 198
1397
+ },
1398
+ {
1399
+ "epoch": 0.8740849194729137,
1400
+ "grad_norm": 0.2928672407192581,
1401
+ "learning_rate": 9.283634807744586e-06,
1402
+ "loss": 1.5801,
1403
+ "step": 199
1404
+ },
1405
+ {
1406
+ "epoch": 0.8784773060029283,
1407
+ "grad_norm": 0.5500989172351091,
1408
+ "learning_rate": 9.274163573662158e-06,
1409
+ "loss": 1.6213,
1410
+ "step": 200
1411
+ },
1412
+ {
1413
+ "epoch": 0.8828696925329429,
1414
+ "grad_norm": 0.27844961793523915,
1415
+ "learning_rate": 9.264635036782406e-06,
1416
+ "loss": 1.6442,
1417
+ "step": 201
1418
+ },
1419
+ {
1420
+ "epoch": 0.8872620790629575,
1421
+ "grad_norm": 0.2764381586339949,
1422
+ "learning_rate": 9.255049324852388e-06,
1423
+ "loss": 1.6403,
1424
+ "step": 202
1425
+ },
1426
+ {
1427
+ "epoch": 0.8916544655929722,
1428
+ "grad_norm": 0.28692831842946026,
1429
+ "learning_rate": 9.245406566385698e-06,
1430
+ "loss": 1.6204,
1431
+ "step": 203
1432
+ },
1433
+ {
1434
+ "epoch": 0.8960468521229868,
1435
+ "grad_norm": 0.2854958274623322,
1436
+ "learning_rate": 9.235706890660735e-06,
1437
+ "loss": 1.6777,
1438
+ "step": 204
1439
+ },
1440
+ {
1441
+ "epoch": 0.9004392386530015,
1442
+ "grad_norm": 0.2884758073862357,
1443
+ "learning_rate": 9.225950427718974e-06,
1444
+ "loss": 1.6414,
1445
+ "step": 205
1446
+ },
1447
+ {
1448
+ "epoch": 0.9048316251830161,
1449
+ "grad_norm": 0.2774591809427237,
1450
+ "learning_rate": 9.216137308363235e-06,
1451
+ "loss": 1.667,
1452
+ "step": 206
1453
+ },
1454
+ {
1455
+ "epoch": 0.9092240117130308,
1456
+ "grad_norm": 0.26327408771476135,
1457
+ "learning_rate": 9.206267664155906e-06,
1458
+ "loss": 1.6472,
1459
+ "step": 207
1460
+ },
1461
+ {
1462
+ "epoch": 0.9136163982430454,
1463
+ "grad_norm": 0.3163508666559799,
1464
+ "learning_rate": 9.1963416274172e-06,
1465
+ "loss": 1.6898,
1466
+ "step": 208
1467
+ },
1468
+ {
1469
+ "epoch": 0.91800878477306,
1470
+ "grad_norm": 0.2691312569989342,
1471
+ "learning_rate": 9.18635933122337e-06,
1472
+ "loss": 1.6788,
1473
+ "step": 209
1474
+ },
1475
+ {
1476
+ "epoch": 0.9224011713030746,
1477
+ "grad_norm": 0.329963898141559,
1478
+ "learning_rate": 9.176320909404925e-06,
1479
+ "loss": 1.7077,
1480
+ "step": 210
1481
+ },
1482
+ {
1483
+ "epoch": 0.9267935578330894,
1484
+ "grad_norm": 0.3497378648580076,
1485
+ "learning_rate": 9.16622649654484e-06,
1486
+ "loss": 1.7203,
1487
+ "step": 211
1488
+ },
1489
+ {
1490
+ "epoch": 0.931185944363104,
1491
+ "grad_norm": 0.2750435891659104,
1492
+ "learning_rate": 9.156076227976752e-06,
1493
+ "loss": 1.6372,
1494
+ "step": 212
1495
+ },
1496
+ {
1497
+ "epoch": 0.9355783308931186,
1498
+ "grad_norm": 0.29344217135995226,
1499
+ "learning_rate": 9.145870239783143e-06,
1500
+ "loss": 1.6294,
1501
+ "step": 213
1502
+ },
1503
+ {
1504
+ "epoch": 0.9399707174231332,
1505
+ "grad_norm": 0.2713649627402965,
1506
+ "learning_rate": 9.135608668793511e-06,
1507
+ "loss": 1.6391,
1508
+ "step": 214
1509
+ },
1510
+ {
1511
+ "epoch": 0.9443631039531479,
1512
+ "grad_norm": 0.2995344678229402,
1513
+ "learning_rate": 9.125291652582549e-06,
1514
+ "loss": 1.6102,
1515
+ "step": 215
1516
+ },
1517
+ {
1518
+ "epoch": 0.9487554904831625,
1519
+ "grad_norm": 0.32763546183738235,
1520
+ "learning_rate": 9.114919329468283e-06,
1521
+ "loss": 1.6823,
1522
+ "step": 216
1523
+ },
1524
+ {
1525
+ "epoch": 0.9531478770131772,
1526
+ "grad_norm": 0.29620265372375704,
1527
+ "learning_rate": 9.104491838510235e-06,
1528
+ "loss": 1.6905,
1529
+ "step": 217
1530
+ },
1531
+ {
1532
+ "epoch": 0.9575402635431918,
1533
+ "grad_norm": 0.43487598587006066,
1534
+ "learning_rate": 9.094009319507547e-06,
1535
+ "loss": 1.6611,
1536
+ "step": 218
1537
+ },
1538
+ {
1539
+ "epoch": 0.9619326500732065,
1540
+ "grad_norm": 0.32989859860270077,
1541
+ "learning_rate": 9.08347191299711e-06,
1542
+ "loss": 1.634,
1543
+ "step": 219
1544
+ },
1545
+ {
1546
+ "epoch": 0.9663250366032211,
1547
+ "grad_norm": 0.26622257061624277,
1548
+ "learning_rate": 9.07287976025168e-06,
1549
+ "loss": 1.6075,
1550
+ "step": 220
1551
+ },
1552
+ {
1553
+ "epoch": 0.9707174231332357,
1554
+ "grad_norm": 0.28626358026286186,
1555
+ "learning_rate": 9.062233003277983e-06,
1556
+ "loss": 1.6045,
1557
+ "step": 221
1558
+ },
1559
+ {
1560
+ "epoch": 0.9751098096632503,
1561
+ "grad_norm": 0.5424158794876999,
1562
+ "learning_rate": 9.051531784814817e-06,
1563
+ "loss": 1.5825,
1564
+ "step": 222
1565
+ },
1566
+ {
1567
+ "epoch": 0.9795021961932651,
1568
+ "grad_norm": 0.2771987597060821,
1569
+ "learning_rate": 9.040776248331128e-06,
1570
+ "loss": 1.6083,
1571
+ "step": 223
1572
+ },
1573
+ {
1574
+ "epoch": 0.9838945827232797,
1575
+ "grad_norm": 1.5311321947246777,
1576
+ "learning_rate": 9.029966538024097e-06,
1577
+ "loss": 1.5973,
1578
+ "step": 224
1579
+ },
1580
+ {
1581
+ "epoch": 0.9882869692532943,
1582
+ "grad_norm": 0.3081246423484545,
1583
+ "learning_rate": 9.019102798817196e-06,
1584
+ "loss": 1.5915,
1585
+ "step": 225
1586
+ },
1587
+ {
1588
+ "epoch": 0.9926793557833089,
1589
+ "grad_norm": 0.3066770476121554,
1590
+ "learning_rate": 9.008185176358257e-06,
1591
+ "loss": 1.5551,
1592
+ "step": 226
1593
+ },
1594
+ {
1595
+ "epoch": 0.9970717423133236,
1596
+ "grad_norm": 0.29888292004137484,
1597
+ "learning_rate": 8.997213817017508e-06,
1598
+ "loss": 1.7461,
1599
+ "step": 227
1600
+ },
1601
+ {
1602
+ "epoch": 1.0043923865300146,
1603
+ "grad_norm": 0.5938110979809961,
1604
+ "learning_rate": 8.986188867885617e-06,
1605
+ "loss": 3.2509,
1606
+ "step": 228
1607
+ },
1608
+ {
1609
+ "epoch": 1.0087847730600292,
1610
+ "grad_norm": 0.2899326916339286,
1611
+ "learning_rate": 8.975110476771724e-06,
1612
+ "loss": 1.5874,
1613
+ "step": 229
1614
+ },
1615
+ {
1616
+ "epoch": 1.0131771595900438,
1617
+ "grad_norm": 0.2777095345419943,
1618
+ "learning_rate": 8.96397879220145e-06,
1619
+ "loss": 1.6706,
1620
+ "step": 230
1621
+ },
1622
+ {
1623
+ "epoch": 1.0175695461200585,
1624
+ "grad_norm": 0.26363195429841585,
1625
+ "learning_rate": 8.952793963414908e-06,
1626
+ "loss": 1.6317,
1627
+ "step": 231
1628
+ },
1629
+ {
1630
+ "epoch": 1.0219619326500733,
1631
+ "grad_norm": 0.2688971491502818,
1632
+ "learning_rate": 8.941556140364707e-06,
1633
+ "loss": 1.654,
1634
+ "step": 232
1635
+ },
1636
+ {
1637
+ "epoch": 1.026354319180088,
1638
+ "grad_norm": 0.28487309366468816,
1639
+ "learning_rate": 8.930265473713939e-06,
1640
+ "loss": 1.6133,
1641
+ "step": 233
1642
+ },
1643
+ {
1644
+ "epoch": 1.0307467057101025,
1645
+ "grad_norm": 0.28141744313455036,
1646
+ "learning_rate": 8.918922114834156e-06,
1647
+ "loss": 1.589,
1648
+ "step": 234
1649
+ },
1650
+ {
1651
+ "epoch": 1.0351390922401171,
1652
+ "grad_norm": 0.40308880749849646,
1653
+ "learning_rate": 8.907526215803351e-06,
1654
+ "loss": 1.6499,
1655
+ "step": 235
1656
+ },
1657
+ {
1658
+ "epoch": 1.0395314787701317,
1659
+ "grad_norm": 0.2834055854316979,
1660
+ "learning_rate": 8.896077929403901e-06,
1661
+ "loss": 1.658,
1662
+ "step": 236
1663
+ },
1664
+ {
1665
+ "epoch": 1.0439238653001464,
1666
+ "grad_norm": 0.2887035123274668,
1667
+ "learning_rate": 8.884577409120535e-06,
1668
+ "loss": 1.6196,
1669
+ "step": 237
1670
+ },
1671
+ {
1672
+ "epoch": 1.048316251830161,
1673
+ "grad_norm": 0.2985213212589398,
1674
+ "learning_rate": 8.873024809138272e-06,
1675
+ "loss": 1.677,
1676
+ "step": 238
1677
+ },
1678
+ {
1679
+ "epoch": 1.0527086383601758,
1680
+ "grad_norm": 0.2863532205939482,
1681
+ "learning_rate": 8.861420284340352e-06,
1682
+ "loss": 1.6682,
1683
+ "step": 239
1684
+ },
1685
+ {
1686
+ "epoch": 1.0571010248901904,
1687
+ "grad_norm": 0.29235163398244823,
1688
+ "learning_rate": 8.849763990306153e-06,
1689
+ "loss": 1.6009,
1690
+ "step": 240
1691
+ },
1692
+ {
1693
+ "epoch": 1.061493411420205,
1694
+ "grad_norm": 0.2899336107020558,
1695
+ "learning_rate": 8.838056083309118e-06,
1696
+ "loss": 1.6319,
1697
+ "step": 241
1698
+ },
1699
+ {
1700
+ "epoch": 1.0658857979502196,
1701
+ "grad_norm": 0.3186837918366928,
1702
+ "learning_rate": 8.826296720314658e-06,
1703
+ "loss": 1.5875,
1704
+ "step": 242
1705
+ },
1706
+ {
1707
+ "epoch": 1.0702781844802343,
1708
+ "grad_norm": 0.33938164798671433,
1709
+ "learning_rate": 8.814486058978035e-06,
1710
+ "loss": 1.6059,
1711
+ "step": 243
1712
+ },
1713
+ {
1714
+ "epoch": 1.0746705710102489,
1715
+ "grad_norm": 0.2991115627129074,
1716
+ "learning_rate": 8.802624257642262e-06,
1717
+ "loss": 1.6599,
1718
+ "step": 244
1719
+ },
1720
+ {
1721
+ "epoch": 1.0790629575402635,
1722
+ "grad_norm": 0.28608565865487656,
1723
+ "learning_rate": 8.790711475335971e-06,
1724
+ "loss": 1.6364,
1725
+ "step": 245
1726
+ },
1727
+ {
1728
+ "epoch": 1.083455344070278,
1729
+ "grad_norm": 0.28359019806003394,
1730
+ "learning_rate": 8.778747871771293e-06,
1731
+ "loss": 1.6584,
1732
+ "step": 246
1733
+ },
1734
+ {
1735
+ "epoch": 1.0878477306002927,
1736
+ "grad_norm": 0.34292617248780644,
1737
+ "learning_rate": 8.766733607341697e-06,
1738
+ "loss": 1.6613,
1739
+ "step": 247
1740
+ },
1741
+ {
1742
+ "epoch": 1.0922401171303076,
1743
+ "grad_norm": 0.3469366526291968,
1744
+ "learning_rate": 8.754668843119865e-06,
1745
+ "loss": 1.6542,
1746
+ "step": 248
1747
+ },
1748
+ {
1749
+ "epoch": 1.0966325036603222,
1750
+ "grad_norm": 0.2745752678931537,
1751
+ "learning_rate": 8.742553740855507e-06,
1752
+ "loss": 1.6723,
1753
+ "step": 249
1754
+ },
1755
+ {
1756
+ "epoch": 1.1010248901903368,
1757
+ "grad_norm": 0.3863733971251328,
1758
+ "learning_rate": 8.730388462973209e-06,
1759
+ "loss": 1.6268,
1760
+ "step": 250
1761
+ },
1762
+ {
1763
+ "epoch": 1.1054172767203514,
1764
+ "grad_norm": 0.3196278576328997,
1765
+ "learning_rate": 8.718173172570254e-06,
1766
+ "loss": 1.6349,
1767
+ "step": 251
1768
+ },
1769
+ {
1770
+ "epoch": 1.109809663250366,
1771
+ "grad_norm": 0.27017487934331,
1772
+ "learning_rate": 8.705908033414426e-06,
1773
+ "loss": 1.606,
1774
+ "step": 252
1775
+ },
1776
+ {
1777
+ "epoch": 1.1142020497803806,
1778
+ "grad_norm": 0.6576768607622604,
1779
+ "learning_rate": 8.693593209941826e-06,
1780
+ "loss": 1.5936,
1781
+ "step": 253
1782
+ },
1783
+ {
1784
+ "epoch": 1.1185944363103952,
1785
+ "grad_norm": 0.30260640047372234,
1786
+ "learning_rate": 8.681228867254657e-06,
1787
+ "loss": 1.5948,
1788
+ "step": 254
1789
+ },
1790
+ {
1791
+ "epoch": 1.12298682284041,
1792
+ "grad_norm": 0.3102239482584757,
1793
+ "learning_rate": 8.66881517111902e-06,
1794
+ "loss": 1.6928,
1795
+ "step": 255
1796
+ },
1797
+ {
1798
+ "epoch": 1.1273792093704247,
1799
+ "grad_norm": 0.2818931187575453,
1800
+ "learning_rate": 8.656352287962687e-06,
1801
+ "loss": 1.687,
1802
+ "step": 256
1803
+ },
1804
+ {
1805
+ "epoch": 1.1317715959004393,
1806
+ "grad_norm": 0.30007928577375903,
1807
+ "learning_rate": 8.643840384872865e-06,
1808
+ "loss": 1.6628,
1809
+ "step": 257
1810
+ },
1811
+ {
1812
+ "epoch": 1.136163982430454,
1813
+ "grad_norm": 0.3249258384227434,
1814
+ "learning_rate": 8.631279629593968e-06,
1815
+ "loss": 1.6123,
1816
+ "step": 258
1817
+ },
1818
+ {
1819
+ "epoch": 1.1405563689604685,
1820
+ "grad_norm": 0.2871446068255736,
1821
+ "learning_rate": 8.61867019052535e-06,
1822
+ "loss": 1.6608,
1823
+ "step": 259
1824
+ },
1825
+ {
1826
+ "epoch": 1.1449487554904831,
1827
+ "grad_norm": 0.3001183609451796,
1828
+ "learning_rate": 8.606012236719073e-06,
1829
+ "loss": 1.6405,
1830
+ "step": 260
1831
+ },
1832
+ {
1833
+ "epoch": 1.1493411420204978,
1834
+ "grad_norm": 0.271155672303218,
1835
+ "learning_rate": 8.593305937877614e-06,
1836
+ "loss": 1.5819,
1837
+ "step": 261
1838
+ },
1839
+ {
1840
+ "epoch": 1.1537335285505124,
1841
+ "grad_norm": 0.30999460151747915,
1842
+ "learning_rate": 8.580551464351603e-06,
1843
+ "loss": 1.6378,
1844
+ "step": 262
1845
+ },
1846
+ {
1847
+ "epoch": 1.158125915080527,
1848
+ "grad_norm": 0.2979330701414515,
1849
+ "learning_rate": 8.567748987137544e-06,
1850
+ "loss": 1.7342,
1851
+ "step": 263
1852
+ },
1853
+ {
1854
+ "epoch": 1.1625183016105418,
1855
+ "grad_norm": 0.29037637226651547,
1856
+ "learning_rate": 8.554898677875509e-06,
1857
+ "loss": 1.663,
1858
+ "step": 264
1859
+ },
1860
+ {
1861
+ "epoch": 1.1669106881405564,
1862
+ "grad_norm": 0.29574080692093535,
1863
+ "learning_rate": 8.542000708846851e-06,
1864
+ "loss": 1.6937,
1865
+ "step": 265
1866
+ },
1867
+ {
1868
+ "epoch": 1.171303074670571,
1869
+ "grad_norm": 0.2867463319690563,
1870
+ "learning_rate": 8.52905525297188e-06,
1871
+ "loss": 1.5812,
1872
+ "step": 266
1873
+ },
1874
+ {
1875
+ "epoch": 1.1756954612005857,
1876
+ "grad_norm": 0.3075848284440638,
1877
+ "learning_rate": 8.516062483807556e-06,
1878
+ "loss": 1.6421,
1879
+ "step": 267
1880
+ },
1881
+ {
1882
+ "epoch": 1.1800878477306003,
1883
+ "grad_norm": 0.2745442718449274,
1884
+ "learning_rate": 8.503022575545159e-06,
1885
+ "loss": 1.6592,
1886
+ "step": 268
1887
+ },
1888
+ {
1889
+ "epoch": 1.1844802342606149,
1890
+ "grad_norm": 0.4008583979349149,
1891
+ "learning_rate": 8.48993570300795e-06,
1892
+ "loss": 1.6052,
1893
+ "step": 269
1894
+ },
1895
+ {
1896
+ "epoch": 1.1888726207906295,
1897
+ "grad_norm": 0.5183284694523707,
1898
+ "learning_rate": 8.476802041648832e-06,
1899
+ "loss": 1.7352,
1900
+ "step": 270
1901
+ },
1902
+ {
1903
+ "epoch": 1.1932650073206443,
1904
+ "grad_norm": 0.30560643793660064,
1905
+ "learning_rate": 8.463621767547998e-06,
1906
+ "loss": 1.5592,
1907
+ "step": 271
1908
+ },
1909
+ {
1910
+ "epoch": 1.197657393850659,
1911
+ "grad_norm": 0.5272799941494408,
1912
+ "learning_rate": 8.450395057410561e-06,
1913
+ "loss": 1.5471,
1914
+ "step": 272
1915
+ },
1916
+ {
1917
+ "epoch": 1.2020497803806736,
1918
+ "grad_norm": 0.4281815470371588,
1919
+ "learning_rate": 8.437122088564197e-06,
1920
+ "loss": 1.6445,
1921
+ "step": 273
1922
+ },
1923
+ {
1924
+ "epoch": 1.2064421669106882,
1925
+ "grad_norm": 0.27224728594527714,
1926
+ "learning_rate": 8.423803038956763e-06,
1927
+ "loss": 1.6629,
1928
+ "step": 274
1929
+ },
1930
+ {
1931
+ "epoch": 1.2108345534407028,
1932
+ "grad_norm": 0.3269535080116159,
1933
+ "learning_rate": 8.41043808715391e-06,
1934
+ "loss": 1.5722,
1935
+ "step": 275
1936
+ },
1937
+ {
1938
+ "epoch": 1.2152269399707174,
1939
+ "grad_norm": 0.3054371244574999,
1940
+ "learning_rate": 8.39702741233669e-06,
1941
+ "loss": 1.6173,
1942
+ "step": 276
1943
+ },
1944
+ {
1945
+ "epoch": 1.219619326500732,
1946
+ "grad_norm": 0.36010851057708126,
1947
+ "learning_rate": 8.383571194299154e-06,
1948
+ "loss": 1.596,
1949
+ "step": 277
1950
+ },
1951
+ {
1952
+ "epoch": 1.2240117130307466,
1953
+ "grad_norm": 0.3803533141127172,
1954
+ "learning_rate": 8.37006961344594e-06,
1955
+ "loss": 1.6229,
1956
+ "step": 278
1957
+ },
1958
+ {
1959
+ "epoch": 1.2284040995607612,
1960
+ "grad_norm": 0.28612951080269505,
1961
+ "learning_rate": 8.356522850789852e-06,
1962
+ "loss": 1.5549,
1963
+ "step": 279
1964
+ },
1965
+ {
1966
+ "epoch": 1.232796486090776,
1967
+ "grad_norm": 0.2855964904759227,
1968
+ "learning_rate": 8.342931087949446e-06,
1969
+ "loss": 1.6512,
1970
+ "step": 280
1971
+ },
1972
+ {
1973
+ "epoch": 1.2371888726207907,
1974
+ "grad_norm": 0.3054377930088084,
1975
+ "learning_rate": 8.32929450714658e-06,
1976
+ "loss": 1.6274,
1977
+ "step": 281
1978
+ },
1979
+ {
1980
+ "epoch": 1.2415812591508053,
1981
+ "grad_norm": 0.29343763848165016,
1982
+ "learning_rate": 8.315613291203977e-06,
1983
+ "loss": 1.6372,
1984
+ "step": 282
1985
+ },
1986
+ {
1987
+ "epoch": 1.24597364568082,
1988
+ "grad_norm": 0.40870431747557984,
1989
+ "learning_rate": 8.301887623542774e-06,
1990
+ "loss": 1.6667,
1991
+ "step": 283
1992
+ },
1993
+ {
1994
+ "epoch": 1.2503660322108345,
1995
+ "grad_norm": 0.30881819618442474,
1996
+ "learning_rate": 8.288117688180064e-06,
1997
+ "loss": 1.5547,
1998
+ "step": 284
1999
+ },
2000
+ {
2001
+ "epoch": 1.2547584187408491,
2002
+ "grad_norm": 0.28765815508847925,
2003
+ "learning_rate": 8.274303669726427e-06,
2004
+ "loss": 1.6097,
2005
+ "step": 285
2006
+ },
2007
+ {
2008
+ "epoch": 1.2591508052708638,
2009
+ "grad_norm": 0.33007103881402516,
2010
+ "learning_rate": 8.260445753383453e-06,
2011
+ "loss": 1.7016,
2012
+ "step": 286
2013
+ },
2014
+ {
2015
+ "epoch": 1.2635431918008786,
2016
+ "grad_norm": 0.3628853649167158,
2017
+ "learning_rate": 8.246544124941266e-06,
2018
+ "loss": 1.6086,
2019
+ "step": 287
2020
+ },
2021
+ {
2022
+ "epoch": 1.267935578330893,
2023
+ "grad_norm": 0.40134140387051037,
2024
+ "learning_rate": 8.232598970776027e-06,
2025
+ "loss": 1.6789,
2026
+ "step": 288
2027
+ },
2028
+ {
2029
+ "epoch": 1.2723279648609078,
2030
+ "grad_norm": 0.2920563442488122,
2031
+ "learning_rate": 8.218610477847435e-06,
2032
+ "loss": 1.5915,
2033
+ "step": 289
2034
+ },
2035
+ {
2036
+ "epoch": 1.2767203513909224,
2037
+ "grad_norm": 0.28530665366941144,
2038
+ "learning_rate": 8.204578833696228e-06,
2039
+ "loss": 1.5949,
2040
+ "step": 290
2041
+ },
2042
+ {
2043
+ "epoch": 1.281112737920937,
2044
+ "grad_norm": 0.3155789127902478,
2045
+ "learning_rate": 8.190504226441654e-06,
2046
+ "loss": 1.639,
2047
+ "step": 291
2048
+ },
2049
+ {
2050
+ "epoch": 1.2855051244509517,
2051
+ "grad_norm": 0.3199350667177758,
2052
+ "learning_rate": 8.176386844778969e-06,
2053
+ "loss": 1.6818,
2054
+ "step": 292
2055
+ },
2056
+ {
2057
+ "epoch": 1.2898975109809663,
2058
+ "grad_norm": 0.34596043922632713,
2059
+ "learning_rate": 8.162226877976886e-06,
2060
+ "loss": 1.6604,
2061
+ "step": 293
2062
+ },
2063
+ {
2064
+ "epoch": 1.294289897510981,
2065
+ "grad_norm": 0.32781624288061406,
2066
+ "learning_rate": 8.148024515875057e-06,
2067
+ "loss": 1.5971,
2068
+ "step": 294
2069
+ },
2070
+ {
2071
+ "epoch": 1.2986822840409955,
2072
+ "grad_norm": 0.5927243317332561,
2073
+ "learning_rate": 8.133779948881514e-06,
2074
+ "loss": 1.6574,
2075
+ "step": 295
2076
+ },
2077
+ {
2078
+ "epoch": 1.3030746705710103,
2079
+ "grad_norm": 0.296769298222996,
2080
+ "learning_rate": 8.11949336797012e-06,
2081
+ "loss": 1.5505,
2082
+ "step": 296
2083
+ },
2084
+ {
2085
+ "epoch": 1.307467057101025,
2086
+ "grad_norm": 0.28849112804215943,
2087
+ "learning_rate": 8.105164964678009e-06,
2088
+ "loss": 1.6729,
2089
+ "step": 297
2090
+ },
2091
+ {
2092
+ "epoch": 1.3118594436310396,
2093
+ "grad_norm": 0.3286168384006033,
2094
+ "learning_rate": 8.090794931103026e-06,
2095
+ "loss": 1.5949,
2096
+ "step": 298
2097
+ },
2098
+ {
2099
+ "epoch": 1.3162518301610542,
2100
+ "grad_norm": 0.31185844876531665,
2101
+ "learning_rate": 8.076383459901138e-06,
2102
+ "loss": 1.6918,
2103
+ "step": 299
2104
+ },
2105
+ {
2106
+ "epoch": 1.3206442166910688,
2107
+ "grad_norm": 0.2789921585419944,
2108
+ "learning_rate": 8.061930744283855e-06,
2109
+ "loss": 1.6437,
2110
+ "step": 300
2111
+ },
2112
+ {
2113
+ "epoch": 1.3250366032210834,
2114
+ "grad_norm": 0.30165508316706874,
2115
+ "learning_rate": 8.04743697801565e-06,
2116
+ "loss": 1.6555,
2117
+ "step": 301
2118
+ },
2119
+ {
2120
+ "epoch": 1.329428989751098,
2121
+ "grad_norm": 0.2989059936488396,
2122
+ "learning_rate": 8.032902355411345e-06,
2123
+ "loss": 1.5141,
2124
+ "step": 302
2125
+ },
2126
+ {
2127
+ "epoch": 1.3338213762811129,
2128
+ "grad_norm": 0.29928394703560823,
2129
+ "learning_rate": 8.018327071333521e-06,
2130
+ "loss": 1.5859,
2131
+ "step": 303
2132
+ },
2133
+ {
2134
+ "epoch": 1.3382137628111272,
2135
+ "grad_norm": 0.29795453570714703,
2136
+ "learning_rate": 8.003711321189895e-06,
2137
+ "loss": 1.5864,
2138
+ "step": 304
2139
+ },
2140
+ {
2141
+ "epoch": 1.342606149341142,
2142
+ "grad_norm": 0.30765817351768504,
2143
+ "learning_rate": 7.989055300930704e-06,
2144
+ "loss": 1.5743,
2145
+ "step": 305
2146
+ },
2147
+ {
2148
+ "epoch": 1.3469985358711567,
2149
+ "grad_norm": 0.43955554329120444,
2150
+ "learning_rate": 7.974359207046081e-06,
2151
+ "loss": 1.6423,
2152
+ "step": 306
2153
+ },
2154
+ {
2155
+ "epoch": 1.3513909224011713,
2156
+ "grad_norm": 0.37865307469865994,
2157
+ "learning_rate": 7.959623236563412e-06,
2158
+ "loss": 1.6102,
2159
+ "step": 307
2160
+ },
2161
+ {
2162
+ "epoch": 1.355783308931186,
2163
+ "grad_norm": 0.3074090057367007,
2164
+ "learning_rate": 7.944847587044704e-06,
2165
+ "loss": 1.6602,
2166
+ "step": 308
2167
+ },
2168
+ {
2169
+ "epoch": 1.3601756954612005,
2170
+ "grad_norm": 0.3361817362879421,
2171
+ "learning_rate": 7.930032456583931e-06,
2172
+ "loss": 1.6704,
2173
+ "step": 309
2174
+ },
2175
+ {
2176
+ "epoch": 1.3645680819912152,
2177
+ "grad_norm": 0.2960444587212274,
2178
+ "learning_rate": 7.915178043804382e-06,
2179
+ "loss": 1.5536,
2180
+ "step": 310
2181
+ },
2182
+ {
2183
+ "epoch": 1.3689604685212298,
2184
+ "grad_norm": 0.31080078465435335,
2185
+ "learning_rate": 7.900284547855992e-06,
2186
+ "loss": 1.659,
2187
+ "step": 311
2188
+ },
2189
+ {
2190
+ "epoch": 1.3733528550512446,
2191
+ "grad_norm": 0.29259208311732576,
2192
+ "learning_rate": 7.885352168412677e-06,
2193
+ "loss": 1.6324,
2194
+ "step": 312
2195
+ },
2196
+ {
2197
+ "epoch": 1.3777452415812592,
2198
+ "grad_norm": 0.40704907971444493,
2199
+ "learning_rate": 7.870381105669657e-06,
2200
+ "loss": 1.6954,
2201
+ "step": 313
2202
+ },
2203
+ {
2204
+ "epoch": 1.3821376281112738,
2205
+ "grad_norm": 0.2884678272243352,
2206
+ "learning_rate": 7.85537156034077e-06,
2207
+ "loss": 1.6911,
2208
+ "step": 314
2209
+ },
2210
+ {
2211
+ "epoch": 1.3865300146412884,
2212
+ "grad_norm": 0.3002277679918279,
2213
+ "learning_rate": 7.84032373365578e-06,
2214
+ "loss": 1.6384,
2215
+ "step": 315
2216
+ },
2217
+ {
2218
+ "epoch": 1.390922401171303,
2219
+ "grad_norm": 0.29747656531257255,
2220
+ "learning_rate": 7.825237827357684e-06,
2221
+ "loss": 1.5728,
2222
+ "step": 316
2223
+ },
2224
+ {
2225
+ "epoch": 1.3953147877013177,
2226
+ "grad_norm": 0.2922330023166882,
2227
+ "learning_rate": 7.810114043700002e-06,
2228
+ "loss": 1.6876,
2229
+ "step": 317
2230
+ },
2231
+ {
2232
+ "epoch": 1.3997071742313323,
2233
+ "grad_norm": 0.29216993729442,
2234
+ "learning_rate": 7.794952585444068e-06,
2235
+ "loss": 1.7112,
2236
+ "step": 318
2237
+ },
2238
+ {
2239
+ "epoch": 1.4040995607613471,
2240
+ "grad_norm": 0.2841430060967501,
2241
+ "learning_rate": 7.779753655856313e-06,
2242
+ "loss": 1.6352,
2243
+ "step": 319
2244
+ },
2245
+ {
2246
+ "epoch": 1.4084919472913615,
2247
+ "grad_norm": 0.29535174268674796,
2248
+ "learning_rate": 7.764517458705536e-06,
2249
+ "loss": 1.638,
2250
+ "step": 320
2251
+ },
2252
+ {
2253
+ "epoch": 1.4128843338213763,
2254
+ "grad_norm": 0.3553267662730052,
2255
+ "learning_rate": 7.749244198260175e-06,
2256
+ "loss": 1.6262,
2257
+ "step": 321
2258
+ },
2259
+ {
2260
+ "epoch": 1.417276720351391,
2261
+ "grad_norm": 0.2977673782348279,
2262
+ "learning_rate": 7.733934079285569e-06,
2263
+ "loss": 1.6115,
2264
+ "step": 322
2265
+ },
2266
+ {
2267
+ "epoch": 1.4216691068814056,
2268
+ "grad_norm": 0.2822196746941408,
2269
+ "learning_rate": 7.718587307041209e-06,
2270
+ "loss": 1.6468,
2271
+ "step": 323
2272
+ },
2273
+ {
2274
+ "epoch": 1.4260614934114202,
2275
+ "grad_norm": 0.2837671497162217,
2276
+ "learning_rate": 7.703204087277989e-06,
2277
+ "loss": 1.6474,
2278
+ "step": 324
2279
+ },
2280
+ {
2281
+ "epoch": 1.4304538799414348,
2282
+ "grad_norm": 0.31664451334685184,
2283
+ "learning_rate": 7.687784626235448e-06,
2284
+ "loss": 1.5919,
2285
+ "step": 325
2286
+ },
2287
+ {
2288
+ "epoch": 1.4348462664714494,
2289
+ "grad_norm": 0.33195017711571867,
2290
+ "learning_rate": 7.672329130639007e-06,
2291
+ "loss": 1.6941,
2292
+ "step": 326
2293
+ },
2294
+ {
2295
+ "epoch": 1.439238653001464,
2296
+ "grad_norm": 0.2995108911659512,
2297
+ "learning_rate": 7.656837807697187e-06,
2298
+ "loss": 1.6393,
2299
+ "step": 327
2300
+ },
2301
+ {
2302
+ "epoch": 1.4436310395314789,
2303
+ "grad_norm": 0.2949122695416032,
2304
+ "learning_rate": 7.641310865098845e-06,
2305
+ "loss": 1.5135,
2306
+ "step": 328
2307
+ },
2308
+ {
2309
+ "epoch": 1.4480234260614935,
2310
+ "grad_norm": 0.31946384200509315,
2311
+ "learning_rate": 7.625748511010382e-06,
2312
+ "loss": 1.5784,
2313
+ "step": 329
2314
+ },
2315
+ {
2316
+ "epoch": 1.452415812591508,
2317
+ "grad_norm": 0.29208814812765094,
2318
+ "learning_rate": 7.610150954072953e-06,
2319
+ "loss": 1.6794,
2320
+ "step": 330
2321
+ },
2322
+ {
2323
+ "epoch": 1.4568081991215227,
2324
+ "grad_norm": 0.34475174012170284,
2325
+ "learning_rate": 7.594518403399666e-06,
2326
+ "loss": 1.5773,
2327
+ "step": 331
2328
+ },
2329
+ {
2330
+ "epoch": 1.4612005856515373,
2331
+ "grad_norm": 0.2876304119955936,
2332
+ "learning_rate": 7.578851068572788e-06,
2333
+ "loss": 1.5613,
2334
+ "step": 332
2335
+ },
2336
+ {
2337
+ "epoch": 1.465592972181552,
2338
+ "grad_norm": 0.31542092184200016,
2339
+ "learning_rate": 7.563149159640929e-06,
2340
+ "loss": 1.6086,
2341
+ "step": 333
2342
+ },
2343
+ {
2344
+ "epoch": 1.4699853587115665,
2345
+ "grad_norm": 0.2964161628058562,
2346
+ "learning_rate": 7.547412887116224e-06,
2347
+ "loss": 1.5963,
2348
+ "step": 334
2349
+ },
2350
+ {
2351
+ "epoch": 1.4743777452415814,
2352
+ "grad_norm": 0.32832262869958717,
2353
+ "learning_rate": 7.531642461971515e-06,
2354
+ "loss": 1.6054,
2355
+ "step": 335
2356
+ },
2357
+ {
2358
+ "epoch": 1.4787701317715958,
2359
+ "grad_norm": 0.3209241382730098,
2360
+ "learning_rate": 7.51583809563752e-06,
2361
+ "loss": 1.6748,
2362
+ "step": 336
2363
+ },
2364
+ {
2365
+ "epoch": 1.4831625183016106,
2366
+ "grad_norm": 0.30060262616835987,
2367
+ "learning_rate": 7.500000000000001e-06,
2368
+ "loss": 1.6081,
2369
+ "step": 337
2370
+ },
2371
+ {
2372
+ "epoch": 1.4875549048316252,
2373
+ "grad_norm": 0.3500388762321464,
2374
+ "learning_rate": 7.4841283873969194e-06,
2375
+ "loss": 1.5906,
2376
+ "step": 338
2377
+ },
2378
+ {
2379
+ "epoch": 1.4919472913616398,
2380
+ "grad_norm": 0.28308587203259633,
2381
+ "learning_rate": 7.468223470615593e-06,
2382
+ "loss": 1.5879,
2383
+ "step": 339
2384
+ },
2385
+ {
2386
+ "epoch": 1.4963396778916545,
2387
+ "grad_norm": 0.2901927981331445,
2388
+ "learning_rate": 7.452285462889841e-06,
2389
+ "loss": 1.6242,
2390
+ "step": 340
2391
+ },
2392
+ {
2393
+ "epoch": 1.500732064421669,
2394
+ "grad_norm": 0.3314307283598877,
2395
+ "learning_rate": 7.436314577897126e-06,
2396
+ "loss": 1.646,
2397
+ "step": 341
2398
+ },
2399
+ {
2400
+ "epoch": 1.505124450951684,
2401
+ "grad_norm": 0.3264131109049365,
2402
+ "learning_rate": 7.420311029755688e-06,
2403
+ "loss": 1.5855,
2404
+ "step": 342
2405
+ }
2406
+ ],
2407
+ "logging_steps": 1,
2408
+ "max_steps": 908,
2409
+ "num_input_tokens_seen": 0,
2410
+ "num_train_epochs": 4,
2411
+ "save_steps": 114,
2412
+ "stateful_callbacks": {
2413
+ "TrainerControl": {
2414
+ "args": {
2415
+ "should_epoch_stop": false,
2416
+ "should_evaluate": false,
2417
+ "should_log": false,
2418
+ "should_save": true,
2419
+ "should_training_stop": false
2420
+ },
2421
+ "attributes": {}
2422
+ }
2423
+ },
2424
+ "total_flos": 9.039402133010514e+17,
2425
+ "train_batch_size": 8,
2426
+ "trial_name": null,
2427
+ "trial_params": null
2428
+ }
checkpoint-342/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f598588716f36b5db7091989142a430a4fd275bce6f1e0d8e6c17f595272e1ec
3
+ size 9041
checkpoint-342/zero_to_fp32.py ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 json
25
+ from tqdm import tqdm
26
+ from collections import OrderedDict
27
+ from dataclasses import dataclass
28
+
29
+ # while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
30
+ # DeepSpeed data structures it has to be available in the current python environment.
31
+ from deepspeed.utils import logger
32
+ from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
33
+ FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
34
+ FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
35
+
36
+
37
+ @dataclass
38
+ class zero_model_state:
39
+ buffers: dict()
40
+ param_shapes: dict()
41
+ shared_params: list
42
+ ds_version: int
43
+ frozen_param_shapes: dict()
44
+ frozen_param_fragments: dict()
45
+
46
+
47
+ debug = 0
48
+
49
+ # load to cpu
50
+ device = torch.device('cpu')
51
+
52
+
53
+ def atoi(text):
54
+ return int(text) if text.isdigit() else text
55
+
56
+
57
+ def natural_keys(text):
58
+ '''
59
+ alist.sort(key=natural_keys) sorts in human order
60
+ http://nedbatchelder.com/blog/200712/human_sorting.html
61
+ (See Toothy's implementation in the comments)
62
+ '''
63
+ return [atoi(c) for c in re.split(r'(\d+)', text)]
64
+
65
+
66
+ def get_model_state_file(checkpoint_dir, zero_stage):
67
+ if not os.path.isdir(checkpoint_dir):
68
+ raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
69
+
70
+ # there should be only one file
71
+ if zero_stage <= 2:
72
+ file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
73
+ elif zero_stage == 3:
74
+ file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
75
+
76
+ if not os.path.exists(file):
77
+ raise FileNotFoundError(f"can't find model states file at '{file}'")
78
+
79
+ return file
80
+
81
+
82
+ def get_checkpoint_files(checkpoint_dir, glob_pattern):
83
+ # XXX: need to test that this simple glob rule works for multi-node setup too
84
+ ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
85
+
86
+ if len(ckpt_files) == 0:
87
+ raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
88
+
89
+ return ckpt_files
90
+
91
+
92
+ def get_optim_files(checkpoint_dir):
93
+ return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
94
+
95
+
96
+ def get_model_state_files(checkpoint_dir):
97
+ return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
98
+
99
+
100
+ def parse_model_states(files):
101
+ zero_model_states = []
102
+ for file in files:
103
+ state_dict = torch.load(file, map_location=device)
104
+
105
+ if BUFFER_NAMES not in state_dict:
106
+ raise ValueError(f"{file} is not a model state checkpoint")
107
+ buffer_names = state_dict[BUFFER_NAMES]
108
+ if debug:
109
+ print("Found buffers:", buffer_names)
110
+
111
+ # recover just the buffers while restoring them to fp32 if they were saved in fp16
112
+ buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
113
+ param_shapes = state_dict[PARAM_SHAPES]
114
+
115
+ # collect parameters that are included in param_shapes
116
+ param_names = []
117
+ for s in param_shapes:
118
+ for name in s.keys():
119
+ param_names.append(name)
120
+
121
+ # update with frozen parameters
122
+ frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
123
+ if frozen_param_shapes is not None:
124
+ if debug:
125
+ print(f"Found frozen_param_shapes: {frozen_param_shapes}")
126
+ param_names += list(frozen_param_shapes.keys())
127
+
128
+ # handle shared params
129
+ shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
130
+
131
+ ds_version = state_dict.get(DS_VERSION, None)
132
+
133
+ frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
134
+
135
+ z_model_state = zero_model_state(buffers=buffers,
136
+ param_shapes=param_shapes,
137
+ shared_params=shared_params,
138
+ ds_version=ds_version,
139
+ frozen_param_shapes=frozen_param_shapes,
140
+ frozen_param_fragments=frozen_param_fragments)
141
+ zero_model_states.append(z_model_state)
142
+
143
+ return zero_model_states
144
+
145
+
146
+ def parse_optim_states(files, ds_checkpoint_dir):
147
+ total_files = len(files)
148
+ state_dicts = []
149
+ for f in files:
150
+ state_dict = torch.load(f, map_location=device)
151
+ # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
152
+ # and also handle the case where it was already removed by another helper script
153
+ state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
154
+ state_dicts.append(state_dict)
155
+
156
+ if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
157
+ raise ValueError(f"{files[0]} is not a zero checkpoint")
158
+ zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
159
+ world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
160
+
161
+ # For ZeRO-2 each param group can have different partition_count as data parallelism for expert
162
+ # parameters can be different from data parallelism for non-expert parameters. So we can just
163
+ # use the max of the partition_count to get the dp world_size.
164
+
165
+ if type(world_size) is list:
166
+ world_size = max(world_size)
167
+
168
+ if world_size != total_files:
169
+ raise ValueError(
170
+ f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
171
+ "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
172
+ )
173
+
174
+ # the groups are named differently in each stage
175
+ if zero_stage <= 2:
176
+ fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
177
+ elif zero_stage == 3:
178
+ fp32_groups_key = FP32_FLAT_GROUPS
179
+ else:
180
+ raise ValueError(f"unknown zero stage {zero_stage}")
181
+
182
+ if zero_stage <= 2:
183
+ fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
184
+ elif zero_stage == 3:
185
+ # if there is more than one param group, there will be multiple flattened tensors - one
186
+ # flattened tensor per group - for simplicity merge them into a single tensor
187
+ #
188
+ # XXX: could make the script more memory efficient for when there are multiple groups - it
189
+ # will require matching the sub-lists of param_shapes for each param group flattened tensor
190
+
191
+ fp32_flat_groups = [
192
+ torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts))
193
+ ]
194
+
195
+ return zero_stage, world_size, fp32_flat_groups
196
+
197
+
198
+ def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
199
+ """
200
+ Returns fp32 state_dict reconstructed from ds checkpoint
201
+
202
+ Args:
203
+ - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
204
+
205
+ """
206
+ print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
207
+
208
+ optim_files = get_optim_files(ds_checkpoint_dir)
209
+ zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
210
+ print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
211
+
212
+ model_files = get_model_state_files(ds_checkpoint_dir)
213
+
214
+ zero_model_states = parse_model_states(model_files)
215
+ print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
216
+
217
+ if zero_stage <= 2:
218
+ return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
219
+ exclude_frozen_parameters)
220
+ elif zero_stage == 3:
221
+ return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
222
+ exclude_frozen_parameters)
223
+
224
+
225
+ def _zero2_merge_frozen_params(state_dict, zero_model_states):
226
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
227
+ return
228
+
229
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
230
+ frozen_param_fragments = zero_model_states[0].frozen_param_fragments
231
+
232
+ if debug:
233
+ num_elem = sum(s.numel() for s in frozen_param_shapes.values())
234
+ print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
235
+
236
+ wanted_params = len(frozen_param_shapes)
237
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
238
+ avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
239
+ print(f'Frozen params: Have {avail_numel} numels to process.')
240
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
241
+
242
+ total_params = 0
243
+ total_numel = 0
244
+ for name, shape in frozen_param_shapes.items():
245
+ total_params += 1
246
+ unpartitioned_numel = shape.numel()
247
+ total_numel += unpartitioned_numel
248
+
249
+ state_dict[name] = frozen_param_fragments[name]
250
+
251
+ if debug:
252
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
253
+
254
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
255
+
256
+
257
+ def _has_callable(obj, fn):
258
+ attr = getattr(obj, fn, None)
259
+ return callable(attr)
260
+
261
+
262
+ def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
263
+ param_shapes = zero_model_states[0].param_shapes
264
+
265
+ # Reconstruction protocol:
266
+ #
267
+ # XXX: document this
268
+
269
+ if debug:
270
+ for i in range(world_size):
271
+ for j in range(len(fp32_flat_groups[0])):
272
+ print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
273
+
274
+ # XXX: memory usage doubles here (zero2)
275
+ num_param_groups = len(fp32_flat_groups[0])
276
+ merged_single_partition_of_fp32_groups = []
277
+ for i in range(num_param_groups):
278
+ merged_partitions = [sd[i] for sd in fp32_flat_groups]
279
+ full_single_fp32_vector = torch.cat(merged_partitions, 0)
280
+ merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
281
+ avail_numel = sum(
282
+ [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
283
+
284
+ if debug:
285
+ wanted_params = sum([len(shapes) for shapes in param_shapes])
286
+ wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
287
+ # not asserting if there is a mismatch due to possible padding
288
+ print(f"Have {avail_numel} numels to process.")
289
+ print(f"Need {wanted_numel} numels in {wanted_params} params.")
290
+
291
+ # params
292
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
293
+ # out-of-core computing solution
294
+ total_numel = 0
295
+ total_params = 0
296
+ for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
297
+ offset = 0
298
+ avail_numel = full_single_fp32_vector.numel()
299
+ for name, shape in shapes.items():
300
+
301
+ unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
302
+ total_numel += unpartitioned_numel
303
+ total_params += 1
304
+
305
+ if debug:
306
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
307
+ state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
308
+ offset += unpartitioned_numel
309
+
310
+ # Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
311
+ # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
312
+ # paddings performed in the code it's almost impossible to predict the exact numbers w/o the
313
+ # live optimizer object, so we are checking that the numbers are within the right range
314
+ align_to = 2 * world_size
315
+
316
+ def zero2_align(x):
317
+ return align_to * math.ceil(x / align_to)
318
+
319
+ if debug:
320
+ print(f"original offset={offset}, avail_numel={avail_numel}")
321
+
322
+ offset = zero2_align(offset)
323
+ avail_numel = zero2_align(avail_numel)
324
+
325
+ if debug:
326
+ print(f"aligned offset={offset}, avail_numel={avail_numel}")
327
+
328
+ # Sanity check
329
+ if offset != avail_numel:
330
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
331
+
332
+ print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
333
+
334
+
335
+ def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
336
+ exclude_frozen_parameters):
337
+ state_dict = OrderedDict()
338
+
339
+ # buffers
340
+ buffers = zero_model_states[0].buffers
341
+ state_dict.update(buffers)
342
+ if debug:
343
+ print(f"added {len(buffers)} buffers")
344
+
345
+ if not exclude_frozen_parameters:
346
+ _zero2_merge_frozen_params(state_dict, zero_model_states)
347
+
348
+ _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
349
+
350
+ # recover shared parameters
351
+ for pair in zero_model_states[0].shared_params:
352
+ if pair[1] in state_dict:
353
+ state_dict[pair[0]] = state_dict[pair[1]]
354
+
355
+ return state_dict
356
+
357
+
358
+ def zero3_partitioned_param_info(unpartitioned_numel, world_size):
359
+ remainder = unpartitioned_numel % world_size
360
+ padding_numel = (world_size - remainder) if remainder else 0
361
+ partitioned_numel = math.ceil(unpartitioned_numel / world_size)
362
+ return partitioned_numel, padding_numel
363
+
364
+
365
+ def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
366
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
367
+ return
368
+
369
+ if debug:
370
+ for i in range(world_size):
371
+ num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
372
+ print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
373
+
374
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
375
+ wanted_params = len(frozen_param_shapes)
376
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
377
+ avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
378
+ print(f'Frozen params: Have {avail_numel} numels to process.')
379
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
380
+
381
+ total_params = 0
382
+ total_numel = 0
383
+ for name, shape in zero_model_states[0].frozen_param_shapes.items():
384
+ total_params += 1
385
+ unpartitioned_numel = shape.numel()
386
+ total_numel += unpartitioned_numel
387
+
388
+ param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
389
+ state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
390
+
391
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
392
+
393
+ if debug:
394
+ print(
395
+ f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
396
+ )
397
+
398
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
399
+
400
+
401
+ def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
402
+ param_shapes = zero_model_states[0].param_shapes
403
+ avail_numel = fp32_flat_groups[0].numel() * world_size
404
+ # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
405
+ # param, re-consolidating each param, while dealing with padding if any
406
+
407
+ # merge list of dicts, preserving order
408
+ param_shapes = {k: v for d in param_shapes for k, v in d.items()}
409
+
410
+ if debug:
411
+ for i in range(world_size):
412
+ print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
413
+
414
+ wanted_params = len(param_shapes)
415
+ wanted_numel = sum(shape.numel() for shape in param_shapes.values())
416
+ # not asserting if there is a mismatch due to possible padding
417
+ avail_numel = fp32_flat_groups[0].numel() * world_size
418
+ print(f"Trainable params: Have {avail_numel} numels to process.")
419
+ print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
420
+
421
+ # params
422
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
423
+ # out-of-core computing solution
424
+ offset = 0
425
+ total_numel = 0
426
+ total_params = 0
427
+ for name, shape in tqdm(param_shapes.items(), desc='Gathering Sharded Weights'):
428
+ unpartitioned_numel = shape.numel()
429
+ total_numel += unpartitioned_numel
430
+ total_params += 1
431
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
432
+
433
+ if debug:
434
+ print(
435
+ f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
436
+ )
437
+
438
+ # XXX: memory usage doubles here
439
+ state_dict[name] = torch.cat(
440
+ tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)),
441
+ 0).narrow(0, 0, unpartitioned_numel).view(shape)
442
+ offset += partitioned_numel
443
+
444
+ offset *= world_size
445
+
446
+ # Sanity check
447
+ if offset != avail_numel:
448
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
449
+
450
+ print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
451
+
452
+
453
+ def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
454
+ exclude_frozen_parameters):
455
+ state_dict = OrderedDict()
456
+
457
+ # buffers
458
+ buffers = zero_model_states[0].buffers
459
+ state_dict.update(buffers)
460
+ if debug:
461
+ print(f"added {len(buffers)} buffers")
462
+
463
+ if not exclude_frozen_parameters:
464
+ _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
465
+
466
+ _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
467
+
468
+ # recover shared parameters
469
+ for pair in zero_model_states[0].shared_params:
470
+ if pair[1] in state_dict:
471
+ state_dict[pair[0]] = state_dict[pair[1]]
472
+
473
+ return state_dict
474
+
475
+
476
+ def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None, exclude_frozen_parameters=False):
477
+ """
478
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
479
+ ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
480
+ via a model hub.
481
+
482
+ Args:
483
+ - ``checkpoint_dir``: path to the desired checkpoint folder
484
+ - ``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``
485
+ - ``exclude_frozen_parameters``: exclude frozen parameters
486
+
487
+ Returns:
488
+ - pytorch ``state_dict``
489
+
490
+ Note: this approach may not work if your application doesn't have sufficient free CPU memory and
491
+ you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
492
+ the checkpoint.
493
+
494
+ A typical usage might be ::
495
+
496
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
497
+ # do the training and checkpoint saving
498
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
499
+ model = model.cpu() # move to cpu
500
+ model.load_state_dict(state_dict)
501
+ # submit to model hub or save the model to share with others
502
+
503
+ In this example the ``model`` will no longer be usable in the deepspeed context of the same
504
+ application. i.e. you will need to re-initialize the deepspeed engine, since
505
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
506
+
507
+ If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
508
+
509
+ """
510
+ if tag is None:
511
+ latest_path = os.path.join(checkpoint_dir, 'latest')
512
+ if os.path.isfile(latest_path):
513
+ with open(latest_path, 'r') as fd:
514
+ tag = fd.read().strip()
515
+ else:
516
+ raise ValueError(f"Unable to find 'latest' file at {latest_path}")
517
+
518
+ ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
519
+
520
+ if not os.path.isdir(ds_checkpoint_dir):
521
+ raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
522
+
523
+ return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
524
+
525
+
526
+ def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
527
+ output_dir,
528
+ max_shard_size="5GB",
529
+ safe_serialization=False,
530
+ tag=None,
531
+ exclude_frozen_parameters=False):
532
+ """
533
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
534
+ loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
535
+
536
+ Args:
537
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
538
+ - ``output_dir``: directory to the pytorch fp32 state_dict output files
539
+ - ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
540
+ - ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
541
+ - ``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``
542
+ - ``exclude_frozen_parameters``: exclude frozen parameters
543
+ """
544
+ # Dependency pre-check
545
+ if safe_serialization:
546
+ try:
547
+ from safetensors.torch import save_file
548
+ except ImportError:
549
+ print('If you want to use `safe_serialization`, please `pip install safetensors`')
550
+ raise
551
+ if max_shard_size is not None:
552
+ try:
553
+ from huggingface_hub import split_torch_state_dict_into_shards
554
+ except ImportError:
555
+ print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
556
+ raise
557
+
558
+ # Convert zero checkpoint to state_dict
559
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag, exclude_frozen_parameters)
560
+
561
+ # Shard the model if it is too big.
562
+ weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
563
+ if max_shard_size is not None:
564
+ filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
565
+ state_dict_split = split_torch_state_dict_into_shards(state_dict,
566
+ filename_pattern=filename_pattern,
567
+ max_shard_size=max_shard_size)
568
+ else:
569
+ from collections import namedtuple
570
+ StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
571
+ state_dict_split = StateDictSplit(is_sharded=False,
572
+ filename_to_tensors={weights_name: list(state_dict.keys())})
573
+
574
+ # Save the model
575
+ filename_to_tensors = state_dict_split.filename_to_tensors.items()
576
+ for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
577
+ shard = {tensor: state_dict[tensor].contiguous() for tensor in tensors}
578
+ output_path = os.path.join(output_dir, shard_file)
579
+ if safe_serialization:
580
+ save_file(shard, output_path, metadata={"format": "pt"})
581
+ else:
582
+ torch.save(shard, output_path)
583
+
584
+ # Save index if sharded
585
+ if state_dict_split.is_sharded:
586
+ index = {
587
+ "metadata": state_dict_split.metadata,
588
+ "weight_map": state_dict_split.tensor_to_filename,
589
+ }
590
+ save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
591
+ save_index_file = os.path.join(output_dir, save_index_file)
592
+ with open(save_index_file, "w", encoding="utf-8") as f:
593
+ content = json.dumps(index, indent=2, sort_keys=True) + "\n"
594
+ f.write(content)
595
+
596
+
597
+ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
598
+ """
599
+ 1. Put the provided model to cpu
600
+ 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
601
+ 3. Load it into the provided model
602
+
603
+ Args:
604
+ - ``model``: the model object to update
605
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
606
+ - ``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``
607
+
608
+ Returns:
609
+ - ``model`: modified model
610
+
611
+ Make sure you have plenty of CPU memory available before you call this function. If you don't
612
+ have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
613
+ conveniently placed for you in the checkpoint folder.
614
+
615
+ A typical usage might be ::
616
+
617
+ from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
618
+ model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
619
+ # submit to model hub or save the model to share with others
620
+
621
+ Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
622
+ of the same application. i.e. you will need to re-initialize the deepspeed engine, since
623
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
624
+
625
+ """
626
+ logger.info(f"Extracting fp32 weights")
627
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
628
+
629
+ logger.info(f"Overwriting model with fp32 weights")
630
+ model = model.cpu()
631
+ model.load_state_dict(state_dict, strict=False)
632
+
633
+ return model
634
+
635
+
636
+ if __name__ == "__main__":
637
+ parser = argparse.ArgumentParser()
638
+ parser.add_argument("checkpoint_dir",
639
+ type=str,
640
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
641
+ parser.add_argument("output_dir",
642
+ type=str,
643
+ help="directory to the pytorch fp32 state_dict output files"
644
+ "(e.g. path/checkpoint-12-output/)")
645
+ parser.add_argument(
646
+ "--max_shard_size",
647
+ type=str,
648
+ default="5GB",
649
+ help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
650
+ "lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
651
+ "We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
652
+ "without CPU OOM issues.")
653
+ parser.add_argument(
654
+ "--safe_serialization",
655
+ default=False,
656
+ action='store_true',
657
+ help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
658
+ parser.add_argument("-t",
659
+ "--tag",
660
+ type=str,
661
+ default=None,
662
+ help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
663
+ parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
664
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
665
+ args = parser.parse_args()
666
+
667
+ debug = args.debug
668
+
669
+ convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
670
+ args.output_dir,
671
+ max_shard_size=args.max_shard_size,
672
+ safe_serialization=args.safe_serialization,
673
+ tag=args.tag,
674
+ exclude_frozen_parameters=args.exclude_frozen_parameters)
checkpoint-456/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Gryphe/Codex-24B-Small-3.2
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.15.2
checkpoint-456/adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Gryphe/Codex-24B-Small-3.2",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": null,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.5,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 128,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "v_proj",
28
+ "k_proj",
29
+ "down_proj",
30
+ "up_proj",
31
+ "q_proj",
32
+ "o_proj",
33
+ "gate_proj"
34
+ ],
35
+ "task_type": "CAUSAL_LM",
36
+ "trainable_token_indices": null,
37
+ "use_dora": false,
38
+ "use_rslora": true
39
+ }
checkpoint-456/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f34bb6bf04ffe52f23c7cfdec0bc6ad22e6401c8598a92966e7914ba84549146
3
+ size 1478569432
checkpoint-456/global_step456/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:5ee05ef00b2fd406bc0e6c32170d56c52f20863b8320c9875833bcdffaf74bfd
3
+ size 4459517761
checkpoint-456/global_step456/zero_pp_rank_0_mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0726510e6de96d62c6bb2a9ddf7942828e3f0693f4e80f55b2e41b9e2848a12
3
+ size 557481
checkpoint-456/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step456
checkpoint-456/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4daf414073459f2c202276c64795b9b52b1f132919069846c2e24a1894697985
3
+ size 14709
checkpoint-456/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42751c3fda6d7b54652fea9d3d096b4b4ee2931ec6653a079dfc22c1ebc40249
3
+ size 1401
checkpoint-456/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>"
4
+ ],
5
+ "bos_token": {
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "eos_token": {
13
+ "content": "<|im_end|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false
18
+ },
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
checkpoint-456/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1e5daf1e619597fd56ff036925ea189916417c665d5bdd61b80199cf8d4e6d2
3
+ size 17078029
checkpoint-456/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-456/trainer_state.json ADDED
@@ -0,0 +1,3226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.0087847730600292,
6
+ "eval_steps": 500,
7
+ "global_step": 456,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.004392386530014641,
14
+ "grad_norm": 2.023870796411983,
15
+ "learning_rate": 0.0,
16
+ "loss": 1.8021,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.008784773060029283,
21
+ "grad_norm": 2.0723948799697984,
22
+ "learning_rate": 2.0000000000000002e-07,
23
+ "loss": 1.8796,
24
+ "step": 2
25
+ },
26
+ {
27
+ "epoch": 0.013177159590043924,
28
+ "grad_norm": 2.0322569672979474,
29
+ "learning_rate": 4.0000000000000003e-07,
30
+ "loss": 1.855,
31
+ "step": 3
32
+ },
33
+ {
34
+ "epoch": 0.017569546120058566,
35
+ "grad_norm": 2.111472782868084,
36
+ "learning_rate": 6.000000000000001e-07,
37
+ "loss": 1.8545,
38
+ "step": 4
39
+ },
40
+ {
41
+ "epoch": 0.021961932650073207,
42
+ "grad_norm": 2.096607607233168,
43
+ "learning_rate": 8.000000000000001e-07,
44
+ "loss": 1.807,
45
+ "step": 5
46
+ },
47
+ {
48
+ "epoch": 0.02635431918008785,
49
+ "grad_norm": 2.0771855831079518,
50
+ "learning_rate": 1.0000000000000002e-06,
51
+ "loss": 1.8208,
52
+ "step": 6
53
+ },
54
+ {
55
+ "epoch": 0.03074670571010249,
56
+ "grad_norm": 2.0341840619969567,
57
+ "learning_rate": 1.2000000000000002e-06,
58
+ "loss": 1.8754,
59
+ "step": 7
60
+ },
61
+ {
62
+ "epoch": 0.03513909224011713,
63
+ "grad_norm": 2.0564329237094356,
64
+ "learning_rate": 1.4000000000000001e-06,
65
+ "loss": 1.8882,
66
+ "step": 8
67
+ },
68
+ {
69
+ "epoch": 0.03953147877013177,
70
+ "grad_norm": 1.9900074702634307,
71
+ "learning_rate": 1.6000000000000001e-06,
72
+ "loss": 1.8733,
73
+ "step": 9
74
+ },
75
+ {
76
+ "epoch": 0.043923865300146414,
77
+ "grad_norm": 1.895599415585885,
78
+ "learning_rate": 1.8000000000000001e-06,
79
+ "loss": 1.8474,
80
+ "step": 10
81
+ },
82
+ {
83
+ "epoch": 0.048316251830161056,
84
+ "grad_norm": 1.9304209419460994,
85
+ "learning_rate": 2.0000000000000003e-06,
86
+ "loss": 1.884,
87
+ "step": 11
88
+ },
89
+ {
90
+ "epoch": 0.0527086383601757,
91
+ "grad_norm": 1.6511439041472846,
92
+ "learning_rate": 2.2e-06,
93
+ "loss": 1.8452,
94
+ "step": 12
95
+ },
96
+ {
97
+ "epoch": 0.05710102489019034,
98
+ "grad_norm": 1.6727753891125912,
99
+ "learning_rate": 2.4000000000000003e-06,
100
+ "loss": 1.8632,
101
+ "step": 13
102
+ },
103
+ {
104
+ "epoch": 0.06149341142020498,
105
+ "grad_norm": 1.6571693399048197,
106
+ "learning_rate": 2.6e-06,
107
+ "loss": 1.8419,
108
+ "step": 14
109
+ },
110
+ {
111
+ "epoch": 0.06588579795021962,
112
+ "grad_norm": 1.5588712723347087,
113
+ "learning_rate": 2.8000000000000003e-06,
114
+ "loss": 1.8163,
115
+ "step": 15
116
+ },
117
+ {
118
+ "epoch": 0.07027818448023426,
119
+ "grad_norm": 1.57706405792705,
120
+ "learning_rate": 3e-06,
121
+ "loss": 1.7808,
122
+ "step": 16
123
+ },
124
+ {
125
+ "epoch": 0.0746705710102489,
126
+ "grad_norm": 1.4841447475095337,
127
+ "learning_rate": 3.2000000000000003e-06,
128
+ "loss": 1.7854,
129
+ "step": 17
130
+ },
131
+ {
132
+ "epoch": 0.07906295754026355,
133
+ "grad_norm": 1.2785291394155553,
134
+ "learning_rate": 3.4000000000000005e-06,
135
+ "loss": 1.7531,
136
+ "step": 18
137
+ },
138
+ {
139
+ "epoch": 0.08345534407027819,
140
+ "grad_norm": 1.1759630521885338,
141
+ "learning_rate": 3.6000000000000003e-06,
142
+ "loss": 1.8185,
143
+ "step": 19
144
+ },
145
+ {
146
+ "epoch": 0.08784773060029283,
147
+ "grad_norm": 1.1188613513306425,
148
+ "learning_rate": 3.8000000000000005e-06,
149
+ "loss": 1.849,
150
+ "step": 20
151
+ },
152
+ {
153
+ "epoch": 0.09224011713030747,
154
+ "grad_norm": 1.008741263333265,
155
+ "learning_rate": 4.000000000000001e-06,
156
+ "loss": 1.775,
157
+ "step": 21
158
+ },
159
+ {
160
+ "epoch": 0.09663250366032211,
161
+ "grad_norm": 0.9240991279618896,
162
+ "learning_rate": 4.2000000000000004e-06,
163
+ "loss": 1.8253,
164
+ "step": 22
165
+ },
166
+ {
167
+ "epoch": 0.10102489019033675,
168
+ "grad_norm": 0.9015845652170666,
169
+ "learning_rate": 4.4e-06,
170
+ "loss": 1.7967,
171
+ "step": 23
172
+ },
173
+ {
174
+ "epoch": 0.1054172767203514,
175
+ "grad_norm": 0.8007281301128234,
176
+ "learning_rate": 4.600000000000001e-06,
177
+ "loss": 1.7958,
178
+ "step": 24
179
+ },
180
+ {
181
+ "epoch": 0.10980966325036604,
182
+ "grad_norm": 0.7263390923205475,
183
+ "learning_rate": 4.800000000000001e-06,
184
+ "loss": 1.7744,
185
+ "step": 25
186
+ },
187
+ {
188
+ "epoch": 0.11420204978038068,
189
+ "grad_norm": 0.6527771074756341,
190
+ "learning_rate": 5e-06,
191
+ "loss": 1.7502,
192
+ "step": 26
193
+ },
194
+ {
195
+ "epoch": 0.11859443631039532,
196
+ "grad_norm": 0.5943189060332841,
197
+ "learning_rate": 5.2e-06,
198
+ "loss": 1.7378,
199
+ "step": 27
200
+ },
201
+ {
202
+ "epoch": 0.12298682284040996,
203
+ "grad_norm": 0.5426800655727773,
204
+ "learning_rate": 5.400000000000001e-06,
205
+ "loss": 1.7372,
206
+ "step": 28
207
+ },
208
+ {
209
+ "epoch": 0.1273792093704246,
210
+ "grad_norm": 0.46887045607953654,
211
+ "learning_rate": 5.600000000000001e-06,
212
+ "loss": 1.7141,
213
+ "step": 29
214
+ },
215
+ {
216
+ "epoch": 0.13177159590043924,
217
+ "grad_norm": 0.4408809706079413,
218
+ "learning_rate": 5.8e-06,
219
+ "loss": 1.6977,
220
+ "step": 30
221
+ },
222
+ {
223
+ "epoch": 0.13616398243045388,
224
+ "grad_norm": 0.4867065604810947,
225
+ "learning_rate": 6e-06,
226
+ "loss": 1.7379,
227
+ "step": 31
228
+ },
229
+ {
230
+ "epoch": 0.14055636896046853,
231
+ "grad_norm": 0.40882779662256746,
232
+ "learning_rate": 6.200000000000001e-06,
233
+ "loss": 1.8064,
234
+ "step": 32
235
+ },
236
+ {
237
+ "epoch": 0.14494875549048317,
238
+ "grad_norm": 0.4363561706655908,
239
+ "learning_rate": 6.4000000000000006e-06,
240
+ "loss": 1.6835,
241
+ "step": 33
242
+ },
243
+ {
244
+ "epoch": 0.1493411420204978,
245
+ "grad_norm": 0.4443411222267533,
246
+ "learning_rate": 6.600000000000001e-06,
247
+ "loss": 1.7464,
248
+ "step": 34
249
+ },
250
+ {
251
+ "epoch": 0.15373352855051245,
252
+ "grad_norm": 0.4519702758206936,
253
+ "learning_rate": 6.800000000000001e-06,
254
+ "loss": 1.6891,
255
+ "step": 35
256
+ },
257
+ {
258
+ "epoch": 0.1581259150805271,
259
+ "grad_norm": 0.4174999907173025,
260
+ "learning_rate": 7e-06,
261
+ "loss": 1.7262,
262
+ "step": 36
263
+ },
264
+ {
265
+ "epoch": 0.16251830161054173,
266
+ "grad_norm": 0.46742969885702906,
267
+ "learning_rate": 7.2000000000000005e-06,
268
+ "loss": 1.7608,
269
+ "step": 37
270
+ },
271
+ {
272
+ "epoch": 0.16691068814055637,
273
+ "grad_norm": 0.4155692294314683,
274
+ "learning_rate": 7.4e-06,
275
+ "loss": 1.7211,
276
+ "step": 38
277
+ },
278
+ {
279
+ "epoch": 0.17130307467057102,
280
+ "grad_norm": 0.4123169421407387,
281
+ "learning_rate": 7.600000000000001e-06,
282
+ "loss": 1.6956,
283
+ "step": 39
284
+ },
285
+ {
286
+ "epoch": 0.17569546120058566,
287
+ "grad_norm": 0.3887606381731466,
288
+ "learning_rate": 7.800000000000002e-06,
289
+ "loss": 1.7391,
290
+ "step": 40
291
+ },
292
+ {
293
+ "epoch": 0.1800878477306003,
294
+ "grad_norm": 0.37535703391318914,
295
+ "learning_rate": 8.000000000000001e-06,
296
+ "loss": 1.751,
297
+ "step": 41
298
+ },
299
+ {
300
+ "epoch": 0.18448023426061494,
301
+ "grad_norm": 0.48621902751310403,
302
+ "learning_rate": 8.2e-06,
303
+ "loss": 1.7091,
304
+ "step": 42
305
+ },
306
+ {
307
+ "epoch": 0.18887262079062958,
308
+ "grad_norm": 0.39145172998871297,
309
+ "learning_rate": 8.400000000000001e-06,
310
+ "loss": 1.7764,
311
+ "step": 43
312
+ },
313
+ {
314
+ "epoch": 0.19326500732064422,
315
+ "grad_norm": 0.3735488902443606,
316
+ "learning_rate": 8.6e-06,
317
+ "loss": 1.7058,
318
+ "step": 44
319
+ },
320
+ {
321
+ "epoch": 0.19765739385065886,
322
+ "grad_norm": 0.33988576479414434,
323
+ "learning_rate": 8.8e-06,
324
+ "loss": 1.7305,
325
+ "step": 45
326
+ },
327
+ {
328
+ "epoch": 0.2020497803806735,
329
+ "grad_norm": 0.9733163465798257,
330
+ "learning_rate": 9e-06,
331
+ "loss": 1.7567,
332
+ "step": 46
333
+ },
334
+ {
335
+ "epoch": 0.20644216691068815,
336
+ "grad_norm": 0.3344321176956884,
337
+ "learning_rate": 9.200000000000002e-06,
338
+ "loss": 1.7277,
339
+ "step": 47
340
+ },
341
+ {
342
+ "epoch": 0.2108345534407028,
343
+ "grad_norm": 0.3647805237752918,
344
+ "learning_rate": 9.4e-06,
345
+ "loss": 1.7197,
346
+ "step": 48
347
+ },
348
+ {
349
+ "epoch": 0.21522693997071743,
350
+ "grad_norm": 0.36967036325253694,
351
+ "learning_rate": 9.600000000000001e-06,
352
+ "loss": 1.6994,
353
+ "step": 49
354
+ },
355
+ {
356
+ "epoch": 0.21961932650073207,
357
+ "grad_norm": 0.32386928338357696,
358
+ "learning_rate": 9.800000000000001e-06,
359
+ "loss": 1.6975,
360
+ "step": 50
361
+ },
362
+ {
363
+ "epoch": 0.2240117130307467,
364
+ "grad_norm": 0.33940794357965215,
365
+ "learning_rate": 1e-05,
366
+ "loss": 1.7278,
367
+ "step": 51
368
+ },
369
+ {
370
+ "epoch": 0.22840409956076135,
371
+ "grad_norm": 0.3396058372359069,
372
+ "learning_rate": 9.999966483034437e-06,
373
+ "loss": 1.6342,
374
+ "step": 52
375
+ },
376
+ {
377
+ "epoch": 0.232796486090776,
378
+ "grad_norm": 0.3395876900960321,
379
+ "learning_rate": 9.999865932587107e-06,
380
+ "loss": 1.6846,
381
+ "step": 53
382
+ },
383
+ {
384
+ "epoch": 0.23718887262079064,
385
+ "grad_norm": 0.3320830942903407,
386
+ "learning_rate": 9.999698350006063e-06,
387
+ "loss": 1.6744,
388
+ "step": 54
389
+ },
390
+ {
391
+ "epoch": 0.24158125915080528,
392
+ "grad_norm": 0.318642304519145,
393
+ "learning_rate": 9.999463737538054e-06,
394
+ "loss": 1.6633,
395
+ "step": 55
396
+ },
397
+ {
398
+ "epoch": 0.24597364568081992,
399
+ "grad_norm": 0.3302002388842341,
400
+ "learning_rate": 9.999162098328475e-06,
401
+ "loss": 1.6994,
402
+ "step": 56
403
+ },
404
+ {
405
+ "epoch": 0.25036603221083453,
406
+ "grad_norm": 0.30428798634415904,
407
+ "learning_rate": 9.998793436421342e-06,
408
+ "loss": 1.6728,
409
+ "step": 57
410
+ },
411
+ {
412
+ "epoch": 0.2547584187408492,
413
+ "grad_norm": 0.30662673120989614,
414
+ "learning_rate": 9.998357756759223e-06,
415
+ "loss": 1.6283,
416
+ "step": 58
417
+ },
418
+ {
419
+ "epoch": 0.2591508052708638,
420
+ "grad_norm": 0.34305953470241257,
421
+ "learning_rate": 9.997855065183185e-06,
422
+ "loss": 1.7269,
423
+ "step": 59
424
+ },
425
+ {
426
+ "epoch": 0.2635431918008785,
427
+ "grad_norm": 0.29647698247102616,
428
+ "learning_rate": 9.997285368432704e-06,
429
+ "loss": 1.6108,
430
+ "step": 60
431
+ },
432
+ {
433
+ "epoch": 0.2679355783308931,
434
+ "grad_norm": 0.30904144706299363,
435
+ "learning_rate": 9.996648674145584e-06,
436
+ "loss": 1.5925,
437
+ "step": 61
438
+ },
439
+ {
440
+ "epoch": 0.27232796486090777,
441
+ "grad_norm": 0.28294691041282544,
442
+ "learning_rate": 9.995944990857848e-06,
443
+ "loss": 1.7004,
444
+ "step": 62
445
+ },
446
+ {
447
+ "epoch": 0.2767203513909224,
448
+ "grad_norm": 0.4537316624659888,
449
+ "learning_rate": 9.99517432800363e-06,
450
+ "loss": 1.673,
451
+ "step": 63
452
+ },
453
+ {
454
+ "epoch": 0.28111273792093705,
455
+ "grad_norm": 0.33334142649617554,
456
+ "learning_rate": 9.994336695915041e-06,
457
+ "loss": 1.7305,
458
+ "step": 64
459
+ },
460
+ {
461
+ "epoch": 0.28550512445095166,
462
+ "grad_norm": 0.2906595328556503,
463
+ "learning_rate": 9.993432105822034e-06,
464
+ "loss": 1.6511,
465
+ "step": 65
466
+ },
467
+ {
468
+ "epoch": 0.28989751098096633,
469
+ "grad_norm": 0.30937353104293036,
470
+ "learning_rate": 9.992460569852256e-06,
471
+ "loss": 1.7055,
472
+ "step": 66
473
+ },
474
+ {
475
+ "epoch": 0.29428989751098095,
476
+ "grad_norm": 0.29714918983678074,
477
+ "learning_rate": 9.99142210103088e-06,
478
+ "loss": 1.6022,
479
+ "step": 67
480
+ },
481
+ {
482
+ "epoch": 0.2986822840409956,
483
+ "grad_norm": 0.3077061364082642,
484
+ "learning_rate": 9.99031671328044e-06,
485
+ "loss": 1.6167,
486
+ "step": 68
487
+ },
488
+ {
489
+ "epoch": 0.30307467057101023,
490
+ "grad_norm": 0.31797999416909106,
491
+ "learning_rate": 9.98914442142063e-06,
492
+ "loss": 1.6063,
493
+ "step": 69
494
+ },
495
+ {
496
+ "epoch": 0.3074670571010249,
497
+ "grad_norm": 0.28544810434107143,
498
+ "learning_rate": 9.987905241168117e-06,
499
+ "loss": 1.673,
500
+ "step": 70
501
+ },
502
+ {
503
+ "epoch": 0.3118594436310395,
504
+ "grad_norm": 0.3113516293182134,
505
+ "learning_rate": 9.986599189136325e-06,
506
+ "loss": 1.6759,
507
+ "step": 71
508
+ },
509
+ {
510
+ "epoch": 0.3162518301610542,
511
+ "grad_norm": 0.32958924621680397,
512
+ "learning_rate": 9.985226282835216e-06,
513
+ "loss": 1.6894,
514
+ "step": 72
515
+ },
516
+ {
517
+ "epoch": 0.3206442166910688,
518
+ "grad_norm": 0.3189944736085633,
519
+ "learning_rate": 9.983786540671052e-06,
520
+ "loss": 1.7762,
521
+ "step": 73
522
+ },
523
+ {
524
+ "epoch": 0.32503660322108346,
525
+ "grad_norm": 0.30229970638681786,
526
+ "learning_rate": 9.982279981946143e-06,
527
+ "loss": 1.709,
528
+ "step": 74
529
+ },
530
+ {
531
+ "epoch": 0.3294289897510981,
532
+ "grad_norm": 0.308085411523194,
533
+ "learning_rate": 9.980706626858607e-06,
534
+ "loss": 1.6741,
535
+ "step": 75
536
+ },
537
+ {
538
+ "epoch": 0.33382137628111275,
539
+ "grad_norm": 0.2851270169881767,
540
+ "learning_rate": 9.979066496502075e-06,
541
+ "loss": 1.656,
542
+ "step": 76
543
+ },
544
+ {
545
+ "epoch": 0.33821376281112736,
546
+ "grad_norm": 0.3115977673015286,
547
+ "learning_rate": 9.977359612865424e-06,
548
+ "loss": 1.6633,
549
+ "step": 77
550
+ },
551
+ {
552
+ "epoch": 0.34260614934114203,
553
+ "grad_norm": 0.2960787226189042,
554
+ "learning_rate": 9.97558599883248e-06,
555
+ "loss": 1.673,
556
+ "step": 78
557
+ },
558
+ {
559
+ "epoch": 0.34699853587115664,
560
+ "grad_norm": 0.35701812130442995,
561
+ "learning_rate": 9.973745678181705e-06,
562
+ "loss": 1.6103,
563
+ "step": 79
564
+ },
565
+ {
566
+ "epoch": 0.3513909224011713,
567
+ "grad_norm": 0.367868955812032,
568
+ "learning_rate": 9.971838675585888e-06,
569
+ "loss": 1.6768,
570
+ "step": 80
571
+ },
572
+ {
573
+ "epoch": 0.3557833089311859,
574
+ "grad_norm": 0.3295428259298103,
575
+ "learning_rate": 9.9698650166118e-06,
576
+ "loss": 1.6668,
577
+ "step": 81
578
+ },
579
+ {
580
+ "epoch": 0.3601756954612006,
581
+ "grad_norm": 0.3242883305567894,
582
+ "learning_rate": 9.96782472771987e-06,
583
+ "loss": 1.7152,
584
+ "step": 82
585
+ },
586
+ {
587
+ "epoch": 0.3645680819912152,
588
+ "grad_norm": 0.3070622417895325,
589
+ "learning_rate": 9.965717836263813e-06,
590
+ "loss": 1.5697,
591
+ "step": 83
592
+ },
593
+ {
594
+ "epoch": 0.3689604685212299,
595
+ "grad_norm": 0.27753629978682975,
596
+ "learning_rate": 9.96354437049027e-06,
597
+ "loss": 1.6453,
598
+ "step": 84
599
+ },
600
+ {
601
+ "epoch": 0.3733528550512445,
602
+ "grad_norm": 0.2723902519890988,
603
+ "learning_rate": 9.961304359538437e-06,
604
+ "loss": 1.7165,
605
+ "step": 85
606
+ },
607
+ {
608
+ "epoch": 0.37774524158125916,
609
+ "grad_norm": 0.29061586618994084,
610
+ "learning_rate": 9.958997833439658e-06,
611
+ "loss": 1.7135,
612
+ "step": 86
613
+ },
614
+ {
615
+ "epoch": 0.3821376281112738,
616
+ "grad_norm": 0.33085661251847487,
617
+ "learning_rate": 9.956624823117036e-06,
618
+ "loss": 1.6109,
619
+ "step": 87
620
+ },
621
+ {
622
+ "epoch": 0.38653001464128844,
623
+ "grad_norm": 0.2931612046141165,
624
+ "learning_rate": 9.954185360385013e-06,
625
+ "loss": 1.7048,
626
+ "step": 88
627
+ },
628
+ {
629
+ "epoch": 0.39092240117130306,
630
+ "grad_norm": 0.2900600158100116,
631
+ "learning_rate": 9.951679477948946e-06,
632
+ "loss": 1.6861,
633
+ "step": 89
634
+ },
635
+ {
636
+ "epoch": 0.3953147877013177,
637
+ "grad_norm": 0.2775954202644971,
638
+ "learning_rate": 9.949107209404664e-06,
639
+ "loss": 1.5706,
640
+ "step": 90
641
+ },
642
+ {
643
+ "epoch": 0.39970717423133234,
644
+ "grad_norm": 0.2733537235090247,
645
+ "learning_rate": 9.946468589238022e-06,
646
+ "loss": 1.7146,
647
+ "step": 91
648
+ },
649
+ {
650
+ "epoch": 0.404099560761347,
651
+ "grad_norm": 0.2710139549067813,
652
+ "learning_rate": 9.943763652824437e-06,
653
+ "loss": 1.6488,
654
+ "step": 92
655
+ },
656
+ {
657
+ "epoch": 0.4084919472913616,
658
+ "grad_norm": 0.27892641103107996,
659
+ "learning_rate": 9.94099243642841e-06,
660
+ "loss": 1.6002,
661
+ "step": 93
662
+ },
663
+ {
664
+ "epoch": 0.4128843338213763,
665
+ "grad_norm": 0.4570340740318857,
666
+ "learning_rate": 9.93815497720305e-06,
667
+ "loss": 1.6686,
668
+ "step": 94
669
+ },
670
+ {
671
+ "epoch": 0.4172767203513909,
672
+ "grad_norm": 0.2816582371174757,
673
+ "learning_rate": 9.935251313189564e-06,
674
+ "loss": 1.7531,
675
+ "step": 95
676
+ },
677
+ {
678
+ "epoch": 0.4216691068814056,
679
+ "grad_norm": 0.2886345479986427,
680
+ "learning_rate": 9.932281483316759e-06,
681
+ "loss": 1.744,
682
+ "step": 96
683
+ },
684
+ {
685
+ "epoch": 0.4260614934114202,
686
+ "grad_norm": 0.3178449956639589,
687
+ "learning_rate": 9.929245527400504e-06,
688
+ "loss": 1.6404,
689
+ "step": 97
690
+ },
691
+ {
692
+ "epoch": 0.43045387994143486,
693
+ "grad_norm": 0.31466032997182714,
694
+ "learning_rate": 9.926143486143216e-06,
695
+ "loss": 1.6583,
696
+ "step": 98
697
+ },
698
+ {
699
+ "epoch": 0.43484626647144947,
700
+ "grad_norm": 0.3406321749653024,
701
+ "learning_rate": 9.922975401133292e-06,
702
+ "loss": 1.7313,
703
+ "step": 99
704
+ },
705
+ {
706
+ "epoch": 0.43923865300146414,
707
+ "grad_norm": 0.33050248521276526,
708
+ "learning_rate": 9.919741314844577e-06,
709
+ "loss": 1.6518,
710
+ "step": 100
711
+ },
712
+ {
713
+ "epoch": 0.44363103953147875,
714
+ "grad_norm": 0.2886134577231967,
715
+ "learning_rate": 9.916441270635772e-06,
716
+ "loss": 1.6957,
717
+ "step": 101
718
+ },
719
+ {
720
+ "epoch": 0.4480234260614934,
721
+ "grad_norm": 0.27520985458354463,
722
+ "learning_rate": 9.913075312749867e-06,
723
+ "loss": 1.6052,
724
+ "step": 102
725
+ },
726
+ {
727
+ "epoch": 0.45241581259150804,
728
+ "grad_norm": 0.2649316531653303,
729
+ "learning_rate": 9.909643486313533e-06,
730
+ "loss": 1.6739,
731
+ "step": 103
732
+ },
733
+ {
734
+ "epoch": 0.4568081991215227,
735
+ "grad_norm": 0.27557834576379425,
736
+ "learning_rate": 9.90614583733654e-06,
737
+ "loss": 1.6584,
738
+ "step": 104
739
+ },
740
+ {
741
+ "epoch": 0.4612005856515373,
742
+ "grad_norm": 0.3243046224133678,
743
+ "learning_rate": 9.90258241271112e-06,
744
+ "loss": 1.6491,
745
+ "step": 105
746
+ },
747
+ {
748
+ "epoch": 0.465592972181552,
749
+ "grad_norm": 0.2601090357711318,
750
+ "learning_rate": 9.89895326021134e-06,
751
+ "loss": 1.6662,
752
+ "step": 106
753
+ },
754
+ {
755
+ "epoch": 0.4699853587115666,
756
+ "grad_norm": 0.2842151241183655,
757
+ "learning_rate": 9.895258428492475e-06,
758
+ "loss": 1.6501,
759
+ "step": 107
760
+ },
761
+ {
762
+ "epoch": 0.4743777452415813,
763
+ "grad_norm": 0.2594313373745908,
764
+ "learning_rate": 9.891497967090344e-06,
765
+ "loss": 1.6475,
766
+ "step": 108
767
+ },
768
+ {
769
+ "epoch": 0.4787701317715959,
770
+ "grad_norm": 0.2844945420500575,
771
+ "learning_rate": 9.887671926420649e-06,
772
+ "loss": 1.7204,
773
+ "step": 109
774
+ },
775
+ {
776
+ "epoch": 0.48316251830161056,
777
+ "grad_norm": 0.27655451441999607,
778
+ "learning_rate": 9.8837803577783e-06,
779
+ "loss": 1.6838,
780
+ "step": 110
781
+ },
782
+ {
783
+ "epoch": 0.48755490483162517,
784
+ "grad_norm": 0.3017150137441088,
785
+ "learning_rate": 9.879823313336723e-06,
786
+ "loss": 1.6688,
787
+ "step": 111
788
+ },
789
+ {
790
+ "epoch": 0.49194729136163984,
791
+ "grad_norm": 0.26575250791745125,
792
+ "learning_rate": 9.87580084614717e-06,
793
+ "loss": 1.6753,
794
+ "step": 112
795
+ },
796
+ {
797
+ "epoch": 0.49633967789165445,
798
+ "grad_norm": 0.2581989783149807,
799
+ "learning_rate": 9.871713010137998e-06,
800
+ "loss": 1.6244,
801
+ "step": 113
802
+ },
803
+ {
804
+ "epoch": 0.5007320644216691,
805
+ "grad_norm": 0.2622294231157268,
806
+ "learning_rate": 9.86755986011395e-06,
807
+ "loss": 1.6261,
808
+ "step": 114
809
+ },
810
+ {
811
+ "epoch": 0.5051244509516838,
812
+ "grad_norm": 0.26209513370076304,
813
+ "learning_rate": 9.86334145175542e-06,
814
+ "loss": 1.6397,
815
+ "step": 115
816
+ },
817
+ {
818
+ "epoch": 0.5095168374816984,
819
+ "grad_norm": 0.2846184522412747,
820
+ "learning_rate": 9.859057841617709e-06,
821
+ "loss": 1.7091,
822
+ "step": 116
823
+ },
824
+ {
825
+ "epoch": 0.513909224011713,
826
+ "grad_norm": 0.2528850826310284,
827
+ "learning_rate": 9.854709087130261e-06,
828
+ "loss": 1.6831,
829
+ "step": 117
830
+ },
831
+ {
832
+ "epoch": 0.5183016105417276,
833
+ "grad_norm": 0.32698350420324157,
834
+ "learning_rate": 9.850295246595898e-06,
835
+ "loss": 1.6431,
836
+ "step": 118
837
+ },
838
+ {
839
+ "epoch": 0.5226939970717424,
840
+ "grad_norm": 0.35727071053972576,
841
+ "learning_rate": 9.845816379190037e-06,
842
+ "loss": 1.7088,
843
+ "step": 119
844
+ },
845
+ {
846
+ "epoch": 0.527086383601757,
847
+ "grad_norm": 0.28971742333278044,
848
+ "learning_rate": 9.841272544959892e-06,
849
+ "loss": 1.7195,
850
+ "step": 120
851
+ },
852
+ {
853
+ "epoch": 0.5314787701317716,
854
+ "grad_norm": 0.468869869211724,
855
+ "learning_rate": 9.836663804823683e-06,
856
+ "loss": 1.6896,
857
+ "step": 121
858
+ },
859
+ {
860
+ "epoch": 0.5358711566617862,
861
+ "grad_norm": 0.3908944943187778,
862
+ "learning_rate": 9.831990220569801e-06,
863
+ "loss": 1.7406,
864
+ "step": 122
865
+ },
866
+ {
867
+ "epoch": 0.5402635431918009,
868
+ "grad_norm": 0.2665924461613152,
869
+ "learning_rate": 9.827251854855992e-06,
870
+ "loss": 1.6609,
871
+ "step": 123
872
+ },
873
+ {
874
+ "epoch": 0.5446559297218155,
875
+ "grad_norm": 0.28211372742262864,
876
+ "learning_rate": 9.82244877120851e-06,
877
+ "loss": 1.6684,
878
+ "step": 124
879
+ },
880
+ {
881
+ "epoch": 0.5490483162518301,
882
+ "grad_norm": 0.2623738132657017,
883
+ "learning_rate": 9.817581034021273e-06,
884
+ "loss": 1.6923,
885
+ "step": 125
886
+ },
887
+ {
888
+ "epoch": 0.5534407027818448,
889
+ "grad_norm": 0.35357676308356323,
890
+ "learning_rate": 9.812648708554991e-06,
891
+ "loss": 1.6467,
892
+ "step": 126
893
+ },
894
+ {
895
+ "epoch": 0.5578330893118595,
896
+ "grad_norm": 0.2555639734647961,
897
+ "learning_rate": 9.807651860936299e-06,
898
+ "loss": 1.6893,
899
+ "step": 127
900
+ },
901
+ {
902
+ "epoch": 0.5622254758418741,
903
+ "grad_norm": 0.26746261958597517,
904
+ "learning_rate": 9.802590558156863e-06,
905
+ "loss": 1.6754,
906
+ "step": 128
907
+ },
908
+ {
909
+ "epoch": 0.5666178623718887,
910
+ "grad_norm": 0.26383031628885084,
911
+ "learning_rate": 9.797464868072489e-06,
912
+ "loss": 1.6363,
913
+ "step": 129
914
+ },
915
+ {
916
+ "epoch": 0.5710102489019033,
917
+ "grad_norm": 0.319619389966322,
918
+ "learning_rate": 9.792274859402205e-06,
919
+ "loss": 1.636,
920
+ "step": 130
921
+ },
922
+ {
923
+ "epoch": 0.575402635431918,
924
+ "grad_norm": 0.2639308579990406,
925
+ "learning_rate": 9.787020601727353e-06,
926
+ "loss": 1.6079,
927
+ "step": 131
928
+ },
929
+ {
930
+ "epoch": 0.5797950219619327,
931
+ "grad_norm": 0.28226380411742236,
932
+ "learning_rate": 9.781702165490638e-06,
933
+ "loss": 1.657,
934
+ "step": 132
935
+ },
936
+ {
937
+ "epoch": 0.5841874084919473,
938
+ "grad_norm": 0.27157003543418035,
939
+ "learning_rate": 9.7763196219952e-06,
940
+ "loss": 1.7009,
941
+ "step": 133
942
+ },
943
+ {
944
+ "epoch": 0.5885797950219619,
945
+ "grad_norm": 0.28487209604498265,
946
+ "learning_rate": 9.770873043403648e-06,
947
+ "loss": 1.6236,
948
+ "step": 134
949
+ },
950
+ {
951
+ "epoch": 0.5929721815519766,
952
+ "grad_norm": 0.3009729998770739,
953
+ "learning_rate": 9.765362502737098e-06,
954
+ "loss": 1.6812,
955
+ "step": 135
956
+ },
957
+ {
958
+ "epoch": 0.5973645680819912,
959
+ "grad_norm": 0.2576811873616972,
960
+ "learning_rate": 9.759788073874188e-06,
961
+ "loss": 1.6885,
962
+ "step": 136
963
+ },
964
+ {
965
+ "epoch": 0.6017569546120058,
966
+ "grad_norm": 0.3108368566509119,
967
+ "learning_rate": 9.754149831550097e-06,
968
+ "loss": 1.6086,
969
+ "step": 137
970
+ },
971
+ {
972
+ "epoch": 0.6061493411420205,
973
+ "grad_norm": 0.3336050806293322,
974
+ "learning_rate": 9.748447851355534e-06,
975
+ "loss": 1.6773,
976
+ "step": 138
977
+ },
978
+ {
979
+ "epoch": 0.6105417276720352,
980
+ "grad_norm": 0.28918467659013913,
981
+ "learning_rate": 9.742682209735727e-06,
982
+ "loss": 1.7141,
983
+ "step": 139
984
+ },
985
+ {
986
+ "epoch": 0.6149341142020498,
987
+ "grad_norm": 0.25507889874035206,
988
+ "learning_rate": 9.736852983989405e-06,
989
+ "loss": 1.6335,
990
+ "step": 140
991
+ },
992
+ {
993
+ "epoch": 0.6193265007320644,
994
+ "grad_norm": 0.2712795343500641,
995
+ "learning_rate": 9.730960252267744e-06,
996
+ "loss": 1.6186,
997
+ "step": 141
998
+ },
999
+ {
1000
+ "epoch": 0.623718887262079,
1001
+ "grad_norm": 0.29326296437100124,
1002
+ "learning_rate": 9.725004093573343e-06,
1003
+ "loss": 1.6039,
1004
+ "step": 142
1005
+ },
1006
+ {
1007
+ "epoch": 0.6281112737920937,
1008
+ "grad_norm": 0.27412689936526563,
1009
+ "learning_rate": 9.718984587759148e-06,
1010
+ "loss": 1.594,
1011
+ "step": 143
1012
+ },
1013
+ {
1014
+ "epoch": 0.6325036603221084,
1015
+ "grad_norm": 0.28908560688778157,
1016
+ "learning_rate": 9.712901815527387e-06,
1017
+ "loss": 1.6458,
1018
+ "step": 144
1019
+ },
1020
+ {
1021
+ "epoch": 0.636896046852123,
1022
+ "grad_norm": 0.26538330998431864,
1023
+ "learning_rate": 9.706755858428487e-06,
1024
+ "loss": 1.6546,
1025
+ "step": 145
1026
+ },
1027
+ {
1028
+ "epoch": 0.6412884333821376,
1029
+ "grad_norm": 0.26498403141947585,
1030
+ "learning_rate": 9.70054679885998e-06,
1031
+ "loss": 1.6224,
1032
+ "step": 146
1033
+ },
1034
+ {
1035
+ "epoch": 0.6456808199121523,
1036
+ "grad_norm": 0.25028323667878993,
1037
+ "learning_rate": 9.6942747200654e-06,
1038
+ "loss": 1.6554,
1039
+ "step": 147
1040
+ },
1041
+ {
1042
+ "epoch": 0.6500732064421669,
1043
+ "grad_norm": 0.3077620507501807,
1044
+ "learning_rate": 9.687939706133168e-06,
1045
+ "loss": 1.6751,
1046
+ "step": 148
1047
+ },
1048
+ {
1049
+ "epoch": 0.6544655929721815,
1050
+ "grad_norm": 0.2738251492188122,
1051
+ "learning_rate": 9.68154184199546e-06,
1052
+ "loss": 1.6139,
1053
+ "step": 149
1054
+ },
1055
+ {
1056
+ "epoch": 0.6588579795021962,
1057
+ "grad_norm": 0.300766059001253,
1058
+ "learning_rate": 9.675081213427076e-06,
1059
+ "loss": 1.6783,
1060
+ "step": 150
1061
+ },
1062
+ {
1063
+ "epoch": 0.6632503660322109,
1064
+ "grad_norm": 0.2671963968809055,
1065
+ "learning_rate": 9.668557907044278e-06,
1066
+ "loss": 1.7028,
1067
+ "step": 151
1068
+ },
1069
+ {
1070
+ "epoch": 0.6676427525622255,
1071
+ "grad_norm": 0.27596191143138304,
1072
+ "learning_rate": 9.661972010303641e-06,
1073
+ "loss": 1.6279,
1074
+ "step": 152
1075
+ },
1076
+ {
1077
+ "epoch": 0.6720351390922401,
1078
+ "grad_norm": 0.2719766311854951,
1079
+ "learning_rate": 9.655323611500876e-06,
1080
+ "loss": 1.6634,
1081
+ "step": 153
1082
+ },
1083
+ {
1084
+ "epoch": 0.6764275256222547,
1085
+ "grad_norm": 0.2697612116557389,
1086
+ "learning_rate": 9.648612799769644e-06,
1087
+ "loss": 1.617,
1088
+ "step": 154
1089
+ },
1090
+ {
1091
+ "epoch": 0.6808199121522694,
1092
+ "grad_norm": 0.28137116472179047,
1093
+ "learning_rate": 9.641839665080363e-06,
1094
+ "loss": 1.6212,
1095
+ "step": 155
1096
+ },
1097
+ {
1098
+ "epoch": 0.6852122986822841,
1099
+ "grad_norm": 0.2599526010890989,
1100
+ "learning_rate": 9.635004298239004e-06,
1101
+ "loss": 1.6542,
1102
+ "step": 156
1103
+ },
1104
+ {
1105
+ "epoch": 0.6896046852122987,
1106
+ "grad_norm": 0.662388825119619,
1107
+ "learning_rate": 9.628106790885866e-06,
1108
+ "loss": 1.633,
1109
+ "step": 157
1110
+ },
1111
+ {
1112
+ "epoch": 0.6939970717423133,
1113
+ "grad_norm": 0.2913416852335614,
1114
+ "learning_rate": 9.621147235494357e-06,
1115
+ "loss": 1.6904,
1116
+ "step": 158
1117
+ },
1118
+ {
1119
+ "epoch": 0.698389458272328,
1120
+ "grad_norm": 0.26581120890113497,
1121
+ "learning_rate": 9.614125725369748e-06,
1122
+ "loss": 1.6583,
1123
+ "step": 159
1124
+ },
1125
+ {
1126
+ "epoch": 0.7027818448023426,
1127
+ "grad_norm": 0.26696083510238133,
1128
+ "learning_rate": 9.607042354647924e-06,
1129
+ "loss": 1.6354,
1130
+ "step": 160
1131
+ },
1132
+ {
1133
+ "epoch": 0.7071742313323572,
1134
+ "grad_norm": 0.2913753113559095,
1135
+ "learning_rate": 9.599897218294122e-06,
1136
+ "loss": 1.5914,
1137
+ "step": 161
1138
+ },
1139
+ {
1140
+ "epoch": 0.7115666178623719,
1141
+ "grad_norm": 0.2794317973029827,
1142
+ "learning_rate": 9.59269041210166e-06,
1143
+ "loss": 1.5732,
1144
+ "step": 162
1145
+ },
1146
+ {
1147
+ "epoch": 0.7159590043923866,
1148
+ "grad_norm": 0.27364398897711945,
1149
+ "learning_rate": 9.585422032690644e-06,
1150
+ "loss": 1.6796,
1151
+ "step": 163
1152
+ },
1153
+ {
1154
+ "epoch": 0.7203513909224012,
1155
+ "grad_norm": 0.2924137561125512,
1156
+ "learning_rate": 9.578092177506683e-06,
1157
+ "loss": 1.6921,
1158
+ "step": 164
1159
+ },
1160
+ {
1161
+ "epoch": 0.7247437774524158,
1162
+ "grad_norm": 0.27864643658701665,
1163
+ "learning_rate": 9.570700944819584e-06,
1164
+ "loss": 1.6442,
1165
+ "step": 165
1166
+ },
1167
+ {
1168
+ "epoch": 0.7291361639824304,
1169
+ "grad_norm": 0.3172135018133218,
1170
+ "learning_rate": 9.56324843372202e-06,
1171
+ "loss": 1.7003,
1172
+ "step": 166
1173
+ },
1174
+ {
1175
+ "epoch": 0.7335285505124451,
1176
+ "grad_norm": 0.33119379016577744,
1177
+ "learning_rate": 9.55573474412821e-06,
1178
+ "loss": 1.6277,
1179
+ "step": 167
1180
+ },
1181
+ {
1182
+ "epoch": 0.7379209370424598,
1183
+ "grad_norm": 0.24315818847358012,
1184
+ "learning_rate": 9.548159976772593e-06,
1185
+ "loss": 1.621,
1186
+ "step": 168
1187
+ },
1188
+ {
1189
+ "epoch": 0.7423133235724744,
1190
+ "grad_norm": 0.28066914391093295,
1191
+ "learning_rate": 9.540524233208449e-06,
1192
+ "loss": 1.6169,
1193
+ "step": 169
1194
+ },
1195
+ {
1196
+ "epoch": 0.746705710102489,
1197
+ "grad_norm": 0.3096372829142638,
1198
+ "learning_rate": 9.532827615806561e-06,
1199
+ "loss": 1.6425,
1200
+ "step": 170
1201
+ },
1202
+ {
1203
+ "epoch": 0.7510980966325037,
1204
+ "grad_norm": 0.3050362838238551,
1205
+ "learning_rate": 9.525070227753835e-06,
1206
+ "loss": 1.5835,
1207
+ "step": 171
1208
+ },
1209
+ {
1210
+ "epoch": 0.7554904831625183,
1211
+ "grad_norm": 0.27558198897100084,
1212
+ "learning_rate": 9.517252173051912e-06,
1213
+ "loss": 1.6866,
1214
+ "step": 172
1215
+ },
1216
+ {
1217
+ "epoch": 0.7598828696925329,
1218
+ "grad_norm": 0.3415215102331636,
1219
+ "learning_rate": 9.509373556515781e-06,
1220
+ "loss": 1.6954,
1221
+ "step": 173
1222
+ },
1223
+ {
1224
+ "epoch": 0.7642752562225475,
1225
+ "grad_norm": 0.2833145266859935,
1226
+ "learning_rate": 9.501434483772371e-06,
1227
+ "loss": 1.5642,
1228
+ "step": 174
1229
+ },
1230
+ {
1231
+ "epoch": 0.7686676427525623,
1232
+ "grad_norm": 0.261080979929468,
1233
+ "learning_rate": 9.49343506125913e-06,
1234
+ "loss": 1.6481,
1235
+ "step": 175
1236
+ },
1237
+ {
1238
+ "epoch": 0.7730600292825769,
1239
+ "grad_norm": 0.27528584249968596,
1240
+ "learning_rate": 9.48537539622261e-06,
1241
+ "loss": 1.6356,
1242
+ "step": 176
1243
+ },
1244
+ {
1245
+ "epoch": 0.7774524158125915,
1246
+ "grad_norm": 0.28493642680744213,
1247
+ "learning_rate": 9.477255596717012e-06,
1248
+ "loss": 1.617,
1249
+ "step": 177
1250
+ },
1251
+ {
1252
+ "epoch": 0.7818448023426061,
1253
+ "grad_norm": 0.250792323656803,
1254
+ "learning_rate": 9.469075771602756e-06,
1255
+ "loss": 1.7373,
1256
+ "step": 178
1257
+ },
1258
+ {
1259
+ "epoch": 0.7862371888726208,
1260
+ "grad_norm": 0.2815707976300464,
1261
+ "learning_rate": 9.460836030545007e-06,
1262
+ "loss": 1.7134,
1263
+ "step": 179
1264
+ },
1265
+ {
1266
+ "epoch": 0.7906295754026355,
1267
+ "grad_norm": 0.33965220402585167,
1268
+ "learning_rate": 9.452536484012212e-06,
1269
+ "loss": 1.66,
1270
+ "step": 180
1271
+ },
1272
+ {
1273
+ "epoch": 0.7950219619326501,
1274
+ "grad_norm": 0.337075115730111,
1275
+ "learning_rate": 9.444177243274619e-06,
1276
+ "loss": 1.7237,
1277
+ "step": 181
1278
+ },
1279
+ {
1280
+ "epoch": 0.7994143484626647,
1281
+ "grad_norm": 0.2652773355794464,
1282
+ "learning_rate": 9.43575842040278e-06,
1283
+ "loss": 1.7238,
1284
+ "step": 182
1285
+ },
1286
+ {
1287
+ "epoch": 0.8038067349926794,
1288
+ "grad_norm": 0.29569868187991866,
1289
+ "learning_rate": 9.427280128266049e-06,
1290
+ "loss": 1.6484,
1291
+ "step": 183
1292
+ },
1293
+ {
1294
+ "epoch": 0.808199121522694,
1295
+ "grad_norm": 0.2647366968721245,
1296
+ "learning_rate": 9.418742480531086e-06,
1297
+ "loss": 1.6557,
1298
+ "step": 184
1299
+ },
1300
+ {
1301
+ "epoch": 0.8125915080527086,
1302
+ "grad_norm": 0.2624692157687208,
1303
+ "learning_rate": 9.410145591660301e-06,
1304
+ "loss": 1.6501,
1305
+ "step": 185
1306
+ },
1307
+ {
1308
+ "epoch": 0.8169838945827232,
1309
+ "grad_norm": 0.2604406630602592,
1310
+ "learning_rate": 9.40148957691035e-06,
1311
+ "loss": 1.6205,
1312
+ "step": 186
1313
+ },
1314
+ {
1315
+ "epoch": 0.821376281112738,
1316
+ "grad_norm": 0.3809448031526879,
1317
+ "learning_rate": 9.392774552330567e-06,
1318
+ "loss": 1.6014,
1319
+ "step": 187
1320
+ },
1321
+ {
1322
+ "epoch": 0.8257686676427526,
1323
+ "grad_norm": 0.285104899301775,
1324
+ "learning_rate": 9.384000634761429e-06,
1325
+ "loss": 1.7119,
1326
+ "step": 188
1327
+ },
1328
+ {
1329
+ "epoch": 0.8301610541727672,
1330
+ "grad_norm": 0.3603217046093286,
1331
+ "learning_rate": 9.375167941832974e-06,
1332
+ "loss": 1.6129,
1333
+ "step": 189
1334
+ },
1335
+ {
1336
+ "epoch": 0.8345534407027818,
1337
+ "grad_norm": 0.26192371812461096,
1338
+ "learning_rate": 9.366276591963222e-06,
1339
+ "loss": 1.6648,
1340
+ "step": 190
1341
+ },
1342
+ {
1343
+ "epoch": 0.8389458272327965,
1344
+ "grad_norm": 0.27224376529649075,
1345
+ "learning_rate": 9.357326704356602e-06,
1346
+ "loss": 1.7368,
1347
+ "step": 191
1348
+ },
1349
+ {
1350
+ "epoch": 0.8433382137628112,
1351
+ "grad_norm": 0.267560205737413,
1352
+ "learning_rate": 9.348318399002347e-06,
1353
+ "loss": 1.6456,
1354
+ "step": 192
1355
+ },
1356
+ {
1357
+ "epoch": 0.8477306002928258,
1358
+ "grad_norm": 0.38772390686795116,
1359
+ "learning_rate": 9.339251796672878e-06,
1360
+ "loss": 1.6765,
1361
+ "step": 193
1362
+ },
1363
+ {
1364
+ "epoch": 0.8521229868228404,
1365
+ "grad_norm": 0.28624234868841525,
1366
+ "learning_rate": 9.330127018922195e-06,
1367
+ "loss": 1.6397,
1368
+ "step": 194
1369
+ },
1370
+ {
1371
+ "epoch": 0.8565153733528551,
1372
+ "grad_norm": 0.3517826456437289,
1373
+ "learning_rate": 9.320944188084241e-06,
1374
+ "loss": 1.6504,
1375
+ "step": 195
1376
+ },
1377
+ {
1378
+ "epoch": 0.8609077598828697,
1379
+ "grad_norm": 0.3054896957644684,
1380
+ "learning_rate": 9.31170342727127e-06,
1381
+ "loss": 1.6581,
1382
+ "step": 196
1383
+ },
1384
+ {
1385
+ "epoch": 0.8653001464128843,
1386
+ "grad_norm": 0.47217080493290625,
1387
+ "learning_rate": 9.302404860372185e-06,
1388
+ "loss": 1.6614,
1389
+ "step": 197
1390
+ },
1391
+ {
1392
+ "epoch": 0.8696925329428989,
1393
+ "grad_norm": 0.3744290659075852,
1394
+ "learning_rate": 9.293048612050883e-06,
1395
+ "loss": 1.6181,
1396
+ "step": 198
1397
+ },
1398
+ {
1399
+ "epoch": 0.8740849194729137,
1400
+ "grad_norm": 0.2928672407192581,
1401
+ "learning_rate": 9.283634807744586e-06,
1402
+ "loss": 1.5801,
1403
+ "step": 199
1404
+ },
1405
+ {
1406
+ "epoch": 0.8784773060029283,
1407
+ "grad_norm": 0.5500989172351091,
1408
+ "learning_rate": 9.274163573662158e-06,
1409
+ "loss": 1.6213,
1410
+ "step": 200
1411
+ },
1412
+ {
1413
+ "epoch": 0.8828696925329429,
1414
+ "grad_norm": 0.27844961793523915,
1415
+ "learning_rate": 9.264635036782406e-06,
1416
+ "loss": 1.6442,
1417
+ "step": 201
1418
+ },
1419
+ {
1420
+ "epoch": 0.8872620790629575,
1421
+ "grad_norm": 0.2764381586339949,
1422
+ "learning_rate": 9.255049324852388e-06,
1423
+ "loss": 1.6403,
1424
+ "step": 202
1425
+ },
1426
+ {
1427
+ "epoch": 0.8916544655929722,
1428
+ "grad_norm": 0.28692831842946026,
1429
+ "learning_rate": 9.245406566385698e-06,
1430
+ "loss": 1.6204,
1431
+ "step": 203
1432
+ },
1433
+ {
1434
+ "epoch": 0.8960468521229868,
1435
+ "grad_norm": 0.2854958274623322,
1436
+ "learning_rate": 9.235706890660735e-06,
1437
+ "loss": 1.6777,
1438
+ "step": 204
1439
+ },
1440
+ {
1441
+ "epoch": 0.9004392386530015,
1442
+ "grad_norm": 0.2884758073862357,
1443
+ "learning_rate": 9.225950427718974e-06,
1444
+ "loss": 1.6414,
1445
+ "step": 205
1446
+ },
1447
+ {
1448
+ "epoch": 0.9048316251830161,
1449
+ "grad_norm": 0.2774591809427237,
1450
+ "learning_rate": 9.216137308363235e-06,
1451
+ "loss": 1.667,
1452
+ "step": 206
1453
+ },
1454
+ {
1455
+ "epoch": 0.9092240117130308,
1456
+ "grad_norm": 0.26327408771476135,
1457
+ "learning_rate": 9.206267664155906e-06,
1458
+ "loss": 1.6472,
1459
+ "step": 207
1460
+ },
1461
+ {
1462
+ "epoch": 0.9136163982430454,
1463
+ "grad_norm": 0.3163508666559799,
1464
+ "learning_rate": 9.1963416274172e-06,
1465
+ "loss": 1.6898,
1466
+ "step": 208
1467
+ },
1468
+ {
1469
+ "epoch": 0.91800878477306,
1470
+ "grad_norm": 0.2691312569989342,
1471
+ "learning_rate": 9.18635933122337e-06,
1472
+ "loss": 1.6788,
1473
+ "step": 209
1474
+ },
1475
+ {
1476
+ "epoch": 0.9224011713030746,
1477
+ "grad_norm": 0.329963898141559,
1478
+ "learning_rate": 9.176320909404925e-06,
1479
+ "loss": 1.7077,
1480
+ "step": 210
1481
+ },
1482
+ {
1483
+ "epoch": 0.9267935578330894,
1484
+ "grad_norm": 0.3497378648580076,
1485
+ "learning_rate": 9.16622649654484e-06,
1486
+ "loss": 1.7203,
1487
+ "step": 211
1488
+ },
1489
+ {
1490
+ "epoch": 0.931185944363104,
1491
+ "grad_norm": 0.2750435891659104,
1492
+ "learning_rate": 9.156076227976752e-06,
1493
+ "loss": 1.6372,
1494
+ "step": 212
1495
+ },
1496
+ {
1497
+ "epoch": 0.9355783308931186,
1498
+ "grad_norm": 0.29344217135995226,
1499
+ "learning_rate": 9.145870239783143e-06,
1500
+ "loss": 1.6294,
1501
+ "step": 213
1502
+ },
1503
+ {
1504
+ "epoch": 0.9399707174231332,
1505
+ "grad_norm": 0.2713649627402965,
1506
+ "learning_rate": 9.135608668793511e-06,
1507
+ "loss": 1.6391,
1508
+ "step": 214
1509
+ },
1510
+ {
1511
+ "epoch": 0.9443631039531479,
1512
+ "grad_norm": 0.2995344678229402,
1513
+ "learning_rate": 9.125291652582549e-06,
1514
+ "loss": 1.6102,
1515
+ "step": 215
1516
+ },
1517
+ {
1518
+ "epoch": 0.9487554904831625,
1519
+ "grad_norm": 0.32763546183738235,
1520
+ "learning_rate": 9.114919329468283e-06,
1521
+ "loss": 1.6823,
1522
+ "step": 216
1523
+ },
1524
+ {
1525
+ "epoch": 0.9531478770131772,
1526
+ "grad_norm": 0.29620265372375704,
1527
+ "learning_rate": 9.104491838510235e-06,
1528
+ "loss": 1.6905,
1529
+ "step": 217
1530
+ },
1531
+ {
1532
+ "epoch": 0.9575402635431918,
1533
+ "grad_norm": 0.43487598587006066,
1534
+ "learning_rate": 9.094009319507547e-06,
1535
+ "loss": 1.6611,
1536
+ "step": 218
1537
+ },
1538
+ {
1539
+ "epoch": 0.9619326500732065,
1540
+ "grad_norm": 0.32989859860270077,
1541
+ "learning_rate": 9.08347191299711e-06,
1542
+ "loss": 1.634,
1543
+ "step": 219
1544
+ },
1545
+ {
1546
+ "epoch": 0.9663250366032211,
1547
+ "grad_norm": 0.26622257061624277,
1548
+ "learning_rate": 9.07287976025168e-06,
1549
+ "loss": 1.6075,
1550
+ "step": 220
1551
+ },
1552
+ {
1553
+ "epoch": 0.9707174231332357,
1554
+ "grad_norm": 0.28626358026286186,
1555
+ "learning_rate": 9.062233003277983e-06,
1556
+ "loss": 1.6045,
1557
+ "step": 221
1558
+ },
1559
+ {
1560
+ "epoch": 0.9751098096632503,
1561
+ "grad_norm": 0.5424158794876999,
1562
+ "learning_rate": 9.051531784814817e-06,
1563
+ "loss": 1.5825,
1564
+ "step": 222
1565
+ },
1566
+ {
1567
+ "epoch": 0.9795021961932651,
1568
+ "grad_norm": 0.2771987597060821,
1569
+ "learning_rate": 9.040776248331128e-06,
1570
+ "loss": 1.6083,
1571
+ "step": 223
1572
+ },
1573
+ {
1574
+ "epoch": 0.9838945827232797,
1575
+ "grad_norm": 1.5311321947246777,
1576
+ "learning_rate": 9.029966538024097e-06,
1577
+ "loss": 1.5973,
1578
+ "step": 224
1579
+ },
1580
+ {
1581
+ "epoch": 0.9882869692532943,
1582
+ "grad_norm": 0.3081246423484545,
1583
+ "learning_rate": 9.019102798817196e-06,
1584
+ "loss": 1.5915,
1585
+ "step": 225
1586
+ },
1587
+ {
1588
+ "epoch": 0.9926793557833089,
1589
+ "grad_norm": 0.3066770476121554,
1590
+ "learning_rate": 9.008185176358257e-06,
1591
+ "loss": 1.5551,
1592
+ "step": 226
1593
+ },
1594
+ {
1595
+ "epoch": 0.9970717423133236,
1596
+ "grad_norm": 0.29888292004137484,
1597
+ "learning_rate": 8.997213817017508e-06,
1598
+ "loss": 1.7461,
1599
+ "step": 227
1600
+ },
1601
+ {
1602
+ "epoch": 1.0043923865300146,
1603
+ "grad_norm": 0.5938110979809961,
1604
+ "learning_rate": 8.986188867885617e-06,
1605
+ "loss": 3.2509,
1606
+ "step": 228
1607
+ },
1608
+ {
1609
+ "epoch": 1.0087847730600292,
1610
+ "grad_norm": 0.2899326916339286,
1611
+ "learning_rate": 8.975110476771724e-06,
1612
+ "loss": 1.5874,
1613
+ "step": 229
1614
+ },
1615
+ {
1616
+ "epoch": 1.0131771595900438,
1617
+ "grad_norm": 0.2777095345419943,
1618
+ "learning_rate": 8.96397879220145e-06,
1619
+ "loss": 1.6706,
1620
+ "step": 230
1621
+ },
1622
+ {
1623
+ "epoch": 1.0175695461200585,
1624
+ "grad_norm": 0.26363195429841585,
1625
+ "learning_rate": 8.952793963414908e-06,
1626
+ "loss": 1.6317,
1627
+ "step": 231
1628
+ },
1629
+ {
1630
+ "epoch": 1.0219619326500733,
1631
+ "grad_norm": 0.2688971491502818,
1632
+ "learning_rate": 8.941556140364707e-06,
1633
+ "loss": 1.654,
1634
+ "step": 232
1635
+ },
1636
+ {
1637
+ "epoch": 1.026354319180088,
1638
+ "grad_norm": 0.28487309366468816,
1639
+ "learning_rate": 8.930265473713939e-06,
1640
+ "loss": 1.6133,
1641
+ "step": 233
1642
+ },
1643
+ {
1644
+ "epoch": 1.0307467057101025,
1645
+ "grad_norm": 0.28141744313455036,
1646
+ "learning_rate": 8.918922114834156e-06,
1647
+ "loss": 1.589,
1648
+ "step": 234
1649
+ },
1650
+ {
1651
+ "epoch": 1.0351390922401171,
1652
+ "grad_norm": 0.40308880749849646,
1653
+ "learning_rate": 8.907526215803351e-06,
1654
+ "loss": 1.6499,
1655
+ "step": 235
1656
+ },
1657
+ {
1658
+ "epoch": 1.0395314787701317,
1659
+ "grad_norm": 0.2834055854316979,
1660
+ "learning_rate": 8.896077929403901e-06,
1661
+ "loss": 1.658,
1662
+ "step": 236
1663
+ },
1664
+ {
1665
+ "epoch": 1.0439238653001464,
1666
+ "grad_norm": 0.2887035123274668,
1667
+ "learning_rate": 8.884577409120535e-06,
1668
+ "loss": 1.6196,
1669
+ "step": 237
1670
+ },
1671
+ {
1672
+ "epoch": 1.048316251830161,
1673
+ "grad_norm": 0.2985213212589398,
1674
+ "learning_rate": 8.873024809138272e-06,
1675
+ "loss": 1.677,
1676
+ "step": 238
1677
+ },
1678
+ {
1679
+ "epoch": 1.0527086383601758,
1680
+ "grad_norm": 0.2863532205939482,
1681
+ "learning_rate": 8.861420284340352e-06,
1682
+ "loss": 1.6682,
1683
+ "step": 239
1684
+ },
1685
+ {
1686
+ "epoch": 1.0571010248901904,
1687
+ "grad_norm": 0.29235163398244823,
1688
+ "learning_rate": 8.849763990306153e-06,
1689
+ "loss": 1.6009,
1690
+ "step": 240
1691
+ },
1692
+ {
1693
+ "epoch": 1.061493411420205,
1694
+ "grad_norm": 0.2899336107020558,
1695
+ "learning_rate": 8.838056083309118e-06,
1696
+ "loss": 1.6319,
1697
+ "step": 241
1698
+ },
1699
+ {
1700
+ "epoch": 1.0658857979502196,
1701
+ "grad_norm": 0.3186837918366928,
1702
+ "learning_rate": 8.826296720314658e-06,
1703
+ "loss": 1.5875,
1704
+ "step": 242
1705
+ },
1706
+ {
1707
+ "epoch": 1.0702781844802343,
1708
+ "grad_norm": 0.33938164798671433,
1709
+ "learning_rate": 8.814486058978035e-06,
1710
+ "loss": 1.6059,
1711
+ "step": 243
1712
+ },
1713
+ {
1714
+ "epoch": 1.0746705710102489,
1715
+ "grad_norm": 0.2991115627129074,
1716
+ "learning_rate": 8.802624257642262e-06,
1717
+ "loss": 1.6599,
1718
+ "step": 244
1719
+ },
1720
+ {
1721
+ "epoch": 1.0790629575402635,
1722
+ "grad_norm": 0.28608565865487656,
1723
+ "learning_rate": 8.790711475335971e-06,
1724
+ "loss": 1.6364,
1725
+ "step": 245
1726
+ },
1727
+ {
1728
+ "epoch": 1.083455344070278,
1729
+ "grad_norm": 0.28359019806003394,
1730
+ "learning_rate": 8.778747871771293e-06,
1731
+ "loss": 1.6584,
1732
+ "step": 246
1733
+ },
1734
+ {
1735
+ "epoch": 1.0878477306002927,
1736
+ "grad_norm": 0.34292617248780644,
1737
+ "learning_rate": 8.766733607341697e-06,
1738
+ "loss": 1.6613,
1739
+ "step": 247
1740
+ },
1741
+ {
1742
+ "epoch": 1.0922401171303076,
1743
+ "grad_norm": 0.3469366526291968,
1744
+ "learning_rate": 8.754668843119865e-06,
1745
+ "loss": 1.6542,
1746
+ "step": 248
1747
+ },
1748
+ {
1749
+ "epoch": 1.0966325036603222,
1750
+ "grad_norm": 0.2745752678931537,
1751
+ "learning_rate": 8.742553740855507e-06,
1752
+ "loss": 1.6723,
1753
+ "step": 249
1754
+ },
1755
+ {
1756
+ "epoch": 1.1010248901903368,
1757
+ "grad_norm": 0.3863733971251328,
1758
+ "learning_rate": 8.730388462973209e-06,
1759
+ "loss": 1.6268,
1760
+ "step": 250
1761
+ },
1762
+ {
1763
+ "epoch": 1.1054172767203514,
1764
+ "grad_norm": 0.3196278576328997,
1765
+ "learning_rate": 8.718173172570254e-06,
1766
+ "loss": 1.6349,
1767
+ "step": 251
1768
+ },
1769
+ {
1770
+ "epoch": 1.109809663250366,
1771
+ "grad_norm": 0.27017487934331,
1772
+ "learning_rate": 8.705908033414426e-06,
1773
+ "loss": 1.606,
1774
+ "step": 252
1775
+ },
1776
+ {
1777
+ "epoch": 1.1142020497803806,
1778
+ "grad_norm": 0.6576768607622604,
1779
+ "learning_rate": 8.693593209941826e-06,
1780
+ "loss": 1.5936,
1781
+ "step": 253
1782
+ },
1783
+ {
1784
+ "epoch": 1.1185944363103952,
1785
+ "grad_norm": 0.30260640047372234,
1786
+ "learning_rate": 8.681228867254657e-06,
1787
+ "loss": 1.5948,
1788
+ "step": 254
1789
+ },
1790
+ {
1791
+ "epoch": 1.12298682284041,
1792
+ "grad_norm": 0.3102239482584757,
1793
+ "learning_rate": 8.66881517111902e-06,
1794
+ "loss": 1.6928,
1795
+ "step": 255
1796
+ },
1797
+ {
1798
+ "epoch": 1.1273792093704247,
1799
+ "grad_norm": 0.2818931187575453,
1800
+ "learning_rate": 8.656352287962687e-06,
1801
+ "loss": 1.687,
1802
+ "step": 256
1803
+ },
1804
+ {
1805
+ "epoch": 1.1317715959004393,
1806
+ "grad_norm": 0.30007928577375903,
1807
+ "learning_rate": 8.643840384872865e-06,
1808
+ "loss": 1.6628,
1809
+ "step": 257
1810
+ },
1811
+ {
1812
+ "epoch": 1.136163982430454,
1813
+ "grad_norm": 0.3249258384227434,
1814
+ "learning_rate": 8.631279629593968e-06,
1815
+ "loss": 1.6123,
1816
+ "step": 258
1817
+ },
1818
+ {
1819
+ "epoch": 1.1405563689604685,
1820
+ "grad_norm": 0.2871446068255736,
1821
+ "learning_rate": 8.61867019052535e-06,
1822
+ "loss": 1.6608,
1823
+ "step": 259
1824
+ },
1825
+ {
1826
+ "epoch": 1.1449487554904831,
1827
+ "grad_norm": 0.3001183609451796,
1828
+ "learning_rate": 8.606012236719073e-06,
1829
+ "loss": 1.6405,
1830
+ "step": 260
1831
+ },
1832
+ {
1833
+ "epoch": 1.1493411420204978,
1834
+ "grad_norm": 0.271155672303218,
1835
+ "learning_rate": 8.593305937877614e-06,
1836
+ "loss": 1.5819,
1837
+ "step": 261
1838
+ },
1839
+ {
1840
+ "epoch": 1.1537335285505124,
1841
+ "grad_norm": 0.30999460151747915,
1842
+ "learning_rate": 8.580551464351603e-06,
1843
+ "loss": 1.6378,
1844
+ "step": 262
1845
+ },
1846
+ {
1847
+ "epoch": 1.158125915080527,
1848
+ "grad_norm": 0.2979330701414515,
1849
+ "learning_rate": 8.567748987137544e-06,
1850
+ "loss": 1.7342,
1851
+ "step": 263
1852
+ },
1853
+ {
1854
+ "epoch": 1.1625183016105418,
1855
+ "grad_norm": 0.29037637226651547,
1856
+ "learning_rate": 8.554898677875509e-06,
1857
+ "loss": 1.663,
1858
+ "step": 264
1859
+ },
1860
+ {
1861
+ "epoch": 1.1669106881405564,
1862
+ "grad_norm": 0.29574080692093535,
1863
+ "learning_rate": 8.542000708846851e-06,
1864
+ "loss": 1.6937,
1865
+ "step": 265
1866
+ },
1867
+ {
1868
+ "epoch": 1.171303074670571,
1869
+ "grad_norm": 0.2867463319690563,
1870
+ "learning_rate": 8.52905525297188e-06,
1871
+ "loss": 1.5812,
1872
+ "step": 266
1873
+ },
1874
+ {
1875
+ "epoch": 1.1756954612005857,
1876
+ "grad_norm": 0.3075848284440638,
1877
+ "learning_rate": 8.516062483807556e-06,
1878
+ "loss": 1.6421,
1879
+ "step": 267
1880
+ },
1881
+ {
1882
+ "epoch": 1.1800878477306003,
1883
+ "grad_norm": 0.2745442718449274,
1884
+ "learning_rate": 8.503022575545159e-06,
1885
+ "loss": 1.6592,
1886
+ "step": 268
1887
+ },
1888
+ {
1889
+ "epoch": 1.1844802342606149,
1890
+ "grad_norm": 0.4008583979349149,
1891
+ "learning_rate": 8.48993570300795e-06,
1892
+ "loss": 1.6052,
1893
+ "step": 269
1894
+ },
1895
+ {
1896
+ "epoch": 1.1888726207906295,
1897
+ "grad_norm": 0.5183284694523707,
1898
+ "learning_rate": 8.476802041648832e-06,
1899
+ "loss": 1.7352,
1900
+ "step": 270
1901
+ },
1902
+ {
1903
+ "epoch": 1.1932650073206443,
1904
+ "grad_norm": 0.30560643793660064,
1905
+ "learning_rate": 8.463621767547998e-06,
1906
+ "loss": 1.5592,
1907
+ "step": 271
1908
+ },
1909
+ {
1910
+ "epoch": 1.197657393850659,
1911
+ "grad_norm": 0.5272799941494408,
1912
+ "learning_rate": 8.450395057410561e-06,
1913
+ "loss": 1.5471,
1914
+ "step": 272
1915
+ },
1916
+ {
1917
+ "epoch": 1.2020497803806736,
1918
+ "grad_norm": 0.4281815470371588,
1919
+ "learning_rate": 8.437122088564197e-06,
1920
+ "loss": 1.6445,
1921
+ "step": 273
1922
+ },
1923
+ {
1924
+ "epoch": 1.2064421669106882,
1925
+ "grad_norm": 0.27224728594527714,
1926
+ "learning_rate": 8.423803038956763e-06,
1927
+ "loss": 1.6629,
1928
+ "step": 274
1929
+ },
1930
+ {
1931
+ "epoch": 1.2108345534407028,
1932
+ "grad_norm": 0.3269535080116159,
1933
+ "learning_rate": 8.41043808715391e-06,
1934
+ "loss": 1.5722,
1935
+ "step": 275
1936
+ },
1937
+ {
1938
+ "epoch": 1.2152269399707174,
1939
+ "grad_norm": 0.3054371244574999,
1940
+ "learning_rate": 8.39702741233669e-06,
1941
+ "loss": 1.6173,
1942
+ "step": 276
1943
+ },
1944
+ {
1945
+ "epoch": 1.219619326500732,
1946
+ "grad_norm": 0.36010851057708126,
1947
+ "learning_rate": 8.383571194299154e-06,
1948
+ "loss": 1.596,
1949
+ "step": 277
1950
+ },
1951
+ {
1952
+ "epoch": 1.2240117130307466,
1953
+ "grad_norm": 0.3803533141127172,
1954
+ "learning_rate": 8.37006961344594e-06,
1955
+ "loss": 1.6229,
1956
+ "step": 278
1957
+ },
1958
+ {
1959
+ "epoch": 1.2284040995607612,
1960
+ "grad_norm": 0.28612951080269505,
1961
+ "learning_rate": 8.356522850789852e-06,
1962
+ "loss": 1.5549,
1963
+ "step": 279
1964
+ },
1965
+ {
1966
+ "epoch": 1.232796486090776,
1967
+ "grad_norm": 0.2855964904759227,
1968
+ "learning_rate": 8.342931087949446e-06,
1969
+ "loss": 1.6512,
1970
+ "step": 280
1971
+ },
1972
+ {
1973
+ "epoch": 1.2371888726207907,
1974
+ "grad_norm": 0.3054377930088084,
1975
+ "learning_rate": 8.32929450714658e-06,
1976
+ "loss": 1.6274,
1977
+ "step": 281
1978
+ },
1979
+ {
1980
+ "epoch": 1.2415812591508053,
1981
+ "grad_norm": 0.29343763848165016,
1982
+ "learning_rate": 8.315613291203977e-06,
1983
+ "loss": 1.6372,
1984
+ "step": 282
1985
+ },
1986
+ {
1987
+ "epoch": 1.24597364568082,
1988
+ "grad_norm": 0.40870431747557984,
1989
+ "learning_rate": 8.301887623542774e-06,
1990
+ "loss": 1.6667,
1991
+ "step": 283
1992
+ },
1993
+ {
1994
+ "epoch": 1.2503660322108345,
1995
+ "grad_norm": 0.30881819618442474,
1996
+ "learning_rate": 8.288117688180064e-06,
1997
+ "loss": 1.5547,
1998
+ "step": 284
1999
+ },
2000
+ {
2001
+ "epoch": 1.2547584187408491,
2002
+ "grad_norm": 0.28765815508847925,
2003
+ "learning_rate": 8.274303669726427e-06,
2004
+ "loss": 1.6097,
2005
+ "step": 285
2006
+ },
2007
+ {
2008
+ "epoch": 1.2591508052708638,
2009
+ "grad_norm": 0.33007103881402516,
2010
+ "learning_rate": 8.260445753383453e-06,
2011
+ "loss": 1.7016,
2012
+ "step": 286
2013
+ },
2014
+ {
2015
+ "epoch": 1.2635431918008786,
2016
+ "grad_norm": 0.3628853649167158,
2017
+ "learning_rate": 8.246544124941266e-06,
2018
+ "loss": 1.6086,
2019
+ "step": 287
2020
+ },
2021
+ {
2022
+ "epoch": 1.267935578330893,
2023
+ "grad_norm": 0.40134140387051037,
2024
+ "learning_rate": 8.232598970776027e-06,
2025
+ "loss": 1.6789,
2026
+ "step": 288
2027
+ },
2028
+ {
2029
+ "epoch": 1.2723279648609078,
2030
+ "grad_norm": 0.2920563442488122,
2031
+ "learning_rate": 8.218610477847435e-06,
2032
+ "loss": 1.5915,
2033
+ "step": 289
2034
+ },
2035
+ {
2036
+ "epoch": 1.2767203513909224,
2037
+ "grad_norm": 0.28530665366941144,
2038
+ "learning_rate": 8.204578833696228e-06,
2039
+ "loss": 1.5949,
2040
+ "step": 290
2041
+ },
2042
+ {
2043
+ "epoch": 1.281112737920937,
2044
+ "grad_norm": 0.3155789127902478,
2045
+ "learning_rate": 8.190504226441654e-06,
2046
+ "loss": 1.639,
2047
+ "step": 291
2048
+ },
2049
+ {
2050
+ "epoch": 1.2855051244509517,
2051
+ "grad_norm": 0.3199350667177758,
2052
+ "learning_rate": 8.176386844778969e-06,
2053
+ "loss": 1.6818,
2054
+ "step": 292
2055
+ },
2056
+ {
2057
+ "epoch": 1.2898975109809663,
2058
+ "grad_norm": 0.34596043922632713,
2059
+ "learning_rate": 8.162226877976886e-06,
2060
+ "loss": 1.6604,
2061
+ "step": 293
2062
+ },
2063
+ {
2064
+ "epoch": 1.294289897510981,
2065
+ "grad_norm": 0.32781624288061406,
2066
+ "learning_rate": 8.148024515875057e-06,
2067
+ "loss": 1.5971,
2068
+ "step": 294
2069
+ },
2070
+ {
2071
+ "epoch": 1.2986822840409955,
2072
+ "grad_norm": 0.5927243317332561,
2073
+ "learning_rate": 8.133779948881514e-06,
2074
+ "loss": 1.6574,
2075
+ "step": 295
2076
+ },
2077
+ {
2078
+ "epoch": 1.3030746705710103,
2079
+ "grad_norm": 0.296769298222996,
2080
+ "learning_rate": 8.11949336797012e-06,
2081
+ "loss": 1.5505,
2082
+ "step": 296
2083
+ },
2084
+ {
2085
+ "epoch": 1.307467057101025,
2086
+ "grad_norm": 0.28849112804215943,
2087
+ "learning_rate": 8.105164964678009e-06,
2088
+ "loss": 1.6729,
2089
+ "step": 297
2090
+ },
2091
+ {
2092
+ "epoch": 1.3118594436310396,
2093
+ "grad_norm": 0.3286168384006033,
2094
+ "learning_rate": 8.090794931103026e-06,
2095
+ "loss": 1.5949,
2096
+ "step": 298
2097
+ },
2098
+ {
2099
+ "epoch": 1.3162518301610542,
2100
+ "grad_norm": 0.31185844876531665,
2101
+ "learning_rate": 8.076383459901138e-06,
2102
+ "loss": 1.6918,
2103
+ "step": 299
2104
+ },
2105
+ {
2106
+ "epoch": 1.3206442166910688,
2107
+ "grad_norm": 0.2789921585419944,
2108
+ "learning_rate": 8.061930744283855e-06,
2109
+ "loss": 1.6437,
2110
+ "step": 300
2111
+ },
2112
+ {
2113
+ "epoch": 1.3250366032210834,
2114
+ "grad_norm": 0.30165508316706874,
2115
+ "learning_rate": 8.04743697801565e-06,
2116
+ "loss": 1.6555,
2117
+ "step": 301
2118
+ },
2119
+ {
2120
+ "epoch": 1.329428989751098,
2121
+ "grad_norm": 0.2989059936488396,
2122
+ "learning_rate": 8.032902355411345e-06,
2123
+ "loss": 1.5141,
2124
+ "step": 302
2125
+ },
2126
+ {
2127
+ "epoch": 1.3338213762811129,
2128
+ "grad_norm": 0.29928394703560823,
2129
+ "learning_rate": 8.018327071333521e-06,
2130
+ "loss": 1.5859,
2131
+ "step": 303
2132
+ },
2133
+ {
2134
+ "epoch": 1.3382137628111272,
2135
+ "grad_norm": 0.29795453570714703,
2136
+ "learning_rate": 8.003711321189895e-06,
2137
+ "loss": 1.5864,
2138
+ "step": 304
2139
+ },
2140
+ {
2141
+ "epoch": 1.342606149341142,
2142
+ "grad_norm": 0.30765817351768504,
2143
+ "learning_rate": 7.989055300930704e-06,
2144
+ "loss": 1.5743,
2145
+ "step": 305
2146
+ },
2147
+ {
2148
+ "epoch": 1.3469985358711567,
2149
+ "grad_norm": 0.43955554329120444,
2150
+ "learning_rate": 7.974359207046081e-06,
2151
+ "loss": 1.6423,
2152
+ "step": 306
2153
+ },
2154
+ {
2155
+ "epoch": 1.3513909224011713,
2156
+ "grad_norm": 0.37865307469865994,
2157
+ "learning_rate": 7.959623236563412e-06,
2158
+ "loss": 1.6102,
2159
+ "step": 307
2160
+ },
2161
+ {
2162
+ "epoch": 1.355783308931186,
2163
+ "grad_norm": 0.3074090057367007,
2164
+ "learning_rate": 7.944847587044704e-06,
2165
+ "loss": 1.6602,
2166
+ "step": 308
2167
+ },
2168
+ {
2169
+ "epoch": 1.3601756954612005,
2170
+ "grad_norm": 0.3361817362879421,
2171
+ "learning_rate": 7.930032456583931e-06,
2172
+ "loss": 1.6704,
2173
+ "step": 309
2174
+ },
2175
+ {
2176
+ "epoch": 1.3645680819912152,
2177
+ "grad_norm": 0.2960444587212274,
2178
+ "learning_rate": 7.915178043804382e-06,
2179
+ "loss": 1.5536,
2180
+ "step": 310
2181
+ },
2182
+ {
2183
+ "epoch": 1.3689604685212298,
2184
+ "grad_norm": 0.31080078465435335,
2185
+ "learning_rate": 7.900284547855992e-06,
2186
+ "loss": 1.659,
2187
+ "step": 311
2188
+ },
2189
+ {
2190
+ "epoch": 1.3733528550512446,
2191
+ "grad_norm": 0.29259208311732576,
2192
+ "learning_rate": 7.885352168412677e-06,
2193
+ "loss": 1.6324,
2194
+ "step": 312
2195
+ },
2196
+ {
2197
+ "epoch": 1.3777452415812592,
2198
+ "grad_norm": 0.40704907971444493,
2199
+ "learning_rate": 7.870381105669657e-06,
2200
+ "loss": 1.6954,
2201
+ "step": 313
2202
+ },
2203
+ {
2204
+ "epoch": 1.3821376281112738,
2205
+ "grad_norm": 0.2884678272243352,
2206
+ "learning_rate": 7.85537156034077e-06,
2207
+ "loss": 1.6911,
2208
+ "step": 314
2209
+ },
2210
+ {
2211
+ "epoch": 1.3865300146412884,
2212
+ "grad_norm": 0.3002277679918279,
2213
+ "learning_rate": 7.84032373365578e-06,
2214
+ "loss": 1.6384,
2215
+ "step": 315
2216
+ },
2217
+ {
2218
+ "epoch": 1.390922401171303,
2219
+ "grad_norm": 0.29747656531257255,
2220
+ "learning_rate": 7.825237827357684e-06,
2221
+ "loss": 1.5728,
2222
+ "step": 316
2223
+ },
2224
+ {
2225
+ "epoch": 1.3953147877013177,
2226
+ "grad_norm": 0.2922330023166882,
2227
+ "learning_rate": 7.810114043700002e-06,
2228
+ "loss": 1.6876,
2229
+ "step": 317
2230
+ },
2231
+ {
2232
+ "epoch": 1.3997071742313323,
2233
+ "grad_norm": 0.29216993729442,
2234
+ "learning_rate": 7.794952585444068e-06,
2235
+ "loss": 1.7112,
2236
+ "step": 318
2237
+ },
2238
+ {
2239
+ "epoch": 1.4040995607613471,
2240
+ "grad_norm": 0.2841430060967501,
2241
+ "learning_rate": 7.779753655856313e-06,
2242
+ "loss": 1.6352,
2243
+ "step": 319
2244
+ },
2245
+ {
2246
+ "epoch": 1.4084919472913615,
2247
+ "grad_norm": 0.29535174268674796,
2248
+ "learning_rate": 7.764517458705536e-06,
2249
+ "loss": 1.638,
2250
+ "step": 320
2251
+ },
2252
+ {
2253
+ "epoch": 1.4128843338213763,
2254
+ "grad_norm": 0.3553267662730052,
2255
+ "learning_rate": 7.749244198260175e-06,
2256
+ "loss": 1.6262,
2257
+ "step": 321
2258
+ },
2259
+ {
2260
+ "epoch": 1.417276720351391,
2261
+ "grad_norm": 0.2977673782348279,
2262
+ "learning_rate": 7.733934079285569e-06,
2263
+ "loss": 1.6115,
2264
+ "step": 322
2265
+ },
2266
+ {
2267
+ "epoch": 1.4216691068814056,
2268
+ "grad_norm": 0.2822196746941408,
2269
+ "learning_rate": 7.718587307041209e-06,
2270
+ "loss": 1.6468,
2271
+ "step": 323
2272
+ },
2273
+ {
2274
+ "epoch": 1.4260614934114202,
2275
+ "grad_norm": 0.2837671497162217,
2276
+ "learning_rate": 7.703204087277989e-06,
2277
+ "loss": 1.6474,
2278
+ "step": 324
2279
+ },
2280
+ {
2281
+ "epoch": 1.4304538799414348,
2282
+ "grad_norm": 0.31664451334685184,
2283
+ "learning_rate": 7.687784626235448e-06,
2284
+ "loss": 1.5919,
2285
+ "step": 325
2286
+ },
2287
+ {
2288
+ "epoch": 1.4348462664714494,
2289
+ "grad_norm": 0.33195017711571867,
2290
+ "learning_rate": 7.672329130639007e-06,
2291
+ "loss": 1.6941,
2292
+ "step": 326
2293
+ },
2294
+ {
2295
+ "epoch": 1.439238653001464,
2296
+ "grad_norm": 0.2995108911659512,
2297
+ "learning_rate": 7.656837807697187e-06,
2298
+ "loss": 1.6393,
2299
+ "step": 327
2300
+ },
2301
+ {
2302
+ "epoch": 1.4436310395314789,
2303
+ "grad_norm": 0.2949122695416032,
2304
+ "learning_rate": 7.641310865098845e-06,
2305
+ "loss": 1.5135,
2306
+ "step": 328
2307
+ },
2308
+ {
2309
+ "epoch": 1.4480234260614935,
2310
+ "grad_norm": 0.31946384200509315,
2311
+ "learning_rate": 7.625748511010382e-06,
2312
+ "loss": 1.5784,
2313
+ "step": 329
2314
+ },
2315
+ {
2316
+ "epoch": 1.452415812591508,
2317
+ "grad_norm": 0.29208814812765094,
2318
+ "learning_rate": 7.610150954072953e-06,
2319
+ "loss": 1.6794,
2320
+ "step": 330
2321
+ },
2322
+ {
2323
+ "epoch": 1.4568081991215227,
2324
+ "grad_norm": 0.34475174012170284,
2325
+ "learning_rate": 7.594518403399666e-06,
2326
+ "loss": 1.5773,
2327
+ "step": 331
2328
+ },
2329
+ {
2330
+ "epoch": 1.4612005856515373,
2331
+ "grad_norm": 0.2876304119955936,
2332
+ "learning_rate": 7.578851068572788e-06,
2333
+ "loss": 1.5613,
2334
+ "step": 332
2335
+ },
2336
+ {
2337
+ "epoch": 1.465592972181552,
2338
+ "grad_norm": 0.31542092184200016,
2339
+ "learning_rate": 7.563149159640929e-06,
2340
+ "loss": 1.6086,
2341
+ "step": 333
2342
+ },
2343
+ {
2344
+ "epoch": 1.4699853587115665,
2345
+ "grad_norm": 0.2964161628058562,
2346
+ "learning_rate": 7.547412887116224e-06,
2347
+ "loss": 1.5963,
2348
+ "step": 334
2349
+ },
2350
+ {
2351
+ "epoch": 1.4743777452415814,
2352
+ "grad_norm": 0.32832262869958717,
2353
+ "learning_rate": 7.531642461971515e-06,
2354
+ "loss": 1.6054,
2355
+ "step": 335
2356
+ },
2357
+ {
2358
+ "epoch": 1.4787701317715958,
2359
+ "grad_norm": 0.3209241382730098,
2360
+ "learning_rate": 7.51583809563752e-06,
2361
+ "loss": 1.6748,
2362
+ "step": 336
2363
+ },
2364
+ {
2365
+ "epoch": 1.4831625183016106,
2366
+ "grad_norm": 0.30060262616835987,
2367
+ "learning_rate": 7.500000000000001e-06,
2368
+ "loss": 1.6081,
2369
+ "step": 337
2370
+ },
2371
+ {
2372
+ "epoch": 1.4875549048316252,
2373
+ "grad_norm": 0.3500388762321464,
2374
+ "learning_rate": 7.4841283873969194e-06,
2375
+ "loss": 1.5906,
2376
+ "step": 338
2377
+ },
2378
+ {
2379
+ "epoch": 1.4919472913616398,
2380
+ "grad_norm": 0.28308587203259633,
2381
+ "learning_rate": 7.468223470615593e-06,
2382
+ "loss": 1.5879,
2383
+ "step": 339
2384
+ },
2385
+ {
2386
+ "epoch": 1.4963396778916545,
2387
+ "grad_norm": 0.2901927981331445,
2388
+ "learning_rate": 7.452285462889841e-06,
2389
+ "loss": 1.6242,
2390
+ "step": 340
2391
+ },
2392
+ {
2393
+ "epoch": 1.500732064421669,
2394
+ "grad_norm": 0.3314307283598877,
2395
+ "learning_rate": 7.436314577897126e-06,
2396
+ "loss": 1.646,
2397
+ "step": 341
2398
+ },
2399
+ {
2400
+ "epoch": 1.505124450951684,
2401
+ "grad_norm": 0.3264131109049365,
2402
+ "learning_rate": 7.420311029755688e-06,
2403
+ "loss": 1.5855,
2404
+ "step": 342
2405
+ },
2406
+ {
2407
+ "epoch": 1.5095168374816983,
2408
+ "grad_norm": 0.3519561244527488,
2409
+ "learning_rate": 7.404275033021676e-06,
2410
+ "loss": 1.6415,
2411
+ "step": 343
2412
+ },
2413
+ {
2414
+ "epoch": 1.5139092240117131,
2415
+ "grad_norm": 0.3231864119230437,
2416
+ "learning_rate": 7.388206802686272e-06,
2417
+ "loss": 1.6038,
2418
+ "step": 344
2419
+ },
2420
+ {
2421
+ "epoch": 1.5183016105417275,
2422
+ "grad_norm": 0.4648117736859699,
2423
+ "learning_rate": 7.372106554172802e-06,
2424
+ "loss": 1.6327,
2425
+ "step": 345
2426
+ },
2427
+ {
2428
+ "epoch": 1.5226939970717424,
2429
+ "grad_norm": 0.30819599956019383,
2430
+ "learning_rate": 7.355974503333859e-06,
2431
+ "loss": 1.7179,
2432
+ "step": 346
2433
+ },
2434
+ {
2435
+ "epoch": 1.527086383601757,
2436
+ "grad_norm": 0.3425241683440226,
2437
+ "learning_rate": 7.339810866448398e-06,
2438
+ "loss": 1.6486,
2439
+ "step": 347
2440
+ },
2441
+ {
2442
+ "epoch": 1.5314787701317716,
2443
+ "grad_norm": 0.3229436387251198,
2444
+ "learning_rate": 7.323615860218844e-06,
2445
+ "loss": 1.5028,
2446
+ "step": 348
2447
+ },
2448
+ {
2449
+ "epoch": 1.5358711566617862,
2450
+ "grad_norm": 0.32420322558759,
2451
+ "learning_rate": 7.307389701768183e-06,
2452
+ "loss": 1.517,
2453
+ "step": 349
2454
+ },
2455
+ {
2456
+ "epoch": 1.5402635431918008,
2457
+ "grad_norm": 0.33308925785501975,
2458
+ "learning_rate": 7.291132608637053e-06,
2459
+ "loss": 1.6278,
2460
+ "step": 350
2461
+ },
2462
+ {
2463
+ "epoch": 1.5446559297218156,
2464
+ "grad_norm": 0.33961176568859514,
2465
+ "learning_rate": 7.274844798780826e-06,
2466
+ "loss": 1.6651,
2467
+ "step": 351
2468
+ },
2469
+ {
2470
+ "epoch": 1.54904831625183,
2471
+ "grad_norm": 0.32173930273995155,
2472
+ "learning_rate": 7.258526490566687e-06,
2473
+ "loss": 1.491,
2474
+ "step": 352
2475
+ },
2476
+ {
2477
+ "epoch": 1.5534407027818449,
2478
+ "grad_norm": 0.3093139646127846,
2479
+ "learning_rate": 7.242177902770706e-06,
2480
+ "loss": 1.5796,
2481
+ "step": 353
2482
+ },
2483
+ {
2484
+ "epoch": 1.5578330893118595,
2485
+ "grad_norm": 0.32919345439390313,
2486
+ "learning_rate": 7.2257992545749045e-06,
2487
+ "loss": 1.5865,
2488
+ "step": 354
2489
+ },
2490
+ {
2491
+ "epoch": 1.562225475841874,
2492
+ "grad_norm": 0.2835010953118983,
2493
+ "learning_rate": 7.209390765564318e-06,
2494
+ "loss": 1.6417,
2495
+ "step": 355
2496
+ },
2497
+ {
2498
+ "epoch": 1.5666178623718887,
2499
+ "grad_norm": 1.7445414238062138,
2500
+ "learning_rate": 7.192952655724049e-06,
2501
+ "loss": 1.6597,
2502
+ "step": 356
2503
+ },
2504
+ {
2505
+ "epoch": 1.5710102489019033,
2506
+ "grad_norm": 0.5860196285629298,
2507
+ "learning_rate": 7.176485145436325e-06,
2508
+ "loss": 1.5387,
2509
+ "step": 357
2510
+ },
2511
+ {
2512
+ "epoch": 1.5754026354319182,
2513
+ "grad_norm": 0.3537384385833807,
2514
+ "learning_rate": 7.159988455477534e-06,
2515
+ "loss": 1.6013,
2516
+ "step": 358
2517
+ },
2518
+ {
2519
+ "epoch": 1.5797950219619326,
2520
+ "grad_norm": 0.3286829503374976,
2521
+ "learning_rate": 7.143462807015271e-06,
2522
+ "loss": 1.6264,
2523
+ "step": 359
2524
+ },
2525
+ {
2526
+ "epoch": 1.5841874084919474,
2527
+ "grad_norm": 0.3197218822335203,
2528
+ "learning_rate": 7.1269084216053756e-06,
2529
+ "loss": 1.5552,
2530
+ "step": 360
2531
+ },
2532
+ {
2533
+ "epoch": 1.5885797950219618,
2534
+ "grad_norm": 0.31209150272027425,
2535
+ "learning_rate": 7.11032552118895e-06,
2536
+ "loss": 1.6108,
2537
+ "step": 361
2538
+ },
2539
+ {
2540
+ "epoch": 1.5929721815519766,
2541
+ "grad_norm": 0.3227458575298131,
2542
+ "learning_rate": 7.093714328089398e-06,
2543
+ "loss": 1.649,
2544
+ "step": 362
2545
+ },
2546
+ {
2547
+ "epoch": 1.5973645680819912,
2548
+ "grad_norm": 0.3637374362635078,
2549
+ "learning_rate": 7.0770750650094335e-06,
2550
+ "loss": 1.6739,
2551
+ "step": 363
2552
+ },
2553
+ {
2554
+ "epoch": 1.6017569546120058,
2555
+ "grad_norm": 0.31236210751966154,
2556
+ "learning_rate": 7.060407955028098e-06,
2557
+ "loss": 1.5946,
2558
+ "step": 364
2559
+ },
2560
+ {
2561
+ "epoch": 1.6061493411420205,
2562
+ "grad_norm": 0.35651724986710415,
2563
+ "learning_rate": 7.0437132215977744e-06,
2564
+ "loss": 1.6337,
2565
+ "step": 365
2566
+ },
2567
+ {
2568
+ "epoch": 1.610541727672035,
2569
+ "grad_norm": 0.31143483852268733,
2570
+ "learning_rate": 7.026991088541184e-06,
2571
+ "loss": 1.67,
2572
+ "step": 366
2573
+ },
2574
+ {
2575
+ "epoch": 1.61493411420205,
2576
+ "grad_norm": 0.33050222076540253,
2577
+ "learning_rate": 7.01024178004839e-06,
2578
+ "loss": 1.6204,
2579
+ "step": 367
2580
+ },
2581
+ {
2582
+ "epoch": 1.6193265007320643,
2583
+ "grad_norm": 0.3284547022539121,
2584
+ "learning_rate": 6.99346552067379e-06,
2585
+ "loss": 1.573,
2586
+ "step": 368
2587
+ },
2588
+ {
2589
+ "epoch": 1.6237188872620791,
2590
+ "grad_norm": 0.3603027916184282,
2591
+ "learning_rate": 6.976662535333107e-06,
2592
+ "loss": 1.6553,
2593
+ "step": 369
2594
+ },
2595
+ {
2596
+ "epoch": 1.6281112737920937,
2597
+ "grad_norm": 0.8725979374632243,
2598
+ "learning_rate": 6.959833049300376e-06,
2599
+ "loss": 1.6279,
2600
+ "step": 370
2601
+ },
2602
+ {
2603
+ "epoch": 1.6325036603221084,
2604
+ "grad_norm": 0.28597465971107255,
2605
+ "learning_rate": 6.942977288204915e-06,
2606
+ "loss": 1.5074,
2607
+ "step": 371
2608
+ },
2609
+ {
2610
+ "epoch": 1.636896046852123,
2611
+ "grad_norm": 0.31388416897723714,
2612
+ "learning_rate": 6.926095478028312e-06,
2613
+ "loss": 1.6896,
2614
+ "step": 372
2615
+ },
2616
+ {
2617
+ "epoch": 1.6412884333821376,
2618
+ "grad_norm": 0.3008107505835411,
2619
+ "learning_rate": 6.909187845101387e-06,
2620
+ "loss": 1.5688,
2621
+ "step": 373
2622
+ },
2623
+ {
2624
+ "epoch": 1.6456808199121524,
2625
+ "grad_norm": 0.32252769956105753,
2626
+ "learning_rate": 6.892254616101158e-06,
2627
+ "loss": 1.7391,
2628
+ "step": 374
2629
+ },
2630
+ {
2631
+ "epoch": 1.6500732064421668,
2632
+ "grad_norm": 0.3253332219188239,
2633
+ "learning_rate": 6.87529601804781e-06,
2634
+ "loss": 1.5479,
2635
+ "step": 375
2636
+ },
2637
+ {
2638
+ "epoch": 1.6544655929721817,
2639
+ "grad_norm": 0.3354516401894849,
2640
+ "learning_rate": 6.858312278301638e-06,
2641
+ "loss": 1.5944,
2642
+ "step": 376
2643
+ },
2644
+ {
2645
+ "epoch": 1.658857979502196,
2646
+ "grad_norm": 0.3101157670728667,
2647
+ "learning_rate": 6.841303624560012e-06,
2648
+ "loss": 1.5979,
2649
+ "step": 377
2650
+ },
2651
+ {
2652
+ "epoch": 1.6632503660322109,
2653
+ "grad_norm": 0.3263157294243148,
2654
+ "learning_rate": 6.8242702848543185e-06,
2655
+ "loss": 1.6651,
2656
+ "step": 378
2657
+ },
2658
+ {
2659
+ "epoch": 1.6676427525622255,
2660
+ "grad_norm": 0.2963170265612591,
2661
+ "learning_rate": 6.807212487546897e-06,
2662
+ "loss": 1.6414,
2663
+ "step": 379
2664
+ },
2665
+ {
2666
+ "epoch": 1.67203513909224,
2667
+ "grad_norm": 0.3436329546570268,
2668
+ "learning_rate": 6.790130461327993e-06,
2669
+ "loss": 1.5237,
2670
+ "step": 380
2671
+ },
2672
+ {
2673
+ "epoch": 1.6764275256222547,
2674
+ "grad_norm": 0.30951635226199037,
2675
+ "learning_rate": 6.773024435212678e-06,
2676
+ "loss": 1.5608,
2677
+ "step": 381
2678
+ },
2679
+ {
2680
+ "epoch": 1.6808199121522693,
2681
+ "grad_norm": 0.3024875350743093,
2682
+ "learning_rate": 6.755894638537791e-06,
2683
+ "loss": 1.5595,
2684
+ "step": 382
2685
+ },
2686
+ {
2687
+ "epoch": 1.6852122986822842,
2688
+ "grad_norm": 0.30964409063235376,
2689
+ "learning_rate": 6.73874130095885e-06,
2690
+ "loss": 1.6166,
2691
+ "step": 383
2692
+ },
2693
+ {
2694
+ "epoch": 1.6896046852122986,
2695
+ "grad_norm": 0.31495863587091266,
2696
+ "learning_rate": 6.721564652446987e-06,
2697
+ "loss": 1.5279,
2698
+ "step": 384
2699
+ },
2700
+ {
2701
+ "epoch": 1.6939970717423134,
2702
+ "grad_norm": 0.3115937718660612,
2703
+ "learning_rate": 6.704364923285858e-06,
2704
+ "loss": 1.5694,
2705
+ "step": 385
2706
+ },
2707
+ {
2708
+ "epoch": 1.698389458272328,
2709
+ "grad_norm": 0.29768001900234425,
2710
+ "learning_rate": 6.687142344068552e-06,
2711
+ "loss": 1.5578,
2712
+ "step": 386
2713
+ },
2714
+ {
2715
+ "epoch": 1.7027818448023426,
2716
+ "grad_norm": 0.32146567067323123,
2717
+ "learning_rate": 6.669897145694507e-06,
2718
+ "loss": 1.6368,
2719
+ "step": 387
2720
+ },
2721
+ {
2722
+ "epoch": 1.7071742313323572,
2723
+ "grad_norm": 0.29522637791127904,
2724
+ "learning_rate": 6.6526295593664136e-06,
2725
+ "loss": 1.6121,
2726
+ "step": 388
2727
+ },
2728
+ {
2729
+ "epoch": 1.7115666178623719,
2730
+ "grad_norm": 0.30160303491140916,
2731
+ "learning_rate": 6.635339816587109e-06,
2732
+ "loss": 1.6238,
2733
+ "step": 389
2734
+ },
2735
+ {
2736
+ "epoch": 1.7159590043923867,
2737
+ "grad_norm": 0.4208009773656739,
2738
+ "learning_rate": 6.618028149156479e-06,
2739
+ "loss": 1.62,
2740
+ "step": 390
2741
+ },
2742
+ {
2743
+ "epoch": 1.720351390922401,
2744
+ "grad_norm": 0.2881943555017053,
2745
+ "learning_rate": 6.600694789168345e-06,
2746
+ "loss": 1.6364,
2747
+ "step": 391
2748
+ },
2749
+ {
2750
+ "epoch": 1.724743777452416,
2751
+ "grad_norm": 0.3077307710744344,
2752
+ "learning_rate": 6.583339969007364e-06,
2753
+ "loss": 1.5677,
2754
+ "step": 392
2755
+ },
2756
+ {
2757
+ "epoch": 1.7291361639824303,
2758
+ "grad_norm": 0.35235096673751176,
2759
+ "learning_rate": 6.565963921345896e-06,
2760
+ "loss": 1.6163,
2761
+ "step": 393
2762
+ },
2763
+ {
2764
+ "epoch": 1.7335285505124451,
2765
+ "grad_norm": 0.3186476335255873,
2766
+ "learning_rate": 6.548566879140897e-06,
2767
+ "loss": 1.6289,
2768
+ "step": 394
2769
+ },
2770
+ {
2771
+ "epoch": 1.7379209370424598,
2772
+ "grad_norm": 0.31476614898776,
2773
+ "learning_rate": 6.531149075630796e-06,
2774
+ "loss": 1.5874,
2775
+ "step": 395
2776
+ },
2777
+ {
2778
+ "epoch": 1.7423133235724744,
2779
+ "grad_norm": 0.3469536206500234,
2780
+ "learning_rate": 6.513710744332361e-06,
2781
+ "loss": 1.6621,
2782
+ "step": 396
2783
+ },
2784
+ {
2785
+ "epoch": 1.746705710102489,
2786
+ "grad_norm": 0.30680438680917854,
2787
+ "learning_rate": 6.49625211903757e-06,
2788
+ "loss": 1.595,
2789
+ "step": 397
2790
+ },
2791
+ {
2792
+ "epoch": 1.7510980966325036,
2793
+ "grad_norm": 0.34458603376189034,
2794
+ "learning_rate": 6.478773433810478e-06,
2795
+ "loss": 1.5886,
2796
+ "step": 398
2797
+ },
2798
+ {
2799
+ "epoch": 1.7554904831625184,
2800
+ "grad_norm": 0.34083953962031827,
2801
+ "learning_rate": 6.461274922984087e-06,
2802
+ "loss": 1.5705,
2803
+ "step": 399
2804
+ },
2805
+ {
2806
+ "epoch": 1.7598828696925328,
2807
+ "grad_norm": 0.3345685083562738,
2808
+ "learning_rate": 6.4437568211571864e-06,
2809
+ "loss": 1.6181,
2810
+ "step": 400
2811
+ },
2812
+ {
2813
+ "epoch": 1.7642752562225477,
2814
+ "grad_norm": 0.28767837558253834,
2815
+ "learning_rate": 6.426219363191224e-06,
2816
+ "loss": 1.6273,
2817
+ "step": 401
2818
+ },
2819
+ {
2820
+ "epoch": 1.7686676427525623,
2821
+ "grad_norm": 0.3309056934700509,
2822
+ "learning_rate": 6.408662784207149e-06,
2823
+ "loss": 1.5575,
2824
+ "step": 402
2825
+ },
2826
+ {
2827
+ "epoch": 1.7730600292825769,
2828
+ "grad_norm": 0.33936552783693097,
2829
+ "learning_rate": 6.391087319582264e-06,
2830
+ "loss": 1.5653,
2831
+ "step": 403
2832
+ },
2833
+ {
2834
+ "epoch": 1.7774524158125915,
2835
+ "grad_norm": 0.38728001848935395,
2836
+ "learning_rate": 6.373493204947065e-06,
2837
+ "loss": 1.5962,
2838
+ "step": 404
2839
+ },
2840
+ {
2841
+ "epoch": 1.7818448023426061,
2842
+ "grad_norm": 0.33731817557741206,
2843
+ "learning_rate": 6.355880676182086e-06,
2844
+ "loss": 1.5267,
2845
+ "step": 405
2846
+ },
2847
+ {
2848
+ "epoch": 1.786237188872621,
2849
+ "grad_norm": 0.3073610397325029,
2850
+ "learning_rate": 6.3382499694147345e-06,
2851
+ "loss": 1.5735,
2852
+ "step": 406
2853
+ },
2854
+ {
2855
+ "epoch": 1.7906295754026353,
2856
+ "grad_norm": 0.5666929994713482,
2857
+ "learning_rate": 6.3206013210161285e-06,
2858
+ "loss": 1.6164,
2859
+ "step": 407
2860
+ },
2861
+ {
2862
+ "epoch": 1.7950219619326502,
2863
+ "grad_norm": 0.3423706928777578,
2864
+ "learning_rate": 6.302934967597922e-06,
2865
+ "loss": 1.6694,
2866
+ "step": 408
2867
+ },
2868
+ {
2869
+ "epoch": 1.7994143484626646,
2870
+ "grad_norm": 0.3100272828530065,
2871
+ "learning_rate": 6.2852511460091406e-06,
2872
+ "loss": 1.6322,
2873
+ "step": 409
2874
+ },
2875
+ {
2876
+ "epoch": 1.8038067349926794,
2877
+ "grad_norm": 0.3710603928040935,
2878
+ "learning_rate": 6.267550093333e-06,
2879
+ "loss": 1.5405,
2880
+ "step": 410
2881
+ },
2882
+ {
2883
+ "epoch": 1.808199121522694,
2884
+ "grad_norm": 0.3024234235421662,
2885
+ "learning_rate": 6.249832046883729e-06,
2886
+ "loss": 1.6389,
2887
+ "step": 411
2888
+ },
2889
+ {
2890
+ "epoch": 1.8125915080527086,
2891
+ "grad_norm": 0.2923050985231585,
2892
+ "learning_rate": 6.232097244203388e-06,
2893
+ "loss": 1.563,
2894
+ "step": 412
2895
+ },
2896
+ {
2897
+ "epoch": 1.8169838945827232,
2898
+ "grad_norm": 0.37742465142395615,
2899
+ "learning_rate": 6.214345923058686e-06,
2900
+ "loss": 1.5605,
2901
+ "step": 413
2902
+ },
2903
+ {
2904
+ "epoch": 1.8213762811127379,
2905
+ "grad_norm": 0.2763099605085667,
2906
+ "learning_rate": 6.1965783214377895e-06,
2907
+ "loss": 1.5757,
2908
+ "step": 414
2909
+ },
2910
+ {
2911
+ "epoch": 1.8257686676427527,
2912
+ "grad_norm": 0.29226253974509314,
2913
+ "learning_rate": 6.178794677547138e-06,
2914
+ "loss": 1.6213,
2915
+ "step": 415
2916
+ },
2917
+ {
2918
+ "epoch": 1.830161054172767,
2919
+ "grad_norm": 0.3892056822790433,
2920
+ "learning_rate": 6.16099522980824e-06,
2921
+ "loss": 1.6471,
2922
+ "step": 416
2923
+ },
2924
+ {
2925
+ "epoch": 1.834553440702782,
2926
+ "grad_norm": 0.3547953314773269,
2927
+ "learning_rate": 6.143180216854488e-06,
2928
+ "loss": 1.5933,
2929
+ "step": 417
2930
+ },
2931
+ {
2932
+ "epoch": 1.8389458272327965,
2933
+ "grad_norm": 0.2876417607221798,
2934
+ "learning_rate": 6.125349877527952e-06,
2935
+ "loss": 1.6056,
2936
+ "step": 418
2937
+ },
2938
+ {
2939
+ "epoch": 1.8433382137628112,
2940
+ "grad_norm": 0.29632892867662236,
2941
+ "learning_rate": 6.1075044508761804e-06,
2942
+ "loss": 1.5798,
2943
+ "step": 419
2944
+ },
2945
+ {
2946
+ "epoch": 1.8477306002928258,
2947
+ "grad_norm": 0.3351398469787539,
2948
+ "learning_rate": 6.0896441761489925e-06,
2949
+ "loss": 1.5775,
2950
+ "step": 420
2951
+ },
2952
+ {
2953
+ "epoch": 1.8521229868228404,
2954
+ "grad_norm": 0.32572738949136165,
2955
+ "learning_rate": 6.071769292795274e-06,
2956
+ "loss": 1.5065,
2957
+ "step": 421
2958
+ },
2959
+ {
2960
+ "epoch": 1.8565153733528552,
2961
+ "grad_norm": 0.32922431311553646,
2962
+ "learning_rate": 6.053880040459765e-06,
2963
+ "loss": 1.5768,
2964
+ "step": 422
2965
+ },
2966
+ {
2967
+ "epoch": 1.8609077598828696,
2968
+ "grad_norm": 0.3229086221064645,
2969
+ "learning_rate": 6.035976658979846e-06,
2970
+ "loss": 1.6242,
2971
+ "step": 423
2972
+ },
2973
+ {
2974
+ "epoch": 1.8653001464128844,
2975
+ "grad_norm": 0.3114352291982662,
2976
+ "learning_rate": 6.018059388382327e-06,
2977
+ "loss": 1.6473,
2978
+ "step": 424
2979
+ },
2980
+ {
2981
+ "epoch": 1.8696925329428988,
2982
+ "grad_norm": 0.31045445243058734,
2983
+ "learning_rate": 6.000128468880223e-06,
2984
+ "loss": 1.535,
2985
+ "step": 425
2986
+ },
2987
+ {
2988
+ "epoch": 1.8740849194729137,
2989
+ "grad_norm": 0.33523008129662585,
2990
+ "learning_rate": 5.982184140869539e-06,
2991
+ "loss": 1.6344,
2992
+ "step": 426
2993
+ },
2994
+ {
2995
+ "epoch": 1.8784773060029283,
2996
+ "grad_norm": 0.3081522900734568,
2997
+ "learning_rate": 5.964226644926045e-06,
2998
+ "loss": 1.6386,
2999
+ "step": 427
3000
+ },
3001
+ {
3002
+ "epoch": 1.882869692532943,
3003
+ "grad_norm": 0.2900227624443104,
3004
+ "learning_rate": 5.946256221802052e-06,
3005
+ "loss": 1.5843,
3006
+ "step": 428
3007
+ },
3008
+ {
3009
+ "epoch": 1.8872620790629575,
3010
+ "grad_norm": 0.354099020882711,
3011
+ "learning_rate": 5.928273112423177e-06,
3012
+ "loss": 1.5758,
3013
+ "step": 429
3014
+ },
3015
+ {
3016
+ "epoch": 1.8916544655929721,
3017
+ "grad_norm": 0.34160211290628684,
3018
+ "learning_rate": 5.910277557885128e-06,
3019
+ "loss": 1.5551,
3020
+ "step": 430
3021
+ },
3022
+ {
3023
+ "epoch": 1.896046852122987,
3024
+ "grad_norm": 0.3162945077147358,
3025
+ "learning_rate": 5.892269799450453e-06,
3026
+ "loss": 1.6204,
3027
+ "step": 431
3028
+ },
3029
+ {
3030
+ "epoch": 1.9004392386530014,
3031
+ "grad_norm": 0.3509407679369851,
3032
+ "learning_rate": 5.8742500785453226e-06,
3033
+ "loss": 1.6224,
3034
+ "step": 432
3035
+ },
3036
+ {
3037
+ "epoch": 1.9048316251830162,
3038
+ "grad_norm": 0.2848983911128527,
3039
+ "learning_rate": 5.856218636756281e-06,
3040
+ "loss": 1.6059,
3041
+ "step": 433
3042
+ },
3043
+ {
3044
+ "epoch": 1.9092240117130308,
3045
+ "grad_norm": 0.38193324539008777,
3046
+ "learning_rate": 5.838175715827015e-06,
3047
+ "loss": 1.5511,
3048
+ "step": 434
3049
+ },
3050
+ {
3051
+ "epoch": 1.9136163982430454,
3052
+ "grad_norm": 0.31934508340416906,
3053
+ "learning_rate": 5.820121557655109e-06,
3054
+ "loss": 1.7028,
3055
+ "step": 435
3056
+ },
3057
+ {
3058
+ "epoch": 1.91800878477306,
3059
+ "grad_norm": 0.33670681289920085,
3060
+ "learning_rate": 5.8020564042888015e-06,
3061
+ "loss": 1.5687,
3062
+ "step": 436
3063
+ },
3064
+ {
3065
+ "epoch": 1.9224011713030746,
3066
+ "grad_norm": 0.318844847843566,
3067
+ "learning_rate": 5.783980497923743e-06,
3068
+ "loss": 1.567,
3069
+ "step": 437
3070
+ },
3071
+ {
3072
+ "epoch": 1.9267935578330895,
3073
+ "grad_norm": 0.29610949062035014,
3074
+ "learning_rate": 5.76589408089974e-06,
3075
+ "loss": 1.5166,
3076
+ "step": 438
3077
+ },
3078
+ {
3079
+ "epoch": 1.9311859443631039,
3080
+ "grad_norm": 0.28728684262143106,
3081
+ "learning_rate": 5.747797395697525e-06,
3082
+ "loss": 1.5813,
3083
+ "step": 439
3084
+ },
3085
+ {
3086
+ "epoch": 1.9355783308931187,
3087
+ "grad_norm": 0.32309431631814955,
3088
+ "learning_rate": 5.729690684935487e-06,
3089
+ "loss": 1.641,
3090
+ "step": 440
3091
+ },
3092
+ {
3093
+ "epoch": 1.939970717423133,
3094
+ "grad_norm": 0.2969130322032886,
3095
+ "learning_rate": 5.711574191366427e-06,
3096
+ "loss": 1.5608,
3097
+ "step": 441
3098
+ },
3099
+ {
3100
+ "epoch": 1.944363103953148,
3101
+ "grad_norm": 0.42872939564364393,
3102
+ "learning_rate": 5.693448157874299e-06,
3103
+ "loss": 1.5983,
3104
+ "step": 442
3105
+ },
3106
+ {
3107
+ "epoch": 1.9487554904831625,
3108
+ "grad_norm": 0.3798270075015977,
3109
+ "learning_rate": 5.675312827470959e-06,
3110
+ "loss": 1.5896,
3111
+ "step": 443
3112
+ },
3113
+ {
3114
+ "epoch": 1.9531478770131772,
3115
+ "grad_norm": 0.30174438725527203,
3116
+ "learning_rate": 5.657168443292909e-06,
3117
+ "loss": 1.6043,
3118
+ "step": 444
3119
+ },
3120
+ {
3121
+ "epoch": 1.9575402635431918,
3122
+ "grad_norm": 0.4119857865917871,
3123
+ "learning_rate": 5.639015248598025e-06,
3124
+ "loss": 1.5754,
3125
+ "step": 445
3126
+ },
3127
+ {
3128
+ "epoch": 1.9619326500732064,
3129
+ "grad_norm": 0.32221313787015915,
3130
+ "learning_rate": 5.620853486762307e-06,
3131
+ "loss": 1.6569,
3132
+ "step": 446
3133
+ },
3134
+ {
3135
+ "epoch": 1.9663250366032212,
3136
+ "grad_norm": 0.3547729959901477,
3137
+ "learning_rate": 5.6026834012766155e-06,
3138
+ "loss": 1.6228,
3139
+ "step": 447
3140
+ },
3141
+ {
3142
+ "epoch": 1.9707174231332356,
3143
+ "grad_norm": 0.28279646337718173,
3144
+ "learning_rate": 5.584505235743404e-06,
3145
+ "loss": 1.5874,
3146
+ "step": 448
3147
+ },
3148
+ {
3149
+ "epoch": 1.9751098096632504,
3150
+ "grad_norm": 0.3264218725678291,
3151
+ "learning_rate": 5.566319233873446e-06,
3152
+ "loss": 1.6313,
3153
+ "step": 449
3154
+ },
3155
+ {
3156
+ "epoch": 1.979502196193265,
3157
+ "grad_norm": 0.28955653787826696,
3158
+ "learning_rate": 5.548125639482587e-06,
3159
+ "loss": 1.5989,
3160
+ "step": 450
3161
+ },
3162
+ {
3163
+ "epoch": 1.9838945827232797,
3164
+ "grad_norm": 0.881097673855719,
3165
+ "learning_rate": 5.529924696488456e-06,
3166
+ "loss": 1.5796,
3167
+ "step": 451
3168
+ },
3169
+ {
3170
+ "epoch": 1.9882869692532943,
3171
+ "grad_norm": 0.32048202284049887,
3172
+ "learning_rate": 5.5117166489072014e-06,
3173
+ "loss": 1.578,
3174
+ "step": 452
3175
+ },
3176
+ {
3177
+ "epoch": 1.992679355783309,
3178
+ "grad_norm": 0.2896791795835667,
3179
+ "learning_rate": 5.493501740850228e-06,
3180
+ "loss": 1.6146,
3181
+ "step": 453
3182
+ },
3183
+ {
3184
+ "epoch": 1.9970717423133237,
3185
+ "grad_norm": 0.35142442191521966,
3186
+ "learning_rate": 5.475280216520913e-06,
3187
+ "loss": 1.5522,
3188
+ "step": 454
3189
+ },
3190
+ {
3191
+ "epoch": 2.004392386530015,
3192
+ "grad_norm": 0.6164551609296155,
3193
+ "learning_rate": 5.45705232021134e-06,
3194
+ "loss": 3.059,
3195
+ "step": 455
3196
+ },
3197
+ {
3198
+ "epoch": 2.0087847730600292,
3199
+ "grad_norm": 0.33044889056247584,
3200
+ "learning_rate": 5.438818296299015e-06,
3201
+ "loss": 1.5982,
3202
+ "step": 456
3203
+ }
3204
+ ],
3205
+ "logging_steps": 1,
3206
+ "max_steps": 908,
3207
+ "num_input_tokens_seen": 0,
3208
+ "num_train_epochs": 4,
3209
+ "save_steps": 114,
3210
+ "stateful_callbacks": {
3211
+ "TrainerControl": {
3212
+ "args": {
3213
+ "should_epoch_stop": false,
3214
+ "should_evaluate": false,
3215
+ "should_log": false,
3216
+ "should_save": true,
3217
+ "should_training_stop": false
3218
+ },
3219
+ "attributes": {}
3220
+ }
3221
+ },
3222
+ "total_flos": 1.2060458640914514e+18,
3223
+ "train_batch_size": 8,
3224
+ "trial_name": null,
3225
+ "trial_params": null
3226
+ }
checkpoint-456/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f598588716f36b5db7091989142a430a4fd275bce6f1e0d8e6c17f595272e1ec
3
+ size 9041
checkpoint-456/zero_to_fp32.py ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 json
25
+ from tqdm import tqdm
26
+ from collections import OrderedDict
27
+ from dataclasses import dataclass
28
+
29
+ # while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
30
+ # DeepSpeed data structures it has to be available in the current python environment.
31
+ from deepspeed.utils import logger
32
+ from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
33
+ FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
34
+ FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
35
+
36
+
37
+ @dataclass
38
+ class zero_model_state:
39
+ buffers: dict()
40
+ param_shapes: dict()
41
+ shared_params: list
42
+ ds_version: int
43
+ frozen_param_shapes: dict()
44
+ frozen_param_fragments: dict()
45
+
46
+
47
+ debug = 0
48
+
49
+ # load to cpu
50
+ device = torch.device('cpu')
51
+
52
+
53
+ def atoi(text):
54
+ return int(text) if text.isdigit() else text
55
+
56
+
57
+ def natural_keys(text):
58
+ '''
59
+ alist.sort(key=natural_keys) sorts in human order
60
+ http://nedbatchelder.com/blog/200712/human_sorting.html
61
+ (See Toothy's implementation in the comments)
62
+ '''
63
+ return [atoi(c) for c in re.split(r'(\d+)', text)]
64
+
65
+
66
+ def get_model_state_file(checkpoint_dir, zero_stage):
67
+ if not os.path.isdir(checkpoint_dir):
68
+ raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
69
+
70
+ # there should be only one file
71
+ if zero_stage <= 2:
72
+ file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
73
+ elif zero_stage == 3:
74
+ file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
75
+
76
+ if not os.path.exists(file):
77
+ raise FileNotFoundError(f"can't find model states file at '{file}'")
78
+
79
+ return file
80
+
81
+
82
+ def get_checkpoint_files(checkpoint_dir, glob_pattern):
83
+ # XXX: need to test that this simple glob rule works for multi-node setup too
84
+ ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
85
+
86
+ if len(ckpt_files) == 0:
87
+ raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
88
+
89
+ return ckpt_files
90
+
91
+
92
+ def get_optim_files(checkpoint_dir):
93
+ return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
94
+
95
+
96
+ def get_model_state_files(checkpoint_dir):
97
+ return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
98
+
99
+
100
+ def parse_model_states(files):
101
+ zero_model_states = []
102
+ for file in files:
103
+ state_dict = torch.load(file, map_location=device)
104
+
105
+ if BUFFER_NAMES not in state_dict:
106
+ raise ValueError(f"{file} is not a model state checkpoint")
107
+ buffer_names = state_dict[BUFFER_NAMES]
108
+ if debug:
109
+ print("Found buffers:", buffer_names)
110
+
111
+ # recover just the buffers while restoring them to fp32 if they were saved in fp16
112
+ buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
113
+ param_shapes = state_dict[PARAM_SHAPES]
114
+
115
+ # collect parameters that are included in param_shapes
116
+ param_names = []
117
+ for s in param_shapes:
118
+ for name in s.keys():
119
+ param_names.append(name)
120
+
121
+ # update with frozen parameters
122
+ frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
123
+ if frozen_param_shapes is not None:
124
+ if debug:
125
+ print(f"Found frozen_param_shapes: {frozen_param_shapes}")
126
+ param_names += list(frozen_param_shapes.keys())
127
+
128
+ # handle shared params
129
+ shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
130
+
131
+ ds_version = state_dict.get(DS_VERSION, None)
132
+
133
+ frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
134
+
135
+ z_model_state = zero_model_state(buffers=buffers,
136
+ param_shapes=param_shapes,
137
+ shared_params=shared_params,
138
+ ds_version=ds_version,
139
+ frozen_param_shapes=frozen_param_shapes,
140
+ frozen_param_fragments=frozen_param_fragments)
141
+ zero_model_states.append(z_model_state)
142
+
143
+ return zero_model_states
144
+
145
+
146
+ def parse_optim_states(files, ds_checkpoint_dir):
147
+ total_files = len(files)
148
+ state_dicts = []
149
+ for f in files:
150
+ state_dict = torch.load(f, map_location=device)
151
+ # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
152
+ # and also handle the case where it was already removed by another helper script
153
+ state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
154
+ state_dicts.append(state_dict)
155
+
156
+ if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
157
+ raise ValueError(f"{files[0]} is not a zero checkpoint")
158
+ zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
159
+ world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
160
+
161
+ # For ZeRO-2 each param group can have different partition_count as data parallelism for expert
162
+ # parameters can be different from data parallelism for non-expert parameters. So we can just
163
+ # use the max of the partition_count to get the dp world_size.
164
+
165
+ if type(world_size) is list:
166
+ world_size = max(world_size)
167
+
168
+ if world_size != total_files:
169
+ raise ValueError(
170
+ f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
171
+ "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
172
+ )
173
+
174
+ # the groups are named differently in each stage
175
+ if zero_stage <= 2:
176
+ fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
177
+ elif zero_stage == 3:
178
+ fp32_groups_key = FP32_FLAT_GROUPS
179
+ else:
180
+ raise ValueError(f"unknown zero stage {zero_stage}")
181
+
182
+ if zero_stage <= 2:
183
+ fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
184
+ elif zero_stage == 3:
185
+ # if there is more than one param group, there will be multiple flattened tensors - one
186
+ # flattened tensor per group - for simplicity merge them into a single tensor
187
+ #
188
+ # XXX: could make the script more memory efficient for when there are multiple groups - it
189
+ # will require matching the sub-lists of param_shapes for each param group flattened tensor
190
+
191
+ fp32_flat_groups = [
192
+ torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts))
193
+ ]
194
+
195
+ return zero_stage, world_size, fp32_flat_groups
196
+
197
+
198
+ def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
199
+ """
200
+ Returns fp32 state_dict reconstructed from ds checkpoint
201
+
202
+ Args:
203
+ - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
204
+
205
+ """
206
+ print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
207
+
208
+ optim_files = get_optim_files(ds_checkpoint_dir)
209
+ zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
210
+ print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
211
+
212
+ model_files = get_model_state_files(ds_checkpoint_dir)
213
+
214
+ zero_model_states = parse_model_states(model_files)
215
+ print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
216
+
217
+ if zero_stage <= 2:
218
+ return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
219
+ exclude_frozen_parameters)
220
+ elif zero_stage == 3:
221
+ return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
222
+ exclude_frozen_parameters)
223
+
224
+
225
+ def _zero2_merge_frozen_params(state_dict, zero_model_states):
226
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
227
+ return
228
+
229
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
230
+ frozen_param_fragments = zero_model_states[0].frozen_param_fragments
231
+
232
+ if debug:
233
+ num_elem = sum(s.numel() for s in frozen_param_shapes.values())
234
+ print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
235
+
236
+ wanted_params = len(frozen_param_shapes)
237
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
238
+ avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
239
+ print(f'Frozen params: Have {avail_numel} numels to process.')
240
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
241
+
242
+ total_params = 0
243
+ total_numel = 0
244
+ for name, shape in frozen_param_shapes.items():
245
+ total_params += 1
246
+ unpartitioned_numel = shape.numel()
247
+ total_numel += unpartitioned_numel
248
+
249
+ state_dict[name] = frozen_param_fragments[name]
250
+
251
+ if debug:
252
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
253
+
254
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
255
+
256
+
257
+ def _has_callable(obj, fn):
258
+ attr = getattr(obj, fn, None)
259
+ return callable(attr)
260
+
261
+
262
+ def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
263
+ param_shapes = zero_model_states[0].param_shapes
264
+
265
+ # Reconstruction protocol:
266
+ #
267
+ # XXX: document this
268
+
269
+ if debug:
270
+ for i in range(world_size):
271
+ for j in range(len(fp32_flat_groups[0])):
272
+ print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
273
+
274
+ # XXX: memory usage doubles here (zero2)
275
+ num_param_groups = len(fp32_flat_groups[0])
276
+ merged_single_partition_of_fp32_groups = []
277
+ for i in range(num_param_groups):
278
+ merged_partitions = [sd[i] for sd in fp32_flat_groups]
279
+ full_single_fp32_vector = torch.cat(merged_partitions, 0)
280
+ merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
281
+ avail_numel = sum(
282
+ [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
283
+
284
+ if debug:
285
+ wanted_params = sum([len(shapes) for shapes in param_shapes])
286
+ wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
287
+ # not asserting if there is a mismatch due to possible padding
288
+ print(f"Have {avail_numel} numels to process.")
289
+ print(f"Need {wanted_numel} numels in {wanted_params} params.")
290
+
291
+ # params
292
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
293
+ # out-of-core computing solution
294
+ total_numel = 0
295
+ total_params = 0
296
+ for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
297
+ offset = 0
298
+ avail_numel = full_single_fp32_vector.numel()
299
+ for name, shape in shapes.items():
300
+
301
+ unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
302
+ total_numel += unpartitioned_numel
303
+ total_params += 1
304
+
305
+ if debug:
306
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
307
+ state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
308
+ offset += unpartitioned_numel
309
+
310
+ # Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
311
+ # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
312
+ # paddings performed in the code it's almost impossible to predict the exact numbers w/o the
313
+ # live optimizer object, so we are checking that the numbers are within the right range
314
+ align_to = 2 * world_size
315
+
316
+ def zero2_align(x):
317
+ return align_to * math.ceil(x / align_to)
318
+
319
+ if debug:
320
+ print(f"original offset={offset}, avail_numel={avail_numel}")
321
+
322
+ offset = zero2_align(offset)
323
+ avail_numel = zero2_align(avail_numel)
324
+
325
+ if debug:
326
+ print(f"aligned offset={offset}, avail_numel={avail_numel}")
327
+
328
+ # Sanity check
329
+ if offset != avail_numel:
330
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
331
+
332
+ print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
333
+
334
+
335
+ def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
336
+ exclude_frozen_parameters):
337
+ state_dict = OrderedDict()
338
+
339
+ # buffers
340
+ buffers = zero_model_states[0].buffers
341
+ state_dict.update(buffers)
342
+ if debug:
343
+ print(f"added {len(buffers)} buffers")
344
+
345
+ if not exclude_frozen_parameters:
346
+ _zero2_merge_frozen_params(state_dict, zero_model_states)
347
+
348
+ _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
349
+
350
+ # recover shared parameters
351
+ for pair in zero_model_states[0].shared_params:
352
+ if pair[1] in state_dict:
353
+ state_dict[pair[0]] = state_dict[pair[1]]
354
+
355
+ return state_dict
356
+
357
+
358
+ def zero3_partitioned_param_info(unpartitioned_numel, world_size):
359
+ remainder = unpartitioned_numel % world_size
360
+ padding_numel = (world_size - remainder) if remainder else 0
361
+ partitioned_numel = math.ceil(unpartitioned_numel / world_size)
362
+ return partitioned_numel, padding_numel
363
+
364
+
365
+ def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
366
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
367
+ return
368
+
369
+ if debug:
370
+ for i in range(world_size):
371
+ num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
372
+ print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
373
+
374
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
375
+ wanted_params = len(frozen_param_shapes)
376
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
377
+ avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
378
+ print(f'Frozen params: Have {avail_numel} numels to process.')
379
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
380
+
381
+ total_params = 0
382
+ total_numel = 0
383
+ for name, shape in zero_model_states[0].frozen_param_shapes.items():
384
+ total_params += 1
385
+ unpartitioned_numel = shape.numel()
386
+ total_numel += unpartitioned_numel
387
+
388
+ param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
389
+ state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
390
+
391
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
392
+
393
+ if debug:
394
+ print(
395
+ f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
396
+ )
397
+
398
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
399
+
400
+
401
+ def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
402
+ param_shapes = zero_model_states[0].param_shapes
403
+ avail_numel = fp32_flat_groups[0].numel() * world_size
404
+ # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
405
+ # param, re-consolidating each param, while dealing with padding if any
406
+
407
+ # merge list of dicts, preserving order
408
+ param_shapes = {k: v for d in param_shapes for k, v in d.items()}
409
+
410
+ if debug:
411
+ for i in range(world_size):
412
+ print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
413
+
414
+ wanted_params = len(param_shapes)
415
+ wanted_numel = sum(shape.numel() for shape in param_shapes.values())
416
+ # not asserting if there is a mismatch due to possible padding
417
+ avail_numel = fp32_flat_groups[0].numel() * world_size
418
+ print(f"Trainable params: Have {avail_numel} numels to process.")
419
+ print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
420
+
421
+ # params
422
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
423
+ # out-of-core computing solution
424
+ offset = 0
425
+ total_numel = 0
426
+ total_params = 0
427
+ for name, shape in tqdm(param_shapes.items(), desc='Gathering Sharded Weights'):
428
+ unpartitioned_numel = shape.numel()
429
+ total_numel += unpartitioned_numel
430
+ total_params += 1
431
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
432
+
433
+ if debug:
434
+ print(
435
+ f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
436
+ )
437
+
438
+ # XXX: memory usage doubles here
439
+ state_dict[name] = torch.cat(
440
+ tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)),
441
+ 0).narrow(0, 0, unpartitioned_numel).view(shape)
442
+ offset += partitioned_numel
443
+
444
+ offset *= world_size
445
+
446
+ # Sanity check
447
+ if offset != avail_numel:
448
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
449
+
450
+ print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
451
+
452
+
453
+ def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
454
+ exclude_frozen_parameters):
455
+ state_dict = OrderedDict()
456
+
457
+ # buffers
458
+ buffers = zero_model_states[0].buffers
459
+ state_dict.update(buffers)
460
+ if debug:
461
+ print(f"added {len(buffers)} buffers")
462
+
463
+ if not exclude_frozen_parameters:
464
+ _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
465
+
466
+ _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
467
+
468
+ # recover shared parameters
469
+ for pair in zero_model_states[0].shared_params:
470
+ if pair[1] in state_dict:
471
+ state_dict[pair[0]] = state_dict[pair[1]]
472
+
473
+ return state_dict
474
+
475
+
476
+ def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None, exclude_frozen_parameters=False):
477
+ """
478
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
479
+ ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
480
+ via a model hub.
481
+
482
+ Args:
483
+ - ``checkpoint_dir``: path to the desired checkpoint folder
484
+ - ``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``
485
+ - ``exclude_frozen_parameters``: exclude frozen parameters
486
+
487
+ Returns:
488
+ - pytorch ``state_dict``
489
+
490
+ Note: this approach may not work if your application doesn't have sufficient free CPU memory and
491
+ you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
492
+ the checkpoint.
493
+
494
+ A typical usage might be ::
495
+
496
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
497
+ # do the training and checkpoint saving
498
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
499
+ model = model.cpu() # move to cpu
500
+ model.load_state_dict(state_dict)
501
+ # submit to model hub or save the model to share with others
502
+
503
+ In this example the ``model`` will no longer be usable in the deepspeed context of the same
504
+ application. i.e. you will need to re-initialize the deepspeed engine, since
505
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
506
+
507
+ If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
508
+
509
+ """
510
+ if tag is None:
511
+ latest_path = os.path.join(checkpoint_dir, 'latest')
512
+ if os.path.isfile(latest_path):
513
+ with open(latest_path, 'r') as fd:
514
+ tag = fd.read().strip()
515
+ else:
516
+ raise ValueError(f"Unable to find 'latest' file at {latest_path}")
517
+
518
+ ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
519
+
520
+ if not os.path.isdir(ds_checkpoint_dir):
521
+ raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
522
+
523
+ return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
524
+
525
+
526
+ def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
527
+ output_dir,
528
+ max_shard_size="5GB",
529
+ safe_serialization=False,
530
+ tag=None,
531
+ exclude_frozen_parameters=False):
532
+ """
533
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
534
+ loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
535
+
536
+ Args:
537
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
538
+ - ``output_dir``: directory to the pytorch fp32 state_dict output files
539
+ - ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
540
+ - ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
541
+ - ``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``
542
+ - ``exclude_frozen_parameters``: exclude frozen parameters
543
+ """
544
+ # Dependency pre-check
545
+ if safe_serialization:
546
+ try:
547
+ from safetensors.torch import save_file
548
+ except ImportError:
549
+ print('If you want to use `safe_serialization`, please `pip install safetensors`')
550
+ raise
551
+ if max_shard_size is not None:
552
+ try:
553
+ from huggingface_hub import split_torch_state_dict_into_shards
554
+ except ImportError:
555
+ print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
556
+ raise
557
+
558
+ # Convert zero checkpoint to state_dict
559
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag, exclude_frozen_parameters)
560
+
561
+ # Shard the model if it is too big.
562
+ weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
563
+ if max_shard_size is not None:
564
+ filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
565
+ state_dict_split = split_torch_state_dict_into_shards(state_dict,
566
+ filename_pattern=filename_pattern,
567
+ max_shard_size=max_shard_size)
568
+ else:
569
+ from collections import namedtuple
570
+ StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
571
+ state_dict_split = StateDictSplit(is_sharded=False,
572
+ filename_to_tensors={weights_name: list(state_dict.keys())})
573
+
574
+ # Save the model
575
+ filename_to_tensors = state_dict_split.filename_to_tensors.items()
576
+ for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
577
+ shard = {tensor: state_dict[tensor].contiguous() for tensor in tensors}
578
+ output_path = os.path.join(output_dir, shard_file)
579
+ if safe_serialization:
580
+ save_file(shard, output_path, metadata={"format": "pt"})
581
+ else:
582
+ torch.save(shard, output_path)
583
+
584
+ # Save index if sharded
585
+ if state_dict_split.is_sharded:
586
+ index = {
587
+ "metadata": state_dict_split.metadata,
588
+ "weight_map": state_dict_split.tensor_to_filename,
589
+ }
590
+ save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
591
+ save_index_file = os.path.join(output_dir, save_index_file)
592
+ with open(save_index_file, "w", encoding="utf-8") as f:
593
+ content = json.dumps(index, indent=2, sort_keys=True) + "\n"
594
+ f.write(content)
595
+
596
+
597
+ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
598
+ """
599
+ 1. Put the provided model to cpu
600
+ 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
601
+ 3. Load it into the provided model
602
+
603
+ Args:
604
+ - ``model``: the model object to update
605
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
606
+ - ``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``
607
+
608
+ Returns:
609
+ - ``model`: modified model
610
+
611
+ Make sure you have plenty of CPU memory available before you call this function. If you don't
612
+ have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
613
+ conveniently placed for you in the checkpoint folder.
614
+
615
+ A typical usage might be ::
616
+
617
+ from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
618
+ model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
619
+ # submit to model hub or save the model to share with others
620
+
621
+ Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
622
+ of the same application. i.e. you will need to re-initialize the deepspeed engine, since
623
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
624
+
625
+ """
626
+ logger.info(f"Extracting fp32 weights")
627
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
628
+
629
+ logger.info(f"Overwriting model with fp32 weights")
630
+ model = model.cpu()
631
+ model.load_state_dict(state_dict, strict=False)
632
+
633
+ return model
634
+
635
+
636
+ if __name__ == "__main__":
637
+ parser = argparse.ArgumentParser()
638
+ parser.add_argument("checkpoint_dir",
639
+ type=str,
640
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
641
+ parser.add_argument("output_dir",
642
+ type=str,
643
+ help="directory to the pytorch fp32 state_dict output files"
644
+ "(e.g. path/checkpoint-12-output/)")
645
+ parser.add_argument(
646
+ "--max_shard_size",
647
+ type=str,
648
+ default="5GB",
649
+ help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
650
+ "lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
651
+ "We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
652
+ "without CPU OOM issues.")
653
+ parser.add_argument(
654
+ "--safe_serialization",
655
+ default=False,
656
+ action='store_true',
657
+ help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
658
+ parser.add_argument("-t",
659
+ "--tag",
660
+ type=str,
661
+ default=None,
662
+ help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
663
+ parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
664
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
665
+ args = parser.parse_args()
666
+
667
+ debug = args.debug
668
+
669
+ convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
670
+ args.output_dir,
671
+ max_shard_size=args.max_shard_size,
672
+ safe_serialization=args.safe_serialization,
673
+ tag=args.tag,
674
+ exclude_frozen_parameters=args.exclude_frozen_parameters)
checkpoint-570/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Gryphe/Codex-24B-Small-3.2
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.15.2
checkpoint-570/adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Gryphe/Codex-24B-Small-3.2",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": null,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.5,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 128,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "v_proj",
28
+ "k_proj",
29
+ "down_proj",
30
+ "up_proj",
31
+ "q_proj",
32
+ "o_proj",
33
+ "gate_proj"
34
+ ],
35
+ "task_type": "CAUSAL_LM",
36
+ "trainable_token_indices": null,
37
+ "use_dora": false,
38
+ "use_rslora": true
39
+ }
checkpoint-570/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a9f141f348f72b528162cb577a0d8c657fda394ac1ab696f91f99ac2c1f64cc
3
+ size 1478569432
checkpoint-570/global_step570/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:889244b5f6c7e86ce818be8067213e46387f5e3f61ec4fd531405754ffb8fc83
3
+ size 4459517761
checkpoint-570/global_step570/zero_pp_rank_0_mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38e9a748ed2ac4dda2c9f3ee324252b9f4fa777c6265fd122ea5e213c730ccdf
3
+ size 557481
checkpoint-570/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step570
checkpoint-570/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f7fd0793e58de5669c1d25b5b9959c87020e8bda27d8446e46995387e3dfc06b
3
+ size 14709
checkpoint-570/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ebb975a51dcfbe2d034002dc39db3e6d4d5b8acd046c47cf2b4b7ede80bf991
3
+ size 1401
checkpoint-570/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>"
4
+ ],
5
+ "bos_token": {
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "eos_token": {
13
+ "content": "<|im_end|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false
18
+ },
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
checkpoint-570/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1e5daf1e619597fd56ff036925ea189916417c665d5bdd61b80199cf8d4e6d2
3
+ size 17078029
checkpoint-570/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-570/trainer_state.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-570/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f598588716f36b5db7091989142a430a4fd275bce6f1e0d8e6c17f595272e1ec
3
+ size 9041
checkpoint-570/zero_to_fp32.py ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 json
25
+ from tqdm import tqdm
26
+ from collections import OrderedDict
27
+ from dataclasses import dataclass
28
+
29
+ # while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
30
+ # DeepSpeed data structures it has to be available in the current python environment.
31
+ from deepspeed.utils import logger
32
+ from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
33
+ FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
34
+ FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
35
+
36
+
37
+ @dataclass
38
+ class zero_model_state:
39
+ buffers: dict()
40
+ param_shapes: dict()
41
+ shared_params: list
42
+ ds_version: int
43
+ frozen_param_shapes: dict()
44
+ frozen_param_fragments: dict()
45
+
46
+
47
+ debug = 0
48
+
49
+ # load to cpu
50
+ device = torch.device('cpu')
51
+
52
+
53
+ def atoi(text):
54
+ return int(text) if text.isdigit() else text
55
+
56
+
57
+ def natural_keys(text):
58
+ '''
59
+ alist.sort(key=natural_keys) sorts in human order
60
+ http://nedbatchelder.com/blog/200712/human_sorting.html
61
+ (See Toothy's implementation in the comments)
62
+ '''
63
+ return [atoi(c) for c in re.split(r'(\d+)', text)]
64
+
65
+
66
+ def get_model_state_file(checkpoint_dir, zero_stage):
67
+ if not os.path.isdir(checkpoint_dir):
68
+ raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
69
+
70
+ # there should be only one file
71
+ if zero_stage <= 2:
72
+ file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
73
+ elif zero_stage == 3:
74
+ file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
75
+
76
+ if not os.path.exists(file):
77
+ raise FileNotFoundError(f"can't find model states file at '{file}'")
78
+
79
+ return file
80
+
81
+
82
+ def get_checkpoint_files(checkpoint_dir, glob_pattern):
83
+ # XXX: need to test that this simple glob rule works for multi-node setup too
84
+ ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
85
+
86
+ if len(ckpt_files) == 0:
87
+ raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
88
+
89
+ return ckpt_files
90
+
91
+
92
+ def get_optim_files(checkpoint_dir):
93
+ return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
94
+
95
+
96
+ def get_model_state_files(checkpoint_dir):
97
+ return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
98
+
99
+
100
+ def parse_model_states(files):
101
+ zero_model_states = []
102
+ for file in files:
103
+ state_dict = torch.load(file, map_location=device)
104
+
105
+ if BUFFER_NAMES not in state_dict:
106
+ raise ValueError(f"{file} is not a model state checkpoint")
107
+ buffer_names = state_dict[BUFFER_NAMES]
108
+ if debug:
109
+ print("Found buffers:", buffer_names)
110
+
111
+ # recover just the buffers while restoring them to fp32 if they were saved in fp16
112
+ buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
113
+ param_shapes = state_dict[PARAM_SHAPES]
114
+
115
+ # collect parameters that are included in param_shapes
116
+ param_names = []
117
+ for s in param_shapes:
118
+ for name in s.keys():
119
+ param_names.append(name)
120
+
121
+ # update with frozen parameters
122
+ frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
123
+ if frozen_param_shapes is not None:
124
+ if debug:
125
+ print(f"Found frozen_param_shapes: {frozen_param_shapes}")
126
+ param_names += list(frozen_param_shapes.keys())
127
+
128
+ # handle shared params
129
+ shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
130
+
131
+ ds_version = state_dict.get(DS_VERSION, None)
132
+
133
+ frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
134
+
135
+ z_model_state = zero_model_state(buffers=buffers,
136
+ param_shapes=param_shapes,
137
+ shared_params=shared_params,
138
+ ds_version=ds_version,
139
+ frozen_param_shapes=frozen_param_shapes,
140
+ frozen_param_fragments=frozen_param_fragments)
141
+ zero_model_states.append(z_model_state)
142
+
143
+ return zero_model_states
144
+
145
+
146
+ def parse_optim_states(files, ds_checkpoint_dir):
147
+ total_files = len(files)
148
+ state_dicts = []
149
+ for f in files:
150
+ state_dict = torch.load(f, map_location=device)
151
+ # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
152
+ # and also handle the case where it was already removed by another helper script
153
+ state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
154
+ state_dicts.append(state_dict)
155
+
156
+ if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
157
+ raise ValueError(f"{files[0]} is not a zero checkpoint")
158
+ zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
159
+ world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
160
+
161
+ # For ZeRO-2 each param group can have different partition_count as data parallelism for expert
162
+ # parameters can be different from data parallelism for non-expert parameters. So we can just
163
+ # use the max of the partition_count to get the dp world_size.
164
+
165
+ if type(world_size) is list:
166
+ world_size = max(world_size)
167
+
168
+ if world_size != total_files:
169
+ raise ValueError(
170
+ f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
171
+ "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
172
+ )
173
+
174
+ # the groups are named differently in each stage
175
+ if zero_stage <= 2:
176
+ fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
177
+ elif zero_stage == 3:
178
+ fp32_groups_key = FP32_FLAT_GROUPS
179
+ else:
180
+ raise ValueError(f"unknown zero stage {zero_stage}")
181
+
182
+ if zero_stage <= 2:
183
+ fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
184
+ elif zero_stage == 3:
185
+ # if there is more than one param group, there will be multiple flattened tensors - one
186
+ # flattened tensor per group - for simplicity merge them into a single tensor
187
+ #
188
+ # XXX: could make the script more memory efficient for when there are multiple groups - it
189
+ # will require matching the sub-lists of param_shapes for each param group flattened tensor
190
+
191
+ fp32_flat_groups = [
192
+ torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts))
193
+ ]
194
+
195
+ return zero_stage, world_size, fp32_flat_groups
196
+
197
+
198
+ def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
199
+ """
200
+ Returns fp32 state_dict reconstructed from ds checkpoint
201
+
202
+ Args:
203
+ - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
204
+
205
+ """
206
+ print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
207
+
208
+ optim_files = get_optim_files(ds_checkpoint_dir)
209
+ zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
210
+ print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
211
+
212
+ model_files = get_model_state_files(ds_checkpoint_dir)
213
+
214
+ zero_model_states = parse_model_states(model_files)
215
+ print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
216
+
217
+ if zero_stage <= 2:
218
+ return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
219
+ exclude_frozen_parameters)
220
+ elif zero_stage == 3:
221
+ return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
222
+ exclude_frozen_parameters)
223
+
224
+
225
+ def _zero2_merge_frozen_params(state_dict, zero_model_states):
226
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
227
+ return
228
+
229
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
230
+ frozen_param_fragments = zero_model_states[0].frozen_param_fragments
231
+
232
+ if debug:
233
+ num_elem = sum(s.numel() for s in frozen_param_shapes.values())
234
+ print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
235
+
236
+ wanted_params = len(frozen_param_shapes)
237
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
238
+ avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
239
+ print(f'Frozen params: Have {avail_numel} numels to process.')
240
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
241
+
242
+ total_params = 0
243
+ total_numel = 0
244
+ for name, shape in frozen_param_shapes.items():
245
+ total_params += 1
246
+ unpartitioned_numel = shape.numel()
247
+ total_numel += unpartitioned_numel
248
+
249
+ state_dict[name] = frozen_param_fragments[name]
250
+
251
+ if debug:
252
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
253
+
254
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
255
+
256
+
257
+ def _has_callable(obj, fn):
258
+ attr = getattr(obj, fn, None)
259
+ return callable(attr)
260
+
261
+
262
+ def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
263
+ param_shapes = zero_model_states[0].param_shapes
264
+
265
+ # Reconstruction protocol:
266
+ #
267
+ # XXX: document this
268
+
269
+ if debug:
270
+ for i in range(world_size):
271
+ for j in range(len(fp32_flat_groups[0])):
272
+ print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
273
+
274
+ # XXX: memory usage doubles here (zero2)
275
+ num_param_groups = len(fp32_flat_groups[0])
276
+ merged_single_partition_of_fp32_groups = []
277
+ for i in range(num_param_groups):
278
+ merged_partitions = [sd[i] for sd in fp32_flat_groups]
279
+ full_single_fp32_vector = torch.cat(merged_partitions, 0)
280
+ merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
281
+ avail_numel = sum(
282
+ [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
283
+
284
+ if debug:
285
+ wanted_params = sum([len(shapes) for shapes in param_shapes])
286
+ wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
287
+ # not asserting if there is a mismatch due to possible padding
288
+ print(f"Have {avail_numel} numels to process.")
289
+ print(f"Need {wanted_numel} numels in {wanted_params} params.")
290
+
291
+ # params
292
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
293
+ # out-of-core computing solution
294
+ total_numel = 0
295
+ total_params = 0
296
+ for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
297
+ offset = 0
298
+ avail_numel = full_single_fp32_vector.numel()
299
+ for name, shape in shapes.items():
300
+
301
+ unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
302
+ total_numel += unpartitioned_numel
303
+ total_params += 1
304
+
305
+ if debug:
306
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
307
+ state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
308
+ offset += unpartitioned_numel
309
+
310
+ # Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
311
+ # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
312
+ # paddings performed in the code it's almost impossible to predict the exact numbers w/o the
313
+ # live optimizer object, so we are checking that the numbers are within the right range
314
+ align_to = 2 * world_size
315
+
316
+ def zero2_align(x):
317
+ return align_to * math.ceil(x / align_to)
318
+
319
+ if debug:
320
+ print(f"original offset={offset}, avail_numel={avail_numel}")
321
+
322
+ offset = zero2_align(offset)
323
+ avail_numel = zero2_align(avail_numel)
324
+
325
+ if debug:
326
+ print(f"aligned offset={offset}, avail_numel={avail_numel}")
327
+
328
+ # Sanity check
329
+ if offset != avail_numel:
330
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
331
+
332
+ print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
333
+
334
+
335
+ def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
336
+ exclude_frozen_parameters):
337
+ state_dict = OrderedDict()
338
+
339
+ # buffers
340
+ buffers = zero_model_states[0].buffers
341
+ state_dict.update(buffers)
342
+ if debug:
343
+ print(f"added {len(buffers)} buffers")
344
+
345
+ if not exclude_frozen_parameters:
346
+ _zero2_merge_frozen_params(state_dict, zero_model_states)
347
+
348
+ _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
349
+
350
+ # recover shared parameters
351
+ for pair in zero_model_states[0].shared_params:
352
+ if pair[1] in state_dict:
353
+ state_dict[pair[0]] = state_dict[pair[1]]
354
+
355
+ return state_dict
356
+
357
+
358
+ def zero3_partitioned_param_info(unpartitioned_numel, world_size):
359
+ remainder = unpartitioned_numel % world_size
360
+ padding_numel = (world_size - remainder) if remainder else 0
361
+ partitioned_numel = math.ceil(unpartitioned_numel / world_size)
362
+ return partitioned_numel, padding_numel
363
+
364
+
365
+ def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
366
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
367
+ return
368
+
369
+ if debug:
370
+ for i in range(world_size):
371
+ num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
372
+ print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
373
+
374
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
375
+ wanted_params = len(frozen_param_shapes)
376
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
377
+ avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
378
+ print(f'Frozen params: Have {avail_numel} numels to process.')
379
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
380
+
381
+ total_params = 0
382
+ total_numel = 0
383
+ for name, shape in zero_model_states[0].frozen_param_shapes.items():
384
+ total_params += 1
385
+ unpartitioned_numel = shape.numel()
386
+ total_numel += unpartitioned_numel
387
+
388
+ param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
389
+ state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
390
+
391
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
392
+
393
+ if debug:
394
+ print(
395
+ f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
396
+ )
397
+
398
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
399
+
400
+
401
+ def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
402
+ param_shapes = zero_model_states[0].param_shapes
403
+ avail_numel = fp32_flat_groups[0].numel() * world_size
404
+ # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
405
+ # param, re-consolidating each param, while dealing with padding if any
406
+
407
+ # merge list of dicts, preserving order
408
+ param_shapes = {k: v for d in param_shapes for k, v in d.items()}
409
+
410
+ if debug:
411
+ for i in range(world_size):
412
+ print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
413
+
414
+ wanted_params = len(param_shapes)
415
+ wanted_numel = sum(shape.numel() for shape in param_shapes.values())
416
+ # not asserting if there is a mismatch due to possible padding
417
+ avail_numel = fp32_flat_groups[0].numel() * world_size
418
+ print(f"Trainable params: Have {avail_numel} numels to process.")
419
+ print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
420
+
421
+ # params
422
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
423
+ # out-of-core computing solution
424
+ offset = 0
425
+ total_numel = 0
426
+ total_params = 0
427
+ for name, shape in tqdm(param_shapes.items(), desc='Gathering Sharded Weights'):
428
+ unpartitioned_numel = shape.numel()
429
+ total_numel += unpartitioned_numel
430
+ total_params += 1
431
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
432
+
433
+ if debug:
434
+ print(
435
+ f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
436
+ )
437
+
438
+ # XXX: memory usage doubles here
439
+ state_dict[name] = torch.cat(
440
+ tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)),
441
+ 0).narrow(0, 0, unpartitioned_numel).view(shape)
442
+ offset += partitioned_numel
443
+
444
+ offset *= world_size
445
+
446
+ # Sanity check
447
+ if offset != avail_numel:
448
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
449
+
450
+ print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
451
+
452
+
453
+ def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
454
+ exclude_frozen_parameters):
455
+ state_dict = OrderedDict()
456
+
457
+ # buffers
458
+ buffers = zero_model_states[0].buffers
459
+ state_dict.update(buffers)
460
+ if debug:
461
+ print(f"added {len(buffers)} buffers")
462
+
463
+ if not exclude_frozen_parameters:
464
+ _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
465
+
466
+ _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
467
+
468
+ # recover shared parameters
469
+ for pair in zero_model_states[0].shared_params:
470
+ if pair[1] in state_dict:
471
+ state_dict[pair[0]] = state_dict[pair[1]]
472
+
473
+ return state_dict
474
+
475
+
476
+ def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None, exclude_frozen_parameters=False):
477
+ """
478
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
479
+ ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
480
+ via a model hub.
481
+
482
+ Args:
483
+ - ``checkpoint_dir``: path to the desired checkpoint folder
484
+ - ``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``
485
+ - ``exclude_frozen_parameters``: exclude frozen parameters
486
+
487
+ Returns:
488
+ - pytorch ``state_dict``
489
+
490
+ Note: this approach may not work if your application doesn't have sufficient free CPU memory and
491
+ you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
492
+ the checkpoint.
493
+
494
+ A typical usage might be ::
495
+
496
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
497
+ # do the training and checkpoint saving
498
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
499
+ model = model.cpu() # move to cpu
500
+ model.load_state_dict(state_dict)
501
+ # submit to model hub or save the model to share with others
502
+
503
+ In this example the ``model`` will no longer be usable in the deepspeed context of the same
504
+ application. i.e. you will need to re-initialize the deepspeed engine, since
505
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
506
+
507
+ If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
508
+
509
+ """
510
+ if tag is None:
511
+ latest_path = os.path.join(checkpoint_dir, 'latest')
512
+ if os.path.isfile(latest_path):
513
+ with open(latest_path, 'r') as fd:
514
+ tag = fd.read().strip()
515
+ else:
516
+ raise ValueError(f"Unable to find 'latest' file at {latest_path}")
517
+
518
+ ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
519
+
520
+ if not os.path.isdir(ds_checkpoint_dir):
521
+ raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
522
+
523
+ return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
524
+
525
+
526
+ def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
527
+ output_dir,
528
+ max_shard_size="5GB",
529
+ safe_serialization=False,
530
+ tag=None,
531
+ exclude_frozen_parameters=False):
532
+ """
533
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
534
+ loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
535
+
536
+ Args:
537
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
538
+ - ``output_dir``: directory to the pytorch fp32 state_dict output files
539
+ - ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
540
+ - ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
541
+ - ``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``
542
+ - ``exclude_frozen_parameters``: exclude frozen parameters
543
+ """
544
+ # Dependency pre-check
545
+ if safe_serialization:
546
+ try:
547
+ from safetensors.torch import save_file
548
+ except ImportError:
549
+ print('If you want to use `safe_serialization`, please `pip install safetensors`')
550
+ raise
551
+ if max_shard_size is not None:
552
+ try:
553
+ from huggingface_hub import split_torch_state_dict_into_shards
554
+ except ImportError:
555
+ print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
556
+ raise
557
+
558
+ # Convert zero checkpoint to state_dict
559
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag, exclude_frozen_parameters)
560
+
561
+ # Shard the model if it is too big.
562
+ weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
563
+ if max_shard_size is not None:
564
+ filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
565
+ state_dict_split = split_torch_state_dict_into_shards(state_dict,
566
+ filename_pattern=filename_pattern,
567
+ max_shard_size=max_shard_size)
568
+ else:
569
+ from collections import namedtuple
570
+ StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
571
+ state_dict_split = StateDictSplit(is_sharded=False,
572
+ filename_to_tensors={weights_name: list(state_dict.keys())})
573
+
574
+ # Save the model
575
+ filename_to_tensors = state_dict_split.filename_to_tensors.items()
576
+ for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
577
+ shard = {tensor: state_dict[tensor].contiguous() for tensor in tensors}
578
+ output_path = os.path.join(output_dir, shard_file)
579
+ if safe_serialization:
580
+ save_file(shard, output_path, metadata={"format": "pt"})
581
+ else:
582
+ torch.save(shard, output_path)
583
+
584
+ # Save index if sharded
585
+ if state_dict_split.is_sharded:
586
+ index = {
587
+ "metadata": state_dict_split.metadata,
588
+ "weight_map": state_dict_split.tensor_to_filename,
589
+ }
590
+ save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
591
+ save_index_file = os.path.join(output_dir, save_index_file)
592
+ with open(save_index_file, "w", encoding="utf-8") as f:
593
+ content = json.dumps(index, indent=2, sort_keys=True) + "\n"
594
+ f.write(content)
595
+
596
+
597
+ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
598
+ """
599
+ 1. Put the provided model to cpu
600
+ 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
601
+ 3. Load it into the provided model
602
+
603
+ Args:
604
+ - ``model``: the model object to update
605
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
606
+ - ``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``
607
+
608
+ Returns:
609
+ - ``model`: modified model
610
+
611
+ Make sure you have plenty of CPU memory available before you call this function. If you don't
612
+ have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
613
+ conveniently placed for you in the checkpoint folder.
614
+
615
+ A typical usage might be ::
616
+
617
+ from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
618
+ model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
619
+ # submit to model hub or save the model to share with others
620
+
621
+ Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
622
+ of the same application. i.e. you will need to re-initialize the deepspeed engine, since
623
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
624
+
625
+ """
626
+ logger.info(f"Extracting fp32 weights")
627
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
628
+
629
+ logger.info(f"Overwriting model with fp32 weights")
630
+ model = model.cpu()
631
+ model.load_state_dict(state_dict, strict=False)
632
+
633
+ return model
634
+
635
+
636
+ if __name__ == "__main__":
637
+ parser = argparse.ArgumentParser()
638
+ parser.add_argument("checkpoint_dir",
639
+ type=str,
640
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
641
+ parser.add_argument("output_dir",
642
+ type=str,
643
+ help="directory to the pytorch fp32 state_dict output files"
644
+ "(e.g. path/checkpoint-12-output/)")
645
+ parser.add_argument(
646
+ "--max_shard_size",
647
+ type=str,
648
+ default="5GB",
649
+ help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
650
+ "lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
651
+ "We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
652
+ "without CPU OOM issues.")
653
+ parser.add_argument(
654
+ "--safe_serialization",
655
+ default=False,
656
+ action='store_true',
657
+ help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
658
+ parser.add_argument("-t",
659
+ "--tag",
660
+ type=str,
661
+ default=None,
662
+ help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
663
+ parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
664
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
665
+ args = parser.parse_args()
666
+
667
+ debug = args.debug
668
+
669
+ convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
670
+ args.output_dir,
671
+ max_shard_size=args.max_shard_size,
672
+ safe_serialization=args.safe_serialization,
673
+ tag=args.tag,
674
+ exclude_frozen_parameters=args.exclude_frozen_parameters)
checkpoint-684/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Gryphe/Codex-24B-Small-3.2
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.15.2
checkpoint-684/adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Gryphe/Codex-24B-Small-3.2",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": null,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0.5,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 128,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "v_proj",
28
+ "k_proj",
29
+ "down_proj",
30
+ "up_proj",
31
+ "q_proj",
32
+ "o_proj",
33
+ "gate_proj"
34
+ ],
35
+ "task_type": "CAUSAL_LM",
36
+ "trainable_token_indices": null,
37
+ "use_dora": false,
38
+ "use_rslora": true
39
+ }
checkpoint-684/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cce2c3cec65e9ba485c79ffbf17f93d2c5210182ec89d00c78c20fff345d9e01
3
+ size 1478569432
checkpoint-684/global_step685/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:e8c68d10147b838927053b18d410c20e8b45673dc297012f4289f1f5d1b9fef1
3
+ size 4459517761