Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +208 -3
- adapter_config.json +42 -0
- adapter_model.safetensors +3 -0
- chat_template.jinja +6 -0
- global_step120/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
- global_step120/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
- global_step120/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
- global_step120/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
- global_step120/mp_rank_00_model_states.pt +3 -0
- latest +1 -0
- rng_state_0.pth +3 -0
- rng_state_1.pth +3 -0
- rng_state_2.pth +3 -0
- rng_state_3.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +3 -0
- tokenizer_config.json +1036 -0
- trainer_state.json +1354 -0
- training_args.bin +3 -0
- zero_to_fp32.py +760 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,208 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: ByteDance-Seed/Seed-Coder-8B-Instruct
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- axolotl
|
| 7 |
+
- base_model:adapter:ByteDance-Seed/Seed-Coder-8B-Instruct
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Model Card for Model ID
|
| 13 |
+
|
| 14 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
## Model Details
|
| 19 |
+
|
| 20 |
+
### Model Description
|
| 21 |
+
|
| 22 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
- **Developed by:** [More Information Needed]
|
| 27 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 28 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 29 |
+
- **Model type:** [More Information Needed]
|
| 30 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 31 |
+
- **License:** [More Information Needed]
|
| 32 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 33 |
+
|
| 34 |
+
### Model Sources [optional]
|
| 35 |
+
|
| 36 |
+
<!-- Provide the basic links for the model. -->
|
| 37 |
+
|
| 38 |
+
- **Repository:** [More Information Needed]
|
| 39 |
+
- **Paper [optional]:** [More Information Needed]
|
| 40 |
+
- **Demo [optional]:** [More Information Needed]
|
| 41 |
+
|
| 42 |
+
## Uses
|
| 43 |
+
|
| 44 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 45 |
+
|
| 46 |
+
### Direct Use
|
| 47 |
+
|
| 48 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 49 |
+
|
| 50 |
+
[More Information Needed]
|
| 51 |
+
|
| 52 |
+
### Downstream Use [optional]
|
| 53 |
+
|
| 54 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 55 |
+
|
| 56 |
+
[More Information Needed]
|
| 57 |
+
|
| 58 |
+
### Out-of-Scope Use
|
| 59 |
+
|
| 60 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 61 |
+
|
| 62 |
+
[More Information Needed]
|
| 63 |
+
|
| 64 |
+
## Bias, Risks, and Limitations
|
| 65 |
+
|
| 66 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 67 |
+
|
| 68 |
+
[More Information Needed]
|
| 69 |
+
|
| 70 |
+
### Recommendations
|
| 71 |
+
|
| 72 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 73 |
+
|
| 74 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 75 |
+
|
| 76 |
+
## How to Get Started with the Model
|
| 77 |
+
|
| 78 |
+
Use the code below to get started with the model.
|
| 79 |
+
|
| 80 |
+
[More Information Needed]
|
| 81 |
+
|
| 82 |
+
## Training Details
|
| 83 |
+
|
| 84 |
+
### Training Data
|
| 85 |
+
|
| 86 |
+
<!-- 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. -->
|
| 87 |
+
|
| 88 |
+
[More Information Needed]
|
| 89 |
+
|
| 90 |
+
### Training Procedure
|
| 91 |
+
|
| 92 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 93 |
+
|
| 94 |
+
#### Preprocessing [optional]
|
| 95 |
+
|
| 96 |
+
[More Information Needed]
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
#### Training Hyperparameters
|
| 100 |
+
|
| 101 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 102 |
+
|
| 103 |
+
#### Speeds, Sizes, Times [optional]
|
| 104 |
+
|
| 105 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 106 |
+
|
| 107 |
+
[More Information Needed]
|
| 108 |
+
|
| 109 |
+
## Evaluation
|
| 110 |
+
|
| 111 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 112 |
+
|
| 113 |
+
### Testing Data, Factors & Metrics
|
| 114 |
+
|
| 115 |
+
#### Testing Data
|
| 116 |
+
|
| 117 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 118 |
+
|
| 119 |
+
[More Information Needed]
|
| 120 |
+
|
| 121 |
+
#### Factors
|
| 122 |
+
|
| 123 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 124 |
+
|
| 125 |
+
[More Information Needed]
|
| 126 |
+
|
| 127 |
+
#### Metrics
|
| 128 |
+
|
| 129 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 130 |
+
|
| 131 |
+
[More Information Needed]
|
| 132 |
+
|
| 133 |
+
### Results
|
| 134 |
+
|
| 135 |
+
[More Information Needed]
|
| 136 |
+
|
| 137 |
+
#### Summary
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
## Model Examination [optional]
|
| 142 |
+
|
| 143 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 144 |
+
|
| 145 |
+
[More Information Needed]
|
| 146 |
+
|
| 147 |
+
## Environmental Impact
|
| 148 |
+
|
| 149 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 150 |
+
|
| 151 |
+
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).
|
| 152 |
+
|
| 153 |
+
- **Hardware Type:** [More Information Needed]
|
| 154 |
+
- **Hours used:** [More Information Needed]
|
| 155 |
+
- **Cloud Provider:** [More Information Needed]
|
| 156 |
+
- **Compute Region:** [More Information Needed]
|
| 157 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 158 |
+
|
| 159 |
+
## Technical Specifications [optional]
|
| 160 |
+
|
| 161 |
+
### Model Architecture and Objective
|
| 162 |
+
|
| 163 |
+
[More Information Needed]
|
| 164 |
+
|
| 165 |
+
### Compute Infrastructure
|
| 166 |
+
|
| 167 |
+
[More Information Needed]
|
| 168 |
+
|
| 169 |
+
#### Hardware
|
| 170 |
+
|
| 171 |
+
[More Information Needed]
|
| 172 |
+
|
| 173 |
+
#### Software
|
| 174 |
+
|
| 175 |
+
[More Information Needed]
|
| 176 |
+
|
| 177 |
+
## Citation [optional]
|
| 178 |
+
|
| 179 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 180 |
+
|
| 181 |
+
**BibTeX:**
|
| 182 |
+
|
| 183 |
+
[More Information Needed]
|
| 184 |
+
|
| 185 |
+
**APA:**
|
| 186 |
+
|
| 187 |
+
[More Information Needed]
|
| 188 |
+
|
| 189 |
+
## Glossary [optional]
|
| 190 |
+
|
| 191 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 192 |
+
|
| 193 |
+
[More Information Needed]
|
| 194 |
+
|
| 195 |
+
## More Information [optional]
|
| 196 |
+
|
| 197 |
+
[More Information Needed]
|
| 198 |
+
|
| 199 |
+
## Model Card Authors [optional]
|
| 200 |
+
|
| 201 |
+
[More Information Needed]
|
| 202 |
+
|
| 203 |
+
## Model Card Contact
|
| 204 |
+
|
| 205 |
+
[More Information Needed]
|
| 206 |
+
### Framework versions
|
| 207 |
+
|
| 208 |
+
- PEFT 0.17.1
|
adapter_config.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "ByteDance-Seed/Seed-Coder-8B-Instruct",
|
| 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": 64,
|
| 17 |
+
"lora_bias": false,
|
| 18 |
+
"lora_dropout": 0.05,
|
| 19 |
+
"megatron_config": null,
|
| 20 |
+
"megatron_core": "megatron.core",
|
| 21 |
+
"modules_to_save": null,
|
| 22 |
+
"peft_type": "LORA",
|
| 23 |
+
"qalora_group_size": 16,
|
| 24 |
+
"r": 64,
|
| 25 |
+
"rank_pattern": {},
|
| 26 |
+
"revision": null,
|
| 27 |
+
"target_modules": [
|
| 28 |
+
"k_proj",
|
| 29 |
+
"o_proj",
|
| 30 |
+
"up_proj",
|
| 31 |
+
"v_proj",
|
| 32 |
+
"q_proj",
|
| 33 |
+
"down_proj",
|
| 34 |
+
"gate_proj"
|
| 35 |
+
],
|
| 36 |
+
"target_parameters": [],
|
| 37 |
+
"task_type": "CAUSAL_LM",
|
| 38 |
+
"trainable_token_indices": null,
|
| 39 |
+
"use_dora": false,
|
| 40 |
+
"use_qalora": false,
|
| 41 |
+
"use_rslora": false
|
| 42 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffd8ec095fa64253d1a6c14570edbe235af77f620aafe631c8ec38a491400e32
|
| 3 |
+
size 335605144
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% set has_system = messages[0]['role'] == 'system' %}{% if not has_system %}{{ bos_token + 'system
|
| 2 |
+
You are an AI programming assistant, utilizing the Seed-Coder model, developed by ByteDance Seed, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.
|
| 3 |
+
|
| 4 |
+
' + eos_token }}{% endif %}{% for message in messages %}{{ bos_token + message['role'] + '
|
| 5 |
+
' + message['content'] | trim + eos_token }}{% endfor %}{% if add_generation_prompt %}{{ bos_token + 'assistant
|
| 6 |
+
'}}{% endif %}
|
global_step120/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:8f2376d646164e138e7ca3718dc7b7bc85a6beb4647ed13a2dc55ae6f3726621
|
| 3 |
+
size 503332453
|
global_step120/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22e62cef33911886693e5b0ed56c95c48669c3c4cc0d32fe374024e91c884727
|
| 3 |
+
size 503332517
|
global_step120/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a67b042430d77540fe75b2ac93d5919553a84f983683827d4deda19467581a04
|
| 3 |
+
size 503332517
|
global_step120/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a30354d9281f1feb3272465d5361aff36d833e5d773a0bc68d90b1493495c857
|
| 3 |
+
size 503332517
|
global_step120/mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43095e90f0ad7e9c6496941cad3d3fbd4b2ecdeb87ffaa9bcdb57536c6f2b903
|
| 3 |
+
size 335887513
|
latest
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
global_step120
|
rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbd3ca1d9c0f9c37f1fb2f5e734486f6fee40ca3170ebc50735e5f40a8308cca
|
| 3 |
+
size 15429
|
rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a7fdb00d15d449daf3744dc0427f59acbda6acf30622e04a5efa8cf6dfb563e
|
| 3 |
+
size 15429
|
rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d007caa01fca0f5efc6ac34e538c4316ae15676e418ebe6f84ac7268f1b49fdb
|
| 3 |
+
size 15429
|
rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c01f8eff2f00bc0b64994298d5b79a0f8c67e1d081075cc49bbea5efe9322c0a
|
| 3 |
+
size 15429
|
scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f524ac6f6272cafebe421fd53779255bb9c1bdeb5510ba7ecced18033e1523f
|
| 3 |
+
size 1465
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<[begin▁of▁sentence]>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<[end▁of▁sentence]>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<[PAD▁TOKEN]>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"sep_token": {
|
| 24 |
+
"content": "<[SEP▁TOKEN]>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "<[begin▁of▁sentence]>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "<[PAD▁TOKEN]>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"2": {
|
| 20 |
+
"content": "<[end▁of▁sentence]>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
},
|
| 27 |
+
"3": {
|
| 28 |
+
"content": "<[UNK_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 29 |
+
"lstrip": false,
|
| 30 |
+
"normalized": false,
|
| 31 |
+
"rstrip": false,
|
| 32 |
+
"single_word": false,
|
| 33 |
+
"special": true
|
| 34 |
+
},
|
| 35 |
+
"4": {
|
| 36 |
+
"content": "<[CLS_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 37 |
+
"lstrip": false,
|
| 38 |
+
"normalized": false,
|
| 39 |
+
"rstrip": false,
|
| 40 |
+
"single_word": false,
|
| 41 |
+
"special": true
|
| 42 |
+
},
|
| 43 |
+
"5": {
|
| 44 |
+
"content": "<[MASK_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 45 |
+
"lstrip": false,
|
| 46 |
+
"normalized": false,
|
| 47 |
+
"rstrip": false,
|
| 48 |
+
"single_word": false,
|
| 49 |
+
"special": true
|
| 50 |
+
},
|
| 51 |
+
"6": {
|
| 52 |
+
"content": "<[SEP▁TOKEN]>",
|
| 53 |
+
"lstrip": false,
|
| 54 |
+
"normalized": false,
|
| 55 |
+
"rstrip": false,
|
| 56 |
+
"single_word": false,
|
| 57 |
+
"special": true
|
| 58 |
+
},
|
| 59 |
+
"7": {
|
| 60 |
+
"content": "<[PLHD7_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 61 |
+
"lstrip": false,
|
| 62 |
+
"normalized": false,
|
| 63 |
+
"rstrip": false,
|
| 64 |
+
"single_word": false,
|
| 65 |
+
"special": true
|
| 66 |
+
},
|
| 67 |
+
"8": {
|
| 68 |
+
"content": "<[PLHD8_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 69 |
+
"lstrip": false,
|
| 70 |
+
"normalized": false,
|
| 71 |
+
"rstrip": false,
|
| 72 |
+
"single_word": false,
|
| 73 |
+
"special": true
|
| 74 |
+
},
|
| 75 |
+
"9": {
|
| 76 |
+
"content": "<[PLHD9_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 77 |
+
"lstrip": false,
|
| 78 |
+
"normalized": false,
|
| 79 |
+
"rstrip": false,
|
| 80 |
+
"single_word": false,
|
| 81 |
+
"special": true
|
| 82 |
+
},
|
| 83 |
+
"10": {
|
| 84 |
+
"content": "<[PLHD10_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 85 |
+
"lstrip": false,
|
| 86 |
+
"normalized": false,
|
| 87 |
+
"rstrip": false,
|
| 88 |
+
"single_word": false,
|
| 89 |
+
"special": true
|
| 90 |
+
},
|
| 91 |
+
"11": {
|
| 92 |
+
"content": "<[PLHD11_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 93 |
+
"lstrip": false,
|
| 94 |
+
"normalized": false,
|
| 95 |
+
"rstrip": false,
|
| 96 |
+
"single_word": false,
|
| 97 |
+
"special": true
|
| 98 |
+
},
|
| 99 |
+
"12": {
|
| 100 |
+
"content": "<[PLHD12_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 101 |
+
"lstrip": false,
|
| 102 |
+
"normalized": false,
|
| 103 |
+
"rstrip": false,
|
| 104 |
+
"single_word": false,
|
| 105 |
+
"special": true
|
| 106 |
+
},
|
| 107 |
+
"13": {
|
| 108 |
+
"content": "<[PLHD13_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 109 |
+
"lstrip": false,
|
| 110 |
+
"normalized": false,
|
| 111 |
+
"rstrip": false,
|
| 112 |
+
"single_word": false,
|
| 113 |
+
"special": true
|
| 114 |
+
},
|
| 115 |
+
"14": {
|
| 116 |
+
"content": "<[PLHD14_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 117 |
+
"lstrip": false,
|
| 118 |
+
"normalized": false,
|
| 119 |
+
"rstrip": false,
|
| 120 |
+
"single_word": false,
|
| 121 |
+
"special": true
|
| 122 |
+
},
|
| 123 |
+
"15": {
|
| 124 |
+
"content": "<[PLHD15_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 125 |
+
"lstrip": false,
|
| 126 |
+
"normalized": false,
|
| 127 |
+
"rstrip": false,
|
| 128 |
+
"single_word": false,
|
| 129 |
+
"special": true
|
| 130 |
+
},
|
| 131 |
+
"16": {
|
| 132 |
+
"content": "<[PLHD16_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 133 |
+
"lstrip": false,
|
| 134 |
+
"normalized": false,
|
| 135 |
+
"rstrip": false,
|
| 136 |
+
"single_word": false,
|
| 137 |
+
"special": true
|
| 138 |
+
},
|
| 139 |
+
"17": {
|
| 140 |
+
"content": "<[PLHD17_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 141 |
+
"lstrip": false,
|
| 142 |
+
"normalized": false,
|
| 143 |
+
"rstrip": false,
|
| 144 |
+
"single_word": false,
|
| 145 |
+
"special": true
|
| 146 |
+
},
|
| 147 |
+
"18": {
|
| 148 |
+
"content": "<[PLHD18_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 149 |
+
"lstrip": false,
|
| 150 |
+
"normalized": false,
|
| 151 |
+
"rstrip": false,
|
| 152 |
+
"single_word": false,
|
| 153 |
+
"special": true
|
| 154 |
+
},
|
| 155 |
+
"19": {
|
| 156 |
+
"content": "<[PLHD19_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 157 |
+
"lstrip": false,
|
| 158 |
+
"normalized": false,
|
| 159 |
+
"rstrip": false,
|
| 160 |
+
"single_word": false,
|
| 161 |
+
"special": true
|
| 162 |
+
},
|
| 163 |
+
"20": {
|
| 164 |
+
"content": "<[PLHD20_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 165 |
+
"lstrip": false,
|
| 166 |
+
"normalized": false,
|
| 167 |
+
"rstrip": false,
|
| 168 |
+
"single_word": false,
|
| 169 |
+
"special": true
|
| 170 |
+
},
|
| 171 |
+
"21": {
|
| 172 |
+
"content": "<[PLHD21_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 173 |
+
"lstrip": false,
|
| 174 |
+
"normalized": false,
|
| 175 |
+
"rstrip": false,
|
| 176 |
+
"single_word": false,
|
| 177 |
+
"special": true
|
| 178 |
+
},
|
| 179 |
+
"22": {
|
| 180 |
+
"content": "<[PLHD22_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 181 |
+
"lstrip": false,
|
| 182 |
+
"normalized": false,
|
| 183 |
+
"rstrip": false,
|
| 184 |
+
"single_word": false,
|
| 185 |
+
"special": true
|
| 186 |
+
},
|
| 187 |
+
"23": {
|
| 188 |
+
"content": "<[PLHD23_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 189 |
+
"lstrip": false,
|
| 190 |
+
"normalized": false,
|
| 191 |
+
"rstrip": false,
|
| 192 |
+
"single_word": false,
|
| 193 |
+
"special": true
|
| 194 |
+
},
|
| 195 |
+
"24": {
|
| 196 |
+
"content": "<[PLHD24_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 197 |
+
"lstrip": false,
|
| 198 |
+
"normalized": false,
|
| 199 |
+
"rstrip": false,
|
| 200 |
+
"single_word": false,
|
| 201 |
+
"special": true
|
| 202 |
+
},
|
| 203 |
+
"25": {
|
| 204 |
+
"content": "<[PLHD25_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 205 |
+
"lstrip": false,
|
| 206 |
+
"normalized": false,
|
| 207 |
+
"rstrip": false,
|
| 208 |
+
"single_word": false,
|
| 209 |
+
"special": true
|
| 210 |
+
},
|
| 211 |
+
"26": {
|
| 212 |
+
"content": "<[PLHD26_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 213 |
+
"lstrip": false,
|
| 214 |
+
"normalized": false,
|
| 215 |
+
"rstrip": false,
|
| 216 |
+
"single_word": false,
|
| 217 |
+
"special": true
|
| 218 |
+
},
|
| 219 |
+
"27": {
|
| 220 |
+
"content": "<[PLHD27_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 221 |
+
"lstrip": false,
|
| 222 |
+
"normalized": false,
|
| 223 |
+
"rstrip": false,
|
| 224 |
+
"single_word": false,
|
| 225 |
+
"special": true
|
| 226 |
+
},
|
| 227 |
+
"28": {
|
| 228 |
+
"content": "<[PLHD28_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 229 |
+
"lstrip": false,
|
| 230 |
+
"normalized": false,
|
| 231 |
+
"rstrip": false,
|
| 232 |
+
"single_word": false,
|
| 233 |
+
"special": true
|
| 234 |
+
},
|
| 235 |
+
"29": {
|
| 236 |
+
"content": "<[PLHD29_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 237 |
+
"lstrip": false,
|
| 238 |
+
"normalized": false,
|
| 239 |
+
"rstrip": false,
|
| 240 |
+
"single_word": false,
|
| 241 |
+
"special": true
|
| 242 |
+
},
|
| 243 |
+
"30": {
|
| 244 |
+
"content": "<[PLHD30_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 245 |
+
"lstrip": false,
|
| 246 |
+
"normalized": false,
|
| 247 |
+
"rstrip": false,
|
| 248 |
+
"single_word": false,
|
| 249 |
+
"special": true
|
| 250 |
+
},
|
| 251 |
+
"31": {
|
| 252 |
+
"content": "<[PLHD31_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 253 |
+
"lstrip": false,
|
| 254 |
+
"normalized": false,
|
| 255 |
+
"rstrip": false,
|
| 256 |
+
"single_word": false,
|
| 257 |
+
"special": true
|
| 258 |
+
},
|
| 259 |
+
"32": {
|
| 260 |
+
"content": "<[PLHD32_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 261 |
+
"lstrip": false,
|
| 262 |
+
"normalized": false,
|
| 263 |
+
"rstrip": false,
|
| 264 |
+
"single_word": false,
|
| 265 |
+
"special": true
|
| 266 |
+
},
|
| 267 |
+
"33": {
|
| 268 |
+
"content": "<[PLHD33_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 269 |
+
"lstrip": false,
|
| 270 |
+
"normalized": false,
|
| 271 |
+
"rstrip": false,
|
| 272 |
+
"single_word": false,
|
| 273 |
+
"special": true
|
| 274 |
+
},
|
| 275 |
+
"34": {
|
| 276 |
+
"content": "<[PLHD34_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 277 |
+
"lstrip": false,
|
| 278 |
+
"normalized": false,
|
| 279 |
+
"rstrip": false,
|
| 280 |
+
"single_word": false,
|
| 281 |
+
"special": true
|
| 282 |
+
},
|
| 283 |
+
"35": {
|
| 284 |
+
"content": "<[PLHD35_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 285 |
+
"lstrip": false,
|
| 286 |
+
"normalized": false,
|
| 287 |
+
"rstrip": false,
|
| 288 |
+
"single_word": false,
|
| 289 |
+
"special": true
|
| 290 |
+
},
|
| 291 |
+
"36": {
|
| 292 |
+
"content": "<[PLHD36_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 293 |
+
"lstrip": false,
|
| 294 |
+
"normalized": false,
|
| 295 |
+
"rstrip": false,
|
| 296 |
+
"single_word": false,
|
| 297 |
+
"special": true
|
| 298 |
+
},
|
| 299 |
+
"37": {
|
| 300 |
+
"content": "<[PLHD37_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 301 |
+
"lstrip": false,
|
| 302 |
+
"normalized": false,
|
| 303 |
+
"rstrip": false,
|
| 304 |
+
"single_word": false,
|
| 305 |
+
"special": true
|
| 306 |
+
},
|
| 307 |
+
"38": {
|
| 308 |
+
"content": "<[PLHD38_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 309 |
+
"lstrip": false,
|
| 310 |
+
"normalized": false,
|
| 311 |
+
"rstrip": false,
|
| 312 |
+
"single_word": false,
|
| 313 |
+
"special": true
|
| 314 |
+
},
|
| 315 |
+
"39": {
|
| 316 |
+
"content": "<[PLHD39_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 317 |
+
"lstrip": false,
|
| 318 |
+
"normalized": false,
|
| 319 |
+
"rstrip": false,
|
| 320 |
+
"single_word": false,
|
| 321 |
+
"special": true
|
| 322 |
+
},
|
| 323 |
+
"40": {
|
| 324 |
+
"content": "<[PLHD40_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 325 |
+
"lstrip": false,
|
| 326 |
+
"normalized": false,
|
| 327 |
+
"rstrip": false,
|
| 328 |
+
"single_word": false,
|
| 329 |
+
"special": true
|
| 330 |
+
},
|
| 331 |
+
"41": {
|
| 332 |
+
"content": "<[PLHD41_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 333 |
+
"lstrip": false,
|
| 334 |
+
"normalized": false,
|
| 335 |
+
"rstrip": false,
|
| 336 |
+
"single_word": false,
|
| 337 |
+
"special": true
|
| 338 |
+
},
|
| 339 |
+
"42": {
|
| 340 |
+
"content": "<[PLHD42_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 341 |
+
"lstrip": false,
|
| 342 |
+
"normalized": false,
|
| 343 |
+
"rstrip": false,
|
| 344 |
+
"single_word": false,
|
| 345 |
+
"special": true
|
| 346 |
+
},
|
| 347 |
+
"43": {
|
| 348 |
+
"content": "<[PLHD43_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 349 |
+
"lstrip": false,
|
| 350 |
+
"normalized": false,
|
| 351 |
+
"rstrip": false,
|
| 352 |
+
"single_word": false,
|
| 353 |
+
"special": true
|
| 354 |
+
},
|
| 355 |
+
"44": {
|
| 356 |
+
"content": "<[PLHD44_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 357 |
+
"lstrip": false,
|
| 358 |
+
"normalized": false,
|
| 359 |
+
"rstrip": false,
|
| 360 |
+
"single_word": false,
|
| 361 |
+
"special": true
|
| 362 |
+
},
|
| 363 |
+
"45": {
|
| 364 |
+
"content": "<[PLHD45_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 365 |
+
"lstrip": false,
|
| 366 |
+
"normalized": false,
|
| 367 |
+
"rstrip": false,
|
| 368 |
+
"single_word": false,
|
| 369 |
+
"special": true
|
| 370 |
+
},
|
| 371 |
+
"46": {
|
| 372 |
+
"content": "<[PLHD46_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 373 |
+
"lstrip": false,
|
| 374 |
+
"normalized": false,
|
| 375 |
+
"rstrip": false,
|
| 376 |
+
"single_word": false,
|
| 377 |
+
"special": true
|
| 378 |
+
},
|
| 379 |
+
"47": {
|
| 380 |
+
"content": "<[PLHD47_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 381 |
+
"lstrip": false,
|
| 382 |
+
"normalized": false,
|
| 383 |
+
"rstrip": false,
|
| 384 |
+
"single_word": false,
|
| 385 |
+
"special": true
|
| 386 |
+
},
|
| 387 |
+
"48": {
|
| 388 |
+
"content": "<[PLHD48_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 389 |
+
"lstrip": false,
|
| 390 |
+
"normalized": false,
|
| 391 |
+
"rstrip": false,
|
| 392 |
+
"single_word": false,
|
| 393 |
+
"special": true
|
| 394 |
+
},
|
| 395 |
+
"49": {
|
| 396 |
+
"content": "<[PLHD49_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 397 |
+
"lstrip": false,
|
| 398 |
+
"normalized": false,
|
| 399 |
+
"rstrip": false,
|
| 400 |
+
"single_word": false,
|
| 401 |
+
"special": true
|
| 402 |
+
},
|
| 403 |
+
"50": {
|
| 404 |
+
"content": "<[PLHD50_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 405 |
+
"lstrip": false,
|
| 406 |
+
"normalized": false,
|
| 407 |
+
"rstrip": false,
|
| 408 |
+
"single_word": false,
|
| 409 |
+
"special": true
|
| 410 |
+
},
|
| 411 |
+
"51": {
|
| 412 |
+
"content": "<[PLHD51_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 413 |
+
"lstrip": false,
|
| 414 |
+
"normalized": false,
|
| 415 |
+
"rstrip": false,
|
| 416 |
+
"single_word": false,
|
| 417 |
+
"special": true
|
| 418 |
+
},
|
| 419 |
+
"52": {
|
| 420 |
+
"content": "<[PLHD52_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 421 |
+
"lstrip": false,
|
| 422 |
+
"normalized": false,
|
| 423 |
+
"rstrip": false,
|
| 424 |
+
"single_word": false,
|
| 425 |
+
"special": true
|
| 426 |
+
},
|
| 427 |
+
"53": {
|
| 428 |
+
"content": "<[PLHD53_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 429 |
+
"lstrip": false,
|
| 430 |
+
"normalized": false,
|
| 431 |
+
"rstrip": false,
|
| 432 |
+
"single_word": false,
|
| 433 |
+
"special": true
|
| 434 |
+
},
|
| 435 |
+
"54": {
|
| 436 |
+
"content": "<[PLHD54_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 437 |
+
"lstrip": false,
|
| 438 |
+
"normalized": false,
|
| 439 |
+
"rstrip": false,
|
| 440 |
+
"single_word": false,
|
| 441 |
+
"special": true
|
| 442 |
+
},
|
| 443 |
+
"55": {
|
| 444 |
+
"content": "<[PLHD55_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 445 |
+
"lstrip": false,
|
| 446 |
+
"normalized": false,
|
| 447 |
+
"rstrip": false,
|
| 448 |
+
"single_word": false,
|
| 449 |
+
"special": true
|
| 450 |
+
},
|
| 451 |
+
"56": {
|
| 452 |
+
"content": "<[PLHD56_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 453 |
+
"lstrip": false,
|
| 454 |
+
"normalized": false,
|
| 455 |
+
"rstrip": false,
|
| 456 |
+
"single_word": false,
|
| 457 |
+
"special": true
|
| 458 |
+
},
|
| 459 |
+
"57": {
|
| 460 |
+
"content": "<[PLHD57_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 461 |
+
"lstrip": false,
|
| 462 |
+
"normalized": false,
|
| 463 |
+
"rstrip": false,
|
| 464 |
+
"single_word": false,
|
| 465 |
+
"special": true
|
| 466 |
+
},
|
| 467 |
+
"58": {
|
| 468 |
+
"content": "<[PLHD58_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 469 |
+
"lstrip": false,
|
| 470 |
+
"normalized": false,
|
| 471 |
+
"rstrip": false,
|
| 472 |
+
"single_word": false,
|
| 473 |
+
"special": true
|
| 474 |
+
},
|
| 475 |
+
"59": {
|
| 476 |
+
"content": "<[PLHD59_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 477 |
+
"lstrip": false,
|
| 478 |
+
"normalized": false,
|
| 479 |
+
"rstrip": false,
|
| 480 |
+
"single_word": false,
|
| 481 |
+
"special": true
|
| 482 |
+
},
|
| 483 |
+
"60": {
|
| 484 |
+
"content": "<[PLHD60_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 485 |
+
"lstrip": false,
|
| 486 |
+
"normalized": false,
|
| 487 |
+
"rstrip": false,
|
| 488 |
+
"single_word": false,
|
| 489 |
+
"special": true
|
| 490 |
+
},
|
| 491 |
+
"61": {
|
| 492 |
+
"content": "<[PLHD61_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 493 |
+
"lstrip": false,
|
| 494 |
+
"normalized": false,
|
| 495 |
+
"rstrip": false,
|
| 496 |
+
"single_word": false,
|
| 497 |
+
"special": true
|
| 498 |
+
},
|
| 499 |
+
"62": {
|
| 500 |
+
"content": "<[PLHD62_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 501 |
+
"lstrip": false,
|
| 502 |
+
"normalized": false,
|
| 503 |
+
"rstrip": false,
|
| 504 |
+
"single_word": false,
|
| 505 |
+
"special": true
|
| 506 |
+
},
|
| 507 |
+
"63": {
|
| 508 |
+
"content": "<[PLHD63_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 509 |
+
"lstrip": false,
|
| 510 |
+
"normalized": false,
|
| 511 |
+
"rstrip": false,
|
| 512 |
+
"single_word": false,
|
| 513 |
+
"special": true
|
| 514 |
+
},
|
| 515 |
+
"64": {
|
| 516 |
+
"content": "<[PLHD64_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 517 |
+
"lstrip": false,
|
| 518 |
+
"normalized": false,
|
| 519 |
+
"rstrip": false,
|
| 520 |
+
"single_word": false,
|
| 521 |
+
"special": true
|
| 522 |
+
},
|
| 523 |
+
"65": {
|
| 524 |
+
"content": "<[PLHD65_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 525 |
+
"lstrip": false,
|
| 526 |
+
"normalized": false,
|
| 527 |
+
"rstrip": false,
|
| 528 |
+
"single_word": false,
|
| 529 |
+
"special": true
|
| 530 |
+
},
|
| 531 |
+
"66": {
|
| 532 |
+
"content": "<[PLHD66_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 533 |
+
"lstrip": false,
|
| 534 |
+
"normalized": false,
|
| 535 |
+
"rstrip": false,
|
| 536 |
+
"single_word": false,
|
| 537 |
+
"special": true
|
| 538 |
+
},
|
| 539 |
+
"67": {
|
| 540 |
+
"content": "<[PLHD67_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 541 |
+
"lstrip": false,
|
| 542 |
+
"normalized": false,
|
| 543 |
+
"rstrip": false,
|
| 544 |
+
"single_word": false,
|
| 545 |
+
"special": true
|
| 546 |
+
},
|
| 547 |
+
"68": {
|
| 548 |
+
"content": "<[PLHD68_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 549 |
+
"lstrip": false,
|
| 550 |
+
"normalized": false,
|
| 551 |
+
"rstrip": false,
|
| 552 |
+
"single_word": false,
|
| 553 |
+
"special": true
|
| 554 |
+
},
|
| 555 |
+
"69": {
|
| 556 |
+
"content": "<[PLHD69_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 557 |
+
"lstrip": false,
|
| 558 |
+
"normalized": false,
|
| 559 |
+
"rstrip": false,
|
| 560 |
+
"single_word": false,
|
| 561 |
+
"special": true
|
| 562 |
+
},
|
| 563 |
+
"70": {
|
| 564 |
+
"content": "<[PLHD70_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 565 |
+
"lstrip": false,
|
| 566 |
+
"normalized": false,
|
| 567 |
+
"rstrip": false,
|
| 568 |
+
"single_word": false,
|
| 569 |
+
"special": true
|
| 570 |
+
},
|
| 571 |
+
"71": {
|
| 572 |
+
"content": "<[PLHD71_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 573 |
+
"lstrip": false,
|
| 574 |
+
"normalized": false,
|
| 575 |
+
"rstrip": false,
|
| 576 |
+
"single_word": false,
|
| 577 |
+
"special": true
|
| 578 |
+
},
|
| 579 |
+
"72": {
|
| 580 |
+
"content": "<[PLHD72_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 581 |
+
"lstrip": false,
|
| 582 |
+
"normalized": false,
|
| 583 |
+
"rstrip": false,
|
| 584 |
+
"single_word": false,
|
| 585 |
+
"special": true
|
| 586 |
+
},
|
| 587 |
+
"73": {
|
| 588 |
+
"content": "<[PLHD73_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 589 |
+
"lstrip": false,
|
| 590 |
+
"normalized": false,
|
| 591 |
+
"rstrip": false,
|
| 592 |
+
"single_word": false,
|
| 593 |
+
"special": true
|
| 594 |
+
},
|
| 595 |
+
"74": {
|
| 596 |
+
"content": "<[PLHD74_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 597 |
+
"lstrip": false,
|
| 598 |
+
"normalized": false,
|
| 599 |
+
"rstrip": false,
|
| 600 |
+
"single_word": false,
|
| 601 |
+
"special": true
|
| 602 |
+
},
|
| 603 |
+
"75": {
|
| 604 |
+
"content": "<[PLHD75_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 605 |
+
"lstrip": false,
|
| 606 |
+
"normalized": false,
|
| 607 |
+
"rstrip": false,
|
| 608 |
+
"single_word": false,
|
| 609 |
+
"special": true
|
| 610 |
+
},
|
| 611 |
+
"76": {
|
| 612 |
+
"content": "<[PLHD76_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 613 |
+
"lstrip": false,
|
| 614 |
+
"normalized": false,
|
| 615 |
+
"rstrip": false,
|
| 616 |
+
"single_word": false,
|
| 617 |
+
"special": true
|
| 618 |
+
},
|
| 619 |
+
"77": {
|
| 620 |
+
"content": "<[PLHD77_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 621 |
+
"lstrip": false,
|
| 622 |
+
"normalized": false,
|
| 623 |
+
"rstrip": false,
|
| 624 |
+
"single_word": false,
|
| 625 |
+
"special": true
|
| 626 |
+
},
|
| 627 |
+
"78": {
|
| 628 |
+
"content": "<[PLHD78_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 629 |
+
"lstrip": false,
|
| 630 |
+
"normalized": false,
|
| 631 |
+
"rstrip": false,
|
| 632 |
+
"single_word": false,
|
| 633 |
+
"special": true
|
| 634 |
+
},
|
| 635 |
+
"79": {
|
| 636 |
+
"content": "<[PLHD79_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 637 |
+
"lstrip": false,
|
| 638 |
+
"normalized": false,
|
| 639 |
+
"rstrip": false,
|
| 640 |
+
"single_word": false,
|
| 641 |
+
"special": true
|
| 642 |
+
},
|
| 643 |
+
"80": {
|
| 644 |
+
"content": "<[PLHD80_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 645 |
+
"lstrip": false,
|
| 646 |
+
"normalized": false,
|
| 647 |
+
"rstrip": false,
|
| 648 |
+
"single_word": false,
|
| 649 |
+
"special": true
|
| 650 |
+
},
|
| 651 |
+
"81": {
|
| 652 |
+
"content": "<[PLHD81_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 653 |
+
"lstrip": false,
|
| 654 |
+
"normalized": false,
|
| 655 |
+
"rstrip": false,
|
| 656 |
+
"single_word": false,
|
| 657 |
+
"special": true
|
| 658 |
+
},
|
| 659 |
+
"82": {
|
| 660 |
+
"content": "<[PLHD82_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 661 |
+
"lstrip": false,
|
| 662 |
+
"normalized": false,
|
| 663 |
+
"rstrip": false,
|
| 664 |
+
"single_word": false,
|
| 665 |
+
"special": true
|
| 666 |
+
},
|
| 667 |
+
"83": {
|
| 668 |
+
"content": "<[PLHD83_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 669 |
+
"lstrip": false,
|
| 670 |
+
"normalized": false,
|
| 671 |
+
"rstrip": false,
|
| 672 |
+
"single_word": false,
|
| 673 |
+
"special": true
|
| 674 |
+
},
|
| 675 |
+
"84": {
|
| 676 |
+
"content": "<[PLHD84_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 677 |
+
"lstrip": false,
|
| 678 |
+
"normalized": false,
|
| 679 |
+
"rstrip": false,
|
| 680 |
+
"single_word": false,
|
| 681 |
+
"special": true
|
| 682 |
+
},
|
| 683 |
+
"85": {
|
| 684 |
+
"content": "<[PLHD85_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 685 |
+
"lstrip": false,
|
| 686 |
+
"normalized": false,
|
| 687 |
+
"rstrip": false,
|
| 688 |
+
"single_word": false,
|
| 689 |
+
"special": true
|
| 690 |
+
},
|
| 691 |
+
"86": {
|
| 692 |
+
"content": "<[PLHD86_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 693 |
+
"lstrip": false,
|
| 694 |
+
"normalized": false,
|
| 695 |
+
"rstrip": false,
|
| 696 |
+
"single_word": false,
|
| 697 |
+
"special": true
|
| 698 |
+
},
|
| 699 |
+
"87": {
|
| 700 |
+
"content": "<[PLHD87_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 701 |
+
"lstrip": false,
|
| 702 |
+
"normalized": false,
|
| 703 |
+
"rstrip": false,
|
| 704 |
+
"single_word": false,
|
| 705 |
+
"special": true
|
| 706 |
+
},
|
| 707 |
+
"88": {
|
| 708 |
+
"content": "<[PLHD88_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 709 |
+
"lstrip": false,
|
| 710 |
+
"normalized": false,
|
| 711 |
+
"rstrip": false,
|
| 712 |
+
"single_word": false,
|
| 713 |
+
"special": true
|
| 714 |
+
},
|
| 715 |
+
"89": {
|
| 716 |
+
"content": "<[PLHD89_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 717 |
+
"lstrip": false,
|
| 718 |
+
"normalized": false,
|
| 719 |
+
"rstrip": false,
|
| 720 |
+
"single_word": false,
|
| 721 |
+
"special": true
|
| 722 |
+
},
|
| 723 |
+
"90": {
|
| 724 |
+
"content": "<[PLHD90_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 725 |
+
"lstrip": false,
|
| 726 |
+
"normalized": false,
|
| 727 |
+
"rstrip": false,
|
| 728 |
+
"single_word": false,
|
| 729 |
+
"special": true
|
| 730 |
+
},
|
| 731 |
+
"91": {
|
| 732 |
+
"content": "<[PLHD91_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 733 |
+
"lstrip": false,
|
| 734 |
+
"normalized": false,
|
| 735 |
+
"rstrip": false,
|
| 736 |
+
"single_word": false,
|
| 737 |
+
"special": true
|
| 738 |
+
},
|
| 739 |
+
"92": {
|
| 740 |
+
"content": "<[PLHD92_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 741 |
+
"lstrip": false,
|
| 742 |
+
"normalized": false,
|
| 743 |
+
"rstrip": false,
|
| 744 |
+
"single_word": false,
|
| 745 |
+
"special": true
|
| 746 |
+
},
|
| 747 |
+
"93": {
|
| 748 |
+
"content": "<[PLHD93_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 749 |
+
"lstrip": false,
|
| 750 |
+
"normalized": false,
|
| 751 |
+
"rstrip": false,
|
| 752 |
+
"single_word": false,
|
| 753 |
+
"special": true
|
| 754 |
+
},
|
| 755 |
+
"94": {
|
| 756 |
+
"content": "<[PLHD94_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 757 |
+
"lstrip": false,
|
| 758 |
+
"normalized": false,
|
| 759 |
+
"rstrip": false,
|
| 760 |
+
"single_word": false,
|
| 761 |
+
"special": true
|
| 762 |
+
},
|
| 763 |
+
"95": {
|
| 764 |
+
"content": "<[PLHD95_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 765 |
+
"lstrip": false,
|
| 766 |
+
"normalized": false,
|
| 767 |
+
"rstrip": false,
|
| 768 |
+
"single_word": false,
|
| 769 |
+
"special": true
|
| 770 |
+
},
|
| 771 |
+
"96": {
|
| 772 |
+
"content": "<[PLHD96_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 773 |
+
"lstrip": false,
|
| 774 |
+
"normalized": false,
|
| 775 |
+
"rstrip": false,
|
| 776 |
+
"single_word": false,
|
| 777 |
+
"special": true
|
| 778 |
+
},
|
| 779 |
+
"97": {
|
| 780 |
+
"content": "<[PLHD97_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 781 |
+
"lstrip": false,
|
| 782 |
+
"normalized": false,
|
| 783 |
+
"rstrip": false,
|
| 784 |
+
"single_word": false,
|
| 785 |
+
"special": true
|
| 786 |
+
},
|
| 787 |
+
"98": {
|
| 788 |
+
"content": "<[PLHD98_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 789 |
+
"lstrip": false,
|
| 790 |
+
"normalized": false,
|
| 791 |
+
"rstrip": false,
|
| 792 |
+
"single_word": false,
|
| 793 |
+
"special": true
|
| 794 |
+
},
|
| 795 |
+
"99": {
|
| 796 |
+
"content": "<[PLHD99_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 797 |
+
"lstrip": false,
|
| 798 |
+
"normalized": false,
|
| 799 |
+
"rstrip": false,
|
| 800 |
+
"single_word": false,
|
| 801 |
+
"special": true
|
| 802 |
+
},
|
| 803 |
+
"100": {
|
| 804 |
+
"content": "<[PLHD100_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 805 |
+
"lstrip": false,
|
| 806 |
+
"normalized": false,
|
| 807 |
+
"rstrip": false,
|
| 808 |
+
"single_word": false,
|
| 809 |
+
"special": true
|
| 810 |
+
},
|
| 811 |
+
"101": {
|
| 812 |
+
"content": "<[PLHD101_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 813 |
+
"lstrip": false,
|
| 814 |
+
"normalized": false,
|
| 815 |
+
"rstrip": false,
|
| 816 |
+
"single_word": false,
|
| 817 |
+
"special": true
|
| 818 |
+
},
|
| 819 |
+
"102": {
|
| 820 |
+
"content": "<[PLHD102_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 821 |
+
"lstrip": false,
|
| 822 |
+
"normalized": false,
|
| 823 |
+
"rstrip": false,
|
| 824 |
+
"single_word": false,
|
| 825 |
+
"special": true
|
| 826 |
+
},
|
| 827 |
+
"103": {
|
| 828 |
+
"content": "<[PLHD103_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 829 |
+
"lstrip": false,
|
| 830 |
+
"normalized": false,
|
| 831 |
+
"rstrip": false,
|
| 832 |
+
"single_word": false,
|
| 833 |
+
"special": true
|
| 834 |
+
},
|
| 835 |
+
"104": {
|
| 836 |
+
"content": "<[PLHD104_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 837 |
+
"lstrip": false,
|
| 838 |
+
"normalized": false,
|
| 839 |
+
"rstrip": false,
|
| 840 |
+
"single_word": false,
|
| 841 |
+
"special": true
|
| 842 |
+
},
|
| 843 |
+
"105": {
|
| 844 |
+
"content": "<[PLHD105_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 845 |
+
"lstrip": false,
|
| 846 |
+
"normalized": false,
|
| 847 |
+
"rstrip": false,
|
| 848 |
+
"single_word": false,
|
| 849 |
+
"special": true
|
| 850 |
+
},
|
| 851 |
+
"106": {
|
| 852 |
+
"content": "<[PLHD106_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 853 |
+
"lstrip": false,
|
| 854 |
+
"normalized": false,
|
| 855 |
+
"rstrip": false,
|
| 856 |
+
"single_word": false,
|
| 857 |
+
"special": true
|
| 858 |
+
},
|
| 859 |
+
"107": {
|
| 860 |
+
"content": "<[PLHD107_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 861 |
+
"lstrip": false,
|
| 862 |
+
"normalized": false,
|
| 863 |
+
"rstrip": false,
|
| 864 |
+
"single_word": false,
|
| 865 |
+
"special": true
|
| 866 |
+
},
|
| 867 |
+
"108": {
|
| 868 |
+
"content": "<[PLHD108_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 869 |
+
"lstrip": false,
|
| 870 |
+
"normalized": false,
|
| 871 |
+
"rstrip": false,
|
| 872 |
+
"single_word": false,
|
| 873 |
+
"special": true
|
| 874 |
+
},
|
| 875 |
+
"109": {
|
| 876 |
+
"content": "<[PLHD109_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 877 |
+
"lstrip": false,
|
| 878 |
+
"normalized": false,
|
| 879 |
+
"rstrip": false,
|
| 880 |
+
"single_word": false,
|
| 881 |
+
"special": true
|
| 882 |
+
},
|
| 883 |
+
"110": {
|
| 884 |
+
"content": "<[PLHD110_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 885 |
+
"lstrip": false,
|
| 886 |
+
"normalized": false,
|
| 887 |
+
"rstrip": false,
|
| 888 |
+
"single_word": false,
|
| 889 |
+
"special": true
|
| 890 |
+
},
|
| 891 |
+
"111": {
|
| 892 |
+
"content": "<[PLHD111_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 893 |
+
"lstrip": false,
|
| 894 |
+
"normalized": false,
|
| 895 |
+
"rstrip": false,
|
| 896 |
+
"single_word": false,
|
| 897 |
+
"special": true
|
| 898 |
+
},
|
| 899 |
+
"112": {
|
| 900 |
+
"content": "<[PLHD112_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 901 |
+
"lstrip": false,
|
| 902 |
+
"normalized": false,
|
| 903 |
+
"rstrip": false,
|
| 904 |
+
"single_word": false,
|
| 905 |
+
"special": true
|
| 906 |
+
},
|
| 907 |
+
"113": {
|
| 908 |
+
"content": "<[PLHD113_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 909 |
+
"lstrip": false,
|
| 910 |
+
"normalized": false,
|
| 911 |
+
"rstrip": false,
|
| 912 |
+
"single_word": false,
|
| 913 |
+
"special": true
|
| 914 |
+
},
|
| 915 |
+
"114": {
|
| 916 |
+
"content": "<[PLHD114_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 917 |
+
"lstrip": false,
|
| 918 |
+
"normalized": false,
|
| 919 |
+
"rstrip": false,
|
| 920 |
+
"single_word": false,
|
| 921 |
+
"special": true
|
| 922 |
+
},
|
| 923 |
+
"115": {
|
| 924 |
+
"content": "<[PLHD115_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 925 |
+
"lstrip": false,
|
| 926 |
+
"normalized": false,
|
| 927 |
+
"rstrip": false,
|
| 928 |
+
"single_word": false,
|
| 929 |
+
"special": true
|
| 930 |
+
},
|
| 931 |
+
"116": {
|
| 932 |
+
"content": "<[PLHD116_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 933 |
+
"lstrip": false,
|
| 934 |
+
"normalized": false,
|
| 935 |
+
"rstrip": false,
|
| 936 |
+
"single_word": false,
|
| 937 |
+
"special": true
|
| 938 |
+
},
|
| 939 |
+
"117": {
|
| 940 |
+
"content": "<[PLHD117_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 941 |
+
"lstrip": false,
|
| 942 |
+
"normalized": false,
|
| 943 |
+
"rstrip": false,
|
| 944 |
+
"single_word": false,
|
| 945 |
+
"special": true
|
| 946 |
+
},
|
| 947 |
+
"118": {
|
| 948 |
+
"content": "<[PLHD118_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 949 |
+
"lstrip": false,
|
| 950 |
+
"normalized": false,
|
| 951 |
+
"rstrip": false,
|
| 952 |
+
"single_word": false,
|
| 953 |
+
"special": true
|
| 954 |
+
},
|
| 955 |
+
"119": {
|
| 956 |
+
"content": "<[PLHD119_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 957 |
+
"lstrip": false,
|
| 958 |
+
"normalized": false,
|
| 959 |
+
"rstrip": false,
|
| 960 |
+
"single_word": false,
|
| 961 |
+
"special": true
|
| 962 |
+
},
|
| 963 |
+
"120": {
|
| 964 |
+
"content": "<[PLHD120_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 965 |
+
"lstrip": false,
|
| 966 |
+
"normalized": false,
|
| 967 |
+
"rstrip": false,
|
| 968 |
+
"single_word": false,
|
| 969 |
+
"special": true
|
| 970 |
+
},
|
| 971 |
+
"121": {
|
| 972 |
+
"content": "<[PLHD121_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 973 |
+
"lstrip": false,
|
| 974 |
+
"normalized": false,
|
| 975 |
+
"rstrip": false,
|
| 976 |
+
"single_word": false,
|
| 977 |
+
"special": true
|
| 978 |
+
},
|
| 979 |
+
"122": {
|
| 980 |
+
"content": "<[PLHD122_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 981 |
+
"lstrip": false,
|
| 982 |
+
"normalized": false,
|
| 983 |
+
"rstrip": false,
|
| 984 |
+
"single_word": false,
|
| 985 |
+
"special": true
|
| 986 |
+
},
|
| 987 |
+
"123": {
|
| 988 |
+
"content": "<[PLHD123_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 989 |
+
"lstrip": false,
|
| 990 |
+
"normalized": false,
|
| 991 |
+
"rstrip": false,
|
| 992 |
+
"single_word": false,
|
| 993 |
+
"special": true
|
| 994 |
+
},
|
| 995 |
+
"124": {
|
| 996 |
+
"content": "<[fim-prefix]>",
|
| 997 |
+
"lstrip": false,
|
| 998 |
+
"normalized": false,
|
| 999 |
+
"rstrip": false,
|
| 1000 |
+
"single_word": false,
|
| 1001 |
+
"special": true
|
| 1002 |
+
},
|
| 1003 |
+
"125": {
|
| 1004 |
+
"content": "<[fim-suffix]>",
|
| 1005 |
+
"lstrip": false,
|
| 1006 |
+
"normalized": false,
|
| 1007 |
+
"rstrip": false,
|
| 1008 |
+
"single_word": false,
|
| 1009 |
+
"special": true
|
| 1010 |
+
},
|
| 1011 |
+
"126": {
|
| 1012 |
+
"content": "<[fim-middle]>",
|
| 1013 |
+
"lstrip": false,
|
| 1014 |
+
"normalized": false,
|
| 1015 |
+
"rstrip": false,
|
| 1016 |
+
"single_word": false,
|
| 1017 |
+
"special": true
|
| 1018 |
+
},
|
| 1019 |
+
"127": {
|
| 1020 |
+
"content": "<[PLHD127_never_used_51bce0c785ca2f68081bfa7d91973934]>",
|
| 1021 |
+
"lstrip": false,
|
| 1022 |
+
"normalized": false,
|
| 1023 |
+
"rstrip": false,
|
| 1024 |
+
"single_word": false,
|
| 1025 |
+
"special": true
|
| 1026 |
+
}
|
| 1027 |
+
},
|
| 1028 |
+
"bos_token": "<[begin▁of▁sentence]>",
|
| 1029 |
+
"clean_up_tokenization_spaces": false,
|
| 1030 |
+
"eos_token": "<[end▁of▁sentence]>",
|
| 1031 |
+
"extra_special_tokens": {},
|
| 1032 |
+
"model_max_length": 32768,
|
| 1033 |
+
"pad_token": "<[PAD▁TOKEN]>",
|
| 1034 |
+
"sep_token": "<[SEP▁TOKEN]>",
|
| 1035 |
+
"tokenizer_class": "PreTrainedTokenizerFast"
|
| 1036 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,1354 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.27522935779816515,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 120,
|
| 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.0022935779816513763,
|
| 14 |
+
"grad_norm": 0.12869106233119965,
|
| 15 |
+
"learning_rate": 0.0,
|
| 16 |
+
"loss": 0.1978,
|
| 17 |
+
"memory/device_reserved (GiB)": 50.77,
|
| 18 |
+
"memory/max_active (GiB)": 48.85,
|
| 19 |
+
"memory/max_allocated (GiB)": 48.85,
|
| 20 |
+
"step": 1,
|
| 21 |
+
"tokens_per_second_per_gpu": 354.96
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"epoch": 0.0045871559633027525,
|
| 25 |
+
"grad_norm": 0.15667210519313812,
|
| 26 |
+
"learning_rate": 4.7619047619047615e-06,
|
| 27 |
+
"loss": 0.2353,
|
| 28 |
+
"memory/device_reserved (GiB)": 50.77,
|
| 29 |
+
"memory/max_active (GiB)": 48.85,
|
| 30 |
+
"memory/max_allocated (GiB)": 48.85,
|
| 31 |
+
"step": 2,
|
| 32 |
+
"tokens_per_second_per_gpu": 406.37
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"epoch": 0.006880733944954129,
|
| 36 |
+
"grad_norm": 0.2217973917722702,
|
| 37 |
+
"learning_rate": 9.523809523809523e-06,
|
| 38 |
+
"loss": 0.2243,
|
| 39 |
+
"memory/device_reserved (GiB)": 50.87,
|
| 40 |
+
"memory/max_active (GiB)": 48.97,
|
| 41 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 42 |
+
"step": 3,
|
| 43 |
+
"tokens_per_second_per_gpu": 371.18
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"epoch": 0.009174311926605505,
|
| 47 |
+
"grad_norm": 0.15948686003684998,
|
| 48 |
+
"learning_rate": 1.4285714285714285e-05,
|
| 49 |
+
"loss": 0.2392,
|
| 50 |
+
"memory/device_reserved (GiB)": 50.87,
|
| 51 |
+
"memory/max_active (GiB)": 48.85,
|
| 52 |
+
"memory/max_allocated (GiB)": 48.85,
|
| 53 |
+
"step": 4,
|
| 54 |
+
"tokens_per_second_per_gpu": 414.48
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"epoch": 0.011467889908256881,
|
| 58 |
+
"grad_norm": 0.153566375374794,
|
| 59 |
+
"learning_rate": 1.9047619047619046e-05,
|
| 60 |
+
"loss": 0.2182,
|
| 61 |
+
"memory/device_reserved (GiB)": 50.87,
|
| 62 |
+
"memory/max_active (GiB)": 48.93,
|
| 63 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 64 |
+
"step": 5,
|
| 65 |
+
"tokens_per_second_per_gpu": 369.22
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"epoch": 0.013761467889908258,
|
| 69 |
+
"grad_norm": 0.1521972268819809,
|
| 70 |
+
"learning_rate": 2.380952380952381e-05,
|
| 71 |
+
"loss": 0.2112,
|
| 72 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 73 |
+
"memory/max_active (GiB)": 49.04,
|
| 74 |
+
"memory/max_allocated (GiB)": 49.04,
|
| 75 |
+
"step": 6,
|
| 76 |
+
"tokens_per_second_per_gpu": 429.31
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"epoch": 0.016055045871559634,
|
| 80 |
+
"grad_norm": 0.168710395693779,
|
| 81 |
+
"learning_rate": 2.857142857142857e-05,
|
| 82 |
+
"loss": 0.226,
|
| 83 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 84 |
+
"memory/max_active (GiB)": 48.97,
|
| 85 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 86 |
+
"step": 7,
|
| 87 |
+
"tokens_per_second_per_gpu": 417.78
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"epoch": 0.01834862385321101,
|
| 91 |
+
"grad_norm": 0.13864850997924805,
|
| 92 |
+
"learning_rate": 3.3333333333333335e-05,
|
| 93 |
+
"loss": 0.1884,
|
| 94 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 95 |
+
"memory/max_active (GiB)": 48.97,
|
| 96 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 97 |
+
"step": 8,
|
| 98 |
+
"tokens_per_second_per_gpu": 439.56
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"epoch": 0.020642201834862386,
|
| 102 |
+
"grad_norm": 0.15227903425693512,
|
| 103 |
+
"learning_rate": 3.809523809523809e-05,
|
| 104 |
+
"loss": 0.1996,
|
| 105 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 106 |
+
"memory/max_active (GiB)": 48.93,
|
| 107 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 108 |
+
"step": 9,
|
| 109 |
+
"tokens_per_second_per_gpu": 411.33
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"epoch": 0.022935779816513763,
|
| 113 |
+
"grad_norm": 0.13421630859375,
|
| 114 |
+
"learning_rate": 4.2857142857142856e-05,
|
| 115 |
+
"loss": 0.1599,
|
| 116 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 117 |
+
"memory/max_active (GiB)": 48.97,
|
| 118 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 119 |
+
"step": 10,
|
| 120 |
+
"tokens_per_second_per_gpu": 496.3
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"epoch": 0.02522935779816514,
|
| 124 |
+
"grad_norm": 0.14955134689807892,
|
| 125 |
+
"learning_rate": 4.761904761904762e-05,
|
| 126 |
+
"loss": 0.1735,
|
| 127 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 128 |
+
"memory/max_active (GiB)": 49.0,
|
| 129 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 130 |
+
"step": 11,
|
| 131 |
+
"tokens_per_second_per_gpu": 372.95
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"epoch": 0.027522935779816515,
|
| 135 |
+
"grad_norm": 0.1432778388261795,
|
| 136 |
+
"learning_rate": 5.2380952380952384e-05,
|
| 137 |
+
"loss": 0.1515,
|
| 138 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 139 |
+
"memory/max_active (GiB)": 49.0,
|
| 140 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 141 |
+
"step": 12,
|
| 142 |
+
"tokens_per_second_per_gpu": 398.65
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"epoch": 0.02981651376146789,
|
| 146 |
+
"grad_norm": 0.14163611829280853,
|
| 147 |
+
"learning_rate": 5.714285714285714e-05,
|
| 148 |
+
"loss": 0.1517,
|
| 149 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 150 |
+
"memory/max_active (GiB)": 48.97,
|
| 151 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 152 |
+
"step": 13,
|
| 153 |
+
"tokens_per_second_per_gpu": 440.5
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"epoch": 0.03211009174311927,
|
| 157 |
+
"grad_norm": 0.15477906167507172,
|
| 158 |
+
"learning_rate": 6.19047619047619e-05,
|
| 159 |
+
"loss": 0.1444,
|
| 160 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 161 |
+
"memory/max_active (GiB)": 48.89,
|
| 162 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 163 |
+
"step": 14,
|
| 164 |
+
"tokens_per_second_per_gpu": 385.32
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"epoch": 0.034403669724770644,
|
| 168 |
+
"grad_norm": 0.1055532768368721,
|
| 169 |
+
"learning_rate": 6.666666666666667e-05,
|
| 170 |
+
"loss": 0.1292,
|
| 171 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 172 |
+
"memory/max_active (GiB)": 48.93,
|
| 173 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 174 |
+
"step": 15,
|
| 175 |
+
"tokens_per_second_per_gpu": 453.02
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"epoch": 0.03669724770642202,
|
| 179 |
+
"grad_norm": 0.10180933028459549,
|
| 180 |
+
"learning_rate": 7.142857142857143e-05,
|
| 181 |
+
"loss": 0.1208,
|
| 182 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 183 |
+
"memory/max_active (GiB)": 49.0,
|
| 184 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 185 |
+
"step": 16,
|
| 186 |
+
"tokens_per_second_per_gpu": 474.27
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"epoch": 0.0389908256880734,
|
| 190 |
+
"grad_norm": 0.07999677956104279,
|
| 191 |
+
"learning_rate": 7.619047619047618e-05,
|
| 192 |
+
"loss": 0.132,
|
| 193 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 194 |
+
"memory/max_active (GiB)": 48.89,
|
| 195 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 196 |
+
"step": 17,
|
| 197 |
+
"tokens_per_second_per_gpu": 382.05
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"epoch": 0.04128440366972477,
|
| 201 |
+
"grad_norm": 0.09194924682378769,
|
| 202 |
+
"learning_rate": 8.095238095238096e-05,
|
| 203 |
+
"loss": 0.1067,
|
| 204 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 205 |
+
"memory/max_active (GiB)": 48.81,
|
| 206 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 207 |
+
"step": 18,
|
| 208 |
+
"tokens_per_second_per_gpu": 398.61
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"epoch": 0.04357798165137615,
|
| 212 |
+
"grad_norm": 0.0931428000330925,
|
| 213 |
+
"learning_rate": 8.571428571428571e-05,
|
| 214 |
+
"loss": 0.1088,
|
| 215 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 216 |
+
"memory/max_active (GiB)": 48.93,
|
| 217 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 218 |
+
"step": 19,
|
| 219 |
+
"tokens_per_second_per_gpu": 447.07
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"epoch": 0.045871559633027525,
|
| 223 |
+
"grad_norm": 0.06202042102813721,
|
| 224 |
+
"learning_rate": 9.047619047619048e-05,
|
| 225 |
+
"loss": 0.0962,
|
| 226 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 227 |
+
"memory/max_active (GiB)": 49.0,
|
| 228 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 229 |
+
"step": 20,
|
| 230 |
+
"tokens_per_second_per_gpu": 382.57
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"epoch": 0.0481651376146789,
|
| 234 |
+
"grad_norm": 0.04220607504248619,
|
| 235 |
+
"learning_rate": 9.523809523809524e-05,
|
| 236 |
+
"loss": 0.0963,
|
| 237 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 238 |
+
"memory/max_active (GiB)": 48.85,
|
| 239 |
+
"memory/max_allocated (GiB)": 48.85,
|
| 240 |
+
"step": 21,
|
| 241 |
+
"tokens_per_second_per_gpu": 423.29
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"epoch": 0.05045871559633028,
|
| 245 |
+
"grad_norm": 0.050066106021404266,
|
| 246 |
+
"learning_rate": 0.0001,
|
| 247 |
+
"loss": 0.1032,
|
| 248 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 249 |
+
"memory/max_active (GiB)": 48.89,
|
| 250 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 251 |
+
"step": 22,
|
| 252 |
+
"tokens_per_second_per_gpu": 381.35
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"epoch": 0.052752293577981654,
|
| 256 |
+
"grad_norm": 0.0557384118437767,
|
| 257 |
+
"learning_rate": 9.999856734543933e-05,
|
| 258 |
+
"loss": 0.1025,
|
| 259 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 260 |
+
"memory/max_active (GiB)": 48.97,
|
| 261 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 262 |
+
"step": 23,
|
| 263 |
+
"tokens_per_second_per_gpu": 393.62
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"epoch": 0.05504587155963303,
|
| 267 |
+
"grad_norm": 0.04612402245402336,
|
| 268 |
+
"learning_rate": 9.999426946385727e-05,
|
| 269 |
+
"loss": 0.0985,
|
| 270 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 271 |
+
"memory/max_active (GiB)": 48.89,
|
| 272 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 273 |
+
"step": 24,
|
| 274 |
+
"tokens_per_second_per_gpu": 515.46
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"epoch": 0.05733944954128441,
|
| 278 |
+
"grad_norm": 0.09721734374761581,
|
| 279 |
+
"learning_rate": 9.998710660154898e-05,
|
| 280 |
+
"loss": 0.1062,
|
| 281 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 282 |
+
"memory/max_active (GiB)": 48.81,
|
| 283 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 284 |
+
"step": 25,
|
| 285 |
+
"tokens_per_second_per_gpu": 398.15
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"epoch": 0.05963302752293578,
|
| 289 |
+
"grad_norm": 0.036745935678482056,
|
| 290 |
+
"learning_rate": 9.997707916899079e-05,
|
| 291 |
+
"loss": 0.1045,
|
| 292 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 293 |
+
"memory/max_active (GiB)": 48.97,
|
| 294 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 295 |
+
"step": 26,
|
| 296 |
+
"tokens_per_second_per_gpu": 422.42
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"epoch": 0.06192660550458716,
|
| 300 |
+
"grad_norm": 0.04298936203122139,
|
| 301 |
+
"learning_rate": 9.996418774081658e-05,
|
| 302 |
+
"loss": 0.0923,
|
| 303 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 304 |
+
"memory/max_active (GiB)": 48.89,
|
| 305 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 306 |
+
"step": 27,
|
| 307 |
+
"tokens_per_second_per_gpu": 440.87
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"epoch": 0.06422018348623854,
|
| 311 |
+
"grad_norm": 0.033536747097969055,
|
| 312 |
+
"learning_rate": 9.994843305578486e-05,
|
| 313 |
+
"loss": 0.096,
|
| 314 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 315 |
+
"memory/max_active (GiB)": 48.89,
|
| 316 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 317 |
+
"step": 28,
|
| 318 |
+
"tokens_per_second_per_gpu": 370.28
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"epoch": 0.06651376146788991,
|
| 322 |
+
"grad_norm": 0.03256046772003174,
|
| 323 |
+
"learning_rate": 9.99298160167365e-05,
|
| 324 |
+
"loss": 0.0832,
|
| 325 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 326 |
+
"memory/max_active (GiB)": 48.81,
|
| 327 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 328 |
+
"step": 29,
|
| 329 |
+
"tokens_per_second_per_gpu": 357.19
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"epoch": 0.06880733944954129,
|
| 333 |
+
"grad_norm": 0.042709868401288986,
|
| 334 |
+
"learning_rate": 9.990833769054293e-05,
|
| 335 |
+
"loss": 0.086,
|
| 336 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 337 |
+
"memory/max_active (GiB)": 48.93,
|
| 338 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 339 |
+
"step": 30,
|
| 340 |
+
"tokens_per_second_per_gpu": 441.89
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"epoch": 0.07110091743119266,
|
| 344 |
+
"grad_norm": 0.04347776621580124,
|
| 345 |
+
"learning_rate": 9.988399930804504e-05,
|
| 346 |
+
"loss": 0.1,
|
| 347 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 348 |
+
"memory/max_active (GiB)": 48.77,
|
| 349 |
+
"memory/max_allocated (GiB)": 48.77,
|
| 350 |
+
"step": 31,
|
| 351 |
+
"tokens_per_second_per_gpu": 348.66
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"epoch": 0.07339449541284404,
|
| 355 |
+
"grad_norm": 0.030414681881666183,
|
| 356 |
+
"learning_rate": 9.985680226398261e-05,
|
| 357 |
+
"loss": 0.0811,
|
| 358 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 359 |
+
"memory/max_active (GiB)": 49.0,
|
| 360 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 361 |
+
"step": 32,
|
| 362 |
+
"tokens_per_second_per_gpu": 435.28
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"epoch": 0.07568807339449542,
|
| 366 |
+
"grad_norm": 0.034023743122816086,
|
| 367 |
+
"learning_rate": 9.98267481169144e-05,
|
| 368 |
+
"loss": 0.0743,
|
| 369 |
+
"memory/device_reserved (GiB)": 50.93,
|
| 370 |
+
"memory/max_active (GiB)": 49.0,
|
| 371 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 372 |
+
"step": 33,
|
| 373 |
+
"tokens_per_second_per_gpu": 482.51
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"epoch": 0.0779816513761468,
|
| 377 |
+
"grad_norm": 0.03136487305164337,
|
| 378 |
+
"learning_rate": 9.979383858912885e-05,
|
| 379 |
+
"loss": 0.0739,
|
| 380 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 381 |
+
"memory/max_active (GiB)": 49.08,
|
| 382 |
+
"memory/max_allocated (GiB)": 49.08,
|
| 383 |
+
"step": 34,
|
| 384 |
+
"tokens_per_second_per_gpu": 496.59
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"epoch": 0.08027522935779817,
|
| 388 |
+
"grad_norm": 0.028108298778533936,
|
| 389 |
+
"learning_rate": 9.975807556654537e-05,
|
| 390 |
+
"loss": 0.077,
|
| 391 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 392 |
+
"memory/max_active (GiB)": 48.97,
|
| 393 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 394 |
+
"step": 35,
|
| 395 |
+
"tokens_per_second_per_gpu": 349.1
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"epoch": 0.08256880733944955,
|
| 399 |
+
"grad_norm": 0.028020795434713364,
|
| 400 |
+
"learning_rate": 9.971946109860626e-05,
|
| 401 |
+
"loss": 0.0775,
|
| 402 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 403 |
+
"memory/max_active (GiB)": 48.81,
|
| 404 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 405 |
+
"step": 36,
|
| 406 |
+
"tokens_per_second_per_gpu": 351.02
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"epoch": 0.08486238532110092,
|
| 410 |
+
"grad_norm": 0.028756650164723396,
|
| 411 |
+
"learning_rate": 9.967799739815925e-05,
|
| 412 |
+
"loss": 0.0788,
|
| 413 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 414 |
+
"memory/max_active (GiB)": 48.93,
|
| 415 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 416 |
+
"step": 37,
|
| 417 |
+
"tokens_per_second_per_gpu": 534.52
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"epoch": 0.0871559633027523,
|
| 421 |
+
"grad_norm": 0.02806459739804268,
|
| 422 |
+
"learning_rate": 9.963368684133072e-05,
|
| 423 |
+
"loss": 0.0809,
|
| 424 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 425 |
+
"memory/max_active (GiB)": 48.97,
|
| 426 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 427 |
+
"step": 38,
|
| 428 |
+
"tokens_per_second_per_gpu": 367.94
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"epoch": 0.08944954128440367,
|
| 432 |
+
"grad_norm": 0.02387731708586216,
|
| 433 |
+
"learning_rate": 9.958653196738954e-05,
|
| 434 |
+
"loss": 0.0642,
|
| 435 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 436 |
+
"memory/max_active (GiB)": 49.04,
|
| 437 |
+
"memory/max_allocated (GiB)": 49.04,
|
| 438 |
+
"step": 39,
|
| 439 |
+
"tokens_per_second_per_gpu": 466.74
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"epoch": 0.09174311926605505,
|
| 443 |
+
"grad_norm": 0.027889851480722427,
|
| 444 |
+
"learning_rate": 9.953653547860151e-05,
|
| 445 |
+
"loss": 0.0904,
|
| 446 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 447 |
+
"memory/max_active (GiB)": 48.89,
|
| 448 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 449 |
+
"step": 40,
|
| 450 |
+
"tokens_per_second_per_gpu": 371.51
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"epoch": 0.09403669724770643,
|
| 454 |
+
"grad_norm": 0.031659577041864395,
|
| 455 |
+
"learning_rate": 9.948370024007454e-05,
|
| 456 |
+
"loss": 0.081,
|
| 457 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 458 |
+
"memory/max_active (GiB)": 48.93,
|
| 459 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 460 |
+
"step": 41,
|
| 461 |
+
"tokens_per_second_per_gpu": 479.04
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"epoch": 0.0963302752293578,
|
| 465 |
+
"grad_norm": 0.03186093270778656,
|
| 466 |
+
"learning_rate": 9.942802927959443e-05,
|
| 467 |
+
"loss": 0.0881,
|
| 468 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 469 |
+
"memory/max_active (GiB)": 48.93,
|
| 470 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 471 |
+
"step": 42,
|
| 472 |
+
"tokens_per_second_per_gpu": 364.73
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"epoch": 0.09862385321100918,
|
| 476 |
+
"grad_norm": 0.0313677079975605,
|
| 477 |
+
"learning_rate": 9.936952578745142e-05,
|
| 478 |
+
"loss": 0.0808,
|
| 479 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 480 |
+
"memory/max_active (GiB)": 48.89,
|
| 481 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 482 |
+
"step": 43,
|
| 483 |
+
"tokens_per_second_per_gpu": 418.0
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"epoch": 0.10091743119266056,
|
| 487 |
+
"grad_norm": 0.0264989472925663,
|
| 488 |
+
"learning_rate": 9.93081931162573e-05,
|
| 489 |
+
"loss": 0.0664,
|
| 490 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 491 |
+
"memory/max_active (GiB)": 49.0,
|
| 492 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 493 |
+
"step": 44,
|
| 494 |
+
"tokens_per_second_per_gpu": 439.24
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"epoch": 0.10321100917431193,
|
| 498 |
+
"grad_norm": 0.026272334158420563,
|
| 499 |
+
"learning_rate": 9.92440347807533e-05,
|
| 500 |
+
"loss": 0.0683,
|
| 501 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 502 |
+
"memory/max_active (GiB)": 49.04,
|
| 503 |
+
"memory/max_allocated (GiB)": 49.04,
|
| 504 |
+
"step": 45,
|
| 505 |
+
"tokens_per_second_per_gpu": 482.81
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"epoch": 0.10550458715596331,
|
| 509 |
+
"grad_norm": 0.029066840186715126,
|
| 510 |
+
"learning_rate": 9.91770544576087e-05,
|
| 511 |
+
"loss": 0.0737,
|
| 512 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 513 |
+
"memory/max_active (GiB)": 48.93,
|
| 514 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 515 |
+
"step": 46,
|
| 516 |
+
"tokens_per_second_per_gpu": 389.87
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"epoch": 0.10779816513761468,
|
| 520 |
+
"grad_norm": 0.024542706087231636,
|
| 521 |
+
"learning_rate": 9.910725598521013e-05,
|
| 522 |
+
"loss": 0.0737,
|
| 523 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 524 |
+
"memory/max_active (GiB)": 48.93,
|
| 525 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 526 |
+
"step": 47,
|
| 527 |
+
"tokens_per_second_per_gpu": 473.12
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"epoch": 0.11009174311926606,
|
| 531 |
+
"grad_norm": 0.042941153049468994,
|
| 532 |
+
"learning_rate": 9.90346433634416e-05,
|
| 533 |
+
"loss": 0.0951,
|
| 534 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 535 |
+
"memory/max_active (GiB)": 48.81,
|
| 536 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 537 |
+
"step": 48,
|
| 538 |
+
"tokens_per_second_per_gpu": 325.12
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"epoch": 0.11238532110091744,
|
| 542 |
+
"grad_norm": 0.029044413939118385,
|
| 543 |
+
"learning_rate": 9.89592207534552e-05,
|
| 544 |
+
"loss": 0.0745,
|
| 545 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 546 |
+
"memory/max_active (GiB)": 48.73,
|
| 547 |
+
"memory/max_allocated (GiB)": 48.73,
|
| 548 |
+
"step": 49,
|
| 549 |
+
"tokens_per_second_per_gpu": 315.62
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"epoch": 0.11467889908256881,
|
| 553 |
+
"grad_norm": 0.028920788317918777,
|
| 554 |
+
"learning_rate": 9.888099247743283e-05,
|
| 555 |
+
"loss": 0.0818,
|
| 556 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 557 |
+
"memory/max_active (GiB)": 48.97,
|
| 558 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 559 |
+
"step": 50,
|
| 560 |
+
"tokens_per_second_per_gpu": 441.3
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"epoch": 0.11697247706422019,
|
| 564 |
+
"grad_norm": 0.026095205917954445,
|
| 565 |
+
"learning_rate": 9.879996301833833e-05,
|
| 566 |
+
"loss": 0.0688,
|
| 567 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 568 |
+
"memory/max_active (GiB)": 48.97,
|
| 569 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 570 |
+
"step": 51,
|
| 571 |
+
"tokens_per_second_per_gpu": 386.22
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"epoch": 0.11926605504587157,
|
| 575 |
+
"grad_norm": 0.024823926389217377,
|
| 576 |
+
"learning_rate": 9.871613701966067e-05,
|
| 577 |
+
"loss": 0.0701,
|
| 578 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 579 |
+
"memory/max_active (GiB)": 48.97,
|
| 580 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 581 |
+
"step": 52,
|
| 582 |
+
"tokens_per_second_per_gpu": 511.32
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"epoch": 0.12155963302752294,
|
| 586 |
+
"grad_norm": 0.036093298345804214,
|
| 587 |
+
"learning_rate": 9.862951928514782e-05,
|
| 588 |
+
"loss": 0.0823,
|
| 589 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 590 |
+
"memory/max_active (GiB)": 49.0,
|
| 591 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 592 |
+
"step": 53,
|
| 593 |
+
"tokens_per_second_per_gpu": 323.2
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"epoch": 0.12385321100917432,
|
| 597 |
+
"grad_norm": 0.03257686272263527,
|
| 598 |
+
"learning_rate": 9.854011477853146e-05,
|
| 599 |
+
"loss": 0.0769,
|
| 600 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 601 |
+
"memory/max_active (GiB)": 49.04,
|
| 602 |
+
"memory/max_allocated (GiB)": 49.04,
|
| 603 |
+
"step": 54,
|
| 604 |
+
"tokens_per_second_per_gpu": 447.62
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"epoch": 0.12614678899082568,
|
| 608 |
+
"grad_norm": 0.03413158655166626,
|
| 609 |
+
"learning_rate": 9.844792862324258e-05,
|
| 610 |
+
"loss": 0.0728,
|
| 611 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 612 |
+
"memory/max_active (GiB)": 48.97,
|
| 613 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 614 |
+
"step": 55,
|
| 615 |
+
"tokens_per_second_per_gpu": 451.05
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"epoch": 0.12844036697247707,
|
| 619 |
+
"grad_norm": 0.02947932481765747,
|
| 620 |
+
"learning_rate": 9.835296610211779e-05,
|
| 621 |
+
"loss": 0.0713,
|
| 622 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 623 |
+
"memory/max_active (GiB)": 48.97,
|
| 624 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 625 |
+
"step": 56,
|
| 626 |
+
"tokens_per_second_per_gpu": 457.44
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"epoch": 0.13073394495412843,
|
| 630 |
+
"grad_norm": 0.0220651775598526,
|
| 631 |
+
"learning_rate": 9.825523265709666e-05,
|
| 632 |
+
"loss": 0.0607,
|
| 633 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 634 |
+
"memory/max_active (GiB)": 49.0,
|
| 635 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 636 |
+
"step": 57,
|
| 637 |
+
"tokens_per_second_per_gpu": 456.49
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"epoch": 0.13302752293577982,
|
| 641 |
+
"grad_norm": 0.026394842192530632,
|
| 642 |
+
"learning_rate": 9.815473388890983e-05,
|
| 643 |
+
"loss": 0.0716,
|
| 644 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 645 |
+
"memory/max_active (GiB)": 48.93,
|
| 646 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 647 |
+
"step": 58,
|
| 648 |
+
"tokens_per_second_per_gpu": 393.95
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"epoch": 0.1353211009174312,
|
| 652 |
+
"grad_norm": 0.027936838567256927,
|
| 653 |
+
"learning_rate": 9.805147555675805e-05,
|
| 654 |
+
"loss": 0.0738,
|
| 655 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 656 |
+
"memory/max_active (GiB)": 49.0,
|
| 657 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 658 |
+
"step": 59,
|
| 659 |
+
"tokens_per_second_per_gpu": 464.83
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"epoch": 0.13761467889908258,
|
| 663 |
+
"grad_norm": 0.023982539772987366,
|
| 664 |
+
"learning_rate": 9.794546357798208e-05,
|
| 665 |
+
"loss": 0.0608,
|
| 666 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 667 |
+
"memory/max_active (GiB)": 48.97,
|
| 668 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 669 |
+
"step": 60,
|
| 670 |
+
"tokens_per_second_per_gpu": 450.66
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"epoch": 0.13990825688073394,
|
| 674 |
+
"grad_norm": 0.027479754760861397,
|
| 675 |
+
"learning_rate": 9.783670402772379e-05,
|
| 676 |
+
"loss": 0.0672,
|
| 677 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 678 |
+
"memory/max_active (GiB)": 49.0,
|
| 679 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 680 |
+
"step": 61,
|
| 681 |
+
"tokens_per_second_per_gpu": 455.94
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"epoch": 0.14220183486238533,
|
| 685 |
+
"grad_norm": 0.02617599070072174,
|
| 686 |
+
"learning_rate": 9.772520313857775e-05,
|
| 687 |
+
"loss": 0.0804,
|
| 688 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 689 |
+
"memory/max_active (GiB)": 48.97,
|
| 690 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 691 |
+
"step": 62,
|
| 692 |
+
"tokens_per_second_per_gpu": 394.85
|
| 693 |
+
},
|
| 694 |
+
{
|
| 695 |
+
"epoch": 0.1444954128440367,
|
| 696 |
+
"grad_norm": 0.030884992331266403,
|
| 697 |
+
"learning_rate": 9.761096730023432e-05,
|
| 698 |
+
"loss": 0.0768,
|
| 699 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 700 |
+
"memory/max_active (GiB)": 48.89,
|
| 701 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 702 |
+
"step": 63,
|
| 703 |
+
"tokens_per_second_per_gpu": 446.63
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"epoch": 0.14678899082568808,
|
| 707 |
+
"grad_norm": 0.027579287067055702,
|
| 708 |
+
"learning_rate": 9.749400305911322e-05,
|
| 709 |
+
"loss": 0.0659,
|
| 710 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 711 |
+
"memory/max_active (GiB)": 48.93,
|
| 712 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 713 |
+
"step": 64,
|
| 714 |
+
"tokens_per_second_per_gpu": 484.34
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"epoch": 0.14908256880733944,
|
| 718 |
+
"grad_norm": 0.030303625389933586,
|
| 719 |
+
"learning_rate": 9.737431711798864e-05,
|
| 720 |
+
"loss": 0.0645,
|
| 721 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 722 |
+
"memory/max_active (GiB)": 48.85,
|
| 723 |
+
"memory/max_allocated (GiB)": 48.85,
|
| 724 |
+
"step": 65,
|
| 725 |
+
"tokens_per_second_per_gpu": 437.07
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"epoch": 0.15137614678899083,
|
| 729 |
+
"grad_norm": 0.027446158230304718,
|
| 730 |
+
"learning_rate": 9.725191633560491e-05,
|
| 731 |
+
"loss": 0.08,
|
| 732 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 733 |
+
"memory/max_active (GiB)": 48.97,
|
| 734 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 735 |
+
"step": 66,
|
| 736 |
+
"tokens_per_second_per_gpu": 411.5
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"epoch": 0.1536697247706422,
|
| 740 |
+
"grad_norm": 0.03177177160978317,
|
| 741 |
+
"learning_rate": 9.712680772628364e-05,
|
| 742 |
+
"loss": 0.0801,
|
| 743 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 744 |
+
"memory/max_active (GiB)": 48.93,
|
| 745 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 746 |
+
"step": 67,
|
| 747 |
+
"tokens_per_second_per_gpu": 429.18
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"epoch": 0.1559633027522936,
|
| 751 |
+
"grad_norm": 0.0288909412920475,
|
| 752 |
+
"learning_rate": 9.69989984595216e-05,
|
| 753 |
+
"loss": 0.0707,
|
| 754 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 755 |
+
"memory/max_active (GiB)": 49.04,
|
| 756 |
+
"memory/max_allocated (GiB)": 49.04,
|
| 757 |
+
"step": 68,
|
| 758 |
+
"tokens_per_second_per_gpu": 408.55
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"epoch": 0.15825688073394495,
|
| 762 |
+
"grad_norm": 0.02751251310110092,
|
| 763 |
+
"learning_rate": 9.686849585957994e-05,
|
| 764 |
+
"loss": 0.0736,
|
| 765 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 766 |
+
"memory/max_active (GiB)": 48.89,
|
| 767 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 768 |
+
"step": 69,
|
| 769 |
+
"tokens_per_second_per_gpu": 420.0
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"epoch": 0.16055045871559634,
|
| 773 |
+
"grad_norm": 0.023428168147802353,
|
| 774 |
+
"learning_rate": 9.673530740506447e-05,
|
| 775 |
+
"loss": 0.0648,
|
| 776 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 777 |
+
"memory/max_active (GiB)": 48.97,
|
| 778 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 779 |
+
"step": 70,
|
| 780 |
+
"tokens_per_second_per_gpu": 512.59
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"epoch": 0.1628440366972477,
|
| 784 |
+
"grad_norm": 0.031534772366285324,
|
| 785 |
+
"learning_rate": 9.659944072849707e-05,
|
| 786 |
+
"loss": 0.0818,
|
| 787 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 788 |
+
"memory/max_active (GiB)": 48.93,
|
| 789 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 790 |
+
"step": 71,
|
| 791 |
+
"tokens_per_second_per_gpu": 456.9
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"epoch": 0.1651376146788991,
|
| 795 |
+
"grad_norm": 0.027208171784877777,
|
| 796 |
+
"learning_rate": 9.646090361587827e-05,
|
| 797 |
+
"loss": 0.0709,
|
| 798 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 799 |
+
"memory/max_active (GiB)": 48.93,
|
| 800 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 801 |
+
"step": 72,
|
| 802 |
+
"tokens_per_second_per_gpu": 378.48
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"epoch": 0.16743119266055045,
|
| 806 |
+
"grad_norm": 0.02961639314889908,
|
| 807 |
+
"learning_rate": 9.631970400624113e-05,
|
| 808 |
+
"loss": 0.0764,
|
| 809 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 810 |
+
"memory/max_active (GiB)": 48.81,
|
| 811 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 812 |
+
"step": 73,
|
| 813 |
+
"tokens_per_second_per_gpu": 316.38
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"epoch": 0.16972477064220184,
|
| 817 |
+
"grad_norm": 0.027367761358618736,
|
| 818 |
+
"learning_rate": 9.617584999119625e-05,
|
| 819 |
+
"loss": 0.0672,
|
| 820 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 821 |
+
"memory/max_active (GiB)": 48.85,
|
| 822 |
+
"memory/max_allocated (GiB)": 48.85,
|
| 823 |
+
"step": 74,
|
| 824 |
+
"tokens_per_second_per_gpu": 402.44
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"epoch": 0.1720183486238532,
|
| 828 |
+
"grad_norm": 0.030167503282427788,
|
| 829 |
+
"learning_rate": 9.602934981446803e-05,
|
| 830 |
+
"loss": 0.0743,
|
| 831 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 832 |
+
"memory/max_active (GiB)": 48.97,
|
| 833 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 834 |
+
"step": 75,
|
| 835 |
+
"tokens_per_second_per_gpu": 531.29
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"epoch": 0.1743119266055046,
|
| 839 |
+
"grad_norm": 0.0387263149023056,
|
| 840 |
+
"learning_rate": 9.588021187142235e-05,
|
| 841 |
+
"loss": 0.083,
|
| 842 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 843 |
+
"memory/max_active (GiB)": 48.81,
|
| 844 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 845 |
+
"step": 76,
|
| 846 |
+
"tokens_per_second_per_gpu": 424.59
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"epoch": 0.17660550458715596,
|
| 850 |
+
"grad_norm": 0.027617793530225754,
|
| 851 |
+
"learning_rate": 9.572844470858537e-05,
|
| 852 |
+
"loss": 0.0769,
|
| 853 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 854 |
+
"memory/max_active (GiB)": 48.97,
|
| 855 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 856 |
+
"step": 77,
|
| 857 |
+
"tokens_per_second_per_gpu": 461.9
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"epoch": 0.17889908256880735,
|
| 861 |
+
"grad_norm": 0.029771512374281883,
|
| 862 |
+
"learning_rate": 9.557405702315381e-05,
|
| 863 |
+
"loss": 0.0658,
|
| 864 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 865 |
+
"memory/max_active (GiB)": 48.93,
|
| 866 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 867 |
+
"step": 78,
|
| 868 |
+
"tokens_per_second_per_gpu": 475.77
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"epoch": 0.1811926605504587,
|
| 872 |
+
"grad_norm": 0.029358675703406334,
|
| 873 |
+
"learning_rate": 9.541705766249655e-05,
|
| 874 |
+
"loss": 0.066,
|
| 875 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 876 |
+
"memory/max_active (GiB)": 49.0,
|
| 877 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 878 |
+
"step": 79,
|
| 879 |
+
"tokens_per_second_per_gpu": 489.33
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"epoch": 0.1834862385321101,
|
| 883 |
+
"grad_norm": 0.023111771792173386,
|
| 884 |
+
"learning_rate": 9.525745562364756e-05,
|
| 885 |
+
"loss": 0.066,
|
| 886 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 887 |
+
"memory/max_active (GiB)": 48.97,
|
| 888 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 889 |
+
"step": 80,
|
| 890 |
+
"tokens_per_second_per_gpu": 382.84
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"epoch": 0.18577981651376146,
|
| 894 |
+
"grad_norm": 0.029448291286826134,
|
| 895 |
+
"learning_rate": 9.509526005279044e-05,
|
| 896 |
+
"loss": 0.0608,
|
| 897 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 898 |
+
"memory/max_active (GiB)": 48.81,
|
| 899 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 900 |
+
"step": 81,
|
| 901 |
+
"tokens_per_second_per_gpu": 415.81
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"epoch": 0.18807339449541285,
|
| 905 |
+
"grad_norm": 0.02794116735458374,
|
| 906 |
+
"learning_rate": 9.493048024473412e-05,
|
| 907 |
+
"loss": 0.0736,
|
| 908 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 909 |
+
"memory/max_active (GiB)": 49.0,
|
| 910 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 911 |
+
"step": 82,
|
| 912 |
+
"tokens_per_second_per_gpu": 400.02
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"epoch": 0.19036697247706422,
|
| 916 |
+
"grad_norm": 0.04534873738884926,
|
| 917 |
+
"learning_rate": 9.476312564238034e-05,
|
| 918 |
+
"loss": 0.0673,
|
| 919 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 920 |
+
"memory/max_active (GiB)": 48.93,
|
| 921 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 922 |
+
"step": 83,
|
| 923 |
+
"tokens_per_second_per_gpu": 369.1
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"epoch": 0.1926605504587156,
|
| 927 |
+
"grad_norm": 0.026540853083133698,
|
| 928 |
+
"learning_rate": 9.459320583618252e-05,
|
| 929 |
+
"loss": 0.0558,
|
| 930 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 931 |
+
"memory/max_active (GiB)": 49.04,
|
| 932 |
+
"memory/max_allocated (GiB)": 49.04,
|
| 933 |
+
"step": 84,
|
| 934 |
+
"tokens_per_second_per_gpu": 611.61
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"epoch": 0.19495412844036697,
|
| 938 |
+
"grad_norm": 0.03129403293132782,
|
| 939 |
+
"learning_rate": 9.442073056359604e-05,
|
| 940 |
+
"loss": 0.0741,
|
| 941 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 942 |
+
"memory/max_active (GiB)": 48.93,
|
| 943 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 944 |
+
"step": 85,
|
| 945 |
+
"tokens_per_second_per_gpu": 492.16
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"epoch": 0.19724770642201836,
|
| 949 |
+
"grad_norm": 0.027526071295142174,
|
| 950 |
+
"learning_rate": 9.424570970852034e-05,
|
| 951 |
+
"loss": 0.0733,
|
| 952 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 953 |
+
"memory/max_active (GiB)": 48.85,
|
| 954 |
+
"memory/max_allocated (GiB)": 48.85,
|
| 955 |
+
"step": 86,
|
| 956 |
+
"tokens_per_second_per_gpu": 427.76
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"epoch": 0.19954128440366972,
|
| 960 |
+
"grad_norm": 0.025468798354268074,
|
| 961 |
+
"learning_rate": 9.406815330073244e-05,
|
| 962 |
+
"loss": 0.0613,
|
| 963 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 964 |
+
"memory/max_active (GiB)": 48.93,
|
| 965 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 966 |
+
"step": 87,
|
| 967 |
+
"tokens_per_second_per_gpu": 462.82
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"epoch": 0.2018348623853211,
|
| 971 |
+
"grad_norm": 0.029043635353446007,
|
| 972 |
+
"learning_rate": 9.388807151531229e-05,
|
| 973 |
+
"loss": 0.0758,
|
| 974 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 975 |
+
"memory/max_active (GiB)": 48.89,
|
| 976 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 977 |
+
"step": 88,
|
| 978 |
+
"tokens_per_second_per_gpu": 353.91
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"epoch": 0.20412844036697247,
|
| 982 |
+
"grad_norm": 0.03196391835808754,
|
| 983 |
+
"learning_rate": 9.37054746720595e-05,
|
| 984 |
+
"loss": 0.0678,
|
| 985 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 986 |
+
"memory/max_active (GiB)": 49.0,
|
| 987 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 988 |
+
"step": 89,
|
| 989 |
+
"tokens_per_second_per_gpu": 411.71
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"epoch": 0.20642201834862386,
|
| 993 |
+
"grad_norm": 0.033272091299295425,
|
| 994 |
+
"learning_rate": 9.352037323490208e-05,
|
| 995 |
+
"loss": 0.0722,
|
| 996 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 997 |
+
"memory/max_active (GiB)": 48.85,
|
| 998 |
+
"memory/max_allocated (GiB)": 48.85,
|
| 999 |
+
"step": 90,
|
| 1000 |
+
"tokens_per_second_per_gpu": 398.81
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"epoch": 0.20871559633027523,
|
| 1004 |
+
"grad_norm": 0.03096090629696846,
|
| 1005 |
+
"learning_rate": 9.333277781129678e-05,
|
| 1006 |
+
"loss": 0.0809,
|
| 1007 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1008 |
+
"memory/max_active (GiB)": 48.89,
|
| 1009 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 1010 |
+
"step": 91,
|
| 1011 |
+
"tokens_per_second_per_gpu": 393.81
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"epoch": 0.21100917431192662,
|
| 1015 |
+
"grad_norm": 0.026267440989613533,
|
| 1016 |
+
"learning_rate": 9.314269915162114e-05,
|
| 1017 |
+
"loss": 0.0604,
|
| 1018 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1019 |
+
"memory/max_active (GiB)": 49.0,
|
| 1020 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 1021 |
+
"step": 92,
|
| 1022 |
+
"tokens_per_second_per_gpu": 453.78
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"epoch": 0.21330275229357798,
|
| 1026 |
+
"grad_norm": 0.02608361840248108,
|
| 1027 |
+
"learning_rate": 9.295014814855753e-05,
|
| 1028 |
+
"loss": 0.0663,
|
| 1029 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1030 |
+
"memory/max_active (GiB)": 48.93,
|
| 1031 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 1032 |
+
"step": 93,
|
| 1033 |
+
"tokens_per_second_per_gpu": 430.47
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"epoch": 0.21559633027522937,
|
| 1037 |
+
"grad_norm": 0.024829065427184105,
|
| 1038 |
+
"learning_rate": 9.275513583646884e-05,
|
| 1039 |
+
"loss": 0.0598,
|
| 1040 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1041 |
+
"memory/max_active (GiB)": 48.81,
|
| 1042 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 1043 |
+
"step": 94,
|
| 1044 |
+
"tokens_per_second_per_gpu": 384.01
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"epoch": 0.21788990825688073,
|
| 1048 |
+
"grad_norm": 0.03385532647371292,
|
| 1049 |
+
"learning_rate": 9.255767339076622e-05,
|
| 1050 |
+
"loss": 0.0719,
|
| 1051 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1052 |
+
"memory/max_active (GiB)": 48.93,
|
| 1053 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 1054 |
+
"step": 95,
|
| 1055 |
+
"tokens_per_second_per_gpu": 440.35
|
| 1056 |
+
},
|
| 1057 |
+
{
|
| 1058 |
+
"epoch": 0.22018348623853212,
|
| 1059 |
+
"grad_norm": 0.029608217999339104,
|
| 1060 |
+
"learning_rate": 9.23577721272686e-05,
|
| 1061 |
+
"loss": 0.094,
|
| 1062 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1063 |
+
"memory/max_active (GiB)": 49.04,
|
| 1064 |
+
"memory/max_allocated (GiB)": 49.04,
|
| 1065 |
+
"step": 96,
|
| 1066 |
+
"tokens_per_second_per_gpu": 485.56
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"epoch": 0.22247706422018348,
|
| 1070 |
+
"grad_norm": 0.02693762816488743,
|
| 1071 |
+
"learning_rate": 9.215544350155422e-05,
|
| 1072 |
+
"loss": 0.0755,
|
| 1073 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1074 |
+
"memory/max_active (GiB)": 48.97,
|
| 1075 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 1076 |
+
"step": 97,
|
| 1077 |
+
"tokens_per_second_per_gpu": 432.16
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"epoch": 0.22477064220183487,
|
| 1081 |
+
"grad_norm": 0.02771424688398838,
|
| 1082 |
+
"learning_rate": 9.195069910830427e-05,
|
| 1083 |
+
"loss": 0.0692,
|
| 1084 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1085 |
+
"memory/max_active (GiB)": 48.89,
|
| 1086 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 1087 |
+
"step": 98,
|
| 1088 |
+
"tokens_per_second_per_gpu": 412.93
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"epoch": 0.22706422018348624,
|
| 1092 |
+
"grad_norm": 0.02276022732257843,
|
| 1093 |
+
"learning_rate": 9.174355068063828e-05,
|
| 1094 |
+
"loss": 0.0637,
|
| 1095 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1096 |
+
"memory/max_active (GiB)": 49.0,
|
| 1097 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 1098 |
+
"step": 99,
|
| 1099 |
+
"tokens_per_second_per_gpu": 418.24
|
| 1100 |
+
},
|
| 1101 |
+
{
|
| 1102 |
+
"epoch": 0.22935779816513763,
|
| 1103 |
+
"grad_norm": 0.026155246421694756,
|
| 1104 |
+
"learning_rate": 9.15340100894418e-05,
|
| 1105 |
+
"loss": 0.0698,
|
| 1106 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1107 |
+
"memory/max_active (GiB)": 48.97,
|
| 1108 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 1109 |
+
"step": 100,
|
| 1110 |
+
"tokens_per_second_per_gpu": 403.6
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"epoch": 0.231651376146789,
|
| 1114 |
+
"grad_norm": 0.022778436541557312,
|
| 1115 |
+
"learning_rate": 9.132208934268622e-05,
|
| 1116 |
+
"loss": 0.0654,
|
| 1117 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1118 |
+
"memory/max_active (GiB)": 49.0,
|
| 1119 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 1120 |
+
"step": 101,
|
| 1121 |
+
"tokens_per_second_per_gpu": 491.32
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"epoch": 0.23394495412844038,
|
| 1125 |
+
"grad_norm": 0.04701945558190346,
|
| 1126 |
+
"learning_rate": 9.110780058474052e-05,
|
| 1127 |
+
"loss": 0.0741,
|
| 1128 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1129 |
+
"memory/max_active (GiB)": 48.85,
|
| 1130 |
+
"memory/max_allocated (GiB)": 48.85,
|
| 1131 |
+
"step": 102,
|
| 1132 |
+
"tokens_per_second_per_gpu": 444.03
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"epoch": 0.23623853211009174,
|
| 1136 |
+
"grad_norm": 0.030211661010980606,
|
| 1137 |
+
"learning_rate": 9.08911560956753e-05,
|
| 1138 |
+
"loss": 0.0789,
|
| 1139 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1140 |
+
"memory/max_active (GiB)": 48.97,
|
| 1141 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 1142 |
+
"step": 103,
|
| 1143 |
+
"tokens_per_second_per_gpu": 514.87
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"epoch": 0.23853211009174313,
|
| 1147 |
+
"grad_norm": 0.026159459725022316,
|
| 1148 |
+
"learning_rate": 9.067216829055922e-05,
|
| 1149 |
+
"loss": 0.0637,
|
| 1150 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1151 |
+
"memory/max_active (GiB)": 48.97,
|
| 1152 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 1153 |
+
"step": 104,
|
| 1154 |
+
"tokens_per_second_per_gpu": 446.47
|
| 1155 |
+
},
|
| 1156 |
+
{
|
| 1157 |
+
"epoch": 0.2408256880733945,
|
| 1158 |
+
"grad_norm": 0.02918146923184395,
|
| 1159 |
+
"learning_rate": 9.045084971874738e-05,
|
| 1160 |
+
"loss": 0.0727,
|
| 1161 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1162 |
+
"memory/max_active (GiB)": 48.89,
|
| 1163 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 1164 |
+
"step": 105,
|
| 1165 |
+
"tokens_per_second_per_gpu": 425.37
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"epoch": 0.24311926605504589,
|
| 1169 |
+
"grad_norm": 0.03170175105333328,
|
| 1170 |
+
"learning_rate": 9.022721306316222e-05,
|
| 1171 |
+
"loss": 0.0857,
|
| 1172 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1173 |
+
"memory/max_active (GiB)": 48.85,
|
| 1174 |
+
"memory/max_allocated (GiB)": 48.85,
|
| 1175 |
+
"step": 106,
|
| 1176 |
+
"tokens_per_second_per_gpu": 301.79
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"epoch": 0.24541284403669725,
|
| 1180 |
+
"grad_norm": 0.032674651592969894,
|
| 1181 |
+
"learning_rate": 9.000127113956674e-05,
|
| 1182 |
+
"loss": 0.0795,
|
| 1183 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1184 |
+
"memory/max_active (GiB)": 48.77,
|
| 1185 |
+
"memory/max_allocated (GiB)": 48.77,
|
| 1186 |
+
"step": 107,
|
| 1187 |
+
"tokens_per_second_per_gpu": 338.41
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"epoch": 0.24770642201834864,
|
| 1191 |
+
"grad_norm": 0.026492780074477196,
|
| 1192 |
+
"learning_rate": 8.977303689583e-05,
|
| 1193 |
+
"loss": 0.0775,
|
| 1194 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1195 |
+
"memory/max_active (GiB)": 48.89,
|
| 1196 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 1197 |
+
"step": 108,
|
| 1198 |
+
"tokens_per_second_per_gpu": 383.35
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"epoch": 0.25,
|
| 1202 |
+
"grad_norm": 0.0290480125695467,
|
| 1203 |
+
"learning_rate": 8.954252341118523e-05,
|
| 1204 |
+
"loss": 0.076,
|
| 1205 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1206 |
+
"memory/max_active (GiB)": 48.93,
|
| 1207 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 1208 |
+
"step": 109,
|
| 1209 |
+
"tokens_per_second_per_gpu": 382.78
|
| 1210 |
+
},
|
| 1211 |
+
{
|
| 1212 |
+
"epoch": 0.25229357798165136,
|
| 1213 |
+
"grad_norm": 0.030473977327346802,
|
| 1214 |
+
"learning_rate": 8.930974389548023e-05,
|
| 1215 |
+
"loss": 0.0761,
|
| 1216 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1217 |
+
"memory/max_active (GiB)": 48.93,
|
| 1218 |
+
"memory/max_allocated (GiB)": 48.93,
|
| 1219 |
+
"step": 110,
|
| 1220 |
+
"tokens_per_second_per_gpu": 476.56
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"epoch": 0.2545871559633027,
|
| 1224 |
+
"grad_norm": 0.02930077351629734,
|
| 1225 |
+
"learning_rate": 8.90747116884204e-05,
|
| 1226 |
+
"loss": 0.0691,
|
| 1227 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1228 |
+
"memory/max_active (GiB)": 48.89,
|
| 1229 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 1230 |
+
"step": 111,
|
| 1231 |
+
"tokens_per_second_per_gpu": 441.2
|
| 1232 |
+
},
|
| 1233 |
+
{
|
| 1234 |
+
"epoch": 0.25688073394495414,
|
| 1235 |
+
"grad_norm": 0.02884151227772236,
|
| 1236 |
+
"learning_rate": 8.883744025880428e-05,
|
| 1237 |
+
"loss": 0.0806,
|
| 1238 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1239 |
+
"memory/max_active (GiB)": 49.0,
|
| 1240 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 1241 |
+
"step": 112,
|
| 1242 |
+
"tokens_per_second_per_gpu": 406.96
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"epoch": 0.2591743119266055,
|
| 1246 |
+
"grad_norm": 0.02618175558745861,
|
| 1247 |
+
"learning_rate": 8.859794320375168e-05,
|
| 1248 |
+
"loss": 0.0677,
|
| 1249 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1250 |
+
"memory/max_active (GiB)": 48.89,
|
| 1251 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 1252 |
+
"step": 113,
|
| 1253 |
+
"tokens_per_second_per_gpu": 430.04
|
| 1254 |
+
},
|
| 1255 |
+
{
|
| 1256 |
+
"epoch": 0.26146788990825687,
|
| 1257 |
+
"grad_norm": 0.026963548734784126,
|
| 1258 |
+
"learning_rate": 8.835623424792452e-05,
|
| 1259 |
+
"loss": 0.0694,
|
| 1260 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1261 |
+
"memory/max_active (GiB)": 48.89,
|
| 1262 |
+
"memory/max_allocated (GiB)": 48.89,
|
| 1263 |
+
"step": 114,
|
| 1264 |
+
"tokens_per_second_per_gpu": 351.9
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"epoch": 0.26376146788990823,
|
| 1268 |
+
"grad_norm": 0.021544624119997025,
|
| 1269 |
+
"learning_rate": 8.811232724274035e-05,
|
| 1270 |
+
"loss": 0.0613,
|
| 1271 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1272 |
+
"memory/max_active (GiB)": 48.97,
|
| 1273 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 1274 |
+
"step": 115,
|
| 1275 |
+
"tokens_per_second_per_gpu": 480.22
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"epoch": 0.26605504587155965,
|
| 1279 |
+
"grad_norm": 0.03840009495615959,
|
| 1280 |
+
"learning_rate": 8.786623616557847e-05,
|
| 1281 |
+
"loss": 0.0723,
|
| 1282 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1283 |
+
"memory/max_active (GiB)": 49.0,
|
| 1284 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 1285 |
+
"step": 116,
|
| 1286 |
+
"tokens_per_second_per_gpu": 433.18
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"epoch": 0.268348623853211,
|
| 1290 |
+
"grad_norm": 0.022571468725800514,
|
| 1291 |
+
"learning_rate": 8.761797511897906e-05,
|
| 1292 |
+
"loss": 0.065,
|
| 1293 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1294 |
+
"memory/max_active (GiB)": 49.0,
|
| 1295 |
+
"memory/max_allocated (GiB)": 49.0,
|
| 1296 |
+
"step": 117,
|
| 1297 |
+
"tokens_per_second_per_gpu": 421.92
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"epoch": 0.2706422018348624,
|
| 1301 |
+
"grad_norm": 0.02688576467335224,
|
| 1302 |
+
"learning_rate": 8.736755832983497e-05,
|
| 1303 |
+
"loss": 0.0772,
|
| 1304 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1305 |
+
"memory/max_active (GiB)": 48.81,
|
| 1306 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 1307 |
+
"step": 118,
|
| 1308 |
+
"tokens_per_second_per_gpu": 354.3
|
| 1309 |
+
},
|
| 1310 |
+
{
|
| 1311 |
+
"epoch": 0.27293577981651373,
|
| 1312 |
+
"grad_norm": 0.025858785957098007,
|
| 1313 |
+
"learning_rate": 8.711500014857634e-05,
|
| 1314 |
+
"loss": 0.0745,
|
| 1315 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1316 |
+
"memory/max_active (GiB)": 48.81,
|
| 1317 |
+
"memory/max_allocated (GiB)": 48.81,
|
| 1318 |
+
"step": 119,
|
| 1319 |
+
"tokens_per_second_per_gpu": 365.46
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"epoch": 0.27522935779816515,
|
| 1323 |
+
"grad_norm": 0.02718079835176468,
|
| 1324 |
+
"learning_rate": 8.686031504834843e-05,
|
| 1325 |
+
"loss": 0.0759,
|
| 1326 |
+
"memory/device_reserved (GiB)": 50.97,
|
| 1327 |
+
"memory/max_active (GiB)": 48.97,
|
| 1328 |
+
"memory/max_allocated (GiB)": 48.97,
|
| 1329 |
+
"step": 120,
|
| 1330 |
+
"tokens_per_second_per_gpu": 426.06
|
| 1331 |
+
}
|
| 1332 |
+
],
|
| 1333 |
+
"logging_steps": 1,
|
| 1334 |
+
"max_steps": 436,
|
| 1335 |
+
"num_input_tokens_seen": 0,
|
| 1336 |
+
"num_train_epochs": 1,
|
| 1337 |
+
"save_steps": 60,
|
| 1338 |
+
"stateful_callbacks": {
|
| 1339 |
+
"TrainerControl": {
|
| 1340 |
+
"args": {
|
| 1341 |
+
"should_epoch_stop": false,
|
| 1342 |
+
"should_evaluate": false,
|
| 1343 |
+
"should_log": false,
|
| 1344 |
+
"should_save": true,
|
| 1345 |
+
"should_training_stop": false
|
| 1346 |
+
},
|
| 1347 |
+
"attributes": {}
|
| 1348 |
+
}
|
| 1349 |
+
},
|
| 1350 |
+
"total_flos": 1.4689538053609882e+18,
|
| 1351 |
+
"train_batch_size": 16,
|
| 1352 |
+
"trial_name": null,
|
| 1353 |
+
"trial_params": null
|
| 1354 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c707753c7c6de02188b65d6b093332951c4a62dfe324581b6feeb5efb9b2a64
|
| 3 |
+
size 9233
|
zero_to_fp32.py
ADDED
|
@@ -0,0 +1,760 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
|
| 3 |
+
# Copyright (c) Microsoft Corporation.
|
| 4 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 5 |
+
|
| 6 |
+
# DeepSpeed Team
|
| 7 |
+
|
| 8 |
+
# This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
|
| 9 |
+
# copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
|
| 10 |
+
# the future. Once extracted, the weights don't require DeepSpeed and can be used in any
|
| 11 |
+
# application.
|
| 12 |
+
#
|
| 13 |
+
# example:
|
| 14 |
+
# python zero_to_fp32.py . output_dir/
|
| 15 |
+
# or
|
| 16 |
+
# python zero_to_fp32.py . output_dir/ --safe_serialization
|
| 17 |
+
|
| 18 |
+
import argparse
|
| 19 |
+
import torch
|
| 20 |
+
import glob
|
| 21 |
+
import math
|
| 22 |
+
import os
|
| 23 |
+
import re
|
| 24 |
+
import gc
|
| 25 |
+
import json
|
| 26 |
+
import numpy as np
|
| 27 |
+
from tqdm import tqdm
|
| 28 |
+
from collections import OrderedDict
|
| 29 |
+
from dataclasses import dataclass
|
| 30 |
+
|
| 31 |
+
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
|
| 32 |
+
# DeepSpeed data structures it has to be available in the current python environment.
|
| 33 |
+
from deepspeed.utils import logger
|
| 34 |
+
from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
|
| 35 |
+
FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
|
| 36 |
+
FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
@dataclass
|
| 40 |
+
class zero_model_state:
|
| 41 |
+
buffers: dict()
|
| 42 |
+
param_shapes: dict()
|
| 43 |
+
shared_params: list
|
| 44 |
+
ds_version: int
|
| 45 |
+
frozen_param_shapes: dict()
|
| 46 |
+
frozen_param_fragments: dict()
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
debug = 0
|
| 50 |
+
|
| 51 |
+
# load to cpu
|
| 52 |
+
device = torch.device('cpu')
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def atoi(text):
|
| 56 |
+
return int(text) if text.isdigit() else text
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def natural_keys(text):
|
| 60 |
+
'''
|
| 61 |
+
alist.sort(key=natural_keys) sorts in human order
|
| 62 |
+
http://nedbatchelder.com/blog/200712/human_sorting.html
|
| 63 |
+
(See Toothy's implementation in the comments)
|
| 64 |
+
'''
|
| 65 |
+
return [atoi(c) for c in re.split(r'(\d+)', text)]
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def get_model_state_file(checkpoint_dir, zero_stage):
|
| 69 |
+
if not os.path.isdir(checkpoint_dir):
|
| 70 |
+
raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
|
| 71 |
+
|
| 72 |
+
# there should be only one file
|
| 73 |
+
if zero_stage <= 2:
|
| 74 |
+
file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
|
| 75 |
+
elif zero_stage == 3:
|
| 76 |
+
file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
|
| 77 |
+
|
| 78 |
+
if not os.path.exists(file):
|
| 79 |
+
raise FileNotFoundError(f"can't find model states file at '{file}'")
|
| 80 |
+
|
| 81 |
+
return file
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def get_checkpoint_files(checkpoint_dir, glob_pattern):
|
| 85 |
+
# XXX: need to test that this simple glob rule works for multi-node setup too
|
| 86 |
+
ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
|
| 87 |
+
|
| 88 |
+
if len(ckpt_files) == 0:
|
| 89 |
+
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
|
| 90 |
+
|
| 91 |
+
return ckpt_files
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def get_optim_files(checkpoint_dir):
|
| 95 |
+
return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
def get_model_state_files(checkpoint_dir):
|
| 99 |
+
return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def parse_model_states(files):
|
| 103 |
+
zero_model_states = []
|
| 104 |
+
for file in files:
|
| 105 |
+
state_dict = torch.load(file, map_location=device, weights_only=False)
|
| 106 |
+
|
| 107 |
+
if BUFFER_NAMES not in state_dict:
|
| 108 |
+
raise ValueError(f"{file} is not a model state checkpoint")
|
| 109 |
+
buffer_names = state_dict[BUFFER_NAMES]
|
| 110 |
+
if debug:
|
| 111 |
+
print("Found buffers:", buffer_names)
|
| 112 |
+
|
| 113 |
+
# recover just the buffers while restoring them to fp32 if they were saved in fp16
|
| 114 |
+
buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
|
| 115 |
+
param_shapes = state_dict[PARAM_SHAPES]
|
| 116 |
+
|
| 117 |
+
# collect parameters that are included in param_shapes
|
| 118 |
+
param_names = []
|
| 119 |
+
for s in param_shapes:
|
| 120 |
+
for name in s.keys():
|
| 121 |
+
param_names.append(name)
|
| 122 |
+
|
| 123 |
+
# update with frozen parameters
|
| 124 |
+
frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
|
| 125 |
+
if frozen_param_shapes is not None:
|
| 126 |
+
if debug:
|
| 127 |
+
print(f"Found frozen_param_shapes: {frozen_param_shapes}")
|
| 128 |
+
param_names += list(frozen_param_shapes.keys())
|
| 129 |
+
|
| 130 |
+
# handle shared params
|
| 131 |
+
shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
|
| 132 |
+
|
| 133 |
+
ds_version = state_dict.get(DS_VERSION, None)
|
| 134 |
+
|
| 135 |
+
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
|
| 136 |
+
|
| 137 |
+
z_model_state = zero_model_state(buffers=buffers,
|
| 138 |
+
param_shapes=param_shapes,
|
| 139 |
+
shared_params=shared_params,
|
| 140 |
+
ds_version=ds_version,
|
| 141 |
+
frozen_param_shapes=frozen_param_shapes,
|
| 142 |
+
frozen_param_fragments=frozen_param_fragments)
|
| 143 |
+
zero_model_states.append(z_model_state)
|
| 144 |
+
|
| 145 |
+
return zero_model_states
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def parse_optim_states(files, ds_checkpoint_dir):
|
| 149 |
+
total_files = len(files)
|
| 150 |
+
state_dicts = []
|
| 151 |
+
for f in tqdm(files, desc='Loading checkpoint shards'):
|
| 152 |
+
state_dict = torch.load(f, map_location=device, mmap=True, weights_only=False)
|
| 153 |
+
# immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
|
| 154 |
+
# and also handle the case where it was already removed by another helper script
|
| 155 |
+
state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
|
| 156 |
+
state_dicts.append(state_dict)
|
| 157 |
+
|
| 158 |
+
if ZERO_STAGE not in state_dicts[0][OPTIMIZER_STATE_DICT]:
|
| 159 |
+
raise ValueError(f"{files[0]} is not a zero checkpoint")
|
| 160 |
+
zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
|
| 161 |
+
world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
|
| 162 |
+
|
| 163 |
+
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert
|
| 164 |
+
# parameters can be different from data parallelism for non-expert parameters. So we can just
|
| 165 |
+
# use the max of the partition_count to get the dp world_size.
|
| 166 |
+
|
| 167 |
+
if type(world_size) is list:
|
| 168 |
+
world_size = max(world_size)
|
| 169 |
+
|
| 170 |
+
if world_size != total_files:
|
| 171 |
+
raise ValueError(
|
| 172 |
+
f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
|
| 173 |
+
"Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
|
| 174 |
+
)
|
| 175 |
+
|
| 176 |
+
# the groups are named differently in each stage
|
| 177 |
+
if zero_stage <= 2:
|
| 178 |
+
fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
|
| 179 |
+
elif zero_stage == 3:
|
| 180 |
+
fp32_groups_key = FP32_FLAT_GROUPS
|
| 181 |
+
else:
|
| 182 |
+
raise ValueError(f"unknown zero stage {zero_stage}")
|
| 183 |
+
|
| 184 |
+
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
|
| 185 |
+
return zero_stage, world_size, fp32_flat_groups
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
|
| 189 |
+
"""
|
| 190 |
+
Returns fp32 state_dict reconstructed from ds checkpoint
|
| 191 |
+
|
| 192 |
+
Args:
|
| 193 |
+
- ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
|
| 194 |
+
|
| 195 |
+
"""
|
| 196 |
+
print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
|
| 197 |
+
|
| 198 |
+
optim_files = get_optim_files(ds_checkpoint_dir)
|
| 199 |
+
zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
|
| 200 |
+
print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
|
| 201 |
+
|
| 202 |
+
model_files = get_model_state_files(ds_checkpoint_dir)
|
| 203 |
+
|
| 204 |
+
zero_model_states = parse_model_states(model_files)
|
| 205 |
+
print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
|
| 206 |
+
|
| 207 |
+
if zero_stage <= 2:
|
| 208 |
+
return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 209 |
+
exclude_frozen_parameters)
|
| 210 |
+
elif zero_stage == 3:
|
| 211 |
+
return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 212 |
+
exclude_frozen_parameters)
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def _zero2_merge_frozen_params(state_dict, zero_model_states):
|
| 216 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 217 |
+
return
|
| 218 |
+
|
| 219 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 220 |
+
frozen_param_fragments = zero_model_states[0].frozen_param_fragments
|
| 221 |
+
|
| 222 |
+
if debug:
|
| 223 |
+
num_elem = sum(s.numel() for s in frozen_param_shapes.values())
|
| 224 |
+
print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 225 |
+
|
| 226 |
+
wanted_params = len(frozen_param_shapes)
|
| 227 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 228 |
+
avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
|
| 229 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 230 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 231 |
+
|
| 232 |
+
total_params = 0
|
| 233 |
+
total_numel = 0
|
| 234 |
+
for name, shape in frozen_param_shapes.items():
|
| 235 |
+
total_params += 1
|
| 236 |
+
unpartitioned_numel = shape.numel()
|
| 237 |
+
total_numel += unpartitioned_numel
|
| 238 |
+
|
| 239 |
+
state_dict[name] = frozen_param_fragments[name]
|
| 240 |
+
|
| 241 |
+
if debug:
|
| 242 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 243 |
+
|
| 244 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
def _has_callable(obj, fn):
|
| 248 |
+
attr = getattr(obj, fn, None)
|
| 249 |
+
return callable(attr)
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 253 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 254 |
+
|
| 255 |
+
# Reconstruction protocol:
|
| 256 |
+
#
|
| 257 |
+
# XXX: document this
|
| 258 |
+
|
| 259 |
+
if debug:
|
| 260 |
+
for i in range(world_size):
|
| 261 |
+
for j in range(len(fp32_flat_groups[0])):
|
| 262 |
+
print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
|
| 263 |
+
|
| 264 |
+
# XXX: memory usage doubles here (zero2)
|
| 265 |
+
num_param_groups = len(fp32_flat_groups[0])
|
| 266 |
+
merged_single_partition_of_fp32_groups = []
|
| 267 |
+
for i in range(num_param_groups):
|
| 268 |
+
merged_partitions = [sd[i] for sd in fp32_flat_groups]
|
| 269 |
+
full_single_fp32_vector = torch.cat(merged_partitions, 0)
|
| 270 |
+
merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
|
| 271 |
+
avail_numel = sum(
|
| 272 |
+
[full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
|
| 273 |
+
|
| 274 |
+
if debug:
|
| 275 |
+
wanted_params = sum([len(shapes) for shapes in param_shapes])
|
| 276 |
+
wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
|
| 277 |
+
# not asserting if there is a mismatch due to possible padding
|
| 278 |
+
print(f"Have {avail_numel} numels to process.")
|
| 279 |
+
print(f"Need {wanted_numel} numels in {wanted_params} params.")
|
| 280 |
+
|
| 281 |
+
# params
|
| 282 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 283 |
+
# out-of-core computing solution
|
| 284 |
+
total_numel = 0
|
| 285 |
+
total_params = 0
|
| 286 |
+
for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
|
| 287 |
+
offset = 0
|
| 288 |
+
avail_numel = full_single_fp32_vector.numel()
|
| 289 |
+
for name, shape in shapes.items():
|
| 290 |
+
|
| 291 |
+
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
|
| 292 |
+
total_numel += unpartitioned_numel
|
| 293 |
+
total_params += 1
|
| 294 |
+
|
| 295 |
+
if debug:
|
| 296 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 297 |
+
state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
|
| 298 |
+
offset += unpartitioned_numel
|
| 299 |
+
|
| 300 |
+
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
|
| 301 |
+
# avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
|
| 302 |
+
# paddings performed in the code it's almost impossible to predict the exact numbers w/o the
|
| 303 |
+
# live optimizer object, so we are checking that the numbers are within the right range
|
| 304 |
+
align_to = 2 * world_size
|
| 305 |
+
|
| 306 |
+
def zero2_align(x):
|
| 307 |
+
return align_to * math.ceil(x / align_to)
|
| 308 |
+
|
| 309 |
+
if debug:
|
| 310 |
+
print(f"original offset={offset}, avail_numel={avail_numel}")
|
| 311 |
+
|
| 312 |
+
offset = zero2_align(offset)
|
| 313 |
+
avail_numel = zero2_align(avail_numel)
|
| 314 |
+
|
| 315 |
+
if debug:
|
| 316 |
+
print(f"aligned offset={offset}, avail_numel={avail_numel}")
|
| 317 |
+
|
| 318 |
+
# Sanity check
|
| 319 |
+
if offset != avail_numel:
|
| 320 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 321 |
+
|
| 322 |
+
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 326 |
+
exclude_frozen_parameters):
|
| 327 |
+
state_dict = OrderedDict()
|
| 328 |
+
|
| 329 |
+
# buffers
|
| 330 |
+
buffers = zero_model_states[0].buffers
|
| 331 |
+
state_dict.update(buffers)
|
| 332 |
+
if debug:
|
| 333 |
+
print(f"added {len(buffers)} buffers")
|
| 334 |
+
|
| 335 |
+
if not exclude_frozen_parameters:
|
| 336 |
+
_zero2_merge_frozen_params(state_dict, zero_model_states)
|
| 337 |
+
|
| 338 |
+
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 339 |
+
|
| 340 |
+
# recover shared parameters
|
| 341 |
+
for pair in zero_model_states[0].shared_params:
|
| 342 |
+
if pair[1] in state_dict:
|
| 343 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 344 |
+
|
| 345 |
+
return state_dict
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
def zero3_partitioned_param_info(unpartitioned_numel, world_size):
|
| 349 |
+
remainder = unpartitioned_numel % world_size
|
| 350 |
+
padding_numel = (world_size - remainder) if remainder else 0
|
| 351 |
+
partitioned_numel = math.ceil(unpartitioned_numel / world_size)
|
| 352 |
+
return partitioned_numel, padding_numel
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
|
| 356 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 357 |
+
return
|
| 358 |
+
|
| 359 |
+
if debug:
|
| 360 |
+
for i in range(world_size):
|
| 361 |
+
num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
|
| 362 |
+
print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 363 |
+
|
| 364 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 365 |
+
wanted_params = len(frozen_param_shapes)
|
| 366 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 367 |
+
avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
|
| 368 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 369 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 370 |
+
|
| 371 |
+
total_params = 0
|
| 372 |
+
total_numel = 0
|
| 373 |
+
for name, shape in zero_model_states[0].frozen_param_shapes.items():
|
| 374 |
+
total_params += 1
|
| 375 |
+
unpartitioned_numel = shape.numel()
|
| 376 |
+
total_numel += unpartitioned_numel
|
| 377 |
+
|
| 378 |
+
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
|
| 379 |
+
state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 380 |
+
|
| 381 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 382 |
+
|
| 383 |
+
if debug:
|
| 384 |
+
print(
|
| 385 |
+
f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 386 |
+
)
|
| 387 |
+
|
| 388 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
class GatheredTensor:
|
| 392 |
+
"""
|
| 393 |
+
A pseudo tensor that collects partitioned weights.
|
| 394 |
+
It is more memory efficient when there are multiple groups.
|
| 395 |
+
"""
|
| 396 |
+
|
| 397 |
+
def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape):
|
| 398 |
+
self.flat_groups = flat_groups
|
| 399 |
+
self.flat_groups_offset = flat_groups_offset
|
| 400 |
+
self.offset = offset
|
| 401 |
+
self.partitioned_numel = partitioned_numel
|
| 402 |
+
self.shape = shape
|
| 403 |
+
self.dtype = self.flat_groups[0][0].dtype
|
| 404 |
+
|
| 405 |
+
def contiguous(self):
|
| 406 |
+
"""
|
| 407 |
+
Merge partitioned weights from flat_groups into a single tensor.
|
| 408 |
+
"""
|
| 409 |
+
end_idx = self.offset + self.partitioned_numel
|
| 410 |
+
world_size = len(self.flat_groups)
|
| 411 |
+
pad_flat_param_chunks = []
|
| 412 |
+
|
| 413 |
+
for rank_i in range(world_size):
|
| 414 |
+
# for each rank, we need to collect weights from related group/groups
|
| 415 |
+
flat_groups_at_rank_i = self.flat_groups[rank_i]
|
| 416 |
+
start_group_id = None
|
| 417 |
+
end_group_id = None
|
| 418 |
+
for group_id in range(len(self.flat_groups_offset)):
|
| 419 |
+
if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]:
|
| 420 |
+
start_group_id = group_id
|
| 421 |
+
if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]:
|
| 422 |
+
end_group_id = group_id
|
| 423 |
+
break
|
| 424 |
+
# collect weights from related group/groups
|
| 425 |
+
for group_id in range(start_group_id, end_group_id + 1):
|
| 426 |
+
flat_tensor = flat_groups_at_rank_i[group_id]
|
| 427 |
+
start_offset = self.offset - self.flat_groups_offset[group_id]
|
| 428 |
+
end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id]
|
| 429 |
+
pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
|
| 430 |
+
|
| 431 |
+
# collect weights from all ranks
|
| 432 |
+
pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0)
|
| 433 |
+
param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous()
|
| 434 |
+
return param
|
| 435 |
+
|
| 436 |
+
|
| 437 |
+
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 438 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 439 |
+
avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
|
| 440 |
+
|
| 441 |
+
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
|
| 442 |
+
# param, re-consolidating each param, while dealing with padding if any
|
| 443 |
+
|
| 444 |
+
# merge list of dicts, preserving order
|
| 445 |
+
param_shapes = {k: v for d in param_shapes for k, v in d.items()}
|
| 446 |
+
|
| 447 |
+
if debug:
|
| 448 |
+
for i in range(world_size):
|
| 449 |
+
print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
|
| 450 |
+
|
| 451 |
+
wanted_params = len(param_shapes)
|
| 452 |
+
wanted_numel = sum(shape.numel() for shape in param_shapes.values())
|
| 453 |
+
# not asserting if there is a mismatch due to possible padding
|
| 454 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 455 |
+
print(f"Trainable params: Have {avail_numel} numels to process.")
|
| 456 |
+
print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
|
| 457 |
+
|
| 458 |
+
# params
|
| 459 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 460 |
+
# out-of-core computing solution
|
| 461 |
+
offset = 0
|
| 462 |
+
total_numel = 0
|
| 463 |
+
total_params = 0
|
| 464 |
+
flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]]))
|
| 465 |
+
for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'):
|
| 466 |
+
unpartitioned_numel = shape.numel()
|
| 467 |
+
total_numel += unpartitioned_numel
|
| 468 |
+
total_params += 1
|
| 469 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 470 |
+
|
| 471 |
+
if debug:
|
| 472 |
+
print(
|
| 473 |
+
f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 474 |
+
)
|
| 475 |
+
|
| 476 |
+
# memory efficient tensor
|
| 477 |
+
tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape)
|
| 478 |
+
state_dict[name] = tensor
|
| 479 |
+
offset += partitioned_numel
|
| 480 |
+
|
| 481 |
+
offset *= world_size
|
| 482 |
+
|
| 483 |
+
# Sanity check
|
| 484 |
+
if offset != avail_numel:
|
| 485 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 486 |
+
|
| 487 |
+
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 491 |
+
exclude_frozen_parameters):
|
| 492 |
+
state_dict = OrderedDict()
|
| 493 |
+
|
| 494 |
+
# buffers
|
| 495 |
+
buffers = zero_model_states[0].buffers
|
| 496 |
+
state_dict.update(buffers)
|
| 497 |
+
if debug:
|
| 498 |
+
print(f"added {len(buffers)} buffers")
|
| 499 |
+
|
| 500 |
+
if not exclude_frozen_parameters:
|
| 501 |
+
_zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
|
| 502 |
+
|
| 503 |
+
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 504 |
+
|
| 505 |
+
# recover shared parameters
|
| 506 |
+
for pair in zero_model_states[0].shared_params:
|
| 507 |
+
if pair[1] in state_dict:
|
| 508 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 509 |
+
|
| 510 |
+
return state_dict
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
def to_torch_tensor(state_dict, return_empty_tensor=False):
|
| 514 |
+
"""
|
| 515 |
+
Convert state_dict of GatheredTensor to torch tensor
|
| 516 |
+
"""
|
| 517 |
+
torch_state_dict = {}
|
| 518 |
+
converted_tensors = {}
|
| 519 |
+
for name, tensor in state_dict.items():
|
| 520 |
+
tensor_id = id(tensor)
|
| 521 |
+
if tensor_id in converted_tensors: # shared tensors
|
| 522 |
+
shared_tensor = torch_state_dict[converted_tensors[tensor_id]]
|
| 523 |
+
torch_state_dict[name] = shared_tensor
|
| 524 |
+
else:
|
| 525 |
+
converted_tensors[tensor_id] = name
|
| 526 |
+
if return_empty_tensor:
|
| 527 |
+
torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype)
|
| 528 |
+
else:
|
| 529 |
+
torch_state_dict[name] = tensor.contiguous()
|
| 530 |
+
return torch_state_dict
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 534 |
+
tag=None,
|
| 535 |
+
exclude_frozen_parameters=False,
|
| 536 |
+
lazy_mode=False):
|
| 537 |
+
"""
|
| 538 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
|
| 539 |
+
``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
|
| 540 |
+
via a model hub.
|
| 541 |
+
|
| 542 |
+
Args:
|
| 543 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder
|
| 544 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14``
|
| 545 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 546 |
+
- ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient.
|
| 547 |
+
Convert the pesduo tensor to torch tensor by ``.contiguous()``
|
| 548 |
+
|
| 549 |
+
Returns:
|
| 550 |
+
- pytorch ``state_dict``
|
| 551 |
+
|
| 552 |
+
A typical usage might be ::
|
| 553 |
+
|
| 554 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 555 |
+
# do the training and checkpoint saving
|
| 556 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
|
| 557 |
+
model = model.cpu() # move to cpu
|
| 558 |
+
model.load_state_dict(state_dict)
|
| 559 |
+
# submit to model hub or save the model to share with others
|
| 560 |
+
|
| 561 |
+
In this example the ``model`` will no longer be usable in the deepspeed context of the same
|
| 562 |
+
application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 563 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 564 |
+
|
| 565 |
+
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
|
| 566 |
+
|
| 567 |
+
Note: the above usage may not work if your application doesn't have sufficient free CPU memory.
|
| 568 |
+
You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
|
| 569 |
+
the checkpoint. Or you can load state_dict in lazy mode ::
|
| 570 |
+
|
| 571 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 572 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu
|
| 573 |
+
for name, lazy_tensor in state_dict.item():
|
| 574 |
+
tensor = lazy_tensor.contiguous() # to cpu
|
| 575 |
+
print(name, tensor)
|
| 576 |
+
# del tensor to release memory if it no longer in use
|
| 577 |
+
"""
|
| 578 |
+
if tag is None:
|
| 579 |
+
latest_path = os.path.join(checkpoint_dir, 'latest')
|
| 580 |
+
if os.path.isfile(latest_path):
|
| 581 |
+
with open(latest_path, 'r') as fd:
|
| 582 |
+
tag = fd.read().strip()
|
| 583 |
+
else:
|
| 584 |
+
raise ValueError(f"Unable to find 'latest' file at {latest_path}")
|
| 585 |
+
|
| 586 |
+
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
|
| 587 |
+
|
| 588 |
+
if not os.path.isdir(ds_checkpoint_dir):
|
| 589 |
+
raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
|
| 590 |
+
|
| 591 |
+
state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
|
| 592 |
+
if lazy_mode:
|
| 593 |
+
return state_dict
|
| 594 |
+
else:
|
| 595 |
+
return to_torch_tensor(state_dict)
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
|
| 599 |
+
output_dir,
|
| 600 |
+
max_shard_size="5GB",
|
| 601 |
+
safe_serialization=False,
|
| 602 |
+
tag=None,
|
| 603 |
+
exclude_frozen_parameters=False):
|
| 604 |
+
"""
|
| 605 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
|
| 606 |
+
loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
|
| 607 |
+
|
| 608 |
+
Args:
|
| 609 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 610 |
+
- ``output_dir``: directory to the pytorch fp32 state_dict output files
|
| 611 |
+
- ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
|
| 612 |
+
- ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
|
| 613 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
|
| 614 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 615 |
+
"""
|
| 616 |
+
|
| 617 |
+
# Dependency pre-check
|
| 618 |
+
if safe_serialization:
|
| 619 |
+
try:
|
| 620 |
+
from safetensors.torch import save_file
|
| 621 |
+
except ImportError:
|
| 622 |
+
print('If you want to use `safe_serialization`, please `pip install safetensors`')
|
| 623 |
+
raise
|
| 624 |
+
if max_shard_size is not None:
|
| 625 |
+
try:
|
| 626 |
+
from huggingface_hub import split_torch_state_dict_into_shards
|
| 627 |
+
except ImportError:
|
| 628 |
+
print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
|
| 629 |
+
raise
|
| 630 |
+
|
| 631 |
+
# Convert zero checkpoint to state_dict
|
| 632 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 633 |
+
tag,
|
| 634 |
+
exclude_frozen_parameters,
|
| 635 |
+
lazy_mode=True)
|
| 636 |
+
|
| 637 |
+
# Shard the model if it is too big.
|
| 638 |
+
weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
|
| 639 |
+
if max_shard_size is not None:
|
| 640 |
+
filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
|
| 641 |
+
# an memory-efficient approach for sharding
|
| 642 |
+
empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True)
|
| 643 |
+
state_dict_split = split_torch_state_dict_into_shards(empty_state_dict,
|
| 644 |
+
filename_pattern=filename_pattern,
|
| 645 |
+
max_shard_size=max_shard_size)
|
| 646 |
+
else:
|
| 647 |
+
from collections import namedtuple
|
| 648 |
+
StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
|
| 649 |
+
state_dict_split = StateDictSplit(is_sharded=False,
|
| 650 |
+
filename_to_tensors={weights_name: list(state_dict.keys())})
|
| 651 |
+
|
| 652 |
+
# Save the model by shard
|
| 653 |
+
os.makedirs(output_dir, exist_ok=True)
|
| 654 |
+
filename_to_tensors = state_dict_split.filename_to_tensors.items()
|
| 655 |
+
for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
|
| 656 |
+
shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors}
|
| 657 |
+
shard_state_dict = to_torch_tensor(shard_state_dict)
|
| 658 |
+
output_path = os.path.join(output_dir, shard_file)
|
| 659 |
+
if safe_serialization:
|
| 660 |
+
save_file(shard_state_dict, output_path, metadata={"format": "pt"})
|
| 661 |
+
else:
|
| 662 |
+
torch.save(shard_state_dict, output_path)
|
| 663 |
+
# release the memory of current shard
|
| 664 |
+
for tensor_name in list(shard_state_dict.keys()):
|
| 665 |
+
del state_dict[tensor_name]
|
| 666 |
+
del shard_state_dict[tensor_name]
|
| 667 |
+
del shard_state_dict
|
| 668 |
+
gc.collect()
|
| 669 |
+
|
| 670 |
+
# Save index if sharded
|
| 671 |
+
if state_dict_split.is_sharded:
|
| 672 |
+
index = {
|
| 673 |
+
"metadata": state_dict_split.metadata,
|
| 674 |
+
"weight_map": state_dict_split.tensor_to_filename,
|
| 675 |
+
}
|
| 676 |
+
save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
|
| 677 |
+
save_index_file = os.path.join(output_dir, save_index_file)
|
| 678 |
+
with open(save_index_file, "w", encoding="utf-8") as f:
|
| 679 |
+
content = json.dumps(index, indent=2, sort_keys=True) + "\n"
|
| 680 |
+
f.write(content)
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
|
| 684 |
+
"""
|
| 685 |
+
1. Put the provided model to cpu
|
| 686 |
+
2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
|
| 687 |
+
3. Load it into the provided model
|
| 688 |
+
|
| 689 |
+
Args:
|
| 690 |
+
- ``model``: the model object to update
|
| 691 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 692 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
|
| 693 |
+
|
| 694 |
+
Returns:
|
| 695 |
+
- ``model`: modified model
|
| 696 |
+
|
| 697 |
+
Make sure you have plenty of CPU memory available before you call this function. If you don't
|
| 698 |
+
have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
|
| 699 |
+
conveniently placed for you in the checkpoint folder.
|
| 700 |
+
|
| 701 |
+
A typical usage might be ::
|
| 702 |
+
|
| 703 |
+
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
|
| 704 |
+
model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
|
| 705 |
+
# submit to model hub or save the model to share with others
|
| 706 |
+
|
| 707 |
+
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
|
| 708 |
+
of the same application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 709 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 710 |
+
|
| 711 |
+
"""
|
| 712 |
+
logger.info("Extracting fp32 weights")
|
| 713 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
|
| 714 |
+
|
| 715 |
+
logger.info("Overwriting model with fp32 weights")
|
| 716 |
+
model = model.cpu()
|
| 717 |
+
model.load_state_dict(state_dict, strict=False)
|
| 718 |
+
|
| 719 |
+
return model
|
| 720 |
+
|
| 721 |
+
|
| 722 |
+
if __name__ == "__main__":
|
| 723 |
+
parser = argparse.ArgumentParser()
|
| 724 |
+
parser.add_argument("checkpoint_dir",
|
| 725 |
+
type=str,
|
| 726 |
+
help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
|
| 727 |
+
parser.add_argument("output_dir",
|
| 728 |
+
type=str,
|
| 729 |
+
help="directory to the pytorch fp32 state_dict output files"
|
| 730 |
+
"(e.g. path/checkpoint-12-output/)")
|
| 731 |
+
parser.add_argument(
|
| 732 |
+
"--max_shard_size",
|
| 733 |
+
type=str,
|
| 734 |
+
default="5GB",
|
| 735 |
+
help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
|
| 736 |
+
"lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
|
| 737 |
+
"We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
|
| 738 |
+
"without CPU OOM issues.")
|
| 739 |
+
parser.add_argument(
|
| 740 |
+
"--safe_serialization",
|
| 741 |
+
default=False,
|
| 742 |
+
action='store_true',
|
| 743 |
+
help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
|
| 744 |
+
parser.add_argument("-t",
|
| 745 |
+
"--tag",
|
| 746 |
+
type=str,
|
| 747 |
+
default=None,
|
| 748 |
+
help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
|
| 749 |
+
parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
|
| 750 |
+
parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
|
| 751 |
+
args = parser.parse_args()
|
| 752 |
+
|
| 753 |
+
debug = args.debug
|
| 754 |
+
|
| 755 |
+
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
|
| 756 |
+
args.output_dir,
|
| 757 |
+
max_shard_size=args.max_shard_size,
|
| 758 |
+
safe_serialization=args.safe_serialization,
|
| 759 |
+
tag=args.tag,
|
| 760 |
+
exclude_frozen_parameters=args.exclude_frozen_parameters)
|