Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +4 -0
- README.md +193 -0
- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- checkpoint-1107/README.md +202 -0
- checkpoint-1107/adapter_config.json +34 -0
- checkpoint-1107/adapter_model.safetensors +3 -0
- checkpoint-1107/global_step1107/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
- checkpoint-1107/global_step1107/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
- checkpoint-1107/global_step1107/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
- checkpoint-1107/global_step1107/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
- checkpoint-1107/global_step1107/zero_pp_rank_0_mp_rank_00_model_states.pt +3 -0
- checkpoint-1107/global_step1107/zero_pp_rank_1_mp_rank_00_model_states.pt +3 -0
- checkpoint-1107/global_step1107/zero_pp_rank_2_mp_rank_00_model_states.pt +3 -0
- checkpoint-1107/global_step1107/zero_pp_rank_3_mp_rank_00_model_states.pt +3 -0
- checkpoint-1107/latest +1 -0
- checkpoint-1107/rng_state_0.pth +3 -0
- checkpoint-1107/rng_state_1.pth +3 -0
- checkpoint-1107/rng_state_2.pth +3 -0
- checkpoint-1107/rng_state_3.pth +3 -0
- checkpoint-1107/scheduler.pt +3 -0
- checkpoint-1107/special_tokens_map.json +30 -0
- checkpoint-1107/tokenizer.json +3 -0
- checkpoint-1107/tokenizer_config.json +0 -0
- checkpoint-1107/trainer_state.json +0 -0
- checkpoint-1107/training_args.bin +3 -0
- checkpoint-1107/zero_to_fp32.py +604 -0
- checkpoint-369/README.md +202 -0
- checkpoint-369/adapter_config.json +34 -0
- checkpoint-369/adapter_model.safetensors +3 -0
- checkpoint-369/global_step369/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
- checkpoint-369/global_step369/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
- checkpoint-369/global_step369/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
- checkpoint-369/global_step369/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
- checkpoint-369/global_step369/zero_pp_rank_0_mp_rank_00_model_states.pt +3 -0
- checkpoint-369/global_step369/zero_pp_rank_1_mp_rank_00_model_states.pt +3 -0
- checkpoint-369/global_step369/zero_pp_rank_2_mp_rank_00_model_states.pt +3 -0
- checkpoint-369/global_step369/zero_pp_rank_3_mp_rank_00_model_states.pt +3 -0
- checkpoint-369/latest +1 -0
- checkpoint-369/rng_state_0.pth +3 -0
- checkpoint-369/rng_state_1.pth +3 -0
- checkpoint-369/rng_state_2.pth +3 -0
- checkpoint-369/rng_state_3.pth +3 -0
- checkpoint-369/scheduler.pt +3 -0
- checkpoint-369/special_tokens_map.json +30 -0
- checkpoint-369/tokenizer.json +3 -0
- checkpoint-369/tokenizer_config.json +0 -0
- checkpoint-369/trainer_state.json +2616 -0
- checkpoint-369/training_args.bin +3 -0
- checkpoint-369/zero_to_fp32.py +604 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
checkpoint-1107/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
checkpoint-369/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
checkpoint-738/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: peft
|
| 3 |
+
tags:
|
| 4 |
+
- generated_from_trainer
|
| 5 |
+
base_model: mistralai_Mistral-Nemo-Instruct-2407
|
| 6 |
+
model-index:
|
| 7 |
+
- name: 12b-out
|
| 8 |
+
results: []
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 12 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 13 |
+
|
| 14 |
+
[<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
|
| 15 |
+
<details><summary>See axolotl config</summary>
|
| 16 |
+
|
| 17 |
+
axolotl version: `0.5.0`
|
| 18 |
+
```yaml
|
| 19 |
+
base_model: mistralai_Mistral-Nemo-Instruct-2407
|
| 20 |
+
model_type: AutoModelForCausalLM
|
| 21 |
+
tokenizer_type: AutoTokenizer
|
| 22 |
+
|
| 23 |
+
plugins:
|
| 24 |
+
- axolotl.integrations.liger.LigerPlugin
|
| 25 |
+
liger_rope: true
|
| 26 |
+
liger_rms_norm: true
|
| 27 |
+
liger_swiglu: true
|
| 28 |
+
liger_fused_linear_cross_entropy: true
|
| 29 |
+
|
| 30 |
+
load_in_8bit: false
|
| 31 |
+
load_in_4bit: false
|
| 32 |
+
strict: false
|
| 33 |
+
|
| 34 |
+
datasets:
|
| 35 |
+
- path: NewEden/OpenCAI-ShareGPT
|
| 36 |
+
type: chat_template
|
| 37 |
+
# chat_template: mistralv3tekken
|
| 38 |
+
roles_to_train: ["gpt"]
|
| 39 |
+
field_messages: conversations
|
| 40 |
+
message_field_role: from
|
| 41 |
+
message_field_content: value
|
| 42 |
+
train_on_eos: turn
|
| 43 |
+
- path: NewEden/vanilla-backrooms-claude-sharegpt
|
| 44 |
+
type: chat_template
|
| 45 |
+
# chat_template: mistralv3tekken
|
| 46 |
+
roles_to_train: ["gpt"]
|
| 47 |
+
field_messages: conversations
|
| 48 |
+
message_field_role: from
|
| 49 |
+
message_field_content: value
|
| 50 |
+
train_on_eos: turn
|
| 51 |
+
- path: anthracite-org/kalo_opus_misc_240827
|
| 52 |
+
type: chat_template
|
| 53 |
+
# chat_template: mistralv3tekken
|
| 54 |
+
roles_to_train: ["gpt"]
|
| 55 |
+
field_messages: conversations
|
| 56 |
+
message_field_role: from
|
| 57 |
+
message_field_content: value
|
| 58 |
+
train_on_eos: turn
|
| 59 |
+
- path: anthracite-org/kalo_misc_part2
|
| 60 |
+
type: chat_template
|
| 61 |
+
# chat_template: mistralv3tekken
|
| 62 |
+
roles_to_train: ["gpt"]
|
| 63 |
+
field_messages: conversations
|
| 64 |
+
message_field_role: from
|
| 65 |
+
message_field_content: value
|
| 66 |
+
train_on_eos: turn
|
| 67 |
+
- path: NewEden/Roleplay-Logs-V2
|
| 68 |
+
type: chat_template
|
| 69 |
+
# chat_template: mistralv3tekken
|
| 70 |
+
roles_to_train: ["gpt"]
|
| 71 |
+
field_messages: conversations
|
| 72 |
+
message_field_role: from
|
| 73 |
+
message_field_content: value
|
| 74 |
+
train_on_eos: turn
|
| 75 |
+
dataset_prepared_path: dataset_prepared
|
| 76 |
+
val_set_size: 0.0
|
| 77 |
+
output_dir: 12b-out
|
| 78 |
+
|
| 79 |
+
sequence_len: 16384
|
| 80 |
+
sample_packing: true
|
| 81 |
+
pad_to_sequence_len: true
|
| 82 |
+
|
| 83 |
+
adapter: lora
|
| 84 |
+
lora_model_dir:
|
| 85 |
+
lora_r: 128
|
| 86 |
+
lora_alpha: 16
|
| 87 |
+
lora_dropout: 0.05
|
| 88 |
+
#lora_target_linear:
|
| 89 |
+
#lora_fan_in_fan_out: true
|
| 90 |
+
peft_use_rslora: true
|
| 91 |
+
lora_target_modules:
|
| 92 |
+
- gate_proj
|
| 93 |
+
- down_proj
|
| 94 |
+
- up_proj
|
| 95 |
+
- q_proj
|
| 96 |
+
- v_proj
|
| 97 |
+
- k_proj
|
| 98 |
+
- o_proj
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
wandb_project: 12b-control
|
| 102 |
+
wandb_entity:
|
| 103 |
+
wandb_watch:
|
| 104 |
+
wandb_name: 12b-control
|
| 105 |
+
wandb_log_model:
|
| 106 |
+
|
| 107 |
+
gradient_accumulation_steps: 2
|
| 108 |
+
micro_batch_size: 1
|
| 109 |
+
num_epochs: 2
|
| 110 |
+
optimizer: paged_adamw_8bit
|
| 111 |
+
lr_scheduler: cosine
|
| 112 |
+
learning_rate: 0.00001
|
| 113 |
+
|
| 114 |
+
train_on_inputs: false
|
| 115 |
+
group_by_length: false
|
| 116 |
+
bf16: auto
|
| 117 |
+
fp16:
|
| 118 |
+
tf32: false
|
| 119 |
+
|
| 120 |
+
gradient_checkpointing: unsloth
|
| 121 |
+
#gradient_checkpointing_kwargs:
|
| 122 |
+
# use_reentrant: false
|
| 123 |
+
early_stopping_patience:
|
| 124 |
+
resume_from_checkpoint:
|
| 125 |
+
local_rank:
|
| 126 |
+
logging_steps: 1
|
| 127 |
+
xformers_attention:
|
| 128 |
+
flash_attention: true
|
| 129 |
+
|
| 130 |
+
warmup_steps: 40
|
| 131 |
+
evals_per_epoch:
|
| 132 |
+
eval_table_size:
|
| 133 |
+
eval_max_new_tokens:
|
| 134 |
+
saves_per_epoch: 2
|
| 135 |
+
debug:
|
| 136 |
+
deepspeed: /workspace/axolotl/deepspeed_configs/zero3_bf16.json
|
| 137 |
+
weight_decay: 0.01
|
| 138 |
+
fsdp:
|
| 139 |
+
fsdp_config:
|
| 140 |
+
special_tokens:
|
| 141 |
+
pad_token: <pad>
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
</details><br>
|
| 147 |
+
|
| 148 |
+
# 12b-out
|
| 149 |
+
|
| 150 |
+
This model was trained from scratch on the None dataset.
|
| 151 |
+
|
| 152 |
+
## Model description
|
| 153 |
+
|
| 154 |
+
More information needed
|
| 155 |
+
|
| 156 |
+
## Intended uses & limitations
|
| 157 |
+
|
| 158 |
+
More information needed
|
| 159 |
+
|
| 160 |
+
## Training and evaluation data
|
| 161 |
+
|
| 162 |
+
More information needed
|
| 163 |
+
|
| 164 |
+
## Training procedure
|
| 165 |
+
|
| 166 |
+
### Training hyperparameters
|
| 167 |
+
|
| 168 |
+
The following hyperparameters were used during training:
|
| 169 |
+
- learning_rate: 1e-05
|
| 170 |
+
- train_batch_size: 1
|
| 171 |
+
- eval_batch_size: 1
|
| 172 |
+
- seed: 42
|
| 173 |
+
- distributed_type: multi-GPU
|
| 174 |
+
- num_devices: 4
|
| 175 |
+
- gradient_accumulation_steps: 2
|
| 176 |
+
- total_train_batch_size: 8
|
| 177 |
+
- total_eval_batch_size: 4
|
| 178 |
+
- optimizer: Use OptimizerNames.PAGED_ADAMW_8BIT with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 179 |
+
- lr_scheduler_type: cosine
|
| 180 |
+
- lr_scheduler_warmup_steps: 40
|
| 181 |
+
- num_epochs: 2
|
| 182 |
+
|
| 183 |
+
### Training results
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
### Framework versions
|
| 188 |
+
|
| 189 |
+
- PEFT 0.13.2
|
| 190 |
+
- Transformers 4.46.1
|
| 191 |
+
- Pytorch 2.3.1+cu121
|
| 192 |
+
- Datasets 3.0.1
|
| 193 |
+
- Tokenizers 0.20.3
|
adapter_config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "mistralai_Mistral-Nemo-Instruct-2407",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"fan_in_fan_out": null,
|
| 7 |
+
"inference_mode": true,
|
| 8 |
+
"init_lora_weights": true,
|
| 9 |
+
"layer_replication": null,
|
| 10 |
+
"layers_pattern": null,
|
| 11 |
+
"layers_to_transform": null,
|
| 12 |
+
"loftq_config": {},
|
| 13 |
+
"lora_alpha": 16,
|
| 14 |
+
"lora_dropout": 0.05,
|
| 15 |
+
"megatron_config": null,
|
| 16 |
+
"megatron_core": "megatron.core",
|
| 17 |
+
"modules_to_save": null,
|
| 18 |
+
"peft_type": "LORA",
|
| 19 |
+
"r": 128,
|
| 20 |
+
"rank_pattern": {},
|
| 21 |
+
"revision": null,
|
| 22 |
+
"target_modules": [
|
| 23 |
+
"v_proj",
|
| 24 |
+
"k_proj",
|
| 25 |
+
"down_proj",
|
| 26 |
+
"up_proj",
|
| 27 |
+
"o_proj",
|
| 28 |
+
"q_proj",
|
| 29 |
+
"gate_proj"
|
| 30 |
+
],
|
| 31 |
+
"task_type": "CAUSAL_LM",
|
| 32 |
+
"use_dora": false,
|
| 33 |
+
"use_rslora": true
|
| 34 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:912b74442aa9e9e1def6266ea27c4b417709435211cd92fc657859b8641c0104
|
| 3 |
+
size 912337968
|
checkpoint-1107/README.md
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: mistralai_Mistral-Nemo-Instruct-2407
|
| 3 |
+
library_name: peft
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Model Card for Model ID
|
| 7 |
+
|
| 8 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Model Details
|
| 13 |
+
|
| 14 |
+
### Model Description
|
| 15 |
+
|
| 16 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
- **Developed by:** [More Information Needed]
|
| 21 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 22 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 23 |
+
- **Model type:** [More Information Needed]
|
| 24 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 25 |
+
- **License:** [More Information Needed]
|
| 26 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
+
|
| 28 |
+
### Model Sources [optional]
|
| 29 |
+
|
| 30 |
+
<!-- Provide the basic links for the model. -->
|
| 31 |
+
|
| 32 |
+
- **Repository:** [More Information Needed]
|
| 33 |
+
- **Paper [optional]:** [More Information Needed]
|
| 34 |
+
- **Demo [optional]:** [More Information Needed]
|
| 35 |
+
|
| 36 |
+
## Uses
|
| 37 |
+
|
| 38 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 39 |
+
|
| 40 |
+
### Direct Use
|
| 41 |
+
|
| 42 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 43 |
+
|
| 44 |
+
[More Information Needed]
|
| 45 |
+
|
| 46 |
+
### Downstream Use [optional]
|
| 47 |
+
|
| 48 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 49 |
+
|
| 50 |
+
[More Information Needed]
|
| 51 |
+
|
| 52 |
+
### Out-of-Scope Use
|
| 53 |
+
|
| 54 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 55 |
+
|
| 56 |
+
[More Information Needed]
|
| 57 |
+
|
| 58 |
+
## Bias, Risks, and Limitations
|
| 59 |
+
|
| 60 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 61 |
+
|
| 62 |
+
[More Information Needed]
|
| 63 |
+
|
| 64 |
+
### Recommendations
|
| 65 |
+
|
| 66 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 67 |
+
|
| 68 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 69 |
+
|
| 70 |
+
## How to Get Started with the Model
|
| 71 |
+
|
| 72 |
+
Use the code below to get started with the model.
|
| 73 |
+
|
| 74 |
+
[More Information Needed]
|
| 75 |
+
|
| 76 |
+
## Training Details
|
| 77 |
+
|
| 78 |
+
### Training Data
|
| 79 |
+
|
| 80 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 81 |
+
|
| 82 |
+
[More Information Needed]
|
| 83 |
+
|
| 84 |
+
### Training Procedure
|
| 85 |
+
|
| 86 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 87 |
+
|
| 88 |
+
#### Preprocessing [optional]
|
| 89 |
+
|
| 90 |
+
[More Information Needed]
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
#### Training Hyperparameters
|
| 94 |
+
|
| 95 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 96 |
+
|
| 97 |
+
#### Speeds, Sizes, Times [optional]
|
| 98 |
+
|
| 99 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
+
|
| 101 |
+
[More Information Needed]
|
| 102 |
+
|
| 103 |
+
## Evaluation
|
| 104 |
+
|
| 105 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 106 |
+
|
| 107 |
+
### Testing Data, Factors & Metrics
|
| 108 |
+
|
| 109 |
+
#### Testing Data
|
| 110 |
+
|
| 111 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 112 |
+
|
| 113 |
+
[More Information Needed]
|
| 114 |
+
|
| 115 |
+
#### Factors
|
| 116 |
+
|
| 117 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 118 |
+
|
| 119 |
+
[More Information Needed]
|
| 120 |
+
|
| 121 |
+
#### Metrics
|
| 122 |
+
|
| 123 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 124 |
+
|
| 125 |
+
[More Information Needed]
|
| 126 |
+
|
| 127 |
+
### Results
|
| 128 |
+
|
| 129 |
+
[More Information Needed]
|
| 130 |
+
|
| 131 |
+
#### Summary
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
## Model Examination [optional]
|
| 136 |
+
|
| 137 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
+
|
| 139 |
+
[More Information Needed]
|
| 140 |
+
|
| 141 |
+
## Environmental Impact
|
| 142 |
+
|
| 143 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 144 |
+
|
| 145 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 146 |
+
|
| 147 |
+
- **Hardware Type:** [More Information Needed]
|
| 148 |
+
- **Hours used:** [More Information Needed]
|
| 149 |
+
- **Cloud Provider:** [More Information Needed]
|
| 150 |
+
- **Compute Region:** [More Information Needed]
|
| 151 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
+
|
| 153 |
+
## Technical Specifications [optional]
|
| 154 |
+
|
| 155 |
+
### Model Architecture and Objective
|
| 156 |
+
|
| 157 |
+
[More Information Needed]
|
| 158 |
+
|
| 159 |
+
### Compute Infrastructure
|
| 160 |
+
|
| 161 |
+
[More Information Needed]
|
| 162 |
+
|
| 163 |
+
#### Hardware
|
| 164 |
+
|
| 165 |
+
[More Information Needed]
|
| 166 |
+
|
| 167 |
+
#### Software
|
| 168 |
+
|
| 169 |
+
[More Information Needed]
|
| 170 |
+
|
| 171 |
+
## Citation [optional]
|
| 172 |
+
|
| 173 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 174 |
+
|
| 175 |
+
**BibTeX:**
|
| 176 |
+
|
| 177 |
+
[More Information Needed]
|
| 178 |
+
|
| 179 |
+
**APA:**
|
| 180 |
+
|
| 181 |
+
[More Information Needed]
|
| 182 |
+
|
| 183 |
+
## Glossary [optional]
|
| 184 |
+
|
| 185 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 186 |
+
|
| 187 |
+
[More Information Needed]
|
| 188 |
+
|
| 189 |
+
## More Information [optional]
|
| 190 |
+
|
| 191 |
+
[More Information Needed]
|
| 192 |
+
|
| 193 |
+
## Model Card Authors [optional]
|
| 194 |
+
|
| 195 |
+
[More Information Needed]
|
| 196 |
+
|
| 197 |
+
## Model Card Contact
|
| 198 |
+
|
| 199 |
+
[More Information Needed]
|
| 200 |
+
### Framework versions
|
| 201 |
+
|
| 202 |
+
- PEFT 0.13.2
|
checkpoint-1107/adapter_config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "mistralai_Mistral-Nemo-Instruct-2407",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"fan_in_fan_out": null,
|
| 7 |
+
"inference_mode": true,
|
| 8 |
+
"init_lora_weights": true,
|
| 9 |
+
"layer_replication": null,
|
| 10 |
+
"layers_pattern": null,
|
| 11 |
+
"layers_to_transform": null,
|
| 12 |
+
"loftq_config": {},
|
| 13 |
+
"lora_alpha": 16,
|
| 14 |
+
"lora_dropout": 0.05,
|
| 15 |
+
"megatron_config": null,
|
| 16 |
+
"megatron_core": "megatron.core",
|
| 17 |
+
"modules_to_save": null,
|
| 18 |
+
"peft_type": "LORA",
|
| 19 |
+
"r": 128,
|
| 20 |
+
"rank_pattern": {},
|
| 21 |
+
"revision": null,
|
| 22 |
+
"target_modules": [
|
| 23 |
+
"v_proj",
|
| 24 |
+
"k_proj",
|
| 25 |
+
"down_proj",
|
| 26 |
+
"up_proj",
|
| 27 |
+
"o_proj",
|
| 28 |
+
"q_proj",
|
| 29 |
+
"gate_proj"
|
| 30 |
+
],
|
| 31 |
+
"task_type": "CAUSAL_LM",
|
| 32 |
+
"use_dora": false,
|
| 33 |
+
"use_rslora": true
|
| 34 |
+
}
|
checkpoint-1107/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae8e1b2856acfe3c8d8feca8956a11a6ba972c67694cd71544fffae4c302617f
|
| 3 |
+
size 912337968
|
checkpoint-1107/global_step1107/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:4034195a74bd46b115e5d5f294fbd25042ef871b9fa5762c9e6210d3d2b62d3c
|
| 3 |
+
size 688705136
|
checkpoint-1107/global_step1107/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:c9f84e2f81127c931e01e4d2cebe4bfb63b2f76b1aa78070c572dd086d8b6d74
|
| 3 |
+
size 688705136
|
checkpoint-1107/global_step1107/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:affbf02c93b03ebd0694d06e8d19765f12b5a7b79bcec058b347198929916251
|
| 3 |
+
size 688705136
|
checkpoint-1107/global_step1107/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:a602a850a1cfdf4a410209a545cb10b74cf68d2d8334f62b7fe37a5de9dab395
|
| 3 |
+
size 688705136
|
checkpoint-1107/global_step1107/zero_pp_rank_0_mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08429cf699bfafd2ec35afc53817e4a80a75e90226d8743fa415672a6717a94f
|
| 3 |
+
size 559966
|
checkpoint-1107/global_step1107/zero_pp_rank_1_mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0aafa27248abe8d62678c28fc595869d49d85eca9efe8c39b6da7264f1c0ff58
|
| 3 |
+
size 559966
|
checkpoint-1107/global_step1107/zero_pp_rank_2_mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3d8269e81285ea81a5e391ac9a6578570f8f9c9eb825d6bba4011b9126417b7
|
| 3 |
+
size 559966
|
checkpoint-1107/global_step1107/zero_pp_rank_3_mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e25c46d38df422a82fd4d6b9a627e8267198b690fe714649cbe8a64ca33d7570
|
| 3 |
+
size 559966
|
checkpoint-1107/latest
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
global_step1107
|
checkpoint-1107/rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdbde7b18f85248ea3e4f4d88e08c92f739aec2a596a8974df44a11d80cb0408
|
| 3 |
+
size 14960
|
checkpoint-1107/rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60979189c726d593c42335a265659f508a8e7d596c04618810386b3a1a375ff9
|
| 3 |
+
size 14960
|
checkpoint-1107/rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:664c0c9f6f24169189fe9c8075991a85cc336b2fff8e71cc95e6b8a755dac3de
|
| 3 |
+
size 14960
|
checkpoint-1107/rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1efc02970f3fe747823398dd091a27d39b9c104365068ecbe58dfcc13a847cd
|
| 3 |
+
size 14960
|
checkpoint-1107/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:653c4f6368c97da8eb63b10e5349a30ffba2bb25ed49ba771de64d048a9419da
|
| 3 |
+
size 1064
|
checkpoint-1107/special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "</s>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<pad>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<unk>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
}
|
| 30 |
+
}
|
checkpoint-1107/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0240ce510f08e6c2041724e9043e33be9d251d1e4a4d94eb68cd47b954b61d2
|
| 3 |
+
size 17078292
|
checkpoint-1107/tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-1107/trainer_state.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-1107/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bff29e7ff321b15e984196b58ce5d2fc8b550fddfbffd9146e631086009d7b1
|
| 3 |
+
size 7992
|
checkpoint-1107/zero_to_fp32.py
ADDED
|
@@ -0,0 +1,604 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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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: python zero_to_fp32.py . pytorch_model.bin
|
| 14 |
+
|
| 15 |
+
import argparse
|
| 16 |
+
import torch
|
| 17 |
+
import glob
|
| 18 |
+
import math
|
| 19 |
+
import os
|
| 20 |
+
import re
|
| 21 |
+
from collections import OrderedDict
|
| 22 |
+
from dataclasses import dataclass
|
| 23 |
+
|
| 24 |
+
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
|
| 25 |
+
# DeepSpeed data structures it has to be available in the current python environment.
|
| 26 |
+
from deepspeed.utils import logger
|
| 27 |
+
from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
|
| 28 |
+
FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
|
| 29 |
+
FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
@dataclass
|
| 33 |
+
class zero_model_state:
|
| 34 |
+
buffers: dict()
|
| 35 |
+
param_shapes: dict()
|
| 36 |
+
shared_params: list
|
| 37 |
+
ds_version: int
|
| 38 |
+
frozen_param_shapes: dict()
|
| 39 |
+
frozen_param_fragments: dict()
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
debug = 0
|
| 43 |
+
|
| 44 |
+
# load to cpu
|
| 45 |
+
device = torch.device('cpu')
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def atoi(text):
|
| 49 |
+
return int(text) if text.isdigit() else text
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def natural_keys(text):
|
| 53 |
+
'''
|
| 54 |
+
alist.sort(key=natural_keys) sorts in human order
|
| 55 |
+
http://nedbatchelder.com/blog/200712/human_sorting.html
|
| 56 |
+
(See Toothy's implementation in the comments)
|
| 57 |
+
'''
|
| 58 |
+
return [atoi(c) for c in re.split(r'(\d+)', text)]
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def get_model_state_file(checkpoint_dir, zero_stage):
|
| 62 |
+
if not os.path.isdir(checkpoint_dir):
|
| 63 |
+
raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
|
| 64 |
+
|
| 65 |
+
# there should be only one file
|
| 66 |
+
if zero_stage <= 2:
|
| 67 |
+
file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
|
| 68 |
+
elif zero_stage == 3:
|
| 69 |
+
file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
|
| 70 |
+
|
| 71 |
+
if not os.path.exists(file):
|
| 72 |
+
raise FileNotFoundError(f"can't find model states file at '{file}'")
|
| 73 |
+
|
| 74 |
+
return file
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def get_checkpoint_files(checkpoint_dir, glob_pattern):
|
| 78 |
+
# XXX: need to test that this simple glob rule works for multi-node setup too
|
| 79 |
+
ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
|
| 80 |
+
|
| 81 |
+
if len(ckpt_files) == 0:
|
| 82 |
+
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
|
| 83 |
+
|
| 84 |
+
return ckpt_files
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def get_optim_files(checkpoint_dir):
|
| 88 |
+
return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
def get_model_state_files(checkpoint_dir):
|
| 92 |
+
return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def parse_model_states(files):
|
| 96 |
+
zero_model_states = []
|
| 97 |
+
for file in files:
|
| 98 |
+
state_dict = torch.load(file, map_location=device)
|
| 99 |
+
|
| 100 |
+
if BUFFER_NAMES not in state_dict:
|
| 101 |
+
raise ValueError(f"{file} is not a model state checkpoint")
|
| 102 |
+
buffer_names = state_dict[BUFFER_NAMES]
|
| 103 |
+
if debug:
|
| 104 |
+
print("Found buffers:", buffer_names)
|
| 105 |
+
|
| 106 |
+
# recover just the buffers while restoring them to fp32 if they were saved in fp16
|
| 107 |
+
buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
|
| 108 |
+
param_shapes = state_dict[PARAM_SHAPES]
|
| 109 |
+
|
| 110 |
+
# collect parameters that are included in param_shapes
|
| 111 |
+
param_names = []
|
| 112 |
+
for s in param_shapes:
|
| 113 |
+
for name in s.keys():
|
| 114 |
+
param_names.append(name)
|
| 115 |
+
|
| 116 |
+
# update with frozen parameters
|
| 117 |
+
frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
|
| 118 |
+
if frozen_param_shapes is not None:
|
| 119 |
+
if debug:
|
| 120 |
+
print(f"Found frozen_param_shapes: {frozen_param_shapes}")
|
| 121 |
+
param_names += list(frozen_param_shapes.keys())
|
| 122 |
+
|
| 123 |
+
# handle shared params
|
| 124 |
+
shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
|
| 125 |
+
|
| 126 |
+
ds_version = state_dict.get(DS_VERSION, None)
|
| 127 |
+
|
| 128 |
+
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
|
| 129 |
+
|
| 130 |
+
z_model_state = zero_model_state(buffers=buffers,
|
| 131 |
+
param_shapes=param_shapes,
|
| 132 |
+
shared_params=shared_params,
|
| 133 |
+
ds_version=ds_version,
|
| 134 |
+
frozen_param_shapes=frozen_param_shapes,
|
| 135 |
+
frozen_param_fragments=frozen_param_fragments)
|
| 136 |
+
zero_model_states.append(z_model_state)
|
| 137 |
+
|
| 138 |
+
return zero_model_states
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
def parse_optim_states(files, ds_checkpoint_dir):
|
| 142 |
+
|
| 143 |
+
total_files = len(files)
|
| 144 |
+
state_dicts = []
|
| 145 |
+
for f in files:
|
| 146 |
+
state_dict = torch.load(f, map_location=device)
|
| 147 |
+
# immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
|
| 148 |
+
# and also handle the case where it was already removed by another helper script
|
| 149 |
+
state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
|
| 150 |
+
state_dicts.append(state_dict)
|
| 151 |
+
|
| 152 |
+
if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
|
| 153 |
+
raise ValueError(f"{files[0]} is not a zero checkpoint")
|
| 154 |
+
zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
|
| 155 |
+
world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
|
| 156 |
+
|
| 157 |
+
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert
|
| 158 |
+
# parameters can be different from data parallelism for non-expert parameters. So we can just
|
| 159 |
+
# use the max of the partition_count to get the dp world_size.
|
| 160 |
+
|
| 161 |
+
if type(world_size) is list:
|
| 162 |
+
world_size = max(world_size)
|
| 163 |
+
|
| 164 |
+
if world_size != total_files:
|
| 165 |
+
raise ValueError(
|
| 166 |
+
f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
|
| 167 |
+
"Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
|
| 168 |
+
)
|
| 169 |
+
|
| 170 |
+
# the groups are named differently in each stage
|
| 171 |
+
if zero_stage <= 2:
|
| 172 |
+
fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
|
| 173 |
+
elif zero_stage == 3:
|
| 174 |
+
fp32_groups_key = FP32_FLAT_GROUPS
|
| 175 |
+
else:
|
| 176 |
+
raise ValueError(f"unknown zero stage {zero_stage}")
|
| 177 |
+
|
| 178 |
+
if zero_stage <= 2:
|
| 179 |
+
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
|
| 180 |
+
elif zero_stage == 3:
|
| 181 |
+
# if there is more than one param group, there will be multiple flattened tensors - one
|
| 182 |
+
# flattened tensor per group - for simplicity merge them into a single tensor
|
| 183 |
+
#
|
| 184 |
+
# XXX: could make the script more memory efficient for when there are multiple groups - it
|
| 185 |
+
# will require matching the sub-lists of param_shapes for each param group flattened tensor
|
| 186 |
+
|
| 187 |
+
fp32_flat_groups = [
|
| 188 |
+
torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts))
|
| 189 |
+
]
|
| 190 |
+
|
| 191 |
+
return zero_stage, world_size, fp32_flat_groups
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
|
| 195 |
+
"""
|
| 196 |
+
Returns fp32 state_dict reconstructed from ds checkpoint
|
| 197 |
+
|
| 198 |
+
Args:
|
| 199 |
+
- ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
|
| 200 |
+
|
| 201 |
+
"""
|
| 202 |
+
print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
|
| 203 |
+
|
| 204 |
+
optim_files = get_optim_files(ds_checkpoint_dir)
|
| 205 |
+
zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
|
| 206 |
+
print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
|
| 207 |
+
|
| 208 |
+
model_files = get_model_state_files(ds_checkpoint_dir)
|
| 209 |
+
|
| 210 |
+
zero_model_states = parse_model_states(model_files)
|
| 211 |
+
print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
|
| 212 |
+
|
| 213 |
+
if zero_stage <= 2:
|
| 214 |
+
return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 215 |
+
exclude_frozen_parameters)
|
| 216 |
+
elif zero_stage == 3:
|
| 217 |
+
return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 218 |
+
exclude_frozen_parameters)
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
def _zero2_merge_frozen_params(state_dict, zero_model_states):
|
| 222 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 223 |
+
return
|
| 224 |
+
|
| 225 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 226 |
+
frozen_param_fragments = zero_model_states[0].frozen_param_fragments
|
| 227 |
+
|
| 228 |
+
if debug:
|
| 229 |
+
num_elem = sum(s.numel() for s in frozen_param_shapes.values())
|
| 230 |
+
print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 231 |
+
|
| 232 |
+
wanted_params = len(frozen_param_shapes)
|
| 233 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 234 |
+
avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
|
| 235 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 236 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 237 |
+
|
| 238 |
+
total_params = 0
|
| 239 |
+
total_numel = 0
|
| 240 |
+
for name, shape in frozen_param_shapes.items():
|
| 241 |
+
total_params += 1
|
| 242 |
+
unpartitioned_numel = shape.numel()
|
| 243 |
+
total_numel += unpartitioned_numel
|
| 244 |
+
|
| 245 |
+
state_dict[name] = frozen_param_fragments[name]
|
| 246 |
+
|
| 247 |
+
if debug:
|
| 248 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 249 |
+
|
| 250 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
def _has_callable(obj, fn):
|
| 254 |
+
attr = getattr(obj, fn, None)
|
| 255 |
+
return callable(attr)
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 259 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 260 |
+
|
| 261 |
+
# Reconstruction protocol:
|
| 262 |
+
#
|
| 263 |
+
# XXX: document this
|
| 264 |
+
|
| 265 |
+
if debug:
|
| 266 |
+
for i in range(world_size):
|
| 267 |
+
for j in range(len(fp32_flat_groups[0])):
|
| 268 |
+
print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
|
| 269 |
+
|
| 270 |
+
# XXX: memory usage doubles here (zero2)
|
| 271 |
+
num_param_groups = len(fp32_flat_groups[0])
|
| 272 |
+
merged_single_partition_of_fp32_groups = []
|
| 273 |
+
for i in range(num_param_groups):
|
| 274 |
+
merged_partitions = [sd[i] for sd in fp32_flat_groups]
|
| 275 |
+
full_single_fp32_vector = torch.cat(merged_partitions, 0)
|
| 276 |
+
merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
|
| 277 |
+
avail_numel = sum(
|
| 278 |
+
[full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
|
| 279 |
+
|
| 280 |
+
if debug:
|
| 281 |
+
wanted_params = sum([len(shapes) for shapes in param_shapes])
|
| 282 |
+
wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
|
| 283 |
+
# not asserting if there is a mismatch due to possible padding
|
| 284 |
+
print(f"Have {avail_numel} numels to process.")
|
| 285 |
+
print(f"Need {wanted_numel} numels in {wanted_params} params.")
|
| 286 |
+
|
| 287 |
+
# params
|
| 288 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 289 |
+
# out-of-core computing solution
|
| 290 |
+
total_numel = 0
|
| 291 |
+
total_params = 0
|
| 292 |
+
for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
|
| 293 |
+
offset = 0
|
| 294 |
+
avail_numel = full_single_fp32_vector.numel()
|
| 295 |
+
for name, shape in shapes.items():
|
| 296 |
+
|
| 297 |
+
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
|
| 298 |
+
total_numel += unpartitioned_numel
|
| 299 |
+
total_params += 1
|
| 300 |
+
|
| 301 |
+
if debug:
|
| 302 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 303 |
+
state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
|
| 304 |
+
offset += unpartitioned_numel
|
| 305 |
+
|
| 306 |
+
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
|
| 307 |
+
# avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
|
| 308 |
+
# paddings performed in the code it's almost impossible to predict the exact numbers w/o the
|
| 309 |
+
# live optimizer object, so we are checking that the numbers are within the right range
|
| 310 |
+
align_to = 2 * world_size
|
| 311 |
+
|
| 312 |
+
def zero2_align(x):
|
| 313 |
+
return align_to * math.ceil(x / align_to)
|
| 314 |
+
|
| 315 |
+
if debug:
|
| 316 |
+
print(f"original offset={offset}, avail_numel={avail_numel}")
|
| 317 |
+
|
| 318 |
+
offset = zero2_align(offset)
|
| 319 |
+
avail_numel = zero2_align(avail_numel)
|
| 320 |
+
|
| 321 |
+
if debug:
|
| 322 |
+
print(f"aligned offset={offset}, avail_numel={avail_numel}")
|
| 323 |
+
|
| 324 |
+
# Sanity check
|
| 325 |
+
if offset != avail_numel:
|
| 326 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 327 |
+
|
| 328 |
+
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 332 |
+
exclude_frozen_parameters):
|
| 333 |
+
state_dict = OrderedDict()
|
| 334 |
+
|
| 335 |
+
# buffers
|
| 336 |
+
buffers = zero_model_states[0].buffers
|
| 337 |
+
state_dict.update(buffers)
|
| 338 |
+
if debug:
|
| 339 |
+
print(f"added {len(buffers)} buffers")
|
| 340 |
+
|
| 341 |
+
if not exclude_frozen_parameters:
|
| 342 |
+
_zero2_merge_frozen_params(state_dict, zero_model_states)
|
| 343 |
+
|
| 344 |
+
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 345 |
+
|
| 346 |
+
# recover shared parameters
|
| 347 |
+
for pair in zero_model_states[0].shared_params:
|
| 348 |
+
if pair[1] in state_dict:
|
| 349 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 350 |
+
|
| 351 |
+
return state_dict
|
| 352 |
+
|
| 353 |
+
|
| 354 |
+
def zero3_partitioned_param_info(unpartitioned_numel, world_size):
|
| 355 |
+
remainder = unpartitioned_numel % world_size
|
| 356 |
+
padding_numel = (world_size - remainder) if remainder else 0
|
| 357 |
+
partitioned_numel = math.ceil(unpartitioned_numel / world_size)
|
| 358 |
+
return partitioned_numel, padding_numel
|
| 359 |
+
|
| 360 |
+
|
| 361 |
+
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
|
| 362 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 363 |
+
return
|
| 364 |
+
|
| 365 |
+
if debug:
|
| 366 |
+
for i in range(world_size):
|
| 367 |
+
num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
|
| 368 |
+
print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 369 |
+
|
| 370 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 371 |
+
wanted_params = len(frozen_param_shapes)
|
| 372 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 373 |
+
avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
|
| 374 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 375 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 376 |
+
|
| 377 |
+
total_params = 0
|
| 378 |
+
total_numel = 0
|
| 379 |
+
for name, shape in zero_model_states[0].frozen_param_shapes.items():
|
| 380 |
+
total_params += 1
|
| 381 |
+
unpartitioned_numel = shape.numel()
|
| 382 |
+
total_numel += unpartitioned_numel
|
| 383 |
+
|
| 384 |
+
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
|
| 385 |
+
state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 386 |
+
|
| 387 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 388 |
+
|
| 389 |
+
if debug:
|
| 390 |
+
print(
|
| 391 |
+
f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 392 |
+
)
|
| 393 |
+
|
| 394 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 398 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 399 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 400 |
+
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
|
| 401 |
+
# param, re-consolidating each param, while dealing with padding if any
|
| 402 |
+
|
| 403 |
+
# merge list of dicts, preserving order
|
| 404 |
+
param_shapes = {k: v for d in param_shapes for k, v in d.items()}
|
| 405 |
+
|
| 406 |
+
if debug:
|
| 407 |
+
for i in range(world_size):
|
| 408 |
+
print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
|
| 409 |
+
|
| 410 |
+
wanted_params = len(param_shapes)
|
| 411 |
+
wanted_numel = sum(shape.numel() for shape in param_shapes.values())
|
| 412 |
+
# not asserting if there is a mismatch due to possible padding
|
| 413 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 414 |
+
print(f"Trainable params: Have {avail_numel} numels to process.")
|
| 415 |
+
print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
|
| 416 |
+
|
| 417 |
+
# params
|
| 418 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 419 |
+
# out-of-core computing solution
|
| 420 |
+
offset = 0
|
| 421 |
+
total_numel = 0
|
| 422 |
+
total_params = 0
|
| 423 |
+
for name, shape in param_shapes.items():
|
| 424 |
+
|
| 425 |
+
unpartitioned_numel = shape.numel()
|
| 426 |
+
total_numel += unpartitioned_numel
|
| 427 |
+
total_params += 1
|
| 428 |
+
|
| 429 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 430 |
+
|
| 431 |
+
if debug:
|
| 432 |
+
print(
|
| 433 |
+
f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 434 |
+
)
|
| 435 |
+
|
| 436 |
+
# XXX: memory usage doubles here
|
| 437 |
+
state_dict[name] = torch.cat(
|
| 438 |
+
tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)),
|
| 439 |
+
0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 440 |
+
offset += partitioned_numel
|
| 441 |
+
|
| 442 |
+
offset *= world_size
|
| 443 |
+
|
| 444 |
+
# Sanity check
|
| 445 |
+
if offset != avail_numel:
|
| 446 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 447 |
+
|
| 448 |
+
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
|
| 449 |
+
|
| 450 |
+
|
| 451 |
+
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 452 |
+
exclude_frozen_parameters):
|
| 453 |
+
state_dict = OrderedDict()
|
| 454 |
+
|
| 455 |
+
# buffers
|
| 456 |
+
buffers = zero_model_states[0].buffers
|
| 457 |
+
state_dict.update(buffers)
|
| 458 |
+
if debug:
|
| 459 |
+
print(f"added {len(buffers)} buffers")
|
| 460 |
+
|
| 461 |
+
if not exclude_frozen_parameters:
|
| 462 |
+
_zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
|
| 463 |
+
|
| 464 |
+
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 465 |
+
|
| 466 |
+
# recover shared parameters
|
| 467 |
+
for pair in zero_model_states[0].shared_params:
|
| 468 |
+
if pair[1] in state_dict:
|
| 469 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 470 |
+
|
| 471 |
+
return state_dict
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None, exclude_frozen_parameters=False):
|
| 475 |
+
"""
|
| 476 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
|
| 477 |
+
``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
|
| 478 |
+
via a model hub.
|
| 479 |
+
|
| 480 |
+
Args:
|
| 481 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder
|
| 482 |
+
- ``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``
|
| 483 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 484 |
+
|
| 485 |
+
Returns:
|
| 486 |
+
- pytorch ``state_dict``
|
| 487 |
+
|
| 488 |
+
Note: this approach may not work if your application doesn't have sufficient free CPU memory and
|
| 489 |
+
you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
|
| 490 |
+
the checkpoint.
|
| 491 |
+
|
| 492 |
+
A typical usage might be ::
|
| 493 |
+
|
| 494 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 495 |
+
# do the training and checkpoint saving
|
| 496 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
|
| 497 |
+
model = model.cpu() # move to cpu
|
| 498 |
+
model.load_state_dict(state_dict)
|
| 499 |
+
# submit to model hub or save the model to share with others
|
| 500 |
+
|
| 501 |
+
In this example the ``model`` will no longer be usable in the deepspeed context of the same
|
| 502 |
+
application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 503 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 504 |
+
|
| 505 |
+
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
|
| 506 |
+
|
| 507 |
+
"""
|
| 508 |
+
if tag is None:
|
| 509 |
+
latest_path = os.path.join(checkpoint_dir, 'latest')
|
| 510 |
+
if os.path.isfile(latest_path):
|
| 511 |
+
with open(latest_path, 'r') as fd:
|
| 512 |
+
tag = fd.read().strip()
|
| 513 |
+
else:
|
| 514 |
+
raise ValueError(f"Unable to find 'latest' file at {latest_path}")
|
| 515 |
+
|
| 516 |
+
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
|
| 517 |
+
|
| 518 |
+
if not os.path.isdir(ds_checkpoint_dir):
|
| 519 |
+
raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
|
| 520 |
+
|
| 521 |
+
return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_file, tag=None, exclude_frozen_parameters=False):
|
| 525 |
+
"""
|
| 526 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
|
| 527 |
+
loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
|
| 528 |
+
|
| 529 |
+
Args:
|
| 530 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 531 |
+
- ``output_file``: path to the pytorch fp32 state_dict output file (e.g. path/pytorch_model.bin)
|
| 532 |
+
- ``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``
|
| 533 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 534 |
+
"""
|
| 535 |
+
|
| 536 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag, exclude_frozen_parameters)
|
| 537 |
+
print(f"Saving fp32 state dict to {output_file}")
|
| 538 |
+
torch.save(state_dict, output_file)
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
|
| 542 |
+
"""
|
| 543 |
+
1. Put the provided model to cpu
|
| 544 |
+
2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
|
| 545 |
+
3. Load it into the provided model
|
| 546 |
+
|
| 547 |
+
Args:
|
| 548 |
+
- ``model``: the model object to update
|
| 549 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 550 |
+
- ``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``
|
| 551 |
+
|
| 552 |
+
Returns:
|
| 553 |
+
- ``model`: modified model
|
| 554 |
+
|
| 555 |
+
Make sure you have plenty of CPU memory available before you call this function. If you don't
|
| 556 |
+
have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
|
| 557 |
+
conveniently placed for you in the checkpoint folder.
|
| 558 |
+
|
| 559 |
+
A typical usage might be ::
|
| 560 |
+
|
| 561 |
+
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
|
| 562 |
+
model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
|
| 563 |
+
# submit to model hub or save the model to share with others
|
| 564 |
+
|
| 565 |
+
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
|
| 566 |
+
of the same application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 567 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 568 |
+
|
| 569 |
+
"""
|
| 570 |
+
logger.info(f"Extracting fp32 weights")
|
| 571 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
|
| 572 |
+
|
| 573 |
+
logger.info(f"Overwriting model with fp32 weights")
|
| 574 |
+
model = model.cpu()
|
| 575 |
+
model.load_state_dict(state_dict, strict=False)
|
| 576 |
+
|
| 577 |
+
return model
|
| 578 |
+
|
| 579 |
+
|
| 580 |
+
if __name__ == "__main__":
|
| 581 |
+
|
| 582 |
+
parser = argparse.ArgumentParser()
|
| 583 |
+
parser.add_argument("checkpoint_dir",
|
| 584 |
+
type=str,
|
| 585 |
+
help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
|
| 586 |
+
parser.add_argument(
|
| 587 |
+
"output_file",
|
| 588 |
+
type=str,
|
| 589 |
+
help="path to the pytorch fp32 state_dict output file (e.g. path/checkpoint-12/pytorch_model.bin)")
|
| 590 |
+
parser.add_argument("-t",
|
| 591 |
+
"--tag",
|
| 592 |
+
type=str,
|
| 593 |
+
default=None,
|
| 594 |
+
help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
|
| 595 |
+
parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
|
| 596 |
+
parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
|
| 597 |
+
args = parser.parse_args()
|
| 598 |
+
|
| 599 |
+
debug = args.debug
|
| 600 |
+
|
| 601 |
+
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
|
| 602 |
+
args.output_file,
|
| 603 |
+
tag=args.tag,
|
| 604 |
+
exclude_frozen_parameters=args.exclude_frozen_parameters)
|
checkpoint-369/README.md
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: mistralai_Mistral-Nemo-Instruct-2407
|
| 3 |
+
library_name: peft
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Model Card for Model ID
|
| 7 |
+
|
| 8 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
## Model Details
|
| 13 |
+
|
| 14 |
+
### Model Description
|
| 15 |
+
|
| 16 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
- **Developed by:** [More Information Needed]
|
| 21 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 22 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 23 |
+
- **Model type:** [More Information Needed]
|
| 24 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 25 |
+
- **License:** [More Information Needed]
|
| 26 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
+
|
| 28 |
+
### Model Sources [optional]
|
| 29 |
+
|
| 30 |
+
<!-- Provide the basic links for the model. -->
|
| 31 |
+
|
| 32 |
+
- **Repository:** [More Information Needed]
|
| 33 |
+
- **Paper [optional]:** [More Information Needed]
|
| 34 |
+
- **Demo [optional]:** [More Information Needed]
|
| 35 |
+
|
| 36 |
+
## Uses
|
| 37 |
+
|
| 38 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 39 |
+
|
| 40 |
+
### Direct Use
|
| 41 |
+
|
| 42 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 43 |
+
|
| 44 |
+
[More Information Needed]
|
| 45 |
+
|
| 46 |
+
### Downstream Use [optional]
|
| 47 |
+
|
| 48 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 49 |
+
|
| 50 |
+
[More Information Needed]
|
| 51 |
+
|
| 52 |
+
### Out-of-Scope Use
|
| 53 |
+
|
| 54 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 55 |
+
|
| 56 |
+
[More Information Needed]
|
| 57 |
+
|
| 58 |
+
## Bias, Risks, and Limitations
|
| 59 |
+
|
| 60 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 61 |
+
|
| 62 |
+
[More Information Needed]
|
| 63 |
+
|
| 64 |
+
### Recommendations
|
| 65 |
+
|
| 66 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 67 |
+
|
| 68 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 69 |
+
|
| 70 |
+
## How to Get Started with the Model
|
| 71 |
+
|
| 72 |
+
Use the code below to get started with the model.
|
| 73 |
+
|
| 74 |
+
[More Information Needed]
|
| 75 |
+
|
| 76 |
+
## Training Details
|
| 77 |
+
|
| 78 |
+
### Training Data
|
| 79 |
+
|
| 80 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 81 |
+
|
| 82 |
+
[More Information Needed]
|
| 83 |
+
|
| 84 |
+
### Training Procedure
|
| 85 |
+
|
| 86 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 87 |
+
|
| 88 |
+
#### Preprocessing [optional]
|
| 89 |
+
|
| 90 |
+
[More Information Needed]
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
#### Training Hyperparameters
|
| 94 |
+
|
| 95 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 96 |
+
|
| 97 |
+
#### Speeds, Sizes, Times [optional]
|
| 98 |
+
|
| 99 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
+
|
| 101 |
+
[More Information Needed]
|
| 102 |
+
|
| 103 |
+
## Evaluation
|
| 104 |
+
|
| 105 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 106 |
+
|
| 107 |
+
### Testing Data, Factors & Metrics
|
| 108 |
+
|
| 109 |
+
#### Testing Data
|
| 110 |
+
|
| 111 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 112 |
+
|
| 113 |
+
[More Information Needed]
|
| 114 |
+
|
| 115 |
+
#### Factors
|
| 116 |
+
|
| 117 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 118 |
+
|
| 119 |
+
[More Information Needed]
|
| 120 |
+
|
| 121 |
+
#### Metrics
|
| 122 |
+
|
| 123 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 124 |
+
|
| 125 |
+
[More Information Needed]
|
| 126 |
+
|
| 127 |
+
### Results
|
| 128 |
+
|
| 129 |
+
[More Information Needed]
|
| 130 |
+
|
| 131 |
+
#### Summary
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
## Model Examination [optional]
|
| 136 |
+
|
| 137 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
+
|
| 139 |
+
[More Information Needed]
|
| 140 |
+
|
| 141 |
+
## Environmental Impact
|
| 142 |
+
|
| 143 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 144 |
+
|
| 145 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 146 |
+
|
| 147 |
+
- **Hardware Type:** [More Information Needed]
|
| 148 |
+
- **Hours used:** [More Information Needed]
|
| 149 |
+
- **Cloud Provider:** [More Information Needed]
|
| 150 |
+
- **Compute Region:** [More Information Needed]
|
| 151 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
+
|
| 153 |
+
## Technical Specifications [optional]
|
| 154 |
+
|
| 155 |
+
### Model Architecture and Objective
|
| 156 |
+
|
| 157 |
+
[More Information Needed]
|
| 158 |
+
|
| 159 |
+
### Compute Infrastructure
|
| 160 |
+
|
| 161 |
+
[More Information Needed]
|
| 162 |
+
|
| 163 |
+
#### Hardware
|
| 164 |
+
|
| 165 |
+
[More Information Needed]
|
| 166 |
+
|
| 167 |
+
#### Software
|
| 168 |
+
|
| 169 |
+
[More Information Needed]
|
| 170 |
+
|
| 171 |
+
## Citation [optional]
|
| 172 |
+
|
| 173 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 174 |
+
|
| 175 |
+
**BibTeX:**
|
| 176 |
+
|
| 177 |
+
[More Information Needed]
|
| 178 |
+
|
| 179 |
+
**APA:**
|
| 180 |
+
|
| 181 |
+
[More Information Needed]
|
| 182 |
+
|
| 183 |
+
## Glossary [optional]
|
| 184 |
+
|
| 185 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 186 |
+
|
| 187 |
+
[More Information Needed]
|
| 188 |
+
|
| 189 |
+
## More Information [optional]
|
| 190 |
+
|
| 191 |
+
[More Information Needed]
|
| 192 |
+
|
| 193 |
+
## Model Card Authors [optional]
|
| 194 |
+
|
| 195 |
+
[More Information Needed]
|
| 196 |
+
|
| 197 |
+
## Model Card Contact
|
| 198 |
+
|
| 199 |
+
[More Information Needed]
|
| 200 |
+
### Framework versions
|
| 201 |
+
|
| 202 |
+
- PEFT 0.13.2
|
checkpoint-369/adapter_config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "mistralai_Mistral-Nemo-Instruct-2407",
|
| 5 |
+
"bias": "none",
|
| 6 |
+
"fan_in_fan_out": null,
|
| 7 |
+
"inference_mode": true,
|
| 8 |
+
"init_lora_weights": true,
|
| 9 |
+
"layer_replication": null,
|
| 10 |
+
"layers_pattern": null,
|
| 11 |
+
"layers_to_transform": null,
|
| 12 |
+
"loftq_config": {},
|
| 13 |
+
"lora_alpha": 16,
|
| 14 |
+
"lora_dropout": 0.05,
|
| 15 |
+
"megatron_config": null,
|
| 16 |
+
"megatron_core": "megatron.core",
|
| 17 |
+
"modules_to_save": null,
|
| 18 |
+
"peft_type": "LORA",
|
| 19 |
+
"r": 128,
|
| 20 |
+
"rank_pattern": {},
|
| 21 |
+
"revision": null,
|
| 22 |
+
"target_modules": [
|
| 23 |
+
"v_proj",
|
| 24 |
+
"k_proj",
|
| 25 |
+
"down_proj",
|
| 26 |
+
"up_proj",
|
| 27 |
+
"o_proj",
|
| 28 |
+
"q_proj",
|
| 29 |
+
"gate_proj"
|
| 30 |
+
],
|
| 31 |
+
"task_type": "CAUSAL_LM",
|
| 32 |
+
"use_dora": false,
|
| 33 |
+
"use_rslora": true
|
| 34 |
+
}
|
checkpoint-369/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b77d55a65d5a440d550746df1bb089e133a8fbfcb69beab2c6eac2020e1f0a6b
|
| 3 |
+
size 912337968
|
checkpoint-369/global_step369/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:bf6aaa43db814b0db056fdd40ef81455cee2053a09a275f34eeb3268fb50ed8e
|
| 3 |
+
size 688705136
|
checkpoint-369/global_step369/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:ad7cec1fabd4904e99c0bfb80bbf2918cc06956ba01019fb28b13ee2a459a8ac
|
| 3 |
+
size 688705136
|
checkpoint-369/global_step369/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:06735572849e4084f2483f8b1666ff621e07f816bca3a0fee06202cab332dd63
|
| 3 |
+
size 688705136
|
checkpoint-369/global_step369/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:7aa816dc290f6b4b24e272eae6bb8b82a4bc6a73cf1960e0c26d634750590cc2
|
| 3 |
+
size 688705136
|
checkpoint-369/global_step369/zero_pp_rank_0_mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6458a8381df22362adf1cb4d3050838367033aebb7ac0a389ac4a5fb9ca717d0
|
| 3 |
+
size 559966
|
checkpoint-369/global_step369/zero_pp_rank_1_mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87b3431f972816bfe24067f0a65e01f091ac7e3f68f7a33072477732aeb84519
|
| 3 |
+
size 559966
|
checkpoint-369/global_step369/zero_pp_rank_2_mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89c5d3704248213c78115ed270e39e01d4cc5b3afb7a751eab6dc0efaf8e8ee1
|
| 3 |
+
size 559966
|
checkpoint-369/global_step369/zero_pp_rank_3_mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:85ccb68c73149ac50766ad701519fc0594324ae31dd127b9aa4c6eeafc903b88
|
| 3 |
+
size 559966
|
checkpoint-369/latest
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
global_step369
|
checkpoint-369/rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:193ab02b9ea2f38bccf8984657f0b1f6ceced083148df26f9961cbd53bd771b0
|
| 3 |
+
size 14960
|
checkpoint-369/rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ce80a2f8061d3aede17a14574a504bad06614b0a2bd8d3fdda770a7d8aa4e35
|
| 3 |
+
size 14960
|
checkpoint-369/rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e2ccf94bd1219c5a51f81601c0db2d9a9da592801101d4ceaa1528d7202f671
|
| 3 |
+
size 14960
|
checkpoint-369/rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30255d17e25edfb1f161c2b27bde748d481bf4bfa14102c0b13a38e2177b78d4
|
| 3 |
+
size 14960
|
checkpoint-369/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a44a49a0ad33661f8ca98e6969165516cf2f862ed909c6c31a38267d265bc4b
|
| 3 |
+
size 1064
|
checkpoint-369/special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "</s>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<pad>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<unk>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
}
|
| 30 |
+
}
|
checkpoint-369/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0240ce510f08e6c2041724e9043e33be9d251d1e4a4d94eb68cd47b954b61d2
|
| 3 |
+
size 17078292
|
checkpoint-369/tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-369/trainer_state.json
ADDED
|
@@ -0,0 +1,2616 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 0.4996614759647935,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 369,
|
| 7 |
+
"is_hyper_param_search": false,
|
| 8 |
+
"is_local_process_zero": true,
|
| 9 |
+
"is_world_process_zero": true,
|
| 10 |
+
"log_history": [
|
| 11 |
+
{
|
| 12 |
+
"epoch": 0.0013540961408259986,
|
| 13 |
+
"grad_norm": 2.4840032646087007,
|
| 14 |
+
"learning_rate": 2.5000000000000004e-07,
|
| 15 |
+
"loss": 3.1189,
|
| 16 |
+
"step": 1
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"epoch": 0.002708192281651997,
|
| 20 |
+
"grad_norm": 2.92319290291185,
|
| 21 |
+
"learning_rate": 5.000000000000001e-07,
|
| 22 |
+
"loss": 2.6861,
|
| 23 |
+
"step": 2
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"epoch": 0.004062288422477996,
|
| 27 |
+
"grad_norm": 2.8047579443092108,
|
| 28 |
+
"learning_rate": 7.5e-07,
|
| 29 |
+
"loss": 3.339,
|
| 30 |
+
"step": 3
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"epoch": 0.005416384563303994,
|
| 34 |
+
"grad_norm": 2.4920981499635224,
|
| 35 |
+
"learning_rate": 1.0000000000000002e-06,
|
| 36 |
+
"loss": 2.4573,
|
| 37 |
+
"step": 4
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"epoch": 0.006770480704129994,
|
| 41 |
+
"grad_norm": 2.6989232511239787,
|
| 42 |
+
"learning_rate": 1.25e-06,
|
| 43 |
+
"loss": 2.5324,
|
| 44 |
+
"step": 5
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"epoch": 0.008124576844955992,
|
| 48 |
+
"grad_norm": 3.0185163841424987,
|
| 49 |
+
"learning_rate": 1.5e-06,
|
| 50 |
+
"loss": 2.7215,
|
| 51 |
+
"step": 6
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"epoch": 0.009478672985781991,
|
| 55 |
+
"grad_norm": 2.0398408839964137,
|
| 56 |
+
"learning_rate": 1.75e-06,
|
| 57 |
+
"loss": 2.1644,
|
| 58 |
+
"step": 7
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"epoch": 0.010832769126607989,
|
| 62 |
+
"grad_norm": 3.45002669711186,
|
| 63 |
+
"learning_rate": 2.0000000000000003e-06,
|
| 64 |
+
"loss": 2.9371,
|
| 65 |
+
"step": 8
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"epoch": 0.012186865267433988,
|
| 69 |
+
"grad_norm": 2.2776378980264718,
|
| 70 |
+
"learning_rate": 2.25e-06,
|
| 71 |
+
"loss": 3.6517,
|
| 72 |
+
"step": 9
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"epoch": 0.013540961408259987,
|
| 76 |
+
"grad_norm": 2.825903106798789,
|
| 77 |
+
"learning_rate": 2.5e-06,
|
| 78 |
+
"loss": 2.5649,
|
| 79 |
+
"step": 10
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"epoch": 0.014895057549085985,
|
| 83 |
+
"grad_norm": 2.723314018937158,
|
| 84 |
+
"learning_rate": 2.7500000000000004e-06,
|
| 85 |
+
"loss": 3.0391,
|
| 86 |
+
"step": 11
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"epoch": 0.016249153689911984,
|
| 90 |
+
"grad_norm": 3.172036134399068,
|
| 91 |
+
"learning_rate": 3e-06,
|
| 92 |
+
"loss": 2.8953,
|
| 93 |
+
"step": 12
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"epoch": 0.017603249830737983,
|
| 97 |
+
"grad_norm": 2.838052809555009,
|
| 98 |
+
"learning_rate": 3.2500000000000002e-06,
|
| 99 |
+
"loss": 2.8184,
|
| 100 |
+
"step": 13
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 0.018957345971563982,
|
| 104 |
+
"grad_norm": 3.7070274580501756,
|
| 105 |
+
"learning_rate": 3.5e-06,
|
| 106 |
+
"loss": 2.9666,
|
| 107 |
+
"step": 14
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"epoch": 0.020311442112389978,
|
| 111 |
+
"grad_norm": 2.2063413123307223,
|
| 112 |
+
"learning_rate": 3.7500000000000005e-06,
|
| 113 |
+
"loss": 2.8188,
|
| 114 |
+
"step": 15
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"epoch": 0.021665538253215978,
|
| 118 |
+
"grad_norm": 2.5023444159347243,
|
| 119 |
+
"learning_rate": 4.000000000000001e-06,
|
| 120 |
+
"loss": 2.7621,
|
| 121 |
+
"step": 16
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"epoch": 0.023019634394041977,
|
| 125 |
+
"grad_norm": 2.0716483514966266,
|
| 126 |
+
"learning_rate": 4.25e-06,
|
| 127 |
+
"loss": 2.5605,
|
| 128 |
+
"step": 17
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"epoch": 0.024373730534867976,
|
| 132 |
+
"grad_norm": 1.9009417808791889,
|
| 133 |
+
"learning_rate": 4.5e-06,
|
| 134 |
+
"loss": 2.3993,
|
| 135 |
+
"step": 18
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"epoch": 0.025727826675693975,
|
| 139 |
+
"grad_norm": 1.6281815273569142,
|
| 140 |
+
"learning_rate": 4.75e-06,
|
| 141 |
+
"loss": 2.8062,
|
| 142 |
+
"step": 19
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"epoch": 0.027081922816519974,
|
| 146 |
+
"grad_norm": 2.7256934688885153,
|
| 147 |
+
"learning_rate": 5e-06,
|
| 148 |
+
"loss": 2.4145,
|
| 149 |
+
"step": 20
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"epoch": 0.02843601895734597,
|
| 153 |
+
"grad_norm": 1.7492771266021097,
|
| 154 |
+
"learning_rate": 5.2500000000000006e-06,
|
| 155 |
+
"loss": 3.0841,
|
| 156 |
+
"step": 21
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"epoch": 0.02979011509817197,
|
| 160 |
+
"grad_norm": 0.9056200631767789,
|
| 161 |
+
"learning_rate": 5.500000000000001e-06,
|
| 162 |
+
"loss": 2.7354,
|
| 163 |
+
"step": 22
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"epoch": 0.03114421123899797,
|
| 167 |
+
"grad_norm": 0.9006011502765553,
|
| 168 |
+
"learning_rate": 5.75e-06,
|
| 169 |
+
"loss": 2.5312,
|
| 170 |
+
"step": 23
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"epoch": 0.03249830737982397,
|
| 174 |
+
"grad_norm": 1.5068464694001362,
|
| 175 |
+
"learning_rate": 6e-06,
|
| 176 |
+
"loss": 2.4401,
|
| 177 |
+
"step": 24
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"epoch": 0.033852403520649964,
|
| 181 |
+
"grad_norm": 1.1756450984633096,
|
| 182 |
+
"learning_rate": 6.25e-06,
|
| 183 |
+
"loss": 2.7984,
|
| 184 |
+
"step": 25
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"epoch": 0.035206499661475966,
|
| 188 |
+
"grad_norm": 1.5609942359404068,
|
| 189 |
+
"learning_rate": 6.5000000000000004e-06,
|
| 190 |
+
"loss": 1.8799,
|
| 191 |
+
"step": 26
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"epoch": 0.03656059580230196,
|
| 195 |
+
"grad_norm": 1.103542364498138,
|
| 196 |
+
"learning_rate": 6.750000000000001e-06,
|
| 197 |
+
"loss": 2.2657,
|
| 198 |
+
"step": 27
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"epoch": 0.037914691943127965,
|
| 202 |
+
"grad_norm": 0.9971728919317084,
|
| 203 |
+
"learning_rate": 7e-06,
|
| 204 |
+
"loss": 2.4469,
|
| 205 |
+
"step": 28
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"epoch": 0.03926878808395396,
|
| 209 |
+
"grad_norm": 1.2637045038992765,
|
| 210 |
+
"learning_rate": 7.25e-06,
|
| 211 |
+
"loss": 2.7085,
|
| 212 |
+
"step": 29
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"epoch": 0.040622884224779957,
|
| 216 |
+
"grad_norm": 1.0087355495607542,
|
| 217 |
+
"learning_rate": 7.500000000000001e-06,
|
| 218 |
+
"loss": 2.647,
|
| 219 |
+
"step": 30
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"epoch": 0.04197698036560596,
|
| 223 |
+
"grad_norm": 1.1422809581031197,
|
| 224 |
+
"learning_rate": 7.75e-06,
|
| 225 |
+
"loss": 2.666,
|
| 226 |
+
"step": 31
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"epoch": 0.043331076506431955,
|
| 230 |
+
"grad_norm": 0.9656489652064195,
|
| 231 |
+
"learning_rate": 8.000000000000001e-06,
|
| 232 |
+
"loss": 2.674,
|
| 233 |
+
"step": 32
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"epoch": 0.04468517264725796,
|
| 237 |
+
"grad_norm": 1.2694895548396936,
|
| 238 |
+
"learning_rate": 8.25e-06,
|
| 239 |
+
"loss": 2.6238,
|
| 240 |
+
"step": 33
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"epoch": 0.046039268788083954,
|
| 244 |
+
"grad_norm": 0.9223153234403145,
|
| 245 |
+
"learning_rate": 8.5e-06,
|
| 246 |
+
"loss": 2.4833,
|
| 247 |
+
"step": 34
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"epoch": 0.04739336492890995,
|
| 251 |
+
"grad_norm": 0.6904918931455449,
|
| 252 |
+
"learning_rate": 8.750000000000001e-06,
|
| 253 |
+
"loss": 2.3643,
|
| 254 |
+
"step": 35
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"epoch": 0.04874746106973595,
|
| 258 |
+
"grad_norm": 1.3920707796397145,
|
| 259 |
+
"learning_rate": 9e-06,
|
| 260 |
+
"loss": 2.7138,
|
| 261 |
+
"step": 36
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"epoch": 0.05010155721056195,
|
| 265 |
+
"grad_norm": 1.3111040526577917,
|
| 266 |
+
"learning_rate": 9.250000000000001e-06,
|
| 267 |
+
"loss": 3.0125,
|
| 268 |
+
"step": 37
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"epoch": 0.05145565335138795,
|
| 272 |
+
"grad_norm": 1.280730826597217,
|
| 273 |
+
"learning_rate": 9.5e-06,
|
| 274 |
+
"loss": 3.0783,
|
| 275 |
+
"step": 38
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"epoch": 0.052809749492213946,
|
| 279 |
+
"grad_norm": 1.0271755023288214,
|
| 280 |
+
"learning_rate": 9.75e-06,
|
| 281 |
+
"loss": 2.0996,
|
| 282 |
+
"step": 39
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"epoch": 0.05416384563303995,
|
| 286 |
+
"grad_norm": 0.8222149166421281,
|
| 287 |
+
"learning_rate": 1e-05,
|
| 288 |
+
"loss": 2.5166,
|
| 289 |
+
"step": 40
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"epoch": 0.055517941773865945,
|
| 293 |
+
"grad_norm": 0.9001955314444051,
|
| 294 |
+
"learning_rate": 9.999988034504136e-06,
|
| 295 |
+
"loss": 2.2754,
|
| 296 |
+
"step": 41
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"epoch": 0.05687203791469194,
|
| 300 |
+
"grad_norm": 0.8230494015971713,
|
| 301 |
+
"learning_rate": 9.99995213807381e-06,
|
| 302 |
+
"loss": 2.2014,
|
| 303 |
+
"step": 42
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"epoch": 0.05822613405551794,
|
| 307 |
+
"grad_norm": 0.8386219965539589,
|
| 308 |
+
"learning_rate": 9.99989231088083e-06,
|
| 309 |
+
"loss": 2.7913,
|
| 310 |
+
"step": 43
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"epoch": 0.05958023019634394,
|
| 314 |
+
"grad_norm": 0.8301953727405478,
|
| 315 |
+
"learning_rate": 9.99980855321154e-06,
|
| 316 |
+
"loss": 2.8559,
|
| 317 |
+
"step": 44
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"epoch": 0.06093432633716994,
|
| 321 |
+
"grad_norm": 1.435333986474164,
|
| 322 |
+
"learning_rate": 9.999700865466825e-06,
|
| 323 |
+
"loss": 2.7823,
|
| 324 |
+
"step": 45
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"epoch": 0.06228842247799594,
|
| 328 |
+
"grad_norm": 0.7745604592769975,
|
| 329 |
+
"learning_rate": 9.999569248162095e-06,
|
| 330 |
+
"loss": 2.1645,
|
| 331 |
+
"step": 46
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"epoch": 0.06364251861882193,
|
| 335 |
+
"grad_norm": 0.7872260023932528,
|
| 336 |
+
"learning_rate": 9.999413701927298e-06,
|
| 337 |
+
"loss": 2.6378,
|
| 338 |
+
"step": 47
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"epoch": 0.06499661475964794,
|
| 342 |
+
"grad_norm": 0.9284676925561781,
|
| 343 |
+
"learning_rate": 9.999234227506912e-06,
|
| 344 |
+
"loss": 2.3144,
|
| 345 |
+
"step": 48
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"epoch": 0.06635071090047394,
|
| 349 |
+
"grad_norm": 0.7702824584250887,
|
| 350 |
+
"learning_rate": 9.999030825759934e-06,
|
| 351 |
+
"loss": 2.5719,
|
| 352 |
+
"step": 49
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"epoch": 0.06770480704129993,
|
| 356 |
+
"grad_norm": 1.7969417808741215,
|
| 357 |
+
"learning_rate": 9.998803497659885e-06,
|
| 358 |
+
"loss": 2.2117,
|
| 359 |
+
"step": 50
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"epoch": 0.06905890318212593,
|
| 363 |
+
"grad_norm": 0.8303034868453852,
|
| 364 |
+
"learning_rate": 9.998552244294803e-06,
|
| 365 |
+
"loss": 2.4058,
|
| 366 |
+
"step": 51
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"epoch": 0.07041299932295193,
|
| 370 |
+
"grad_norm": 1.0962548207238205,
|
| 371 |
+
"learning_rate": 9.998277066867236e-06,
|
| 372 |
+
"loss": 2.6942,
|
| 373 |
+
"step": 52
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"epoch": 0.07176709546377792,
|
| 377 |
+
"grad_norm": 1.0119530000904415,
|
| 378 |
+
"learning_rate": 9.99797796669424e-06,
|
| 379 |
+
"loss": 2.6186,
|
| 380 |
+
"step": 53
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"epoch": 0.07312119160460392,
|
| 384 |
+
"grad_norm": 0.8130591704344431,
|
| 385 |
+
"learning_rate": 9.997654945207368e-06,
|
| 386 |
+
"loss": 2.5114,
|
| 387 |
+
"step": 54
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"epoch": 0.07447528774542993,
|
| 391 |
+
"grad_norm": 0.7598768980100439,
|
| 392 |
+
"learning_rate": 9.997308003952659e-06,
|
| 393 |
+
"loss": 2.5052,
|
| 394 |
+
"step": 55
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"epoch": 0.07582938388625593,
|
| 398 |
+
"grad_norm": 0.7067903745494273,
|
| 399 |
+
"learning_rate": 9.99693714459065e-06,
|
| 400 |
+
"loss": 2.6569,
|
| 401 |
+
"step": 56
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"epoch": 0.07718348002708192,
|
| 405 |
+
"grad_norm": 1.1966126433581616,
|
| 406 |
+
"learning_rate": 9.996542368896343e-06,
|
| 407 |
+
"loss": 2.1643,
|
| 408 |
+
"step": 57
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"epoch": 0.07853757616790792,
|
| 412 |
+
"grad_norm": 0.6603354212066763,
|
| 413 |
+
"learning_rate": 9.996123678759214e-06,
|
| 414 |
+
"loss": 2.1989,
|
| 415 |
+
"step": 58
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"epoch": 0.07989167230873392,
|
| 419 |
+
"grad_norm": 1.536917763640058,
|
| 420 |
+
"learning_rate": 9.995681076183197e-06,
|
| 421 |
+
"loss": 2.542,
|
| 422 |
+
"step": 59
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"epoch": 0.08124576844955991,
|
| 426 |
+
"grad_norm": 1.076294402304339,
|
| 427 |
+
"learning_rate": 9.995214563286677e-06,
|
| 428 |
+
"loss": 2.6239,
|
| 429 |
+
"step": 60
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"epoch": 0.08259986459038592,
|
| 433 |
+
"grad_norm": 0.8429191198665816,
|
| 434 |
+
"learning_rate": 9.994724142302474e-06,
|
| 435 |
+
"loss": 2.5167,
|
| 436 |
+
"step": 61
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"epoch": 0.08395396073121192,
|
| 440 |
+
"grad_norm": 0.9566424524099907,
|
| 441 |
+
"learning_rate": 9.994209815577843e-06,
|
| 442 |
+
"loss": 2.4603,
|
| 443 |
+
"step": 62
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"epoch": 0.08530805687203792,
|
| 447 |
+
"grad_norm": 0.770516812968522,
|
| 448 |
+
"learning_rate": 9.993671585574452e-06,
|
| 449 |
+
"loss": 2.615,
|
| 450 |
+
"step": 63
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"epoch": 0.08666215301286391,
|
| 454 |
+
"grad_norm": 0.6919266782030121,
|
| 455 |
+
"learning_rate": 9.993109454868379e-06,
|
| 456 |
+
"loss": 2.3676,
|
| 457 |
+
"step": 64
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"epoch": 0.08801624915368991,
|
| 461 |
+
"grad_norm": 0.75481755204904,
|
| 462 |
+
"learning_rate": 9.992523426150091e-06,
|
| 463 |
+
"loss": 2.4574,
|
| 464 |
+
"step": 65
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"epoch": 0.08937034529451592,
|
| 468 |
+
"grad_norm": 0.7067208707696914,
|
| 469 |
+
"learning_rate": 9.991913502224438e-06,
|
| 470 |
+
"loss": 2.2171,
|
| 471 |
+
"step": 66
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"epoch": 0.0907244414353419,
|
| 475 |
+
"grad_norm": 1.0878007201904665,
|
| 476 |
+
"learning_rate": 9.991279686010637e-06,
|
| 477 |
+
"loss": 3.1181,
|
| 478 |
+
"step": 67
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"epoch": 0.09207853757616791,
|
| 482 |
+
"grad_norm": 0.7406127801462548,
|
| 483 |
+
"learning_rate": 9.990621980542258e-06,
|
| 484 |
+
"loss": 2.5117,
|
| 485 |
+
"step": 68
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"epoch": 0.09343263371699391,
|
| 489 |
+
"grad_norm": 0.7363797966643979,
|
| 490 |
+
"learning_rate": 9.98994038896721e-06,
|
| 491 |
+
"loss": 2.769,
|
| 492 |
+
"step": 69
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"epoch": 0.0947867298578199,
|
| 496 |
+
"grad_norm": 0.6997455244847285,
|
| 497 |
+
"learning_rate": 9.989234914547725e-06,
|
| 498 |
+
"loss": 2.3619,
|
| 499 |
+
"step": 70
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"epoch": 0.0961408259986459,
|
| 503 |
+
"grad_norm": 0.6185449490741277,
|
| 504 |
+
"learning_rate": 9.988505560660344e-06,
|
| 505 |
+
"loss": 2.4934,
|
| 506 |
+
"step": 71
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"epoch": 0.0974949221394719,
|
| 510 |
+
"grad_norm": 1.8182918826297632,
|
| 511 |
+
"learning_rate": 9.9877523307959e-06,
|
| 512 |
+
"loss": 2.7052,
|
| 513 |
+
"step": 72
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"epoch": 0.0988490182802979,
|
| 517 |
+
"grad_norm": 0.9136867007851477,
|
| 518 |
+
"learning_rate": 9.9869752285595e-06,
|
| 519 |
+
"loss": 2.7127,
|
| 520 |
+
"step": 73
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"epoch": 0.1002031144211239,
|
| 524 |
+
"grad_norm": 0.8177660946450126,
|
| 525 |
+
"learning_rate": 9.986174257670509e-06,
|
| 526 |
+
"loss": 2.5386,
|
| 527 |
+
"step": 74
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"epoch": 0.1015572105619499,
|
| 531 |
+
"grad_norm": 0.7019364782921708,
|
| 532 |
+
"learning_rate": 9.985349421962532e-06,
|
| 533 |
+
"loss": 2.6846,
|
| 534 |
+
"step": 75
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"epoch": 0.1029113067027759,
|
| 538 |
+
"grad_norm": 0.7776591538429096,
|
| 539 |
+
"learning_rate": 9.984500725383397e-06,
|
| 540 |
+
"loss": 2.7552,
|
| 541 |
+
"step": 76
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"epoch": 0.10426540284360189,
|
| 545 |
+
"grad_norm": 0.6829070090456675,
|
| 546 |
+
"learning_rate": 9.983628171995136e-06,
|
| 547 |
+
"loss": 2.049,
|
| 548 |
+
"step": 77
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"epoch": 0.10561949898442789,
|
| 552 |
+
"grad_norm": 0.8680053222596442,
|
| 553 |
+
"learning_rate": 9.98273176597396e-06,
|
| 554 |
+
"loss": 2.4778,
|
| 555 |
+
"step": 78
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"epoch": 0.1069735951252539,
|
| 559 |
+
"grad_norm": 0.7964757819779202,
|
| 560 |
+
"learning_rate": 9.981811511610246e-06,
|
| 561 |
+
"loss": 2.609,
|
| 562 |
+
"step": 79
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"epoch": 0.1083276912660799,
|
| 566 |
+
"grad_norm": 0.8603316916001541,
|
| 567 |
+
"learning_rate": 9.980867413308516e-06,
|
| 568 |
+
"loss": 2.6895,
|
| 569 |
+
"step": 80
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"epoch": 0.10968178740690589,
|
| 573 |
+
"grad_norm": 0.9007993024274796,
|
| 574 |
+
"learning_rate": 9.97989947558741e-06,
|
| 575 |
+
"loss": 1.841,
|
| 576 |
+
"step": 81
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"epoch": 0.11103588354773189,
|
| 580 |
+
"grad_norm": 1.022466421728221,
|
| 581 |
+
"learning_rate": 9.978907703079672e-06,
|
| 582 |
+
"loss": 2.368,
|
| 583 |
+
"step": 82
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"epoch": 0.11238997968855789,
|
| 587 |
+
"grad_norm": 0.8845970984922622,
|
| 588 |
+
"learning_rate": 9.97789210053212e-06,
|
| 589 |
+
"loss": 2.6168,
|
| 590 |
+
"step": 83
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"epoch": 0.11374407582938388,
|
| 594 |
+
"grad_norm": 0.7307749666567861,
|
| 595 |
+
"learning_rate": 9.976852672805625e-06,
|
| 596 |
+
"loss": 2.6611,
|
| 597 |
+
"step": 84
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"epoch": 0.11509817197020988,
|
| 601 |
+
"grad_norm": 1.030662172928111,
|
| 602 |
+
"learning_rate": 9.975789424875104e-06,
|
| 603 |
+
"loss": 2.4778,
|
| 604 |
+
"step": 85
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"epoch": 0.11645226811103589,
|
| 608 |
+
"grad_norm": 1.0269306202089545,
|
| 609 |
+
"learning_rate": 9.974702361829465e-06,
|
| 610 |
+
"loss": 2.0226,
|
| 611 |
+
"step": 86
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"epoch": 0.11780636425186188,
|
| 615 |
+
"grad_norm": 0.9557403327101263,
|
| 616 |
+
"learning_rate": 9.97359148887161e-06,
|
| 617 |
+
"loss": 2.5957,
|
| 618 |
+
"step": 87
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"epoch": 0.11916046039268788,
|
| 622 |
+
"grad_norm": 1.2342067337912177,
|
| 623 |
+
"learning_rate": 9.972456811318399e-06,
|
| 624 |
+
"loss": 2.3621,
|
| 625 |
+
"step": 88
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"epoch": 0.12051455653351388,
|
| 629 |
+
"grad_norm": 0.9439454489946377,
|
| 630 |
+
"learning_rate": 9.97129833460062e-06,
|
| 631 |
+
"loss": 2.1986,
|
| 632 |
+
"step": 89
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"epoch": 0.12186865267433988,
|
| 636 |
+
"grad_norm": 0.9410876234442836,
|
| 637 |
+
"learning_rate": 9.970116064262975e-06,
|
| 638 |
+
"loss": 2.7015,
|
| 639 |
+
"step": 90
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"epoch": 0.12322274881516587,
|
| 643 |
+
"grad_norm": 0.7573572965312575,
|
| 644 |
+
"learning_rate": 9.968910005964043e-06,
|
| 645 |
+
"loss": 3.2786,
|
| 646 |
+
"step": 91
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"epoch": 0.12457684495599188,
|
| 650 |
+
"grad_norm": 0.8749972433179365,
|
| 651 |
+
"learning_rate": 9.96768016547626e-06,
|
| 652 |
+
"loss": 2.5444,
|
| 653 |
+
"step": 92
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"epoch": 0.12593094109681788,
|
| 657 |
+
"grad_norm": 0.9612381390622727,
|
| 658 |
+
"learning_rate": 9.966426548685883e-06,
|
| 659 |
+
"loss": 3.0084,
|
| 660 |
+
"step": 93
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"epoch": 0.12728503723764387,
|
| 664 |
+
"grad_norm": 2.987117261751073,
|
| 665 |
+
"learning_rate": 9.965149161592973e-06,
|
| 666 |
+
"loss": 2.497,
|
| 667 |
+
"step": 94
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"epoch": 0.12863913337846988,
|
| 671 |
+
"grad_norm": 0.9835961282773672,
|
| 672 |
+
"learning_rate": 9.96384801031136e-06,
|
| 673 |
+
"loss": 2.5352,
|
| 674 |
+
"step": 95
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"epoch": 0.12999322951929587,
|
| 678 |
+
"grad_norm": 0.9193436131089541,
|
| 679 |
+
"learning_rate": 9.962523101068608e-06,
|
| 680 |
+
"loss": 2.8517,
|
| 681 |
+
"step": 96
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"epoch": 0.13134732566012186,
|
| 685 |
+
"grad_norm": 0.7624957621675597,
|
| 686 |
+
"learning_rate": 9.961174440205998e-06,
|
| 687 |
+
"loss": 2.5317,
|
| 688 |
+
"step": 97
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"epoch": 0.13270142180094788,
|
| 692 |
+
"grad_norm": 0.8220019285296615,
|
| 693 |
+
"learning_rate": 9.959802034178489e-06,
|
| 694 |
+
"loss": 2.4109,
|
| 695 |
+
"step": 98
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"epoch": 0.13405551794177387,
|
| 699 |
+
"grad_norm": 0.7696635269910559,
|
| 700 |
+
"learning_rate": 9.958405889554687e-06,
|
| 701 |
+
"loss": 2.2455,
|
| 702 |
+
"step": 99
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"epoch": 0.13540961408259986,
|
| 706 |
+
"grad_norm": 1.2821194483642973,
|
| 707 |
+
"learning_rate": 9.956986013016816e-06,
|
| 708 |
+
"loss": 2.568,
|
| 709 |
+
"step": 100
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"epoch": 0.13676371022342587,
|
| 713 |
+
"grad_norm": 1.0396436901580886,
|
| 714 |
+
"learning_rate": 9.95554241136069e-06,
|
| 715 |
+
"loss": 2.1504,
|
| 716 |
+
"step": 101
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"epoch": 0.13811780636425186,
|
| 720 |
+
"grad_norm": 1.222875873814822,
|
| 721 |
+
"learning_rate": 9.954075091495669e-06,
|
| 722 |
+
"loss": 1.8413,
|
| 723 |
+
"step": 102
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"epoch": 0.13947190250507785,
|
| 727 |
+
"grad_norm": 0.7869762113593299,
|
| 728 |
+
"learning_rate": 9.95258406044464e-06,
|
| 729 |
+
"loss": 2.3467,
|
| 730 |
+
"step": 103
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"epoch": 0.14082599864590387,
|
| 734 |
+
"grad_norm": 0.7464132847692124,
|
| 735 |
+
"learning_rate": 9.951069325343972e-06,
|
| 736 |
+
"loss": 2.3054,
|
| 737 |
+
"step": 104
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"epoch": 0.14218009478672985,
|
| 741 |
+
"grad_norm": 0.7888132769649014,
|
| 742 |
+
"learning_rate": 9.949530893443489e-06,
|
| 743 |
+
"loss": 2.7196,
|
| 744 |
+
"step": 105
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"epoch": 0.14353419092755584,
|
| 748 |
+
"grad_norm": 0.7956222737201969,
|
| 749 |
+
"learning_rate": 9.947968772106428e-06,
|
| 750 |
+
"loss": 2.4884,
|
| 751 |
+
"step": 106
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"epoch": 0.14488828706838186,
|
| 755 |
+
"grad_norm": 0.7975440031710949,
|
| 756 |
+
"learning_rate": 9.946382968809413e-06,
|
| 757 |
+
"loss": 2.8331,
|
| 758 |
+
"step": 107
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"epoch": 0.14624238320920785,
|
| 762 |
+
"grad_norm": 1.95160164876152,
|
| 763 |
+
"learning_rate": 9.944773491142416e-06,
|
| 764 |
+
"loss": 2.5936,
|
| 765 |
+
"step": 108
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"epoch": 0.14759647935003387,
|
| 769 |
+
"grad_norm": 0.7707347796969224,
|
| 770 |
+
"learning_rate": 9.943140346808715e-06,
|
| 771 |
+
"loss": 1.9831,
|
| 772 |
+
"step": 109
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"epoch": 0.14895057549085985,
|
| 776 |
+
"grad_norm": 1.0591140801414067,
|
| 777 |
+
"learning_rate": 9.94148354362486e-06,
|
| 778 |
+
"loss": 2.224,
|
| 779 |
+
"step": 110
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"epoch": 0.15030467163168584,
|
| 783 |
+
"grad_norm": 1.0010907115642087,
|
| 784 |
+
"learning_rate": 9.939803089520641e-06,
|
| 785 |
+
"loss": 2.6739,
|
| 786 |
+
"step": 111
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"epoch": 0.15165876777251186,
|
| 790 |
+
"grad_norm": 0.8318923981444863,
|
| 791 |
+
"learning_rate": 9.938098992539045e-06,
|
| 792 |
+
"loss": 2.2503,
|
| 793 |
+
"step": 112
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"epoch": 0.15301286391333785,
|
| 797 |
+
"grad_norm": 0.7628830744549152,
|
| 798 |
+
"learning_rate": 9.93637126083622e-06,
|
| 799 |
+
"loss": 2.4004,
|
| 800 |
+
"step": 113
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"epoch": 0.15436696005416384,
|
| 804 |
+
"grad_norm": 1.2732533307878235,
|
| 805 |
+
"learning_rate": 9.93461990268143e-06,
|
| 806 |
+
"loss": 2.3523,
|
| 807 |
+
"step": 114
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"epoch": 0.15572105619498985,
|
| 811 |
+
"grad_norm": 0.8643222482800437,
|
| 812 |
+
"learning_rate": 9.932844926457024e-06,
|
| 813 |
+
"loss": 2.6932,
|
| 814 |
+
"step": 115
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"epoch": 0.15707515233581584,
|
| 818 |
+
"grad_norm": 1.0982969820587143,
|
| 819 |
+
"learning_rate": 9.931046340658387e-06,
|
| 820 |
+
"loss": 2.6476,
|
| 821 |
+
"step": 116
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"epoch": 0.15842924847664183,
|
| 825 |
+
"grad_norm": 0.8246096418384085,
|
| 826 |
+
"learning_rate": 9.929224153893913e-06,
|
| 827 |
+
"loss": 2.2256,
|
| 828 |
+
"step": 117
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"epoch": 0.15978334461746785,
|
| 832 |
+
"grad_norm": 1.1291179847133526,
|
| 833 |
+
"learning_rate": 9.927378374884947e-06,
|
| 834 |
+
"loss": 2.521,
|
| 835 |
+
"step": 118
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"epoch": 0.16113744075829384,
|
| 839 |
+
"grad_norm": 0.7541483793541535,
|
| 840 |
+
"learning_rate": 9.92550901246575e-06,
|
| 841 |
+
"loss": 1.8844,
|
| 842 |
+
"step": 119
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"epoch": 0.16249153689911983,
|
| 846 |
+
"grad_norm": 0.8163459296091435,
|
| 847 |
+
"learning_rate": 9.923616075583465e-06,
|
| 848 |
+
"loss": 3.0096,
|
| 849 |
+
"step": 120
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"epoch": 0.16384563303994584,
|
| 853 |
+
"grad_norm": 1.026618712540373,
|
| 854 |
+
"learning_rate": 9.921699573298063e-06,
|
| 855 |
+
"loss": 2.7169,
|
| 856 |
+
"step": 121
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"epoch": 0.16519972918077183,
|
| 860 |
+
"grad_norm": 0.9163179029291131,
|
| 861 |
+
"learning_rate": 9.919759514782304e-06,
|
| 862 |
+
"loss": 2.2547,
|
| 863 |
+
"step": 122
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"epoch": 0.16655382532159782,
|
| 867 |
+
"grad_norm": 0.637693899798208,
|
| 868 |
+
"learning_rate": 9.91779590932169e-06,
|
| 869 |
+
"loss": 2.1517,
|
| 870 |
+
"step": 123
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"epoch": 0.16790792146242384,
|
| 874 |
+
"grad_norm": 0.9559710413913272,
|
| 875 |
+
"learning_rate": 9.91580876631443e-06,
|
| 876 |
+
"loss": 2.2203,
|
| 877 |
+
"step": 124
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"epoch": 0.16926201760324983,
|
| 881 |
+
"grad_norm": 1.696116526101562,
|
| 882 |
+
"learning_rate": 9.913798095271385e-06,
|
| 883 |
+
"loss": 2.3273,
|
| 884 |
+
"step": 125
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"epoch": 0.17061611374407584,
|
| 888 |
+
"grad_norm": 0.8410939323658712,
|
| 889 |
+
"learning_rate": 9.91176390581602e-06,
|
| 890 |
+
"loss": 2.5569,
|
| 891 |
+
"step": 126
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"epoch": 0.17197020988490183,
|
| 895 |
+
"grad_norm": 0.9518930879821595,
|
| 896 |
+
"learning_rate": 9.909706207684377e-06,
|
| 897 |
+
"loss": 2.5826,
|
| 898 |
+
"step": 127
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"epoch": 0.17332430602572782,
|
| 902 |
+
"grad_norm": 0.8464728478763351,
|
| 903 |
+
"learning_rate": 9.907625010724999e-06,
|
| 904 |
+
"loss": 2.5954,
|
| 905 |
+
"step": 128
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"epoch": 0.17467840216655384,
|
| 909 |
+
"grad_norm": 1.7797343941367096,
|
| 910 |
+
"learning_rate": 9.905520324898914e-06,
|
| 911 |
+
"loss": 2.238,
|
| 912 |
+
"step": 129
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"epoch": 0.17603249830737983,
|
| 916 |
+
"grad_norm": 1.200087573042979,
|
| 917 |
+
"learning_rate": 9.903392160279564e-06,
|
| 918 |
+
"loss": 2.7202,
|
| 919 |
+
"step": 130
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"epoch": 0.17738659444820581,
|
| 923 |
+
"grad_norm": 0.8464685532106079,
|
| 924 |
+
"learning_rate": 9.901240527052764e-06,
|
| 925 |
+
"loss": 2.105,
|
| 926 |
+
"step": 131
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"epoch": 0.17874069058903183,
|
| 930 |
+
"grad_norm": 0.940863564248954,
|
| 931 |
+
"learning_rate": 9.899065435516661e-06,
|
| 932 |
+
"loss": 2.5347,
|
| 933 |
+
"step": 132
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"epoch": 0.18009478672985782,
|
| 937 |
+
"grad_norm": 0.7977576897280799,
|
| 938 |
+
"learning_rate": 9.896866896081675e-06,
|
| 939 |
+
"loss": 2.9814,
|
| 940 |
+
"step": 133
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"epoch": 0.1814488828706838,
|
| 944 |
+
"grad_norm": 1.1663128930633815,
|
| 945 |
+
"learning_rate": 9.894644919270448e-06,
|
| 946 |
+
"loss": 2.5215,
|
| 947 |
+
"step": 134
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"epoch": 0.18280297901150983,
|
| 951 |
+
"grad_norm": 1.728136703163258,
|
| 952 |
+
"learning_rate": 9.892399515717805e-06,
|
| 953 |
+
"loss": 3.053,
|
| 954 |
+
"step": 135
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"epoch": 0.18415707515233581,
|
| 958 |
+
"grad_norm": 0.7851660984466424,
|
| 959 |
+
"learning_rate": 9.890130696170691e-06,
|
| 960 |
+
"loss": 1.9476,
|
| 961 |
+
"step": 136
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"epoch": 0.1855111712931618,
|
| 965 |
+
"grad_norm": 0.7821494358810632,
|
| 966 |
+
"learning_rate": 9.887838471488126e-06,
|
| 967 |
+
"loss": 2.2599,
|
| 968 |
+
"step": 137
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"epoch": 0.18686526743398782,
|
| 972 |
+
"grad_norm": 0.9644512402210179,
|
| 973 |
+
"learning_rate": 9.885522852641156e-06,
|
| 974 |
+
"loss": 2.352,
|
| 975 |
+
"step": 138
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"epoch": 0.1882193635748138,
|
| 979 |
+
"grad_norm": 0.8127395523345673,
|
| 980 |
+
"learning_rate": 9.883183850712788e-06,
|
| 981 |
+
"loss": 2.1334,
|
| 982 |
+
"step": 139
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"epoch": 0.1895734597156398,
|
| 986 |
+
"grad_norm": 1.041333455542229,
|
| 987 |
+
"learning_rate": 9.880821476897948e-06,
|
| 988 |
+
"loss": 1.7956,
|
| 989 |
+
"step": 140
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"epoch": 0.1909275558564658,
|
| 993 |
+
"grad_norm": 0.905550712837899,
|
| 994 |
+
"learning_rate": 9.878435742503431e-06,
|
| 995 |
+
"loss": 2.4699,
|
| 996 |
+
"step": 141
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"epoch": 0.1922816519972918,
|
| 1000 |
+
"grad_norm": 2.4663654618066637,
|
| 1001 |
+
"learning_rate": 9.87602665894783e-06,
|
| 1002 |
+
"loss": 2.342,
|
| 1003 |
+
"step": 142
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"epoch": 0.19363574813811782,
|
| 1007 |
+
"grad_norm": 0.937041815915097,
|
| 1008 |
+
"learning_rate": 9.8735942377615e-06,
|
| 1009 |
+
"loss": 2.2519,
|
| 1010 |
+
"step": 143
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"epoch": 0.1949898442789438,
|
| 1014 |
+
"grad_norm": 1.0716246983522297,
|
| 1015 |
+
"learning_rate": 9.871138490586489e-06,
|
| 1016 |
+
"loss": 2.2515,
|
| 1017 |
+
"step": 144
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"epoch": 0.1963439404197698,
|
| 1021 |
+
"grad_norm": 0.9279172063288832,
|
| 1022 |
+
"learning_rate": 9.86865942917649e-06,
|
| 1023 |
+
"loss": 2.1349,
|
| 1024 |
+
"step": 145
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"epoch": 0.1976980365605958,
|
| 1028 |
+
"grad_norm": 1.091933592631405,
|
| 1029 |
+
"learning_rate": 9.866157065396784e-06,
|
| 1030 |
+
"loss": 2.465,
|
| 1031 |
+
"step": 146
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"epoch": 0.1990521327014218,
|
| 1035 |
+
"grad_norm": 0.8345999787153139,
|
| 1036 |
+
"learning_rate": 9.863631411224182e-06,
|
| 1037 |
+
"loss": 2.3305,
|
| 1038 |
+
"step": 147
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"epoch": 0.2004062288422478,
|
| 1042 |
+
"grad_norm": 0.8966768512424247,
|
| 1043 |
+
"learning_rate": 9.861082478746962e-06,
|
| 1044 |
+
"loss": 2.3482,
|
| 1045 |
+
"step": 148
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"epoch": 0.2017603249830738,
|
| 1049 |
+
"grad_norm": 1.0000509829104935,
|
| 1050 |
+
"learning_rate": 9.858510280164822e-06,
|
| 1051 |
+
"loss": 2.7295,
|
| 1052 |
+
"step": 149
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"epoch": 0.2031144211238998,
|
| 1056 |
+
"grad_norm": 0.826458573119617,
|
| 1057 |
+
"learning_rate": 9.855914827788814e-06,
|
| 1058 |
+
"loss": 2.4229,
|
| 1059 |
+
"step": 150
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"epoch": 0.20446851726472579,
|
| 1063 |
+
"grad_norm": 1.0195204526871002,
|
| 1064 |
+
"learning_rate": 9.853296134041292e-06,
|
| 1065 |
+
"loss": 2.5522,
|
| 1066 |
+
"step": 151
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"epoch": 0.2058226134055518,
|
| 1070 |
+
"grad_norm": 1.016538392862215,
|
| 1071 |
+
"learning_rate": 9.850654211455837e-06,
|
| 1072 |
+
"loss": 2.7309,
|
| 1073 |
+
"step": 152
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"epoch": 0.2071767095463778,
|
| 1077 |
+
"grad_norm": 0.957564909378697,
|
| 1078 |
+
"learning_rate": 9.84798907267722e-06,
|
| 1079 |
+
"loss": 2.284,
|
| 1080 |
+
"step": 153
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"epoch": 0.20853080568720378,
|
| 1084 |
+
"grad_norm": 0.7014654099006512,
|
| 1085 |
+
"learning_rate": 9.84530073046132e-06,
|
| 1086 |
+
"loss": 2.2114,
|
| 1087 |
+
"step": 154
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"epoch": 0.2098849018280298,
|
| 1091 |
+
"grad_norm": 0.8362168323360238,
|
| 1092 |
+
"learning_rate": 9.842589197675079e-06,
|
| 1093 |
+
"loss": 2.5489,
|
| 1094 |
+
"step": 155
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"epoch": 0.21123899796885579,
|
| 1098 |
+
"grad_norm": 0.88786168404071,
|
| 1099 |
+
"learning_rate": 9.83985448729643e-06,
|
| 1100 |
+
"loss": 2.3827,
|
| 1101 |
+
"step": 156
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"epoch": 0.21259309410968177,
|
| 1105 |
+
"grad_norm": 0.9463226185764325,
|
| 1106 |
+
"learning_rate": 9.837096612414238e-06,
|
| 1107 |
+
"loss": 2.7418,
|
| 1108 |
+
"step": 157
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"epoch": 0.2139471902505078,
|
| 1112 |
+
"grad_norm": 0.870063498618297,
|
| 1113 |
+
"learning_rate": 9.83431558622824e-06,
|
| 1114 |
+
"loss": 2.2803,
|
| 1115 |
+
"step": 158
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"epoch": 0.21530128639133378,
|
| 1119 |
+
"grad_norm": 0.8764083614224288,
|
| 1120 |
+
"learning_rate": 9.831511422048978e-06,
|
| 1121 |
+
"loss": 2.1819,
|
| 1122 |
+
"step": 159
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"epoch": 0.2166553825321598,
|
| 1126 |
+
"grad_norm": 0.9146169100705829,
|
| 1127 |
+
"learning_rate": 9.828684133297738e-06,
|
| 1128 |
+
"loss": 2.3676,
|
| 1129 |
+
"step": 160
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"epoch": 0.21800947867298578,
|
| 1133 |
+
"grad_norm": 1.2142753558720913,
|
| 1134 |
+
"learning_rate": 9.825833733506489e-06,
|
| 1135 |
+
"loss": 2.402,
|
| 1136 |
+
"step": 161
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"epoch": 0.21936357481381177,
|
| 1140 |
+
"grad_norm": 1.0480064346220106,
|
| 1141 |
+
"learning_rate": 9.822960236317804e-06,
|
| 1142 |
+
"loss": 2.5415,
|
| 1143 |
+
"step": 162
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"epoch": 0.2207176709546378,
|
| 1147 |
+
"grad_norm": 0.7629917801668891,
|
| 1148 |
+
"learning_rate": 9.820063655484813e-06,
|
| 1149 |
+
"loss": 2.0297,
|
| 1150 |
+
"step": 163
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"epoch": 0.22207176709546378,
|
| 1154 |
+
"grad_norm": 0.7990888394132036,
|
| 1155 |
+
"learning_rate": 9.817144004871127e-06,
|
| 1156 |
+
"loss": 2.8255,
|
| 1157 |
+
"step": 164
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"epoch": 0.22342586323628977,
|
| 1161 |
+
"grad_norm": 0.7798600139592904,
|
| 1162 |
+
"learning_rate": 9.814201298450773e-06,
|
| 1163 |
+
"loss": 2.2763,
|
| 1164 |
+
"step": 165
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"epoch": 0.22477995937711578,
|
| 1168 |
+
"grad_norm": 1.173741986019506,
|
| 1169 |
+
"learning_rate": 9.811235550308127e-06,
|
| 1170 |
+
"loss": 1.9561,
|
| 1171 |
+
"step": 166
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"epoch": 0.22613405551794177,
|
| 1175 |
+
"grad_norm": 0.7570228405125989,
|
| 1176 |
+
"learning_rate": 9.808246774637845e-06,
|
| 1177 |
+
"loss": 2.8304,
|
| 1178 |
+
"step": 167
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"epoch": 0.22748815165876776,
|
| 1182 |
+
"grad_norm": 1.2061240895038743,
|
| 1183 |
+
"learning_rate": 9.805234985744804e-06,
|
| 1184 |
+
"loss": 2.1653,
|
| 1185 |
+
"step": 168
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"epoch": 0.22884224779959378,
|
| 1189 |
+
"grad_norm": 0.7756108337956075,
|
| 1190 |
+
"learning_rate": 9.802200198044024e-06,
|
| 1191 |
+
"loss": 2.5092,
|
| 1192 |
+
"step": 169
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"epoch": 0.23019634394041977,
|
| 1196 |
+
"grad_norm": 1.1436553265186091,
|
| 1197 |
+
"learning_rate": 9.799142426060595e-06,
|
| 1198 |
+
"loss": 2.7414,
|
| 1199 |
+
"step": 170
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"epoch": 0.23155044008124576,
|
| 1203 |
+
"grad_norm": 0.8234458954053101,
|
| 1204 |
+
"learning_rate": 9.796061684429626e-06,
|
| 1205 |
+
"loss": 2.2852,
|
| 1206 |
+
"step": 171
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"epoch": 0.23290453622207177,
|
| 1210 |
+
"grad_norm": 1.257655370196978,
|
| 1211 |
+
"learning_rate": 9.792957987896154e-06,
|
| 1212 |
+
"loss": 2.6166,
|
| 1213 |
+
"step": 172
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"epoch": 0.23425863236289776,
|
| 1217 |
+
"grad_norm": 1.0232152459073642,
|
| 1218 |
+
"learning_rate": 9.78983135131509e-06,
|
| 1219 |
+
"loss": 2.5478,
|
| 1220 |
+
"step": 173
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"epoch": 0.23561272850372375,
|
| 1224 |
+
"grad_norm": 0.7837252990266905,
|
| 1225 |
+
"learning_rate": 9.786681789651134e-06,
|
| 1226 |
+
"loss": 2.3348,
|
| 1227 |
+
"step": 174
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"epoch": 0.23696682464454977,
|
| 1231 |
+
"grad_norm": 1.227249953589518,
|
| 1232 |
+
"learning_rate": 9.783509317978713e-06,
|
| 1233 |
+
"loss": 2.2314,
|
| 1234 |
+
"step": 175
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"epoch": 0.23832092078537576,
|
| 1238 |
+
"grad_norm": 1.0443451261742749,
|
| 1239 |
+
"learning_rate": 9.780313951481904e-06,
|
| 1240 |
+
"loss": 2.5914,
|
| 1241 |
+
"step": 176
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"epoch": 0.23967501692620177,
|
| 1245 |
+
"grad_norm": 1.089642162382649,
|
| 1246 |
+
"learning_rate": 9.77709570545437e-06,
|
| 1247 |
+
"loss": 2.4722,
|
| 1248 |
+
"step": 177
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"epoch": 0.24102911306702776,
|
| 1252 |
+
"grad_norm": 0.8415869612253108,
|
| 1253 |
+
"learning_rate": 9.773854595299269e-06,
|
| 1254 |
+
"loss": 2.259,
|
| 1255 |
+
"step": 178
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"epoch": 0.24238320920785375,
|
| 1259 |
+
"grad_norm": 0.9995676515510443,
|
| 1260 |
+
"learning_rate": 9.7705906365292e-06,
|
| 1261 |
+
"loss": 2.4385,
|
| 1262 |
+
"step": 179
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"epoch": 0.24373730534867977,
|
| 1266 |
+
"grad_norm": 0.8675225236988806,
|
| 1267 |
+
"learning_rate": 9.767303844766118e-06,
|
| 1268 |
+
"loss": 2.6306,
|
| 1269 |
+
"step": 180
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"epoch": 0.24509140148950576,
|
| 1273 |
+
"grad_norm": 0.9866543693555193,
|
| 1274 |
+
"learning_rate": 9.763994235741258e-06,
|
| 1275 |
+
"loss": 2.721,
|
| 1276 |
+
"step": 181
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"epoch": 0.24644549763033174,
|
| 1280 |
+
"grad_norm": 0.8263627006248617,
|
| 1281 |
+
"learning_rate": 9.760661825295068e-06,
|
| 1282 |
+
"loss": 2.4952,
|
| 1283 |
+
"step": 182
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"epoch": 0.24779959377115776,
|
| 1287 |
+
"grad_norm": 0.9392502201652514,
|
| 1288 |
+
"learning_rate": 9.757306629377122e-06,
|
| 1289 |
+
"loss": 2.3426,
|
| 1290 |
+
"step": 183
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"epoch": 0.24915368991198375,
|
| 1294 |
+
"grad_norm": 0.9008533634307534,
|
| 1295 |
+
"learning_rate": 9.753928664046055e-06,
|
| 1296 |
+
"loss": 2.237,
|
| 1297 |
+
"step": 184
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"epoch": 0.25050778605280977,
|
| 1301 |
+
"grad_norm": 0.8810644743850296,
|
| 1302 |
+
"learning_rate": 9.750527945469478e-06,
|
| 1303 |
+
"loss": 2.1888,
|
| 1304 |
+
"step": 185
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"epoch": 0.25186188219363576,
|
| 1308 |
+
"grad_norm": 1.0640477436832385,
|
| 1309 |
+
"learning_rate": 9.747104489923907e-06,
|
| 1310 |
+
"loss": 2.768,
|
| 1311 |
+
"step": 186
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"epoch": 0.25321597833446174,
|
| 1315 |
+
"grad_norm": 1.1673458969812496,
|
| 1316 |
+
"learning_rate": 9.743658313794676e-06,
|
| 1317 |
+
"loss": 2.1024,
|
| 1318 |
+
"step": 187
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"epoch": 0.25457007447528773,
|
| 1322 |
+
"grad_norm": 1.2908578737050618,
|
| 1323 |
+
"learning_rate": 9.740189433575873e-06,
|
| 1324 |
+
"loss": 2.7917,
|
| 1325 |
+
"step": 188
|
| 1326 |
+
},
|
| 1327 |
+
{
|
| 1328 |
+
"epoch": 0.2559241706161137,
|
| 1329 |
+
"grad_norm": 0.8391729382821729,
|
| 1330 |
+
"learning_rate": 9.736697865870241e-06,
|
| 1331 |
+
"loss": 2.028,
|
| 1332 |
+
"step": 189
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"epoch": 0.25727826675693977,
|
| 1336 |
+
"grad_norm": 0.8699715166345284,
|
| 1337 |
+
"learning_rate": 9.733183627389117e-06,
|
| 1338 |
+
"loss": 2.5548,
|
| 1339 |
+
"step": 190
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"epoch": 0.25863236289776576,
|
| 1343 |
+
"grad_norm": 0.9116911866419519,
|
| 1344 |
+
"learning_rate": 9.729646734952345e-06,
|
| 1345 |
+
"loss": 2.4571,
|
| 1346 |
+
"step": 191
|
| 1347 |
+
},
|
| 1348 |
+
{
|
| 1349 |
+
"epoch": 0.25998645903859174,
|
| 1350 |
+
"grad_norm": 1.299240651597945,
|
| 1351 |
+
"learning_rate": 9.726087205488192e-06,
|
| 1352 |
+
"loss": 2.5349,
|
| 1353 |
+
"step": 192
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"epoch": 0.26134055517941773,
|
| 1357 |
+
"grad_norm": 0.743557436185181,
|
| 1358 |
+
"learning_rate": 9.722505056033272e-06,
|
| 1359 |
+
"loss": 2.2326,
|
| 1360 |
+
"step": 193
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"epoch": 0.2626946513202437,
|
| 1364 |
+
"grad_norm": 0.8967055381021124,
|
| 1365 |
+
"learning_rate": 9.718900303732465e-06,
|
| 1366 |
+
"loss": 2.4696,
|
| 1367 |
+
"step": 194
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"epoch": 0.2640487474610697,
|
| 1371 |
+
"grad_norm": 0.9220840880325898,
|
| 1372 |
+
"learning_rate": 9.715272965838829e-06,
|
| 1373 |
+
"loss": 2.9524,
|
| 1374 |
+
"step": 195
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"epoch": 0.26540284360189575,
|
| 1378 |
+
"grad_norm": 0.9565379625707748,
|
| 1379 |
+
"learning_rate": 9.711623059713522e-06,
|
| 1380 |
+
"loss": 2.348,
|
| 1381 |
+
"step": 196
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"epoch": 0.26675693974272174,
|
| 1385 |
+
"grad_norm": 0.8097073678685669,
|
| 1386 |
+
"learning_rate": 9.70795060282572e-06,
|
| 1387 |
+
"loss": 2.3975,
|
| 1388 |
+
"step": 197
|
| 1389 |
+
},
|
| 1390 |
+
{
|
| 1391 |
+
"epoch": 0.26811103588354773,
|
| 1392 |
+
"grad_norm": 0.9063511706313765,
|
| 1393 |
+
"learning_rate": 9.70425561275253e-06,
|
| 1394 |
+
"loss": 1.8901,
|
| 1395 |
+
"step": 198
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"epoch": 0.2694651320243737,
|
| 1399 |
+
"grad_norm": 1.077513556287683,
|
| 1400 |
+
"learning_rate": 9.700538107178904e-06,
|
| 1401 |
+
"loss": 2.6563,
|
| 1402 |
+
"step": 199
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"epoch": 0.2708192281651997,
|
| 1406 |
+
"grad_norm": 0.9916331664645718,
|
| 1407 |
+
"learning_rate": 9.696798103897567e-06,
|
| 1408 |
+
"loss": 2.8377,
|
| 1409 |
+
"step": 200
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"epoch": 0.27217332430602575,
|
| 1413 |
+
"grad_norm": 0.8205290104696272,
|
| 1414 |
+
"learning_rate": 9.693035620808913e-06,
|
| 1415 |
+
"loss": 2.0325,
|
| 1416 |
+
"step": 201
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"epoch": 0.27352742044685174,
|
| 1420 |
+
"grad_norm": 1.1826064002287169,
|
| 1421 |
+
"learning_rate": 9.689250675920932e-06,
|
| 1422 |
+
"loss": 2.3692,
|
| 1423 |
+
"step": 202
|
| 1424 |
+
},
|
| 1425 |
+
{
|
| 1426 |
+
"epoch": 0.27488151658767773,
|
| 1427 |
+
"grad_norm": 0.8204731687241611,
|
| 1428 |
+
"learning_rate": 9.685443287349122e-06,
|
| 1429 |
+
"loss": 2.1643,
|
| 1430 |
+
"step": 203
|
| 1431 |
+
},
|
| 1432 |
+
{
|
| 1433 |
+
"epoch": 0.2762356127285037,
|
| 1434 |
+
"grad_norm": 0.8197753550893174,
|
| 1435 |
+
"learning_rate": 9.6816134733164e-06,
|
| 1436 |
+
"loss": 2.5373,
|
| 1437 |
+
"step": 204
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"epoch": 0.2775897088693297,
|
| 1441 |
+
"grad_norm": 1.2751145677392224,
|
| 1442 |
+
"learning_rate": 9.677761252153013e-06,
|
| 1443 |
+
"loss": 2.9078,
|
| 1444 |
+
"step": 205
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"epoch": 0.2789438050101557,
|
| 1448 |
+
"grad_norm": 1.1168584689300736,
|
| 1449 |
+
"learning_rate": 9.67388664229646e-06,
|
| 1450 |
+
"loss": 2.8702,
|
| 1451 |
+
"step": 206
|
| 1452 |
+
},
|
| 1453 |
+
{
|
| 1454 |
+
"epoch": 0.28029790115098174,
|
| 1455 |
+
"grad_norm": 1.326117340861735,
|
| 1456 |
+
"learning_rate": 9.669989662291391e-06,
|
| 1457 |
+
"loss": 2.4586,
|
| 1458 |
+
"step": 207
|
| 1459 |
+
},
|
| 1460 |
+
{
|
| 1461 |
+
"epoch": 0.28165199729180773,
|
| 1462 |
+
"grad_norm": 0.8654306997034001,
|
| 1463 |
+
"learning_rate": 9.66607033078952e-06,
|
| 1464 |
+
"loss": 2.2188,
|
| 1465 |
+
"step": 208
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"epoch": 0.2830060934326337,
|
| 1469 |
+
"grad_norm": 0.9060281059984311,
|
| 1470 |
+
"learning_rate": 9.662128666549552e-06,
|
| 1471 |
+
"loss": 2.4796,
|
| 1472 |
+
"step": 209
|
| 1473 |
+
},
|
| 1474 |
+
{
|
| 1475 |
+
"epoch": 0.2843601895734597,
|
| 1476 |
+
"grad_norm": 1.0187615360912865,
|
| 1477 |
+
"learning_rate": 9.658164688437073e-06,
|
| 1478 |
+
"loss": 2.3235,
|
| 1479 |
+
"step": 210
|
| 1480 |
+
},
|
| 1481 |
+
{
|
| 1482 |
+
"epoch": 0.2857142857142857,
|
| 1483 |
+
"grad_norm": 0.9488215177960637,
|
| 1484 |
+
"learning_rate": 9.654178415424463e-06,
|
| 1485 |
+
"loss": 2.6938,
|
| 1486 |
+
"step": 211
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"epoch": 0.2870683818551117,
|
| 1490 |
+
"grad_norm": 1.0938489378148304,
|
| 1491 |
+
"learning_rate": 9.65016986659082e-06,
|
| 1492 |
+
"loss": 2.0545,
|
| 1493 |
+
"step": 212
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"epoch": 0.28842247799593773,
|
| 1497 |
+
"grad_norm": 2.7665169236406264,
|
| 1498 |
+
"learning_rate": 9.646139061121852e-06,
|
| 1499 |
+
"loss": 2.3696,
|
| 1500 |
+
"step": 213
|
| 1501 |
+
},
|
| 1502 |
+
{
|
| 1503 |
+
"epoch": 0.2897765741367637,
|
| 1504 |
+
"grad_norm": 1.797717691337552,
|
| 1505 |
+
"learning_rate": 9.642086018309798e-06,
|
| 1506 |
+
"loss": 2.3102,
|
| 1507 |
+
"step": 214
|
| 1508 |
+
},
|
| 1509 |
+
{
|
| 1510 |
+
"epoch": 0.2911306702775897,
|
| 1511 |
+
"grad_norm": 0.8164527845654876,
|
| 1512 |
+
"learning_rate": 9.638010757553317e-06,
|
| 1513 |
+
"loss": 2.4098,
|
| 1514 |
+
"step": 215
|
| 1515 |
+
},
|
| 1516 |
+
{
|
| 1517 |
+
"epoch": 0.2924847664184157,
|
| 1518 |
+
"grad_norm": 1.2899587042696066,
|
| 1519 |
+
"learning_rate": 9.63391329835742e-06,
|
| 1520 |
+
"loss": 2.2318,
|
| 1521 |
+
"step": 216
|
| 1522 |
+
},
|
| 1523 |
+
{
|
| 1524 |
+
"epoch": 0.2938388625592417,
|
| 1525 |
+
"grad_norm": 1.074459385295116,
|
| 1526 |
+
"learning_rate": 9.62979366033336e-06,
|
| 1527 |
+
"loss": 2.139,
|
| 1528 |
+
"step": 217
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"epoch": 0.29519295870006773,
|
| 1532 |
+
"grad_norm": 1.1189933959983496,
|
| 1533 |
+
"learning_rate": 9.625651863198538e-06,
|
| 1534 |
+
"loss": 2.4854,
|
| 1535 |
+
"step": 218
|
| 1536 |
+
},
|
| 1537 |
+
{
|
| 1538 |
+
"epoch": 0.2965470548408937,
|
| 1539 |
+
"grad_norm": 0.8519091467054853,
|
| 1540 |
+
"learning_rate": 9.62148792677642e-06,
|
| 1541 |
+
"loss": 2.3087,
|
| 1542 |
+
"step": 219
|
| 1543 |
+
},
|
| 1544 |
+
{
|
| 1545 |
+
"epoch": 0.2979011509817197,
|
| 1546 |
+
"grad_norm": 0.8015738365902023,
|
| 1547 |
+
"learning_rate": 9.617301870996432e-06,
|
| 1548 |
+
"loss": 2.1197,
|
| 1549 |
+
"step": 220
|
| 1550 |
+
},
|
| 1551 |
+
{
|
| 1552 |
+
"epoch": 0.2992552471225457,
|
| 1553 |
+
"grad_norm": 0.8518091208180533,
|
| 1554 |
+
"learning_rate": 9.613093715893863e-06,
|
| 1555 |
+
"loss": 2.7451,
|
| 1556 |
+
"step": 221
|
| 1557 |
+
},
|
| 1558 |
+
{
|
| 1559 |
+
"epoch": 0.3006093432633717,
|
| 1560 |
+
"grad_norm": 0.8996345060862967,
|
| 1561 |
+
"learning_rate": 9.608863481609784e-06,
|
| 1562 |
+
"loss": 2.3018,
|
| 1563 |
+
"step": 222
|
| 1564 |
+
},
|
| 1565 |
+
{
|
| 1566 |
+
"epoch": 0.3019634394041977,
|
| 1567 |
+
"grad_norm": 0.8891028358657084,
|
| 1568 |
+
"learning_rate": 9.604611188390932e-06,
|
| 1569 |
+
"loss": 2.6009,
|
| 1570 |
+
"step": 223
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"epoch": 0.3033175355450237,
|
| 1574 |
+
"grad_norm": 0.7802164858157057,
|
| 1575 |
+
"learning_rate": 9.600336856589622e-06,
|
| 1576 |
+
"loss": 2.5882,
|
| 1577 |
+
"step": 224
|
| 1578 |
+
},
|
| 1579 |
+
{
|
| 1580 |
+
"epoch": 0.3046716316858497,
|
| 1581 |
+
"grad_norm": 0.7990982765184432,
|
| 1582 |
+
"learning_rate": 9.596040506663662e-06,
|
| 1583 |
+
"loss": 2.3743,
|
| 1584 |
+
"step": 225
|
| 1585 |
+
},
|
| 1586 |
+
{
|
| 1587 |
+
"epoch": 0.3060257278266757,
|
| 1588 |
+
"grad_norm": 1.022524178945592,
|
| 1589 |
+
"learning_rate": 9.591722159176229e-06,
|
| 1590 |
+
"loss": 2.8266,
|
| 1591 |
+
"step": 226
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"epoch": 0.3073798239675017,
|
| 1595 |
+
"grad_norm": 0.9867120584703192,
|
| 1596 |
+
"learning_rate": 9.587381834795792e-06,
|
| 1597 |
+
"loss": 2.3584,
|
| 1598 |
+
"step": 227
|
| 1599 |
+
},
|
| 1600 |
+
{
|
| 1601 |
+
"epoch": 0.3087339201083277,
|
| 1602 |
+
"grad_norm": 1.4753323206729818,
|
| 1603 |
+
"learning_rate": 9.583019554296004e-06,
|
| 1604 |
+
"loss": 2.0803,
|
| 1605 |
+
"step": 228
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"epoch": 0.31008801624915366,
|
| 1609 |
+
"grad_norm": 1.789632341284706,
|
| 1610 |
+
"learning_rate": 9.578635338555607e-06,
|
| 1611 |
+
"loss": 2.1242,
|
| 1612 |
+
"step": 229
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"epoch": 0.3114421123899797,
|
| 1616 |
+
"grad_norm": 0.8811955080251023,
|
| 1617 |
+
"learning_rate": 9.574229208558322e-06,
|
| 1618 |
+
"loss": 2.0273,
|
| 1619 |
+
"step": 230
|
| 1620 |
+
},
|
| 1621 |
+
{
|
| 1622 |
+
"epoch": 0.3127962085308057,
|
| 1623 |
+
"grad_norm": 1.1507808612384305,
|
| 1624 |
+
"learning_rate": 9.569801185392768e-06,
|
| 1625 |
+
"loss": 1.7925,
|
| 1626 |
+
"step": 231
|
| 1627 |
+
},
|
| 1628 |
+
{
|
| 1629 |
+
"epoch": 0.3141503046716317,
|
| 1630 |
+
"grad_norm": 0.9196147703328809,
|
| 1631 |
+
"learning_rate": 9.565351290252339e-06,
|
| 1632 |
+
"loss": 2.6128,
|
| 1633 |
+
"step": 232
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"epoch": 0.3155044008124577,
|
| 1637 |
+
"grad_norm": 0.961361586988772,
|
| 1638 |
+
"learning_rate": 9.560879544435114e-06,
|
| 1639 |
+
"loss": 2.4787,
|
| 1640 |
+
"step": 233
|
| 1641 |
+
},
|
| 1642 |
+
{
|
| 1643 |
+
"epoch": 0.31685849695328366,
|
| 1644 |
+
"grad_norm": 0.8613093158718477,
|
| 1645 |
+
"learning_rate": 9.556385969343756e-06,
|
| 1646 |
+
"loss": 2.158,
|
| 1647 |
+
"step": 234
|
| 1648 |
+
},
|
| 1649 |
+
{
|
| 1650 |
+
"epoch": 0.3182125930941097,
|
| 1651 |
+
"grad_norm": 1.4391522005243542,
|
| 1652 |
+
"learning_rate": 9.551870586485408e-06,
|
| 1653 |
+
"loss": 2.4246,
|
| 1654 |
+
"step": 235
|
| 1655 |
+
},
|
| 1656 |
+
{
|
| 1657 |
+
"epoch": 0.3195666892349357,
|
| 1658 |
+
"grad_norm": 1.2006343600943894,
|
| 1659 |
+
"learning_rate": 9.547333417471589e-06,
|
| 1660 |
+
"loss": 2.3493,
|
| 1661 |
+
"step": 236
|
| 1662 |
+
},
|
| 1663 |
+
{
|
| 1664 |
+
"epoch": 0.3209207853757617,
|
| 1665 |
+
"grad_norm": 1.0080927833403484,
|
| 1666 |
+
"learning_rate": 9.542774484018087e-06,
|
| 1667 |
+
"loss": 2.8215,
|
| 1668 |
+
"step": 237
|
| 1669 |
+
},
|
| 1670 |
+
{
|
| 1671 |
+
"epoch": 0.3222748815165877,
|
| 1672 |
+
"grad_norm": 0.8450008133514967,
|
| 1673 |
+
"learning_rate": 9.538193807944864e-06,
|
| 1674 |
+
"loss": 2.4001,
|
| 1675 |
+
"step": 238
|
| 1676 |
+
},
|
| 1677 |
+
{
|
| 1678 |
+
"epoch": 0.32362897765741366,
|
| 1679 |
+
"grad_norm": 0.7976914162195807,
|
| 1680 |
+
"learning_rate": 9.533591411175942e-06,
|
| 1681 |
+
"loss": 2.1287,
|
| 1682 |
+
"step": 239
|
| 1683 |
+
},
|
| 1684 |
+
{
|
| 1685 |
+
"epoch": 0.32498307379823965,
|
| 1686 |
+
"grad_norm": 0.9190646647609063,
|
| 1687 |
+
"learning_rate": 9.528967315739308e-06,
|
| 1688 |
+
"loss": 2.3067,
|
| 1689 |
+
"step": 240
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"epoch": 0.3263371699390657,
|
| 1693 |
+
"grad_norm": 1.0380510321795802,
|
| 1694 |
+
"learning_rate": 9.524321543766797e-06,
|
| 1695 |
+
"loss": 2.7597,
|
| 1696 |
+
"step": 241
|
| 1697 |
+
},
|
| 1698 |
+
{
|
| 1699 |
+
"epoch": 0.3276912660798917,
|
| 1700 |
+
"grad_norm": 0.8826085637159452,
|
| 1701 |
+
"learning_rate": 9.519654117493996e-06,
|
| 1702 |
+
"loss": 2.4152,
|
| 1703 |
+
"step": 242
|
| 1704 |
+
},
|
| 1705 |
+
{
|
| 1706 |
+
"epoch": 0.3290453622207177,
|
| 1707 |
+
"grad_norm": 0.8084663287024824,
|
| 1708 |
+
"learning_rate": 9.514965059260133e-06,
|
| 1709 |
+
"loss": 2.1707,
|
| 1710 |
+
"step": 243
|
| 1711 |
+
},
|
| 1712 |
+
{
|
| 1713 |
+
"epoch": 0.33039945836154366,
|
| 1714 |
+
"grad_norm": 2.295312303080644,
|
| 1715 |
+
"learning_rate": 9.510254391507971e-06,
|
| 1716 |
+
"loss": 2.4209,
|
| 1717 |
+
"step": 244
|
| 1718 |
+
},
|
| 1719 |
+
{
|
| 1720 |
+
"epoch": 0.33175355450236965,
|
| 1721 |
+
"grad_norm": 1.025364157662343,
|
| 1722 |
+
"learning_rate": 9.505522136783703e-06,
|
| 1723 |
+
"loss": 2.3565,
|
| 1724 |
+
"step": 245
|
| 1725 |
+
},
|
| 1726 |
+
{
|
| 1727 |
+
"epoch": 0.33310765064319564,
|
| 1728 |
+
"grad_norm": 1.0666622437173356,
|
| 1729 |
+
"learning_rate": 9.500768317736832e-06,
|
| 1730 |
+
"loss": 2.2188,
|
| 1731 |
+
"step": 246
|
| 1732 |
+
},
|
| 1733 |
+
{
|
| 1734 |
+
"epoch": 0.3344617467840217,
|
| 1735 |
+
"grad_norm": 1.1850709868668183,
|
| 1736 |
+
"learning_rate": 9.495992957120083e-06,
|
| 1737 |
+
"loss": 2.3777,
|
| 1738 |
+
"step": 247
|
| 1739 |
+
},
|
| 1740 |
+
{
|
| 1741 |
+
"epoch": 0.3358158429248477,
|
| 1742 |
+
"grad_norm": 0.873142498936687,
|
| 1743 |
+
"learning_rate": 9.49119607778928e-06,
|
| 1744 |
+
"loss": 1.8418,
|
| 1745 |
+
"step": 248
|
| 1746 |
+
},
|
| 1747 |
+
{
|
| 1748 |
+
"epoch": 0.33716993906567366,
|
| 1749 |
+
"grad_norm": 0.8446038012686401,
|
| 1750 |
+
"learning_rate": 9.486377702703237e-06,
|
| 1751 |
+
"loss": 2.0972,
|
| 1752 |
+
"step": 249
|
| 1753 |
+
},
|
| 1754 |
+
{
|
| 1755 |
+
"epoch": 0.33852403520649965,
|
| 1756 |
+
"grad_norm": 0.8356250880759191,
|
| 1757 |
+
"learning_rate": 9.481537854923654e-06,
|
| 1758 |
+
"loss": 2.1706,
|
| 1759 |
+
"step": 250
|
| 1760 |
+
},
|
| 1761 |
+
{
|
| 1762 |
+
"epoch": 0.33987813134732564,
|
| 1763 |
+
"grad_norm": 1.7976623194509354,
|
| 1764 |
+
"learning_rate": 9.476676557615002e-06,
|
| 1765 |
+
"loss": 2.4971,
|
| 1766 |
+
"step": 251
|
| 1767 |
+
},
|
| 1768 |
+
{
|
| 1769 |
+
"epoch": 0.3412322274881517,
|
| 1770 |
+
"grad_norm": 0.8019936660785039,
|
| 1771 |
+
"learning_rate": 9.471793834044416e-06,
|
| 1772 |
+
"loss": 2.6548,
|
| 1773 |
+
"step": 252
|
| 1774 |
+
},
|
| 1775 |
+
{
|
| 1776 |
+
"epoch": 0.3425863236289777,
|
| 1777 |
+
"grad_norm": 0.8674056692586112,
|
| 1778 |
+
"learning_rate": 9.466889707581575e-06,
|
| 1779 |
+
"loss": 2.42,
|
| 1780 |
+
"step": 253
|
| 1781 |
+
},
|
| 1782 |
+
{
|
| 1783 |
+
"epoch": 0.34394041976980366,
|
| 1784 |
+
"grad_norm": 0.9089186351830855,
|
| 1785 |
+
"learning_rate": 9.461964201698604e-06,
|
| 1786 |
+
"loss": 2.4349,
|
| 1787 |
+
"step": 254
|
| 1788 |
+
},
|
| 1789 |
+
{
|
| 1790 |
+
"epoch": 0.34529451591062965,
|
| 1791 |
+
"grad_norm": 1.0982880519520153,
|
| 1792 |
+
"learning_rate": 9.457017339969952e-06,
|
| 1793 |
+
"loss": 2.6149,
|
| 1794 |
+
"step": 255
|
| 1795 |
+
},
|
| 1796 |
+
{
|
| 1797 |
+
"epoch": 0.34664861205145564,
|
| 1798 |
+
"grad_norm": 0.8124889170645071,
|
| 1799 |
+
"learning_rate": 9.452049146072278e-06,
|
| 1800 |
+
"loss": 2.0518,
|
| 1801 |
+
"step": 256
|
| 1802 |
+
},
|
| 1803 |
+
{
|
| 1804 |
+
"epoch": 0.34800270819228163,
|
| 1805 |
+
"grad_norm": 1.0328011672628001,
|
| 1806 |
+
"learning_rate": 9.447059643784345e-06,
|
| 1807 |
+
"loss": 1.8293,
|
| 1808 |
+
"step": 257
|
| 1809 |
+
},
|
| 1810 |
+
{
|
| 1811 |
+
"epoch": 0.3493568043331077,
|
| 1812 |
+
"grad_norm": 0.8959245575010989,
|
| 1813 |
+
"learning_rate": 9.442048856986899e-06,
|
| 1814 |
+
"loss": 2.2905,
|
| 1815 |
+
"step": 258
|
| 1816 |
+
},
|
| 1817 |
+
{
|
| 1818 |
+
"epoch": 0.35071090047393366,
|
| 1819 |
+
"grad_norm": 0.8715537744503126,
|
| 1820 |
+
"learning_rate": 9.437016809662562e-06,
|
| 1821 |
+
"loss": 2.5979,
|
| 1822 |
+
"step": 259
|
| 1823 |
+
},
|
| 1824 |
+
{
|
| 1825 |
+
"epoch": 0.35206499661475965,
|
| 1826 |
+
"grad_norm": 0.8301936180619232,
|
| 1827 |
+
"learning_rate": 9.431963525895709e-06,
|
| 1828 |
+
"loss": 2.1647,
|
| 1829 |
+
"step": 260
|
| 1830 |
+
},
|
| 1831 |
+
{
|
| 1832 |
+
"epoch": 0.35341909275558564,
|
| 1833 |
+
"grad_norm": 1.4578867670552098,
|
| 1834 |
+
"learning_rate": 9.426889029872358e-06,
|
| 1835 |
+
"loss": 2.3302,
|
| 1836 |
+
"step": 261
|
| 1837 |
+
},
|
| 1838 |
+
{
|
| 1839 |
+
"epoch": 0.35477318889641163,
|
| 1840 |
+
"grad_norm": 1.218953962641191,
|
| 1841 |
+
"learning_rate": 9.421793345880055e-06,
|
| 1842 |
+
"loss": 2.1792,
|
| 1843 |
+
"step": 262
|
| 1844 |
+
},
|
| 1845 |
+
{
|
| 1846 |
+
"epoch": 0.3561272850372376,
|
| 1847 |
+
"grad_norm": 1.054421263121385,
|
| 1848 |
+
"learning_rate": 9.416676498307753e-06,
|
| 1849 |
+
"loss": 2.4324,
|
| 1850 |
+
"step": 263
|
| 1851 |
+
},
|
| 1852 |
+
{
|
| 1853 |
+
"epoch": 0.35748138117806366,
|
| 1854 |
+
"grad_norm": 1.0196674429556223,
|
| 1855 |
+
"learning_rate": 9.4115385116457e-06,
|
| 1856 |
+
"loss": 1.9509,
|
| 1857 |
+
"step": 264
|
| 1858 |
+
},
|
| 1859 |
+
{
|
| 1860 |
+
"epoch": 0.35883547731888965,
|
| 1861 |
+
"grad_norm": 0.9596518686839914,
|
| 1862 |
+
"learning_rate": 9.406379410485318e-06,
|
| 1863 |
+
"loss": 2.1244,
|
| 1864 |
+
"step": 265
|
| 1865 |
+
},
|
| 1866 |
+
{
|
| 1867 |
+
"epoch": 0.36018957345971564,
|
| 1868 |
+
"grad_norm": 0.8223441202319559,
|
| 1869 |
+
"learning_rate": 9.401199219519088e-06,
|
| 1870 |
+
"loss": 2.2646,
|
| 1871 |
+
"step": 266
|
| 1872 |
+
},
|
| 1873 |
+
{
|
| 1874 |
+
"epoch": 0.36154366960054163,
|
| 1875 |
+
"grad_norm": 1.0821402171143544,
|
| 1876 |
+
"learning_rate": 9.395997963540435e-06,
|
| 1877 |
+
"loss": 2.2111,
|
| 1878 |
+
"step": 267
|
| 1879 |
+
},
|
| 1880 |
+
{
|
| 1881 |
+
"epoch": 0.3628977657413676,
|
| 1882 |
+
"grad_norm": 0.8651589636687357,
|
| 1883 |
+
"learning_rate": 9.390775667443602e-06,
|
| 1884 |
+
"loss": 1.9122,
|
| 1885 |
+
"step": 268
|
| 1886 |
+
},
|
| 1887 |
+
{
|
| 1888 |
+
"epoch": 0.36425186188219366,
|
| 1889 |
+
"grad_norm": 0.8620843604100115,
|
| 1890 |
+
"learning_rate": 9.385532356223527e-06,
|
| 1891 |
+
"loss": 2.342,
|
| 1892 |
+
"step": 269
|
| 1893 |
+
},
|
| 1894 |
+
{
|
| 1895 |
+
"epoch": 0.36560595802301965,
|
| 1896 |
+
"grad_norm": 0.9397786133798538,
|
| 1897 |
+
"learning_rate": 9.380268054975745e-06,
|
| 1898 |
+
"loss": 2.779,
|
| 1899 |
+
"step": 270
|
| 1900 |
+
},
|
| 1901 |
+
{
|
| 1902 |
+
"epoch": 0.36696005416384564,
|
| 1903 |
+
"grad_norm": 1.1073908774978374,
|
| 1904 |
+
"learning_rate": 9.374982788896241e-06,
|
| 1905 |
+
"loss": 2.6926,
|
| 1906 |
+
"step": 271
|
| 1907 |
+
},
|
| 1908 |
+
{
|
| 1909 |
+
"epoch": 0.36831415030467163,
|
| 1910 |
+
"grad_norm": 1.04556124980846,
|
| 1911 |
+
"learning_rate": 9.36967658328135e-06,
|
| 1912 |
+
"loss": 2.6823,
|
| 1913 |
+
"step": 272
|
| 1914 |
+
},
|
| 1915 |
+
{
|
| 1916 |
+
"epoch": 0.3696682464454976,
|
| 1917 |
+
"grad_norm": 5.754521524944833,
|
| 1918 |
+
"learning_rate": 9.364349463527625e-06,
|
| 1919 |
+
"loss": 2.132,
|
| 1920 |
+
"step": 273
|
| 1921 |
+
},
|
| 1922 |
+
{
|
| 1923 |
+
"epoch": 0.3710223425863236,
|
| 1924 |
+
"grad_norm": 1.0093248053929325,
|
| 1925 |
+
"learning_rate": 9.359001455131713e-06,
|
| 1926 |
+
"loss": 2.5921,
|
| 1927 |
+
"step": 274
|
| 1928 |
+
},
|
| 1929 |
+
{
|
| 1930 |
+
"epoch": 0.37237643872714965,
|
| 1931 |
+
"grad_norm": 1.0149649889598005,
|
| 1932 |
+
"learning_rate": 9.353632583690249e-06,
|
| 1933 |
+
"loss": 2.0404,
|
| 1934 |
+
"step": 275
|
| 1935 |
+
},
|
| 1936 |
+
{
|
| 1937 |
+
"epoch": 0.37373053486797564,
|
| 1938 |
+
"grad_norm": 0.7933286967641568,
|
| 1939 |
+
"learning_rate": 9.34824287489971e-06,
|
| 1940 |
+
"loss": 2.349,
|
| 1941 |
+
"step": 276
|
| 1942 |
+
},
|
| 1943 |
+
{
|
| 1944 |
+
"epoch": 0.37508463100880163,
|
| 1945 |
+
"grad_norm": 1.4731819170091527,
|
| 1946 |
+
"learning_rate": 9.342832354556319e-06,
|
| 1947 |
+
"loss": 2.1622,
|
| 1948 |
+
"step": 277
|
| 1949 |
+
},
|
| 1950 |
+
{
|
| 1951 |
+
"epoch": 0.3764387271496276,
|
| 1952 |
+
"grad_norm": 0.8780445261970546,
|
| 1953 |
+
"learning_rate": 9.337401048555892e-06,
|
| 1954 |
+
"loss": 2.2959,
|
| 1955 |
+
"step": 278
|
| 1956 |
+
},
|
| 1957 |
+
{
|
| 1958 |
+
"epoch": 0.3777928232904536,
|
| 1959 |
+
"grad_norm": 0.9934701059856305,
|
| 1960 |
+
"learning_rate": 9.331948982893741e-06,
|
| 1961 |
+
"loss": 2.2491,
|
| 1962 |
+
"step": 279
|
| 1963 |
+
},
|
| 1964 |
+
{
|
| 1965 |
+
"epoch": 0.3791469194312796,
|
| 1966 |
+
"grad_norm": 1.1682396086558167,
|
| 1967 |
+
"learning_rate": 9.326476183664535e-06,
|
| 1968 |
+
"loss": 2.4071,
|
| 1969 |
+
"step": 280
|
| 1970 |
+
},
|
| 1971 |
+
{
|
| 1972 |
+
"epoch": 0.38050101557210564,
|
| 1973 |
+
"grad_norm": 1.1443828908579956,
|
| 1974 |
+
"learning_rate": 9.320982677062173e-06,
|
| 1975 |
+
"loss": 2.4467,
|
| 1976 |
+
"step": 281
|
| 1977 |
+
},
|
| 1978 |
+
{
|
| 1979 |
+
"epoch": 0.3818551117129316,
|
| 1980 |
+
"grad_norm": 0.9041072793605435,
|
| 1981 |
+
"learning_rate": 9.315468489379668e-06,
|
| 1982 |
+
"loss": 2.2458,
|
| 1983 |
+
"step": 282
|
| 1984 |
+
},
|
| 1985 |
+
{
|
| 1986 |
+
"epoch": 0.3832092078537576,
|
| 1987 |
+
"grad_norm": 0.9075478380778889,
|
| 1988 |
+
"learning_rate": 9.309933647009018e-06,
|
| 1989 |
+
"loss": 1.8672,
|
| 1990 |
+
"step": 283
|
| 1991 |
+
},
|
| 1992 |
+
{
|
| 1993 |
+
"epoch": 0.3845633039945836,
|
| 1994 |
+
"grad_norm": 0.9178385682224962,
|
| 1995 |
+
"learning_rate": 9.304378176441076e-06,
|
| 1996 |
+
"loss": 2.3703,
|
| 1997 |
+
"step": 284
|
| 1998 |
+
},
|
| 1999 |
+
{
|
| 2000 |
+
"epoch": 0.3859174001354096,
|
| 2001 |
+
"grad_norm": 2.075191172215327,
|
| 2002 |
+
"learning_rate": 9.298802104265423e-06,
|
| 2003 |
+
"loss": 2.533,
|
| 2004 |
+
"step": 285
|
| 2005 |
+
},
|
| 2006 |
+
{
|
| 2007 |
+
"epoch": 0.38727149627623564,
|
| 2008 |
+
"grad_norm": 0.924446368315556,
|
| 2009 |
+
"learning_rate": 9.29320545717025e-06,
|
| 2010 |
+
"loss": 2.0906,
|
| 2011 |
+
"step": 286
|
| 2012 |
+
},
|
| 2013 |
+
{
|
| 2014 |
+
"epoch": 0.3886255924170616,
|
| 2015 |
+
"grad_norm": 0.8276545894642513,
|
| 2016 |
+
"learning_rate": 9.287588261942216e-06,
|
| 2017 |
+
"loss": 2.2143,
|
| 2018 |
+
"step": 287
|
| 2019 |
+
},
|
| 2020 |
+
{
|
| 2021 |
+
"epoch": 0.3899796885578876,
|
| 2022 |
+
"grad_norm": 1.03799747305039,
|
| 2023 |
+
"learning_rate": 9.281950545466336e-06,
|
| 2024 |
+
"loss": 2.3721,
|
| 2025 |
+
"step": 288
|
| 2026 |
+
},
|
| 2027 |
+
{
|
| 2028 |
+
"epoch": 0.3913337846987136,
|
| 2029 |
+
"grad_norm": 1.0317596432913245,
|
| 2030 |
+
"learning_rate": 9.276292334725838e-06,
|
| 2031 |
+
"loss": 1.9487,
|
| 2032 |
+
"step": 289
|
| 2033 |
+
},
|
| 2034 |
+
{
|
| 2035 |
+
"epoch": 0.3926878808395396,
|
| 2036 |
+
"grad_norm": 0.8956343315407433,
|
| 2037 |
+
"learning_rate": 9.27061365680204e-06,
|
| 2038 |
+
"loss": 2.2824,
|
| 2039 |
+
"step": 290
|
| 2040 |
+
},
|
| 2041 |
+
{
|
| 2042 |
+
"epoch": 0.3940419769803656,
|
| 2043 |
+
"grad_norm": 0.9035145142320139,
|
| 2044 |
+
"learning_rate": 9.264914538874221e-06,
|
| 2045 |
+
"loss": 2.3565,
|
| 2046 |
+
"step": 291
|
| 2047 |
+
},
|
| 2048 |
+
{
|
| 2049 |
+
"epoch": 0.3953960731211916,
|
| 2050 |
+
"grad_norm": 1.1869989906886842,
|
| 2051 |
+
"learning_rate": 9.25919500821949e-06,
|
| 2052 |
+
"loss": 2.5587,
|
| 2053 |
+
"step": 292
|
| 2054 |
+
},
|
| 2055 |
+
{
|
| 2056 |
+
"epoch": 0.3967501692620176,
|
| 2057 |
+
"grad_norm": 0.8987379863372337,
|
| 2058 |
+
"learning_rate": 9.253455092212656e-06,
|
| 2059 |
+
"loss": 2.2668,
|
| 2060 |
+
"step": 293
|
| 2061 |
+
},
|
| 2062 |
+
{
|
| 2063 |
+
"epoch": 0.3981042654028436,
|
| 2064 |
+
"grad_norm": 0.8756739379853996,
|
| 2065 |
+
"learning_rate": 9.247694818326092e-06,
|
| 2066 |
+
"loss": 2.123,
|
| 2067 |
+
"step": 294
|
| 2068 |
+
},
|
| 2069 |
+
{
|
| 2070 |
+
"epoch": 0.3994583615436696,
|
| 2071 |
+
"grad_norm": 0.9540331255503948,
|
| 2072 |
+
"learning_rate": 9.241914214129618e-06,
|
| 2073 |
+
"loss": 2.6226,
|
| 2074 |
+
"step": 295
|
| 2075 |
+
},
|
| 2076 |
+
{
|
| 2077 |
+
"epoch": 0.4008124576844956,
|
| 2078 |
+
"grad_norm": 1.102045569540978,
|
| 2079 |
+
"learning_rate": 9.236113307290345e-06,
|
| 2080 |
+
"loss": 2.5496,
|
| 2081 |
+
"step": 296
|
| 2082 |
+
},
|
| 2083 |
+
{
|
| 2084 |
+
"epoch": 0.40216655382532157,
|
| 2085 |
+
"grad_norm": 0.9598540264304664,
|
| 2086 |
+
"learning_rate": 9.230292125572569e-06,
|
| 2087 |
+
"loss": 2.3411,
|
| 2088 |
+
"step": 297
|
| 2089 |
+
},
|
| 2090 |
+
{
|
| 2091 |
+
"epoch": 0.4035206499661476,
|
| 2092 |
+
"grad_norm": 1.1343281097624651,
|
| 2093 |
+
"learning_rate": 9.224450696837617e-06,
|
| 2094 |
+
"loss": 2.5745,
|
| 2095 |
+
"step": 298
|
| 2096 |
+
},
|
| 2097 |
+
{
|
| 2098 |
+
"epoch": 0.4048747461069736,
|
| 2099 |
+
"grad_norm": 1.1066468488776415,
|
| 2100 |
+
"learning_rate": 9.218589049043726e-06,
|
| 2101 |
+
"loss": 2.5049,
|
| 2102 |
+
"step": 299
|
| 2103 |
+
},
|
| 2104 |
+
{
|
| 2105 |
+
"epoch": 0.4062288422477996,
|
| 2106 |
+
"grad_norm": 0.9154064589009782,
|
| 2107 |
+
"learning_rate": 9.212707210245908e-06,
|
| 2108 |
+
"loss": 2.0704,
|
| 2109 |
+
"step": 300
|
| 2110 |
+
},
|
| 2111 |
+
{
|
| 2112 |
+
"epoch": 0.4075829383886256,
|
| 2113 |
+
"grad_norm": 1.1554701199935409,
|
| 2114 |
+
"learning_rate": 9.206805208595805e-06,
|
| 2115 |
+
"loss": 2.1283,
|
| 2116 |
+
"step": 301
|
| 2117 |
+
},
|
| 2118 |
+
{
|
| 2119 |
+
"epoch": 0.40893703452945157,
|
| 2120 |
+
"grad_norm": 2.566380710482718,
|
| 2121 |
+
"learning_rate": 9.200883072341573e-06,
|
| 2122 |
+
"loss": 2.3335,
|
| 2123 |
+
"step": 302
|
| 2124 |
+
},
|
| 2125 |
+
{
|
| 2126 |
+
"epoch": 0.4102911306702776,
|
| 2127 |
+
"grad_norm": 1.0638420692642232,
|
| 2128 |
+
"learning_rate": 9.194940829827728e-06,
|
| 2129 |
+
"loss": 2.0887,
|
| 2130 |
+
"step": 303
|
| 2131 |
+
},
|
| 2132 |
+
{
|
| 2133 |
+
"epoch": 0.4116452268111036,
|
| 2134 |
+
"grad_norm": 1.026901985546702,
|
| 2135 |
+
"learning_rate": 9.188978509495022e-06,
|
| 2136 |
+
"loss": 2.358,
|
| 2137 |
+
"step": 304
|
| 2138 |
+
},
|
| 2139 |
+
{
|
| 2140 |
+
"epoch": 0.4129993229519296,
|
| 2141 |
+
"grad_norm": 1.0271668374927614,
|
| 2142 |
+
"learning_rate": 9.1829961398803e-06,
|
| 2143 |
+
"loss": 2.1089,
|
| 2144 |
+
"step": 305
|
| 2145 |
+
},
|
| 2146 |
+
{
|
| 2147 |
+
"epoch": 0.4143534190927556,
|
| 2148 |
+
"grad_norm": 0.9951227785408013,
|
| 2149 |
+
"learning_rate": 9.176993749616374e-06,
|
| 2150 |
+
"loss": 2.3089,
|
| 2151 |
+
"step": 306
|
| 2152 |
+
},
|
| 2153 |
+
{
|
| 2154 |
+
"epoch": 0.41570751523358157,
|
| 2155 |
+
"grad_norm": 0.9365004671579732,
|
| 2156 |
+
"learning_rate": 9.17097136743187e-06,
|
| 2157 |
+
"loss": 2.2569,
|
| 2158 |
+
"step": 307
|
| 2159 |
+
},
|
| 2160 |
+
{
|
| 2161 |
+
"epoch": 0.41706161137440756,
|
| 2162 |
+
"grad_norm": 0.9319443863400425,
|
| 2163 |
+
"learning_rate": 9.164929022151106e-06,
|
| 2164 |
+
"loss": 2.3883,
|
| 2165 |
+
"step": 308
|
| 2166 |
+
},
|
| 2167 |
+
{
|
| 2168 |
+
"epoch": 0.4184157075152336,
|
| 2169 |
+
"grad_norm": 0.8611859165777872,
|
| 2170 |
+
"learning_rate": 9.158866742693947e-06,
|
| 2171 |
+
"loss": 2.8113,
|
| 2172 |
+
"step": 309
|
| 2173 |
+
},
|
| 2174 |
+
{
|
| 2175 |
+
"epoch": 0.4197698036560596,
|
| 2176 |
+
"grad_norm": 0.9865030843425563,
|
| 2177 |
+
"learning_rate": 9.15278455807566e-06,
|
| 2178 |
+
"loss": 2.3777,
|
| 2179 |
+
"step": 310
|
| 2180 |
+
},
|
| 2181 |
+
{
|
| 2182 |
+
"epoch": 0.4211238997968856,
|
| 2183 |
+
"grad_norm": 0.9592735653322616,
|
| 2184 |
+
"learning_rate": 9.146682497406792e-06,
|
| 2185 |
+
"loss": 2.2102,
|
| 2186 |
+
"step": 311
|
| 2187 |
+
},
|
| 2188 |
+
{
|
| 2189 |
+
"epoch": 0.42247799593771157,
|
| 2190 |
+
"grad_norm": 1.1176241826216586,
|
| 2191 |
+
"learning_rate": 9.140560589893012e-06,
|
| 2192 |
+
"loss": 2.5398,
|
| 2193 |
+
"step": 312
|
| 2194 |
+
},
|
| 2195 |
+
{
|
| 2196 |
+
"epoch": 0.42383209207853756,
|
| 2197 |
+
"grad_norm": 0.8322094005243622,
|
| 2198 |
+
"learning_rate": 9.134418864834986e-06,
|
| 2199 |
+
"loss": 2.0246,
|
| 2200 |
+
"step": 313
|
| 2201 |
+
},
|
| 2202 |
+
{
|
| 2203 |
+
"epoch": 0.42518618821936355,
|
| 2204 |
+
"grad_norm": 1.0231281197044073,
|
| 2205 |
+
"learning_rate": 9.128257351628224e-06,
|
| 2206 |
+
"loss": 2.0589,
|
| 2207 |
+
"step": 314
|
| 2208 |
+
},
|
| 2209 |
+
{
|
| 2210 |
+
"epoch": 0.4265402843601896,
|
| 2211 |
+
"grad_norm": 0.800090080992752,
|
| 2212 |
+
"learning_rate": 9.122076079762958e-06,
|
| 2213 |
+
"loss": 1.9548,
|
| 2214 |
+
"step": 315
|
| 2215 |
+
},
|
| 2216 |
+
{
|
| 2217 |
+
"epoch": 0.4278943805010156,
|
| 2218 |
+
"grad_norm": 1.1046831999194016,
|
| 2219 |
+
"learning_rate": 9.115875078823975e-06,
|
| 2220 |
+
"loss": 2.1922,
|
| 2221 |
+
"step": 316
|
| 2222 |
+
},
|
| 2223 |
+
{
|
| 2224 |
+
"epoch": 0.42924847664184157,
|
| 2225 |
+
"grad_norm": 1.1057141700908926,
|
| 2226 |
+
"learning_rate": 9.109654378490495e-06,
|
| 2227 |
+
"loss": 2.3618,
|
| 2228 |
+
"step": 317
|
| 2229 |
+
},
|
| 2230 |
+
{
|
| 2231 |
+
"epoch": 0.43060257278266756,
|
| 2232 |
+
"grad_norm": 0.9676545844336863,
|
| 2233 |
+
"learning_rate": 9.103414008536029e-06,
|
| 2234 |
+
"loss": 2.4645,
|
| 2235 |
+
"step": 318
|
| 2236 |
+
},
|
| 2237 |
+
{
|
| 2238 |
+
"epoch": 0.43195666892349355,
|
| 2239 |
+
"grad_norm": 0.865022307271061,
|
| 2240 |
+
"learning_rate": 9.09715399882822e-06,
|
| 2241 |
+
"loss": 2.2775,
|
| 2242 |
+
"step": 319
|
| 2243 |
+
},
|
| 2244 |
+
{
|
| 2245 |
+
"epoch": 0.4333107650643196,
|
| 2246 |
+
"grad_norm": 0.8835769231615183,
|
| 2247 |
+
"learning_rate": 9.09087437932872e-06,
|
| 2248 |
+
"loss": 2.5524,
|
| 2249 |
+
"step": 320
|
| 2250 |
+
},
|
| 2251 |
+
{
|
| 2252 |
+
"epoch": 0.4346648612051456,
|
| 2253 |
+
"grad_norm": 0.9432892345765396,
|
| 2254 |
+
"learning_rate": 9.084575180093031e-06,
|
| 2255 |
+
"loss": 2.5083,
|
| 2256 |
+
"step": 321
|
| 2257 |
+
},
|
| 2258 |
+
{
|
| 2259 |
+
"epoch": 0.43601895734597157,
|
| 2260 |
+
"grad_norm": 0.931907462171622,
|
| 2261 |
+
"learning_rate": 9.07825643127037e-06,
|
| 2262 |
+
"loss": 2.4523,
|
| 2263 |
+
"step": 322
|
| 2264 |
+
},
|
| 2265 |
+
{
|
| 2266 |
+
"epoch": 0.43737305348679756,
|
| 2267 |
+
"grad_norm": 0.9405696755624474,
|
| 2268 |
+
"learning_rate": 9.071918163103524e-06,
|
| 2269 |
+
"loss": 2.4703,
|
| 2270 |
+
"step": 323
|
| 2271 |
+
},
|
| 2272 |
+
{
|
| 2273 |
+
"epoch": 0.43872714962762355,
|
| 2274 |
+
"grad_norm": 0.962612723073031,
|
| 2275 |
+
"learning_rate": 9.065560405928699e-06,
|
| 2276 |
+
"loss": 2.847,
|
| 2277 |
+
"step": 324
|
| 2278 |
+
},
|
| 2279 |
+
{
|
| 2280 |
+
"epoch": 0.44008124576844954,
|
| 2281 |
+
"grad_norm": 1.0577696194404815,
|
| 2282 |
+
"learning_rate": 9.059183190175386e-06,
|
| 2283 |
+
"loss": 2.4337,
|
| 2284 |
+
"step": 325
|
| 2285 |
+
},
|
| 2286 |
+
{
|
| 2287 |
+
"epoch": 0.4414353419092756,
|
| 2288 |
+
"grad_norm": 1.4201981580037544,
|
| 2289 |
+
"learning_rate": 9.0527865463662e-06,
|
| 2290 |
+
"loss": 2.4028,
|
| 2291 |
+
"step": 326
|
| 2292 |
+
},
|
| 2293 |
+
{
|
| 2294 |
+
"epoch": 0.44278943805010157,
|
| 2295 |
+
"grad_norm": 0.8701075062948284,
|
| 2296 |
+
"learning_rate": 9.046370505116748e-06,
|
| 2297 |
+
"loss": 2.2132,
|
| 2298 |
+
"step": 327
|
| 2299 |
+
},
|
| 2300 |
+
{
|
| 2301 |
+
"epoch": 0.44414353419092756,
|
| 2302 |
+
"grad_norm": 1.1362568277712843,
|
| 2303 |
+
"learning_rate": 9.039935097135479e-06,
|
| 2304 |
+
"loss": 2.4098,
|
| 2305 |
+
"step": 328
|
| 2306 |
+
},
|
| 2307 |
+
{
|
| 2308 |
+
"epoch": 0.44549763033175355,
|
| 2309 |
+
"grad_norm": 1.0852398132134922,
|
| 2310 |
+
"learning_rate": 9.03348035322353e-06,
|
| 2311 |
+
"loss": 2.136,
|
| 2312 |
+
"step": 329
|
| 2313 |
+
},
|
| 2314 |
+
{
|
| 2315 |
+
"epoch": 0.44685172647257954,
|
| 2316 |
+
"grad_norm": 0.9806916801248307,
|
| 2317 |
+
"learning_rate": 9.027006304274584e-06,
|
| 2318 |
+
"loss": 2.7784,
|
| 2319 |
+
"step": 330
|
| 2320 |
+
},
|
| 2321 |
+
{
|
| 2322 |
+
"epoch": 0.4482058226134055,
|
| 2323 |
+
"grad_norm": 0.9341321077617596,
|
| 2324 |
+
"learning_rate": 9.020512981274726e-06,
|
| 2325 |
+
"loss": 1.8668,
|
| 2326 |
+
"step": 331
|
| 2327 |
+
},
|
| 2328 |
+
{
|
| 2329 |
+
"epoch": 0.44955991875423157,
|
| 2330 |
+
"grad_norm": 1.1941574187846893,
|
| 2331 |
+
"learning_rate": 9.014000415302286e-06,
|
| 2332 |
+
"loss": 2.7557,
|
| 2333 |
+
"step": 332
|
| 2334 |
+
},
|
| 2335 |
+
{
|
| 2336 |
+
"epoch": 0.45091401489505756,
|
| 2337 |
+
"grad_norm": 1.0291782053412863,
|
| 2338 |
+
"learning_rate": 9.007468637527697e-06,
|
| 2339 |
+
"loss": 2.5349,
|
| 2340 |
+
"step": 333
|
| 2341 |
+
},
|
| 2342 |
+
{
|
| 2343 |
+
"epoch": 0.45226811103588355,
|
| 2344 |
+
"grad_norm": 0.9440659662613932,
|
| 2345 |
+
"learning_rate": 9.000917679213344e-06,
|
| 2346 |
+
"loss": 2.2004,
|
| 2347 |
+
"step": 334
|
| 2348 |
+
},
|
| 2349 |
+
{
|
| 2350 |
+
"epoch": 0.45362220717670954,
|
| 2351 |
+
"grad_norm": 0.883811084632338,
|
| 2352 |
+
"learning_rate": 8.99434757171341e-06,
|
| 2353 |
+
"loss": 1.8828,
|
| 2354 |
+
"step": 335
|
| 2355 |
+
},
|
| 2356 |
+
{
|
| 2357 |
+
"epoch": 0.4549763033175355,
|
| 2358 |
+
"grad_norm": 0.8690517488922695,
|
| 2359 |
+
"learning_rate": 8.987758346473739e-06,
|
| 2360 |
+
"loss": 2.5318,
|
| 2361 |
+
"step": 336
|
| 2362 |
+
},
|
| 2363 |
+
{
|
| 2364 |
+
"epoch": 0.45633039945836157,
|
| 2365 |
+
"grad_norm": 0.9009315334756164,
|
| 2366 |
+
"learning_rate": 8.981150035031663e-06,
|
| 2367 |
+
"loss": 2.1954,
|
| 2368 |
+
"step": 337
|
| 2369 |
+
},
|
| 2370 |
+
{
|
| 2371 |
+
"epoch": 0.45768449559918756,
|
| 2372 |
+
"grad_norm": 0.8858212672786216,
|
| 2373 |
+
"learning_rate": 8.974522669015872e-06,
|
| 2374 |
+
"loss": 2.2137,
|
| 2375 |
+
"step": 338
|
| 2376 |
+
},
|
| 2377 |
+
{
|
| 2378 |
+
"epoch": 0.45903859174001355,
|
| 2379 |
+
"grad_norm": 0.8328355239198729,
|
| 2380 |
+
"learning_rate": 8.96787628014626e-06,
|
| 2381 |
+
"loss": 2.3718,
|
| 2382 |
+
"step": 339
|
| 2383 |
+
},
|
| 2384 |
+
{
|
| 2385 |
+
"epoch": 0.46039268788083954,
|
| 2386 |
+
"grad_norm": 0.999826123063525,
|
| 2387 |
+
"learning_rate": 8.961210900233757e-06,
|
| 2388 |
+
"loss": 2.6404,
|
| 2389 |
+
"step": 340
|
| 2390 |
+
},
|
| 2391 |
+
{
|
| 2392 |
+
"epoch": 0.4617467840216655,
|
| 2393 |
+
"grad_norm": 0.8192874415252067,
|
| 2394 |
+
"learning_rate": 8.954526561180195e-06,
|
| 2395 |
+
"loss": 2.2227,
|
| 2396 |
+
"step": 341
|
| 2397 |
+
},
|
| 2398 |
+
{
|
| 2399 |
+
"epoch": 0.4631008801624915,
|
| 2400 |
+
"grad_norm": 0.8800622522324091,
|
| 2401 |
+
"learning_rate": 8.947823294978147e-06,
|
| 2402 |
+
"loss": 2.3034,
|
| 2403 |
+
"step": 342
|
| 2404 |
+
},
|
| 2405 |
+
{
|
| 2406 |
+
"epoch": 0.46445497630331756,
|
| 2407 |
+
"grad_norm": 0.9239289219678168,
|
| 2408 |
+
"learning_rate": 8.941101133710772e-06,
|
| 2409 |
+
"loss": 2.3034,
|
| 2410 |
+
"step": 343
|
| 2411 |
+
},
|
| 2412 |
+
{
|
| 2413 |
+
"epoch": 0.46580907244414355,
|
| 2414 |
+
"grad_norm": 1.0400589249817949,
|
| 2415 |
+
"learning_rate": 8.934360109551671e-06,
|
| 2416 |
+
"loss": 2.355,
|
| 2417 |
+
"step": 344
|
| 2418 |
+
},
|
| 2419 |
+
{
|
| 2420 |
+
"epoch": 0.46716316858496953,
|
| 2421 |
+
"grad_norm": 0.9418406311279763,
|
| 2422 |
+
"learning_rate": 8.927600254764721e-06,
|
| 2423 |
+
"loss": 2.1249,
|
| 2424 |
+
"step": 345
|
| 2425 |
+
},
|
| 2426 |
+
{
|
| 2427 |
+
"epoch": 0.4685172647257955,
|
| 2428 |
+
"grad_norm": 1.286887601031447,
|
| 2429 |
+
"learning_rate": 8.920821601703927e-06,
|
| 2430 |
+
"loss": 2.3553,
|
| 2431 |
+
"step": 346
|
| 2432 |
+
},
|
| 2433 |
+
{
|
| 2434 |
+
"epoch": 0.4698713608666215,
|
| 2435 |
+
"grad_norm": 0.9461254286423676,
|
| 2436 |
+
"learning_rate": 8.914024182813268e-06,
|
| 2437 |
+
"loss": 2.882,
|
| 2438 |
+
"step": 347
|
| 2439 |
+
},
|
| 2440 |
+
{
|
| 2441 |
+
"epoch": 0.4712254570074475,
|
| 2442 |
+
"grad_norm": 0.9709976554539759,
|
| 2443 |
+
"learning_rate": 8.907208030626538e-06,
|
| 2444 |
+
"loss": 2.3406,
|
| 2445 |
+
"step": 348
|
| 2446 |
+
},
|
| 2447 |
+
{
|
| 2448 |
+
"epoch": 0.47257955314827355,
|
| 2449 |
+
"grad_norm": 1.0768202606705715,
|
| 2450 |
+
"learning_rate": 8.900373177767196e-06,
|
| 2451 |
+
"loss": 2.1405,
|
| 2452 |
+
"step": 349
|
| 2453 |
+
},
|
| 2454 |
+
{
|
| 2455 |
+
"epoch": 0.47393364928909953,
|
| 2456 |
+
"grad_norm": 1.0960778664068742,
|
| 2457 |
+
"learning_rate": 8.8935196569482e-06,
|
| 2458 |
+
"loss": 2.1959,
|
| 2459 |
+
"step": 350
|
| 2460 |
+
},
|
| 2461 |
+
{
|
| 2462 |
+
"epoch": 0.4752877454299255,
|
| 2463 |
+
"grad_norm": 0.9024940161441628,
|
| 2464 |
+
"learning_rate": 8.886647500971862e-06,
|
| 2465 |
+
"loss": 1.9828,
|
| 2466 |
+
"step": 351
|
| 2467 |
+
},
|
| 2468 |
+
{
|
| 2469 |
+
"epoch": 0.4766418415707515,
|
| 2470 |
+
"grad_norm": 0.8351151637681756,
|
| 2471 |
+
"learning_rate": 8.879756742729683e-06,
|
| 2472 |
+
"loss": 2.4813,
|
| 2473 |
+
"step": 352
|
| 2474 |
+
},
|
| 2475 |
+
{
|
| 2476 |
+
"epoch": 0.4779959377115775,
|
| 2477 |
+
"grad_norm": 1.0637419955818261,
|
| 2478 |
+
"learning_rate": 8.8728474152022e-06,
|
| 2479 |
+
"loss": 2.7144,
|
| 2480 |
+
"step": 353
|
| 2481 |
+
},
|
| 2482 |
+
{
|
| 2483 |
+
"epoch": 0.47935003385240355,
|
| 2484 |
+
"grad_norm": 0.9971260587925014,
|
| 2485 |
+
"learning_rate": 8.865919551458823e-06,
|
| 2486 |
+
"loss": 2.4754,
|
| 2487 |
+
"step": 354
|
| 2488 |
+
},
|
| 2489 |
+
{
|
| 2490 |
+
"epoch": 0.48070412999322953,
|
| 2491 |
+
"grad_norm": 0.9455478449985035,
|
| 2492 |
+
"learning_rate": 8.858973184657682e-06,
|
| 2493 |
+
"loss": 2.0941,
|
| 2494 |
+
"step": 355
|
| 2495 |
+
},
|
| 2496 |
+
{
|
| 2497 |
+
"epoch": 0.4820582261340555,
|
| 2498 |
+
"grad_norm": 1.0025865640257856,
|
| 2499 |
+
"learning_rate": 8.852008348045468e-06,
|
| 2500 |
+
"loss": 2.1712,
|
| 2501 |
+
"step": 356
|
| 2502 |
+
},
|
| 2503 |
+
{
|
| 2504 |
+
"epoch": 0.4834123222748815,
|
| 2505 |
+
"grad_norm": 1.0847129459559228,
|
| 2506 |
+
"learning_rate": 8.84502507495727e-06,
|
| 2507 |
+
"loss": 2.2485,
|
| 2508 |
+
"step": 357
|
| 2509 |
+
},
|
| 2510 |
+
{
|
| 2511 |
+
"epoch": 0.4847664184157075,
|
| 2512 |
+
"grad_norm": 0.9727542785581984,
|
| 2513 |
+
"learning_rate": 8.838023398816417e-06,
|
| 2514 |
+
"loss": 2.2295,
|
| 2515 |
+
"step": 358
|
| 2516 |
+
},
|
| 2517 |
+
{
|
| 2518 |
+
"epoch": 0.4861205145565335,
|
| 2519 |
+
"grad_norm": 1.0006473633765713,
|
| 2520 |
+
"learning_rate": 8.831003353134321e-06,
|
| 2521 |
+
"loss": 2.4642,
|
| 2522 |
+
"step": 359
|
| 2523 |
+
},
|
| 2524 |
+
{
|
| 2525 |
+
"epoch": 0.48747461069735953,
|
| 2526 |
+
"grad_norm": 0.9316788259717722,
|
| 2527 |
+
"learning_rate": 8.823964971510313e-06,
|
| 2528 |
+
"loss": 2.7107,
|
| 2529 |
+
"step": 360
|
| 2530 |
+
},
|
| 2531 |
+
{
|
| 2532 |
+
"epoch": 0.4888287068381855,
|
| 2533 |
+
"grad_norm": 0.9186715038840205,
|
| 2534 |
+
"learning_rate": 8.816908287631483e-06,
|
| 2535 |
+
"loss": 2.374,
|
| 2536 |
+
"step": 361
|
| 2537 |
+
},
|
| 2538 |
+
{
|
| 2539 |
+
"epoch": 0.4901828029790115,
|
| 2540 |
+
"grad_norm": 1.145278113777804,
|
| 2541 |
+
"learning_rate": 8.809833335272517e-06,
|
| 2542 |
+
"loss": 2.616,
|
| 2543 |
+
"step": 362
|
| 2544 |
+
},
|
| 2545 |
+
{
|
| 2546 |
+
"epoch": 0.4915368991198375,
|
| 2547 |
+
"grad_norm": 1.0240670602436293,
|
| 2548 |
+
"learning_rate": 8.802740148295546e-06,
|
| 2549 |
+
"loss": 2.4254,
|
| 2550 |
+
"step": 363
|
| 2551 |
+
},
|
| 2552 |
+
{
|
| 2553 |
+
"epoch": 0.4928909952606635,
|
| 2554 |
+
"grad_norm": 1.167577693850126,
|
| 2555 |
+
"learning_rate": 8.795628760649965e-06,
|
| 2556 |
+
"loss": 2.3852,
|
| 2557 |
+
"step": 364
|
| 2558 |
+
},
|
| 2559 |
+
{
|
| 2560 |
+
"epoch": 0.4942450914014895,
|
| 2561 |
+
"grad_norm": 1.0151735496069052,
|
| 2562 |
+
"learning_rate": 8.78849920637229e-06,
|
| 2563 |
+
"loss": 2.262,
|
| 2564 |
+
"step": 365
|
| 2565 |
+
},
|
| 2566 |
+
{
|
| 2567 |
+
"epoch": 0.4955991875423155,
|
| 2568 |
+
"grad_norm": 20.48704343249556,
|
| 2569 |
+
"learning_rate": 8.781351519585978e-06,
|
| 2570 |
+
"loss": 2.8307,
|
| 2571 |
+
"step": 366
|
| 2572 |
+
},
|
| 2573 |
+
{
|
| 2574 |
+
"epoch": 0.4969532836831415,
|
| 2575 |
+
"grad_norm": 1.0123187878318054,
|
| 2576 |
+
"learning_rate": 8.774185734501277e-06,
|
| 2577 |
+
"loss": 1.9856,
|
| 2578 |
+
"step": 367
|
| 2579 |
+
},
|
| 2580 |
+
{
|
| 2581 |
+
"epoch": 0.4983073798239675,
|
| 2582 |
+
"grad_norm": 1.1847404703515332,
|
| 2583 |
+
"learning_rate": 8.767001885415055e-06,
|
| 2584 |
+
"loss": 2.7989,
|
| 2585 |
+
"step": 368
|
| 2586 |
+
},
|
| 2587 |
+
{
|
| 2588 |
+
"epoch": 0.4996614759647935,
|
| 2589 |
+
"grad_norm": 1.197682332560284,
|
| 2590 |
+
"learning_rate": 8.759800006710641e-06,
|
| 2591 |
+
"loss": 2.3791,
|
| 2592 |
+
"step": 369
|
| 2593 |
+
}
|
| 2594 |
+
],
|
| 2595 |
+
"logging_steps": 1,
|
| 2596 |
+
"max_steps": 1476,
|
| 2597 |
+
"num_input_tokens_seen": 0,
|
| 2598 |
+
"num_train_epochs": 2,
|
| 2599 |
+
"save_steps": 369,
|
| 2600 |
+
"stateful_callbacks": {
|
| 2601 |
+
"TrainerControl": {
|
| 2602 |
+
"args": {
|
| 2603 |
+
"should_epoch_stop": false,
|
| 2604 |
+
"should_evaluate": false,
|
| 2605 |
+
"should_log": false,
|
| 2606 |
+
"should_save": true,
|
| 2607 |
+
"should_training_stop": false
|
| 2608 |
+
},
|
| 2609 |
+
"attributes": {}
|
| 2610 |
+
}
|
| 2611 |
+
},
|
| 2612 |
+
"total_flos": 9.74929356914688e+16,
|
| 2613 |
+
"train_batch_size": 1,
|
| 2614 |
+
"trial_name": null,
|
| 2615 |
+
"trial_params": null
|
| 2616 |
+
}
|
checkpoint-369/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bff29e7ff321b15e984196b58ce5d2fc8b550fddfbffd9146e631086009d7b1
|
| 3 |
+
size 7992
|
checkpoint-369/zero_to_fp32.py
ADDED
|
@@ -0,0 +1,604 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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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: python zero_to_fp32.py . pytorch_model.bin
|
| 14 |
+
|
| 15 |
+
import argparse
|
| 16 |
+
import torch
|
| 17 |
+
import glob
|
| 18 |
+
import math
|
| 19 |
+
import os
|
| 20 |
+
import re
|
| 21 |
+
from collections import OrderedDict
|
| 22 |
+
from dataclasses import dataclass
|
| 23 |
+
|
| 24 |
+
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
|
| 25 |
+
# DeepSpeed data structures it has to be available in the current python environment.
|
| 26 |
+
from deepspeed.utils import logger
|
| 27 |
+
from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
|
| 28 |
+
FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
|
| 29 |
+
FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
@dataclass
|
| 33 |
+
class zero_model_state:
|
| 34 |
+
buffers: dict()
|
| 35 |
+
param_shapes: dict()
|
| 36 |
+
shared_params: list
|
| 37 |
+
ds_version: int
|
| 38 |
+
frozen_param_shapes: dict()
|
| 39 |
+
frozen_param_fragments: dict()
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
debug = 0
|
| 43 |
+
|
| 44 |
+
# load to cpu
|
| 45 |
+
device = torch.device('cpu')
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def atoi(text):
|
| 49 |
+
return int(text) if text.isdigit() else text
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def natural_keys(text):
|
| 53 |
+
'''
|
| 54 |
+
alist.sort(key=natural_keys) sorts in human order
|
| 55 |
+
http://nedbatchelder.com/blog/200712/human_sorting.html
|
| 56 |
+
(See Toothy's implementation in the comments)
|
| 57 |
+
'''
|
| 58 |
+
return [atoi(c) for c in re.split(r'(\d+)', text)]
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def get_model_state_file(checkpoint_dir, zero_stage):
|
| 62 |
+
if not os.path.isdir(checkpoint_dir):
|
| 63 |
+
raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
|
| 64 |
+
|
| 65 |
+
# there should be only one file
|
| 66 |
+
if zero_stage <= 2:
|
| 67 |
+
file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
|
| 68 |
+
elif zero_stage == 3:
|
| 69 |
+
file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
|
| 70 |
+
|
| 71 |
+
if not os.path.exists(file):
|
| 72 |
+
raise FileNotFoundError(f"can't find model states file at '{file}'")
|
| 73 |
+
|
| 74 |
+
return file
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
def get_checkpoint_files(checkpoint_dir, glob_pattern):
|
| 78 |
+
# XXX: need to test that this simple glob rule works for multi-node setup too
|
| 79 |
+
ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
|
| 80 |
+
|
| 81 |
+
if len(ckpt_files) == 0:
|
| 82 |
+
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
|
| 83 |
+
|
| 84 |
+
return ckpt_files
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def get_optim_files(checkpoint_dir):
|
| 88 |
+
return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
def get_model_state_files(checkpoint_dir):
|
| 92 |
+
return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def parse_model_states(files):
|
| 96 |
+
zero_model_states = []
|
| 97 |
+
for file in files:
|
| 98 |
+
state_dict = torch.load(file, map_location=device)
|
| 99 |
+
|
| 100 |
+
if BUFFER_NAMES not in state_dict:
|
| 101 |
+
raise ValueError(f"{file} is not a model state checkpoint")
|
| 102 |
+
buffer_names = state_dict[BUFFER_NAMES]
|
| 103 |
+
if debug:
|
| 104 |
+
print("Found buffers:", buffer_names)
|
| 105 |
+
|
| 106 |
+
# recover just the buffers while restoring them to fp32 if they were saved in fp16
|
| 107 |
+
buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
|
| 108 |
+
param_shapes = state_dict[PARAM_SHAPES]
|
| 109 |
+
|
| 110 |
+
# collect parameters that are included in param_shapes
|
| 111 |
+
param_names = []
|
| 112 |
+
for s in param_shapes:
|
| 113 |
+
for name in s.keys():
|
| 114 |
+
param_names.append(name)
|
| 115 |
+
|
| 116 |
+
# update with frozen parameters
|
| 117 |
+
frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
|
| 118 |
+
if frozen_param_shapes is not None:
|
| 119 |
+
if debug:
|
| 120 |
+
print(f"Found frozen_param_shapes: {frozen_param_shapes}")
|
| 121 |
+
param_names += list(frozen_param_shapes.keys())
|
| 122 |
+
|
| 123 |
+
# handle shared params
|
| 124 |
+
shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
|
| 125 |
+
|
| 126 |
+
ds_version = state_dict.get(DS_VERSION, None)
|
| 127 |
+
|
| 128 |
+
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
|
| 129 |
+
|
| 130 |
+
z_model_state = zero_model_state(buffers=buffers,
|
| 131 |
+
param_shapes=param_shapes,
|
| 132 |
+
shared_params=shared_params,
|
| 133 |
+
ds_version=ds_version,
|
| 134 |
+
frozen_param_shapes=frozen_param_shapes,
|
| 135 |
+
frozen_param_fragments=frozen_param_fragments)
|
| 136 |
+
zero_model_states.append(z_model_state)
|
| 137 |
+
|
| 138 |
+
return zero_model_states
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
def parse_optim_states(files, ds_checkpoint_dir):
|
| 142 |
+
|
| 143 |
+
total_files = len(files)
|
| 144 |
+
state_dicts = []
|
| 145 |
+
for f in files:
|
| 146 |
+
state_dict = torch.load(f, map_location=device)
|
| 147 |
+
# immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
|
| 148 |
+
# and also handle the case where it was already removed by another helper script
|
| 149 |
+
state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
|
| 150 |
+
state_dicts.append(state_dict)
|
| 151 |
+
|
| 152 |
+
if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
|
| 153 |
+
raise ValueError(f"{files[0]} is not a zero checkpoint")
|
| 154 |
+
zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
|
| 155 |
+
world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
|
| 156 |
+
|
| 157 |
+
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert
|
| 158 |
+
# parameters can be different from data parallelism for non-expert parameters. So we can just
|
| 159 |
+
# use the max of the partition_count to get the dp world_size.
|
| 160 |
+
|
| 161 |
+
if type(world_size) is list:
|
| 162 |
+
world_size = max(world_size)
|
| 163 |
+
|
| 164 |
+
if world_size != total_files:
|
| 165 |
+
raise ValueError(
|
| 166 |
+
f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
|
| 167 |
+
"Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
|
| 168 |
+
)
|
| 169 |
+
|
| 170 |
+
# the groups are named differently in each stage
|
| 171 |
+
if zero_stage <= 2:
|
| 172 |
+
fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
|
| 173 |
+
elif zero_stage == 3:
|
| 174 |
+
fp32_groups_key = FP32_FLAT_GROUPS
|
| 175 |
+
else:
|
| 176 |
+
raise ValueError(f"unknown zero stage {zero_stage}")
|
| 177 |
+
|
| 178 |
+
if zero_stage <= 2:
|
| 179 |
+
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
|
| 180 |
+
elif zero_stage == 3:
|
| 181 |
+
# if there is more than one param group, there will be multiple flattened tensors - one
|
| 182 |
+
# flattened tensor per group - for simplicity merge them into a single tensor
|
| 183 |
+
#
|
| 184 |
+
# XXX: could make the script more memory efficient for when there are multiple groups - it
|
| 185 |
+
# will require matching the sub-lists of param_shapes for each param group flattened tensor
|
| 186 |
+
|
| 187 |
+
fp32_flat_groups = [
|
| 188 |
+
torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts))
|
| 189 |
+
]
|
| 190 |
+
|
| 191 |
+
return zero_stage, world_size, fp32_flat_groups
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
|
| 195 |
+
"""
|
| 196 |
+
Returns fp32 state_dict reconstructed from ds checkpoint
|
| 197 |
+
|
| 198 |
+
Args:
|
| 199 |
+
- ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
|
| 200 |
+
|
| 201 |
+
"""
|
| 202 |
+
print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
|
| 203 |
+
|
| 204 |
+
optim_files = get_optim_files(ds_checkpoint_dir)
|
| 205 |
+
zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
|
| 206 |
+
print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
|
| 207 |
+
|
| 208 |
+
model_files = get_model_state_files(ds_checkpoint_dir)
|
| 209 |
+
|
| 210 |
+
zero_model_states = parse_model_states(model_files)
|
| 211 |
+
print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
|
| 212 |
+
|
| 213 |
+
if zero_stage <= 2:
|
| 214 |
+
return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 215 |
+
exclude_frozen_parameters)
|
| 216 |
+
elif zero_stage == 3:
|
| 217 |
+
return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 218 |
+
exclude_frozen_parameters)
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
def _zero2_merge_frozen_params(state_dict, zero_model_states):
|
| 222 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 223 |
+
return
|
| 224 |
+
|
| 225 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 226 |
+
frozen_param_fragments = zero_model_states[0].frozen_param_fragments
|
| 227 |
+
|
| 228 |
+
if debug:
|
| 229 |
+
num_elem = sum(s.numel() for s in frozen_param_shapes.values())
|
| 230 |
+
print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 231 |
+
|
| 232 |
+
wanted_params = len(frozen_param_shapes)
|
| 233 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 234 |
+
avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
|
| 235 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 236 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 237 |
+
|
| 238 |
+
total_params = 0
|
| 239 |
+
total_numel = 0
|
| 240 |
+
for name, shape in frozen_param_shapes.items():
|
| 241 |
+
total_params += 1
|
| 242 |
+
unpartitioned_numel = shape.numel()
|
| 243 |
+
total_numel += unpartitioned_numel
|
| 244 |
+
|
| 245 |
+
state_dict[name] = frozen_param_fragments[name]
|
| 246 |
+
|
| 247 |
+
if debug:
|
| 248 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 249 |
+
|
| 250 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
def _has_callable(obj, fn):
|
| 254 |
+
attr = getattr(obj, fn, None)
|
| 255 |
+
return callable(attr)
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 259 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 260 |
+
|
| 261 |
+
# Reconstruction protocol:
|
| 262 |
+
#
|
| 263 |
+
# XXX: document this
|
| 264 |
+
|
| 265 |
+
if debug:
|
| 266 |
+
for i in range(world_size):
|
| 267 |
+
for j in range(len(fp32_flat_groups[0])):
|
| 268 |
+
print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
|
| 269 |
+
|
| 270 |
+
# XXX: memory usage doubles here (zero2)
|
| 271 |
+
num_param_groups = len(fp32_flat_groups[0])
|
| 272 |
+
merged_single_partition_of_fp32_groups = []
|
| 273 |
+
for i in range(num_param_groups):
|
| 274 |
+
merged_partitions = [sd[i] for sd in fp32_flat_groups]
|
| 275 |
+
full_single_fp32_vector = torch.cat(merged_partitions, 0)
|
| 276 |
+
merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
|
| 277 |
+
avail_numel = sum(
|
| 278 |
+
[full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
|
| 279 |
+
|
| 280 |
+
if debug:
|
| 281 |
+
wanted_params = sum([len(shapes) for shapes in param_shapes])
|
| 282 |
+
wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
|
| 283 |
+
# not asserting if there is a mismatch due to possible padding
|
| 284 |
+
print(f"Have {avail_numel} numels to process.")
|
| 285 |
+
print(f"Need {wanted_numel} numels in {wanted_params} params.")
|
| 286 |
+
|
| 287 |
+
# params
|
| 288 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 289 |
+
# out-of-core computing solution
|
| 290 |
+
total_numel = 0
|
| 291 |
+
total_params = 0
|
| 292 |
+
for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
|
| 293 |
+
offset = 0
|
| 294 |
+
avail_numel = full_single_fp32_vector.numel()
|
| 295 |
+
for name, shape in shapes.items():
|
| 296 |
+
|
| 297 |
+
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
|
| 298 |
+
total_numel += unpartitioned_numel
|
| 299 |
+
total_params += 1
|
| 300 |
+
|
| 301 |
+
if debug:
|
| 302 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 303 |
+
state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
|
| 304 |
+
offset += unpartitioned_numel
|
| 305 |
+
|
| 306 |
+
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
|
| 307 |
+
# avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
|
| 308 |
+
# paddings performed in the code it's almost impossible to predict the exact numbers w/o the
|
| 309 |
+
# live optimizer object, so we are checking that the numbers are within the right range
|
| 310 |
+
align_to = 2 * world_size
|
| 311 |
+
|
| 312 |
+
def zero2_align(x):
|
| 313 |
+
return align_to * math.ceil(x / align_to)
|
| 314 |
+
|
| 315 |
+
if debug:
|
| 316 |
+
print(f"original offset={offset}, avail_numel={avail_numel}")
|
| 317 |
+
|
| 318 |
+
offset = zero2_align(offset)
|
| 319 |
+
avail_numel = zero2_align(avail_numel)
|
| 320 |
+
|
| 321 |
+
if debug:
|
| 322 |
+
print(f"aligned offset={offset}, avail_numel={avail_numel}")
|
| 323 |
+
|
| 324 |
+
# Sanity check
|
| 325 |
+
if offset != avail_numel:
|
| 326 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 327 |
+
|
| 328 |
+
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 332 |
+
exclude_frozen_parameters):
|
| 333 |
+
state_dict = OrderedDict()
|
| 334 |
+
|
| 335 |
+
# buffers
|
| 336 |
+
buffers = zero_model_states[0].buffers
|
| 337 |
+
state_dict.update(buffers)
|
| 338 |
+
if debug:
|
| 339 |
+
print(f"added {len(buffers)} buffers")
|
| 340 |
+
|
| 341 |
+
if not exclude_frozen_parameters:
|
| 342 |
+
_zero2_merge_frozen_params(state_dict, zero_model_states)
|
| 343 |
+
|
| 344 |
+
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 345 |
+
|
| 346 |
+
# recover shared parameters
|
| 347 |
+
for pair in zero_model_states[0].shared_params:
|
| 348 |
+
if pair[1] in state_dict:
|
| 349 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 350 |
+
|
| 351 |
+
return state_dict
|
| 352 |
+
|
| 353 |
+
|
| 354 |
+
def zero3_partitioned_param_info(unpartitioned_numel, world_size):
|
| 355 |
+
remainder = unpartitioned_numel % world_size
|
| 356 |
+
padding_numel = (world_size - remainder) if remainder else 0
|
| 357 |
+
partitioned_numel = math.ceil(unpartitioned_numel / world_size)
|
| 358 |
+
return partitioned_numel, padding_numel
|
| 359 |
+
|
| 360 |
+
|
| 361 |
+
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
|
| 362 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 363 |
+
return
|
| 364 |
+
|
| 365 |
+
if debug:
|
| 366 |
+
for i in range(world_size):
|
| 367 |
+
num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
|
| 368 |
+
print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 369 |
+
|
| 370 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 371 |
+
wanted_params = len(frozen_param_shapes)
|
| 372 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 373 |
+
avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
|
| 374 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 375 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 376 |
+
|
| 377 |
+
total_params = 0
|
| 378 |
+
total_numel = 0
|
| 379 |
+
for name, shape in zero_model_states[0].frozen_param_shapes.items():
|
| 380 |
+
total_params += 1
|
| 381 |
+
unpartitioned_numel = shape.numel()
|
| 382 |
+
total_numel += unpartitioned_numel
|
| 383 |
+
|
| 384 |
+
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
|
| 385 |
+
state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 386 |
+
|
| 387 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 388 |
+
|
| 389 |
+
if debug:
|
| 390 |
+
print(
|
| 391 |
+
f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 392 |
+
)
|
| 393 |
+
|
| 394 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 398 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 399 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 400 |
+
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
|
| 401 |
+
# param, re-consolidating each param, while dealing with padding if any
|
| 402 |
+
|
| 403 |
+
# merge list of dicts, preserving order
|
| 404 |
+
param_shapes = {k: v for d in param_shapes for k, v in d.items()}
|
| 405 |
+
|
| 406 |
+
if debug:
|
| 407 |
+
for i in range(world_size):
|
| 408 |
+
print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
|
| 409 |
+
|
| 410 |
+
wanted_params = len(param_shapes)
|
| 411 |
+
wanted_numel = sum(shape.numel() for shape in param_shapes.values())
|
| 412 |
+
# not asserting if there is a mismatch due to possible padding
|
| 413 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 414 |
+
print(f"Trainable params: Have {avail_numel} numels to process.")
|
| 415 |
+
print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
|
| 416 |
+
|
| 417 |
+
# params
|
| 418 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 419 |
+
# out-of-core computing solution
|
| 420 |
+
offset = 0
|
| 421 |
+
total_numel = 0
|
| 422 |
+
total_params = 0
|
| 423 |
+
for name, shape in param_shapes.items():
|
| 424 |
+
|
| 425 |
+
unpartitioned_numel = shape.numel()
|
| 426 |
+
total_numel += unpartitioned_numel
|
| 427 |
+
total_params += 1
|
| 428 |
+
|
| 429 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 430 |
+
|
| 431 |
+
if debug:
|
| 432 |
+
print(
|
| 433 |
+
f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 434 |
+
)
|
| 435 |
+
|
| 436 |
+
# XXX: memory usage doubles here
|
| 437 |
+
state_dict[name] = torch.cat(
|
| 438 |
+
tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)),
|
| 439 |
+
0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 440 |
+
offset += partitioned_numel
|
| 441 |
+
|
| 442 |
+
offset *= world_size
|
| 443 |
+
|
| 444 |
+
# Sanity check
|
| 445 |
+
if offset != avail_numel:
|
| 446 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 447 |
+
|
| 448 |
+
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
|
| 449 |
+
|
| 450 |
+
|
| 451 |
+
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 452 |
+
exclude_frozen_parameters):
|
| 453 |
+
state_dict = OrderedDict()
|
| 454 |
+
|
| 455 |
+
# buffers
|
| 456 |
+
buffers = zero_model_states[0].buffers
|
| 457 |
+
state_dict.update(buffers)
|
| 458 |
+
if debug:
|
| 459 |
+
print(f"added {len(buffers)} buffers")
|
| 460 |
+
|
| 461 |
+
if not exclude_frozen_parameters:
|
| 462 |
+
_zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
|
| 463 |
+
|
| 464 |
+
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 465 |
+
|
| 466 |
+
# recover shared parameters
|
| 467 |
+
for pair in zero_model_states[0].shared_params:
|
| 468 |
+
if pair[1] in state_dict:
|
| 469 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 470 |
+
|
| 471 |
+
return state_dict
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None, exclude_frozen_parameters=False):
|
| 475 |
+
"""
|
| 476 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
|
| 477 |
+
``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
|
| 478 |
+
via a model hub.
|
| 479 |
+
|
| 480 |
+
Args:
|
| 481 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder
|
| 482 |
+
- ``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``
|
| 483 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 484 |
+
|
| 485 |
+
Returns:
|
| 486 |
+
- pytorch ``state_dict``
|
| 487 |
+
|
| 488 |
+
Note: this approach may not work if your application doesn't have sufficient free CPU memory and
|
| 489 |
+
you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
|
| 490 |
+
the checkpoint.
|
| 491 |
+
|
| 492 |
+
A typical usage might be ::
|
| 493 |
+
|
| 494 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 495 |
+
# do the training and checkpoint saving
|
| 496 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
|
| 497 |
+
model = model.cpu() # move to cpu
|
| 498 |
+
model.load_state_dict(state_dict)
|
| 499 |
+
# submit to model hub or save the model to share with others
|
| 500 |
+
|
| 501 |
+
In this example the ``model`` will no longer be usable in the deepspeed context of the same
|
| 502 |
+
application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 503 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 504 |
+
|
| 505 |
+
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
|
| 506 |
+
|
| 507 |
+
"""
|
| 508 |
+
if tag is None:
|
| 509 |
+
latest_path = os.path.join(checkpoint_dir, 'latest')
|
| 510 |
+
if os.path.isfile(latest_path):
|
| 511 |
+
with open(latest_path, 'r') as fd:
|
| 512 |
+
tag = fd.read().strip()
|
| 513 |
+
else:
|
| 514 |
+
raise ValueError(f"Unable to find 'latest' file at {latest_path}")
|
| 515 |
+
|
| 516 |
+
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
|
| 517 |
+
|
| 518 |
+
if not os.path.isdir(ds_checkpoint_dir):
|
| 519 |
+
raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
|
| 520 |
+
|
| 521 |
+
return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_file, tag=None, exclude_frozen_parameters=False):
|
| 525 |
+
"""
|
| 526 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
|
| 527 |
+
loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
|
| 528 |
+
|
| 529 |
+
Args:
|
| 530 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 531 |
+
- ``output_file``: path to the pytorch fp32 state_dict output file (e.g. path/pytorch_model.bin)
|
| 532 |
+
- ``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``
|
| 533 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 534 |
+
"""
|
| 535 |
+
|
| 536 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag, exclude_frozen_parameters)
|
| 537 |
+
print(f"Saving fp32 state dict to {output_file}")
|
| 538 |
+
torch.save(state_dict, output_file)
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
|
| 542 |
+
"""
|
| 543 |
+
1. Put the provided model to cpu
|
| 544 |
+
2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
|
| 545 |
+
3. Load it into the provided model
|
| 546 |
+
|
| 547 |
+
Args:
|
| 548 |
+
- ``model``: the model object to update
|
| 549 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 550 |
+
- ``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``
|
| 551 |
+
|
| 552 |
+
Returns:
|
| 553 |
+
- ``model`: modified model
|
| 554 |
+
|
| 555 |
+
Make sure you have plenty of CPU memory available before you call this function. If you don't
|
| 556 |
+
have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
|
| 557 |
+
conveniently placed for you in the checkpoint folder.
|
| 558 |
+
|
| 559 |
+
A typical usage might be ::
|
| 560 |
+
|
| 561 |
+
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
|
| 562 |
+
model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
|
| 563 |
+
# submit to model hub or save the model to share with others
|
| 564 |
+
|
| 565 |
+
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
|
| 566 |
+
of the same application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 567 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 568 |
+
|
| 569 |
+
"""
|
| 570 |
+
logger.info(f"Extracting fp32 weights")
|
| 571 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
|
| 572 |
+
|
| 573 |
+
logger.info(f"Overwriting model with fp32 weights")
|
| 574 |
+
model = model.cpu()
|
| 575 |
+
model.load_state_dict(state_dict, strict=False)
|
| 576 |
+
|
| 577 |
+
return model
|
| 578 |
+
|
| 579 |
+
|
| 580 |
+
if __name__ == "__main__":
|
| 581 |
+
|
| 582 |
+
parser = argparse.ArgumentParser()
|
| 583 |
+
parser.add_argument("checkpoint_dir",
|
| 584 |
+
type=str,
|
| 585 |
+
help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
|
| 586 |
+
parser.add_argument(
|
| 587 |
+
"output_file",
|
| 588 |
+
type=str,
|
| 589 |
+
help="path to the pytorch fp32 state_dict output file (e.g. path/checkpoint-12/pytorch_model.bin)")
|
| 590 |
+
parser.add_argument("-t",
|
| 591 |
+
"--tag",
|
| 592 |
+
type=str,
|
| 593 |
+
default=None,
|
| 594 |
+
help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
|
| 595 |
+
parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
|
| 596 |
+
parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
|
| 597 |
+
args = parser.parse_args()
|
| 598 |
+
|
| 599 |
+
debug = args.debug
|
| 600 |
+
|
| 601 |
+
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
|
| 602 |
+
args.output_file,
|
| 603 |
+
tag=args.tag,
|
| 604 |
+
exclude_frozen_parameters=args.exclude_frozen_parameters)
|