Text Generation
Transformers
Safetensors
qwen2
llama-factory
Generated from Trainer
conversational
text-generation-inference
Instructions to use adpretko/train-armv8-O2_epoch3_AMD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adpretko/train-armv8-O2_epoch3_AMD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="adpretko/train-armv8-O2_epoch3_AMD") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("adpretko/train-armv8-O2_epoch3_AMD") model = AutoModelForMultimodalLM.from_pretrained("adpretko/train-armv8-O2_epoch3_AMD") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use adpretko/train-armv8-O2_epoch3_AMD with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "adpretko/train-armv8-O2_epoch3_AMD" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adpretko/train-armv8-O2_epoch3_AMD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/adpretko/train-armv8-O2_epoch3_AMD
- SGLang
How to use adpretko/train-armv8-O2_epoch3_AMD with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "adpretko/train-armv8-O2_epoch3_AMD" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adpretko/train-armv8-O2_epoch3_AMD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "adpretko/train-armv8-O2_epoch3_AMD" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "adpretko/train-armv8-O2_epoch3_AMD", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use adpretko/train-armv8-O2_epoch3_AMD with Docker Model Runner:
docker model run hf.co/adpretko/train-armv8-O2_epoch3_AMD
final save
Browse files- .gitattributes +1 -0
- README.md +59 -0
- checkpoint-3200/added_tokens.json +24 -0
- checkpoint-3200/chat_template.jinja +54 -0
- checkpoint-3200/config.json +58 -0
- checkpoint-3200/generation_config.json +14 -0
- checkpoint-3200/global_step3199/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
- checkpoint-3200/global_step3199/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
- checkpoint-3200/global_step3199/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
- checkpoint-3200/global_step3199/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
- checkpoint-3200/global_step3199/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt +3 -0
- checkpoint-3200/global_step3199/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt +3 -0
- checkpoint-3200/global_step3199/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt +3 -0
- checkpoint-3200/global_step3199/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt +3 -0
- checkpoint-3200/global_step3199/mp_rank_00_model_states.pt +3 -0
- checkpoint-3200/latest +1 -0
- checkpoint-3200/merges.txt +0 -0
- checkpoint-3200/model.safetensors +3 -0
- checkpoint-3200/rng_state_0.pth +3 -0
- checkpoint-3200/rng_state_1.pth +3 -0
- checkpoint-3200/rng_state_2.pth +3 -0
- checkpoint-3200/rng_state_3.pth +3 -0
- checkpoint-3200/rng_state_4.pth +3 -0
- checkpoint-3200/rng_state_5.pth +3 -0
- checkpoint-3200/rng_state_6.pth +3 -0
- checkpoint-3200/rng_state_7.pth +3 -0
- checkpoint-3200/scheduler.pt +3 -0
- checkpoint-3200/special_tokens_map.json +31 -0
- checkpoint-3200/tokenizer.json +3 -0
- checkpoint-3200/tokenizer_config.json +208 -0
- checkpoint-3200/trainer_state.json +2274 -0
- checkpoint-3200/training_args.bin +3 -0
- checkpoint-3200/vocab.json +0 -0
- checkpoint-3200/zero_to_fp32.py +760 -0
- generation_config.json +14 -0
- model.safetensors +1 -1
- trainer_log.jsonl +4 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
checkpoint-3200/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
base_model: Qwen/Qwen2.5-Coder-1.5B-Instruct
|
| 4 |
+
tags:
|
| 5 |
+
- llama-factory
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
model-index:
|
| 8 |
+
- name: train-armv8-O2_epoch3_AMD
|
| 9 |
+
results: []
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
|
| 15 |
+
# train-armv8-O2_epoch3_AMD
|
| 16 |
+
|
| 17 |
+
This model is a fine-tuned version of [saves/train-armv8-O2_epoch3/checkpoint-2400](https://huggingface.co/saves/train-armv8-O2_epoch3/checkpoint-2400) on the None dataset.
|
| 18 |
+
|
| 19 |
+
## Model description
|
| 20 |
+
|
| 21 |
+
More information needed
|
| 22 |
+
|
| 23 |
+
## Intended uses & limitations
|
| 24 |
+
|
| 25 |
+
More information needed
|
| 26 |
+
|
| 27 |
+
## Training and evaluation data
|
| 28 |
+
|
| 29 |
+
More information needed
|
| 30 |
+
|
| 31 |
+
## Training procedure
|
| 32 |
+
|
| 33 |
+
### Training hyperparameters
|
| 34 |
+
|
| 35 |
+
The following hyperparameters were used during training:
|
| 36 |
+
- learning_rate: 2e-05
|
| 37 |
+
- train_batch_size: 8
|
| 38 |
+
- eval_batch_size: 8
|
| 39 |
+
- seed: 42
|
| 40 |
+
- distributed_type: multi-GPU
|
| 41 |
+
- num_devices: 8
|
| 42 |
+
- gradient_accumulation_steps: 8
|
| 43 |
+
- total_train_batch_size: 512
|
| 44 |
+
- total_eval_batch_size: 64
|
| 45 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
+
- lr_scheduler_type: cosine
|
| 47 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 48 |
+
- num_epochs: 2.0
|
| 49 |
+
|
| 50 |
+
### Training results
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
### Framework versions
|
| 55 |
+
|
| 56 |
+
- Transformers 4.55.0
|
| 57 |
+
- Pytorch 2.8.0+rocm6.3
|
| 58 |
+
- Datasets 3.6.0
|
| 59 |
+
- Tokenizers 0.21.1
|
checkpoint-3200/added_tokens.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</tool_call>": 151658,
|
| 3 |
+
"<tool_call>": 151657,
|
| 4 |
+
"<|box_end|>": 151649,
|
| 5 |
+
"<|box_start|>": 151648,
|
| 6 |
+
"<|endoftext|>": 151643,
|
| 7 |
+
"<|file_sep|>": 151664,
|
| 8 |
+
"<|fim_middle|>": 151660,
|
| 9 |
+
"<|fim_pad|>": 151662,
|
| 10 |
+
"<|fim_prefix|>": 151659,
|
| 11 |
+
"<|fim_suffix|>": 151661,
|
| 12 |
+
"<|im_end|>": 151645,
|
| 13 |
+
"<|im_start|>": 151644,
|
| 14 |
+
"<|image_pad|>": 151655,
|
| 15 |
+
"<|object_ref_end|>": 151647,
|
| 16 |
+
"<|object_ref_start|>": 151646,
|
| 17 |
+
"<|quad_end|>": 151651,
|
| 18 |
+
"<|quad_start|>": 151650,
|
| 19 |
+
"<|repo_name|>": 151663,
|
| 20 |
+
"<|video_pad|>": 151656,
|
| 21 |
+
"<|vision_end|>": 151653,
|
| 22 |
+
"<|vision_pad|>": 151654,
|
| 23 |
+
"<|vision_start|>": 151652
|
| 24 |
+
}
|
checkpoint-3200/chat_template.jinja
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 4 |
+
{{- messages[0]['content'] }}
|
| 5 |
+
{%- else %}
|
| 6 |
+
{{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 9 |
+
{%- for tool in tools %}
|
| 10 |
+
{{- "\n" }}
|
| 11 |
+
{{- tool | tojson }}
|
| 12 |
+
{%- endfor %}
|
| 13 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
| 14 |
+
{%- else %}
|
| 15 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 16 |
+
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
| 17 |
+
{%- else %}
|
| 18 |
+
{{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
|
| 19 |
+
{%- endif %}
|
| 20 |
+
{%- endif %}
|
| 21 |
+
{%- for message in messages %}
|
| 22 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
| 23 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 24 |
+
{%- elif message.role == "assistant" %}
|
| 25 |
+
{{- '<|im_start|>' + message.role }}
|
| 26 |
+
{%- if message.content %}
|
| 27 |
+
{{- '\n' + message.content }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{%- for tool_call in message.tool_calls %}
|
| 30 |
+
{%- if tool_call.function is defined %}
|
| 31 |
+
{%- set tool_call = tool_call.function %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '\n<tool_call>\n{"name": "' }}
|
| 34 |
+
{{- tool_call.name }}
|
| 35 |
+
{{- '", "arguments": ' }}
|
| 36 |
+
{{- tool_call.arguments | tojson }}
|
| 37 |
+
{{- '}\n</tool_call>' }}
|
| 38 |
+
{%- endfor %}
|
| 39 |
+
{{- '<|im_end|>\n' }}
|
| 40 |
+
{%- elif message.role == "tool" %}
|
| 41 |
+
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
| 42 |
+
{{- '<|im_start|>user' }}
|
| 43 |
+
{%- endif %}
|
| 44 |
+
{{- '\n<tool_response>\n' }}
|
| 45 |
+
{{- message.content }}
|
| 46 |
+
{{- '\n</tool_response>' }}
|
| 47 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 48 |
+
{{- '<|im_end|>\n' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{%- if add_generation_prompt %}
|
| 53 |
+
{{- '<|im_start|>assistant\n' }}
|
| 54 |
+
{%- endif %}
|
checkpoint-3200/config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen2ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 151643,
|
| 7 |
+
"eos_token_id": 151645,
|
| 8 |
+
"hidden_act": "silu",
|
| 9 |
+
"hidden_size": 1536,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"intermediate_size": 8960,
|
| 12 |
+
"layer_types": [
|
| 13 |
+
"full_attention",
|
| 14 |
+
"full_attention",
|
| 15 |
+
"full_attention",
|
| 16 |
+
"full_attention",
|
| 17 |
+
"full_attention",
|
| 18 |
+
"full_attention",
|
| 19 |
+
"full_attention",
|
| 20 |
+
"full_attention",
|
| 21 |
+
"full_attention",
|
| 22 |
+
"full_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"full_attention",
|
| 38 |
+
"full_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"full_attention"
|
| 41 |
+
],
|
| 42 |
+
"max_position_embeddings": 32768,
|
| 43 |
+
"max_window_layers": 28,
|
| 44 |
+
"model_type": "qwen2",
|
| 45 |
+
"num_attention_heads": 12,
|
| 46 |
+
"num_hidden_layers": 28,
|
| 47 |
+
"num_key_value_heads": 2,
|
| 48 |
+
"rms_norm_eps": 1e-06,
|
| 49 |
+
"rope_scaling": null,
|
| 50 |
+
"rope_theta": 1000000.0,
|
| 51 |
+
"sliding_window": null,
|
| 52 |
+
"tie_word_embeddings": true,
|
| 53 |
+
"torch_dtype": "bfloat16",
|
| 54 |
+
"transformers_version": "4.55.0",
|
| 55 |
+
"use_cache": false,
|
| 56 |
+
"use_sliding_window": false,
|
| 57 |
+
"vocab_size": 151936
|
| 58 |
+
}
|
checkpoint-3200/generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"repetition_penalty": 1.1,
|
| 10 |
+
"temperature": 0.7,
|
| 11 |
+
"top_k": 20,
|
| 12 |
+
"top_p": 0.8,
|
| 13 |
+
"transformers_version": "4.55.0"
|
| 14 |
+
}
|
checkpoint-3200/global_step3199/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:635b447fd89d8445f6f51c5ec83b2468c4c9c34fc3f204c39255f9c74a4970e4
|
| 3 |
+
size 2315578373
|
checkpoint-3200/global_step3199/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:9e7fdad219aa8be8a3f6485c8f3d923a49b61aea5330f61ebebea70080c36d97
|
| 3 |
+
size 2315580229
|
checkpoint-3200/global_step3199/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:b1625a075fc78ca94a2ec3305d6e19eb02368fea27dee991a4845a5eb208cf6f
|
| 3 |
+
size 2315580485
|
checkpoint-3200/global_step3199/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:82d2190996e4af13b71b4d00f2222aa0664fc8c0494089a9dd863f22b08704aa
|
| 3 |
+
size 2315580485
|
checkpoint-3200/global_step3199/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39c2ec34b7349dbf7b15256c33b1a252e61e3d196b469eec468484444c1fc974
|
| 3 |
+
size 2315580485
|
checkpoint-3200/global_step3199/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb623eec884b135f5f9609f6bfd5a8725b143fca9cab7f4d23aadf18f4ba8203
|
| 3 |
+
size 2315580485
|
checkpoint-3200/global_step3199/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c200ed485efe31e148107b4429bac949f57960008d43e50896f99bd1b14b4c63
|
| 3 |
+
size 2315580613
|
checkpoint-3200/global_step3199/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ccc1cb052fc0ed34694c2401266a57470b27b6a08087aad407d5f7dc7bad8f43
|
| 3 |
+
size 2315580357
|
checkpoint-3200/global_step3199/mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c07ba1138b35b820ec8dead83d6f2c774263bac566dcdc6aea3f3af55ca2794e
|
| 3 |
+
size 3087519461
|
checkpoint-3200/latest
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
global_step3199
|
checkpoint-3200/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-3200/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68568245a0b436d8cfe998cfc30ef096be55953626ad688db4acd2c1b6604aab
|
| 3 |
+
size 3554214752
|
checkpoint-3200/rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0418786c564bb001fc5f4215375b1a99ed3ea3f30771057e1d8682214a0108f
|
| 3 |
+
size 16389
|
checkpoint-3200/rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35deaabe10396919e53b2274736981b26bc690165c8839845f178b355a6a7588
|
| 3 |
+
size 16389
|
checkpoint-3200/rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c5deee061a76a9e05b4634f5abad786b4042e744cc4c156a2ab76dc3c94fcac
|
| 3 |
+
size 16389
|
checkpoint-3200/rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13579f7ca365ea6f9cef83929c34833cd97f9b5764a434989b4e3e2db87dce56
|
| 3 |
+
size 16389
|
checkpoint-3200/rng_state_4.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:073d0b1d7e2e3930e5c29fc418e6246462ab2a00396c3a86e1448d373503f1b2
|
| 3 |
+
size 16389
|
checkpoint-3200/rng_state_5.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c60731015889939e665a308a0933ac6c327734a4699cf5615217db0cfaf03ca
|
| 3 |
+
size 16389
|
checkpoint-3200/rng_state_6.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:416648e7a35618f28d73625751a8fc2ad066533414d19f6fc0c39932429023fc
|
| 3 |
+
size 16389
|
checkpoint-3200/rng_state_7.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:619b5c49446c94dca2b233ad17098e42f7d58a945c2eced1aa23e50469a75431
|
| 3 |
+
size 16389
|
checkpoint-3200/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e1c553521506bff85c2c06b3ec44627f7dd741cb0c5568884f7e3492dafb7de
|
| 3 |
+
size 1465
|
checkpoint-3200/special_tokens_map.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>"
|
| 16 |
+
],
|
| 17 |
+
"eos_token": {
|
| 18 |
+
"content": "<|im_end|>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": false,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
},
|
| 24 |
+
"pad_token": {
|
| 25 |
+
"content": "<|endoftext|>",
|
| 26 |
+
"lstrip": false,
|
| 27 |
+
"normalized": false,
|
| 28 |
+
"rstrip": false,
|
| 29 |
+
"single_word": false
|
| 30 |
+
}
|
| 31 |
+
}
|
checkpoint-3200/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
|
| 3 |
+
size 11421896
|
checkpoint-3200/tokenizer_config.json
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": false,
|
| 3 |
+
"add_prefix_space": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"151643": {
|
| 6 |
+
"content": "<|endoftext|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
},
|
| 13 |
+
"151644": {
|
| 14 |
+
"content": "<|im_start|>",
|
| 15 |
+
"lstrip": false,
|
| 16 |
+
"normalized": false,
|
| 17 |
+
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"special": true
|
| 20 |
+
},
|
| 21 |
+
"151645": {
|
| 22 |
+
"content": "<|im_end|>",
|
| 23 |
+
"lstrip": false,
|
| 24 |
+
"normalized": false,
|
| 25 |
+
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"special": true
|
| 28 |
+
},
|
| 29 |
+
"151646": {
|
| 30 |
+
"content": "<|object_ref_start|>",
|
| 31 |
+
"lstrip": false,
|
| 32 |
+
"normalized": false,
|
| 33 |
+
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"special": true
|
| 36 |
+
},
|
| 37 |
+
"151647": {
|
| 38 |
+
"content": "<|object_ref_end|>",
|
| 39 |
+
"lstrip": false,
|
| 40 |
+
"normalized": false,
|
| 41 |
+
"rstrip": false,
|
| 42 |
+
"single_word": false,
|
| 43 |
+
"special": true
|
| 44 |
+
},
|
| 45 |
+
"151648": {
|
| 46 |
+
"content": "<|box_start|>",
|
| 47 |
+
"lstrip": false,
|
| 48 |
+
"normalized": false,
|
| 49 |
+
"rstrip": false,
|
| 50 |
+
"single_word": false,
|
| 51 |
+
"special": true
|
| 52 |
+
},
|
| 53 |
+
"151649": {
|
| 54 |
+
"content": "<|box_end|>",
|
| 55 |
+
"lstrip": false,
|
| 56 |
+
"normalized": false,
|
| 57 |
+
"rstrip": false,
|
| 58 |
+
"single_word": false,
|
| 59 |
+
"special": true
|
| 60 |
+
},
|
| 61 |
+
"151650": {
|
| 62 |
+
"content": "<|quad_start|>",
|
| 63 |
+
"lstrip": false,
|
| 64 |
+
"normalized": false,
|
| 65 |
+
"rstrip": false,
|
| 66 |
+
"single_word": false,
|
| 67 |
+
"special": true
|
| 68 |
+
},
|
| 69 |
+
"151651": {
|
| 70 |
+
"content": "<|quad_end|>",
|
| 71 |
+
"lstrip": false,
|
| 72 |
+
"normalized": false,
|
| 73 |
+
"rstrip": false,
|
| 74 |
+
"single_word": false,
|
| 75 |
+
"special": true
|
| 76 |
+
},
|
| 77 |
+
"151652": {
|
| 78 |
+
"content": "<|vision_start|>",
|
| 79 |
+
"lstrip": false,
|
| 80 |
+
"normalized": false,
|
| 81 |
+
"rstrip": false,
|
| 82 |
+
"single_word": false,
|
| 83 |
+
"special": true
|
| 84 |
+
},
|
| 85 |
+
"151653": {
|
| 86 |
+
"content": "<|vision_end|>",
|
| 87 |
+
"lstrip": false,
|
| 88 |
+
"normalized": false,
|
| 89 |
+
"rstrip": false,
|
| 90 |
+
"single_word": false,
|
| 91 |
+
"special": true
|
| 92 |
+
},
|
| 93 |
+
"151654": {
|
| 94 |
+
"content": "<|vision_pad|>",
|
| 95 |
+
"lstrip": false,
|
| 96 |
+
"normalized": false,
|
| 97 |
+
"rstrip": false,
|
| 98 |
+
"single_word": false,
|
| 99 |
+
"special": true
|
| 100 |
+
},
|
| 101 |
+
"151655": {
|
| 102 |
+
"content": "<|image_pad|>",
|
| 103 |
+
"lstrip": false,
|
| 104 |
+
"normalized": false,
|
| 105 |
+
"rstrip": false,
|
| 106 |
+
"single_word": false,
|
| 107 |
+
"special": true
|
| 108 |
+
},
|
| 109 |
+
"151656": {
|
| 110 |
+
"content": "<|video_pad|>",
|
| 111 |
+
"lstrip": false,
|
| 112 |
+
"normalized": false,
|
| 113 |
+
"rstrip": false,
|
| 114 |
+
"single_word": false,
|
| 115 |
+
"special": true
|
| 116 |
+
},
|
| 117 |
+
"151657": {
|
| 118 |
+
"content": "<tool_call>",
|
| 119 |
+
"lstrip": false,
|
| 120 |
+
"normalized": false,
|
| 121 |
+
"rstrip": false,
|
| 122 |
+
"single_word": false,
|
| 123 |
+
"special": false
|
| 124 |
+
},
|
| 125 |
+
"151658": {
|
| 126 |
+
"content": "</tool_call>",
|
| 127 |
+
"lstrip": false,
|
| 128 |
+
"normalized": false,
|
| 129 |
+
"rstrip": false,
|
| 130 |
+
"single_word": false,
|
| 131 |
+
"special": false
|
| 132 |
+
},
|
| 133 |
+
"151659": {
|
| 134 |
+
"content": "<|fim_prefix|>",
|
| 135 |
+
"lstrip": false,
|
| 136 |
+
"normalized": false,
|
| 137 |
+
"rstrip": false,
|
| 138 |
+
"single_word": false,
|
| 139 |
+
"special": false
|
| 140 |
+
},
|
| 141 |
+
"151660": {
|
| 142 |
+
"content": "<|fim_middle|>",
|
| 143 |
+
"lstrip": false,
|
| 144 |
+
"normalized": false,
|
| 145 |
+
"rstrip": false,
|
| 146 |
+
"single_word": false,
|
| 147 |
+
"special": false
|
| 148 |
+
},
|
| 149 |
+
"151661": {
|
| 150 |
+
"content": "<|fim_suffix|>",
|
| 151 |
+
"lstrip": false,
|
| 152 |
+
"normalized": false,
|
| 153 |
+
"rstrip": false,
|
| 154 |
+
"single_word": false,
|
| 155 |
+
"special": false
|
| 156 |
+
},
|
| 157 |
+
"151662": {
|
| 158 |
+
"content": "<|fim_pad|>",
|
| 159 |
+
"lstrip": false,
|
| 160 |
+
"normalized": false,
|
| 161 |
+
"rstrip": false,
|
| 162 |
+
"single_word": false,
|
| 163 |
+
"special": false
|
| 164 |
+
},
|
| 165 |
+
"151663": {
|
| 166 |
+
"content": "<|repo_name|>",
|
| 167 |
+
"lstrip": false,
|
| 168 |
+
"normalized": false,
|
| 169 |
+
"rstrip": false,
|
| 170 |
+
"single_word": false,
|
| 171 |
+
"special": false
|
| 172 |
+
},
|
| 173 |
+
"151664": {
|
| 174 |
+
"content": "<|file_sep|>",
|
| 175 |
+
"lstrip": false,
|
| 176 |
+
"normalized": false,
|
| 177 |
+
"rstrip": false,
|
| 178 |
+
"single_word": false,
|
| 179 |
+
"special": false
|
| 180 |
+
}
|
| 181 |
+
},
|
| 182 |
+
"additional_special_tokens": [
|
| 183 |
+
"<|im_start|>",
|
| 184 |
+
"<|im_end|>",
|
| 185 |
+
"<|object_ref_start|>",
|
| 186 |
+
"<|object_ref_end|>",
|
| 187 |
+
"<|box_start|>",
|
| 188 |
+
"<|box_end|>",
|
| 189 |
+
"<|quad_start|>",
|
| 190 |
+
"<|quad_end|>",
|
| 191 |
+
"<|vision_start|>",
|
| 192 |
+
"<|vision_end|>",
|
| 193 |
+
"<|vision_pad|>",
|
| 194 |
+
"<|image_pad|>",
|
| 195 |
+
"<|video_pad|>"
|
| 196 |
+
],
|
| 197 |
+
"bos_token": null,
|
| 198 |
+
"clean_up_tokenization_spaces": false,
|
| 199 |
+
"eos_token": "<|im_end|>",
|
| 200 |
+
"errors": "replace",
|
| 201 |
+
"extra_special_tokens": {},
|
| 202 |
+
"model_max_length": 32768,
|
| 203 |
+
"pad_token": "<|endoftext|>",
|
| 204 |
+
"padding_side": "right",
|
| 205 |
+
"split_special_tokens": false,
|
| 206 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 207 |
+
"unk_token": null
|
| 208 |
+
}
|
checkpoint-3200/trainer_state.json
ADDED
|
@@ -0,0 +1,2274 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 1.9782037409182254,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 3200,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.006183335909723296,
|
| 14 |
+
"grad_norm": 0.04143473133444786,
|
| 15 |
+
"learning_rate": 5.555555555555555e-07,
|
| 16 |
+
"loss": 0.0078,
|
| 17 |
+
"step": 10
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.012366671819446591,
|
| 21 |
+
"grad_norm": 0.039171501994132996,
|
| 22 |
+
"learning_rate": 1.1728395061728396e-06,
|
| 23 |
+
"loss": 0.0073,
|
| 24 |
+
"step": 20
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.018550007729169888,
|
| 28 |
+
"grad_norm": 0.045620836317539215,
|
| 29 |
+
"learning_rate": 1.7901234567901235e-06,
|
| 30 |
+
"loss": 0.0077,
|
| 31 |
+
"step": 30
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.024733343638893183,
|
| 35 |
+
"grad_norm": 0.042504891753196716,
|
| 36 |
+
"learning_rate": 2.4074074074074075e-06,
|
| 37 |
+
"loss": 0.0074,
|
| 38 |
+
"step": 40
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.030916679548616478,
|
| 42 |
+
"grad_norm": 0.04532310739159584,
|
| 43 |
+
"learning_rate": 3.0246913580246917e-06,
|
| 44 |
+
"loss": 0.0078,
|
| 45 |
+
"step": 50
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"epoch": 0.037100015458339776,
|
| 49 |
+
"grad_norm": 0.046271760016679764,
|
| 50 |
+
"learning_rate": 3.641975308641976e-06,
|
| 51 |
+
"loss": 0.008,
|
| 52 |
+
"step": 60
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"epoch": 0.04328335136806307,
|
| 56 |
+
"grad_norm": 0.046998776495456696,
|
| 57 |
+
"learning_rate": 4.2592592592592596e-06,
|
| 58 |
+
"loss": 0.0082,
|
| 59 |
+
"step": 70
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"epoch": 0.049466687277786366,
|
| 63 |
+
"grad_norm": 0.06645342707633972,
|
| 64 |
+
"learning_rate": 4.876543209876544e-06,
|
| 65 |
+
"loss": 0.008,
|
| 66 |
+
"step": 80
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 0.05565002318750966,
|
| 70 |
+
"grad_norm": 0.05185055360198021,
|
| 71 |
+
"learning_rate": 5.493827160493828e-06,
|
| 72 |
+
"loss": 0.0077,
|
| 73 |
+
"step": 90
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"epoch": 0.061833359097232955,
|
| 77 |
+
"grad_norm": 0.06297408044338226,
|
| 78 |
+
"learning_rate": 6.111111111111112e-06,
|
| 79 |
+
"loss": 0.0084,
|
| 80 |
+
"step": 100
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"epoch": 0.06801669500695626,
|
| 84 |
+
"grad_norm": 0.08234790712594986,
|
| 85 |
+
"learning_rate": 6.728395061728395e-06,
|
| 86 |
+
"loss": 0.008,
|
| 87 |
+
"step": 110
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"epoch": 0.07420003091667955,
|
| 91 |
+
"grad_norm": 0.05353984236717224,
|
| 92 |
+
"learning_rate": 7.34567901234568e-06,
|
| 93 |
+
"loss": 0.0083,
|
| 94 |
+
"step": 120
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"epoch": 0.08038336682640285,
|
| 98 |
+
"grad_norm": 0.060335684567689896,
|
| 99 |
+
"learning_rate": 7.962962962962963e-06,
|
| 100 |
+
"loss": 0.0081,
|
| 101 |
+
"step": 130
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"epoch": 0.08656670273612614,
|
| 105 |
+
"grad_norm": 0.06284262984991074,
|
| 106 |
+
"learning_rate": 8.580246913580249e-06,
|
| 107 |
+
"loss": 0.0084,
|
| 108 |
+
"step": 140
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"epoch": 0.09275003864584944,
|
| 112 |
+
"grad_norm": 0.08134513348340988,
|
| 113 |
+
"learning_rate": 9.197530864197531e-06,
|
| 114 |
+
"loss": 0.0087,
|
| 115 |
+
"step": 150
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"epoch": 0.09893337455557273,
|
| 119 |
+
"grad_norm": 0.06377002596855164,
|
| 120 |
+
"learning_rate": 9.814814814814815e-06,
|
| 121 |
+
"loss": 0.0087,
|
| 122 |
+
"step": 160
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"epoch": 0.10511671046529603,
|
| 126 |
+
"grad_norm": 0.07254844158887863,
|
| 127 |
+
"learning_rate": 1.04320987654321e-05,
|
| 128 |
+
"loss": 0.0089,
|
| 129 |
+
"step": 170
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"epoch": 0.11130004637501932,
|
| 133 |
+
"grad_norm": 0.07614797353744507,
|
| 134 |
+
"learning_rate": 1.1049382716049384e-05,
|
| 135 |
+
"loss": 0.0091,
|
| 136 |
+
"step": 180
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"epoch": 0.11748338228474262,
|
| 140 |
+
"grad_norm": 0.09067586809396744,
|
| 141 |
+
"learning_rate": 1.1666666666666668e-05,
|
| 142 |
+
"loss": 0.0084,
|
| 143 |
+
"step": 190
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"epoch": 0.12366671819446591,
|
| 147 |
+
"grad_norm": 0.06307026743888855,
|
| 148 |
+
"learning_rate": 1.228395061728395e-05,
|
| 149 |
+
"loss": 0.0095,
|
| 150 |
+
"step": 200
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"epoch": 0.1298500541041892,
|
| 154 |
+
"grad_norm": 0.05498047545552254,
|
| 155 |
+
"learning_rate": 1.2901234567901235e-05,
|
| 156 |
+
"loss": 0.0087,
|
| 157 |
+
"step": 210
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"epoch": 0.13603339001391251,
|
| 161 |
+
"grad_norm": 0.08366186171770096,
|
| 162 |
+
"learning_rate": 1.351851851851852e-05,
|
| 163 |
+
"loss": 0.009,
|
| 164 |
+
"step": 220
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"epoch": 0.1422167259236358,
|
| 168 |
+
"grad_norm": 0.08589412271976471,
|
| 169 |
+
"learning_rate": 1.4135802469135805e-05,
|
| 170 |
+
"loss": 0.009,
|
| 171 |
+
"step": 230
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"epoch": 0.1484000618333591,
|
| 175 |
+
"grad_norm": 0.05334419757127762,
|
| 176 |
+
"learning_rate": 1.4753086419753087e-05,
|
| 177 |
+
"loss": 0.0093,
|
| 178 |
+
"step": 240
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"epoch": 0.15458339774308238,
|
| 182 |
+
"grad_norm": 0.06228677183389664,
|
| 183 |
+
"learning_rate": 1.537037037037037e-05,
|
| 184 |
+
"loss": 0.0091,
|
| 185 |
+
"step": 250
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"epoch": 0.1607667336528057,
|
| 189 |
+
"grad_norm": 0.059001028537750244,
|
| 190 |
+
"learning_rate": 1.5987654320987655e-05,
|
| 191 |
+
"loss": 0.0088,
|
| 192 |
+
"step": 260
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"epoch": 0.16695006956252897,
|
| 196 |
+
"grad_norm": 0.056203559041023254,
|
| 197 |
+
"learning_rate": 1.660493827160494e-05,
|
| 198 |
+
"loss": 0.0092,
|
| 199 |
+
"step": 270
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"epoch": 0.17313340547225228,
|
| 203 |
+
"grad_norm": 0.08194007724523544,
|
| 204 |
+
"learning_rate": 1.7222222222222224e-05,
|
| 205 |
+
"loss": 0.0095,
|
| 206 |
+
"step": 280
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"epoch": 0.17931674138197556,
|
| 210 |
+
"grad_norm": 1.0690827369689941,
|
| 211 |
+
"learning_rate": 1.7839506172839506e-05,
|
| 212 |
+
"loss": 0.0282,
|
| 213 |
+
"step": 290
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"epoch": 0.18550007729169887,
|
| 217 |
+
"grad_norm": 0.09711379557847977,
|
| 218 |
+
"learning_rate": 1.8456790123456792e-05,
|
| 219 |
+
"loss": 0.016,
|
| 220 |
+
"step": 300
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"epoch": 0.19168341320142215,
|
| 224 |
+
"grad_norm": 0.05902743339538574,
|
| 225 |
+
"learning_rate": 1.9074074074074075e-05,
|
| 226 |
+
"loss": 0.0118,
|
| 227 |
+
"step": 310
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"epoch": 0.19786674911114546,
|
| 231 |
+
"grad_norm": 0.058570075780153275,
|
| 232 |
+
"learning_rate": 1.969135802469136e-05,
|
| 233 |
+
"loss": 0.0105,
|
| 234 |
+
"step": 320
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"epoch": 0.20405008502086877,
|
| 238 |
+
"grad_norm": 0.05820102244615555,
|
| 239 |
+
"learning_rate": 1.9999854512405252e-05,
|
| 240 |
+
"loss": 0.0098,
|
| 241 |
+
"step": 330
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"epoch": 0.21023342093059205,
|
| 245 |
+
"grad_norm": 0.05199410021305084,
|
| 246 |
+
"learning_rate": 1.9998690637047088e-05,
|
| 247 |
+
"loss": 0.0092,
|
| 248 |
+
"step": 340
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"epoch": 0.21641675684031536,
|
| 252 |
+
"grad_norm": 0.0505528561770916,
|
| 253 |
+
"learning_rate": 1.999636302179332e-05,
|
| 254 |
+
"loss": 0.0093,
|
| 255 |
+
"step": 350
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"epoch": 0.22260009275003864,
|
| 259 |
+
"grad_norm": 0.052951931953430176,
|
| 260 |
+
"learning_rate": 1.9992871937553292e-05,
|
| 261 |
+
"loss": 0.0089,
|
| 262 |
+
"step": 360
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"epoch": 0.22878342865976195,
|
| 266 |
+
"grad_norm": 0.053663648664951324,
|
| 267 |
+
"learning_rate": 1.9988217790651605e-05,
|
| 268 |
+
"loss": 0.0086,
|
| 269 |
+
"step": 370
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"epoch": 0.23496676456948523,
|
| 273 |
+
"grad_norm": 0.052866872400045395,
|
| 274 |
+
"learning_rate": 1.9982401122780834e-05,
|
| 275 |
+
"loss": 0.0093,
|
| 276 |
+
"step": 380
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"epoch": 0.24115010047920854,
|
| 280 |
+
"grad_norm": 0.044779375195503235,
|
| 281 |
+
"learning_rate": 1.9975422610938463e-05,
|
| 282 |
+
"loss": 0.0087,
|
| 283 |
+
"step": 390
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"epoch": 0.24733343638893182,
|
| 287 |
+
"grad_norm": 0.05273430049419403,
|
| 288 |
+
"learning_rate": 1.9967283067348106e-05,
|
| 289 |
+
"loss": 0.0087,
|
| 290 |
+
"step": 400
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"epoch": 0.2535167722986551,
|
| 294 |
+
"grad_norm": 0.05107806622982025,
|
| 295 |
+
"learning_rate": 1.9957983439364973e-05,
|
| 296 |
+
"loss": 0.0084,
|
| 297 |
+
"step": 410
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"epoch": 0.2597001082083784,
|
| 301 |
+
"grad_norm": 0.05193234607577324,
|
| 302 |
+
"learning_rate": 1.994752480936559e-05,
|
| 303 |
+
"loss": 0.0085,
|
| 304 |
+
"step": 420
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"epoch": 0.2658834441181017,
|
| 308 |
+
"grad_norm": 0.04062167927622795,
|
| 309 |
+
"learning_rate": 1.9935908394621844e-05,
|
| 310 |
+
"loss": 0.0085,
|
| 311 |
+
"step": 430
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"epoch": 0.27206678002782503,
|
| 315 |
+
"grad_norm": 0.04734641686081886,
|
| 316 |
+
"learning_rate": 1.992313554715929e-05,
|
| 317 |
+
"loss": 0.0087,
|
| 318 |
+
"step": 440
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"epoch": 0.2782501159375483,
|
| 322 |
+
"grad_norm": 0.0560256652534008,
|
| 323 |
+
"learning_rate": 1.99092077535998e-05,
|
| 324 |
+
"loss": 0.0086,
|
| 325 |
+
"step": 450
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"epoch": 0.2844334518472716,
|
| 329 |
+
"grad_norm": 0.05063237249851227,
|
| 330 |
+
"learning_rate": 1.989412663498853e-05,
|
| 331 |
+
"loss": 0.0084,
|
| 332 |
+
"step": 460
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"epoch": 0.2906167877569949,
|
| 336 |
+
"grad_norm": 0.05622229725122452,
|
| 337 |
+
"learning_rate": 1.9877893946605247e-05,
|
| 338 |
+
"loss": 0.0085,
|
| 339 |
+
"step": 470
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"epoch": 0.2968001236667182,
|
| 343 |
+
"grad_norm": 0.06787122786045074,
|
| 344 |
+
"learning_rate": 1.9860511577760042e-05,
|
| 345 |
+
"loss": 0.0084,
|
| 346 |
+
"step": 480
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"epoch": 0.3029834595764415,
|
| 350 |
+
"grad_norm": 0.05340688303112984,
|
| 351 |
+
"learning_rate": 1.9841981551573424e-05,
|
| 352 |
+
"loss": 0.0084,
|
| 353 |
+
"step": 490
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"epoch": 0.30916679548616477,
|
| 357 |
+
"grad_norm": 0.05143291503190994,
|
| 358 |
+
"learning_rate": 1.9822306024740855e-05,
|
| 359 |
+
"loss": 0.0085,
|
| 360 |
+
"step": 500
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"epoch": 0.3153501313958881,
|
| 364 |
+
"grad_norm": 0.04688792675733566,
|
| 365 |
+
"learning_rate": 1.980148728728174e-05,
|
| 366 |
+
"loss": 0.0085,
|
| 367 |
+
"step": 510
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"epoch": 0.3215334673056114,
|
| 371 |
+
"grad_norm": 0.04486978054046631,
|
| 372 |
+
"learning_rate": 1.9779527762272877e-05,
|
| 373 |
+
"loss": 0.0082,
|
| 374 |
+
"step": 520
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"epoch": 0.3277168032153347,
|
| 378 |
+
"grad_norm": 0.04129200056195259,
|
| 379 |
+
"learning_rate": 1.975643000556646e-05,
|
| 380 |
+
"loss": 0.0083,
|
| 381 |
+
"step": 530
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"epoch": 0.33390013912505795,
|
| 385 |
+
"grad_norm": 0.04800448194146156,
|
| 386 |
+
"learning_rate": 1.973219670549259e-05,
|
| 387 |
+
"loss": 0.0083,
|
| 388 |
+
"step": 540
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"epoch": 0.34008347503478126,
|
| 392 |
+
"grad_norm": 0.05428948998451233,
|
| 393 |
+
"learning_rate": 1.970683068254637e-05,
|
| 394 |
+
"loss": 0.0081,
|
| 395 |
+
"step": 550
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"epoch": 0.34626681094450457,
|
| 399 |
+
"grad_norm": 0.062362976372241974,
|
| 400 |
+
"learning_rate": 1.9680334889059668e-05,
|
| 401 |
+
"loss": 0.0081,
|
| 402 |
+
"step": 560
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"epoch": 0.3524501468542279,
|
| 406 |
+
"grad_norm": 0.04794848710298538,
|
| 407 |
+
"learning_rate": 1.9652712408857452e-05,
|
| 408 |
+
"loss": 0.0081,
|
| 409 |
+
"step": 570
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"epoch": 0.35863348276395113,
|
| 413 |
+
"grad_norm": 0.04279520735144615,
|
| 414 |
+
"learning_rate": 1.9623966456898914e-05,
|
| 415 |
+
"loss": 0.0078,
|
| 416 |
+
"step": 580
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"epoch": 0.36481681867367444,
|
| 420 |
+
"grad_norm": 0.04028687626123428,
|
| 421 |
+
"learning_rate": 1.959410037890323e-05,
|
| 422 |
+
"loss": 0.0083,
|
| 423 |
+
"step": 590
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"epoch": 0.37100015458339775,
|
| 427 |
+
"grad_norm": 0.04868888854980469,
|
| 428 |
+
"learning_rate": 1.9563117650960208e-05,
|
| 429 |
+
"loss": 0.0085,
|
| 430 |
+
"step": 600
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"epoch": 0.37718349049312105,
|
| 434 |
+
"grad_norm": 0.048066020011901855,
|
| 435 |
+
"learning_rate": 1.9531021879125654e-05,
|
| 436 |
+
"loss": 0.0082,
|
| 437 |
+
"step": 610
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"epoch": 0.3833668264028443,
|
| 441 |
+
"grad_norm": 0.051193494349718094,
|
| 442 |
+
"learning_rate": 1.9497816799001726e-05,
|
| 443 |
+
"loss": 0.0081,
|
| 444 |
+
"step": 620
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"epoch": 0.3895501623125676,
|
| 448 |
+
"grad_norm": 0.046053316444158554,
|
| 449 |
+
"learning_rate": 1.9463506275302094e-05,
|
| 450 |
+
"loss": 0.0078,
|
| 451 |
+
"step": 630
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"epoch": 0.3957334982222909,
|
| 455 |
+
"grad_norm": 0.04008670151233673,
|
| 456 |
+
"learning_rate": 1.9428094301402164e-05,
|
| 457 |
+
"loss": 0.008,
|
| 458 |
+
"step": 640
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"epoch": 0.40191683413201423,
|
| 462 |
+
"grad_norm": 0.048819512128829956,
|
| 463 |
+
"learning_rate": 1.939158499887428e-05,
|
| 464 |
+
"loss": 0.0084,
|
| 465 |
+
"step": 650
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"epoch": 0.40810017004173754,
|
| 469 |
+
"grad_norm": 0.04148195683956146,
|
| 470 |
+
"learning_rate": 1.9353982617008024e-05,
|
| 471 |
+
"loss": 0.0077,
|
| 472 |
+
"step": 660
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"epoch": 0.4142835059514608,
|
| 476 |
+
"grad_norm": 0.04567483067512512,
|
| 477 |
+
"learning_rate": 1.9315291532315626e-05,
|
| 478 |
+
"loss": 0.0082,
|
| 479 |
+
"step": 670
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"epoch": 0.4204668418611841,
|
| 483 |
+
"grad_norm": 0.0510326586663723,
|
| 484 |
+
"learning_rate": 1.9275516248022613e-05,
|
| 485 |
+
"loss": 0.0082,
|
| 486 |
+
"step": 680
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"epoch": 0.4266501777709074,
|
| 490 |
+
"grad_norm": 0.053588561713695526,
|
| 491 |
+
"learning_rate": 1.9234661393543668e-05,
|
| 492 |
+
"loss": 0.0078,
|
| 493 |
+
"step": 690
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"epoch": 0.4328335136806307,
|
| 497 |
+
"grad_norm": 0.0437391996383667,
|
| 498 |
+
"learning_rate": 1.91927317239438e-05,
|
| 499 |
+
"loss": 0.0082,
|
| 500 |
+
"step": 700
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"epoch": 0.439016849590354,
|
| 504 |
+
"grad_norm": 0.05658455193042755,
|
| 505 |
+
"learning_rate": 1.9149732119384942e-05,
|
| 506 |
+
"loss": 0.0083,
|
| 507 |
+
"step": 710
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"epoch": 0.4452001855000773,
|
| 511 |
+
"grad_norm": 0.039588961750268936,
|
| 512 |
+
"learning_rate": 1.9105667584557914e-05,
|
| 513 |
+
"loss": 0.0077,
|
| 514 |
+
"step": 720
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"epoch": 0.4513835214098006,
|
| 518 |
+
"grad_norm": 0.05383581295609474,
|
| 519 |
+
"learning_rate": 1.9060543248099958e-05,
|
| 520 |
+
"loss": 0.0081,
|
| 521 |
+
"step": 730
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"epoch": 0.4575668573195239,
|
| 525 |
+
"grad_norm": 0.047476038336753845,
|
| 526 |
+
"learning_rate": 1.9014364361997813e-05,
|
| 527 |
+
"loss": 0.0082,
|
| 528 |
+
"step": 740
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"epoch": 0.46375019322924715,
|
| 532 |
+
"grad_norm": 0.057258907705545425,
|
| 533 |
+
"learning_rate": 1.896713630097643e-05,
|
| 534 |
+
"loss": 0.0081,
|
| 535 |
+
"step": 750
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"epoch": 0.46993352913897046,
|
| 539 |
+
"grad_norm": 0.046649232506752014,
|
| 540 |
+
"learning_rate": 1.8918864561873428e-05,
|
| 541 |
+
"loss": 0.0078,
|
| 542 |
+
"step": 760
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"epoch": 0.47611686504869377,
|
| 546 |
+
"grad_norm": 0.04877932369709015,
|
| 547 |
+
"learning_rate": 1.8869554762999307e-05,
|
| 548 |
+
"loss": 0.0079,
|
| 549 |
+
"step": 770
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"epoch": 0.4823002009584171,
|
| 553 |
+
"grad_norm": 0.048988137394189835,
|
| 554 |
+
"learning_rate": 1.881921264348355e-05,
|
| 555 |
+
"loss": 0.008,
|
| 556 |
+
"step": 780
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"epoch": 0.4884835368681404,
|
| 560 |
+
"grad_norm": 0.04841630905866623,
|
| 561 |
+
"learning_rate": 1.876784406260664e-05,
|
| 562 |
+
"loss": 0.0078,
|
| 563 |
+
"step": 790
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"epoch": 0.49466687277786364,
|
| 567 |
+
"grad_norm": 0.05180073156952858,
|
| 568 |
+
"learning_rate": 1.871545499911811e-05,
|
| 569 |
+
"loss": 0.0079,
|
| 570 |
+
"step": 800
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"epoch": 0.500850208687587,
|
| 574 |
+
"grad_norm": 0.04108748957514763,
|
| 575 |
+
"learning_rate": 1.866205155054067e-05,
|
| 576 |
+
"loss": 0.0079,
|
| 577 |
+
"step": 810
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"epoch": 0.5070335445973102,
|
| 581 |
+
"grad_norm": 0.03657471388578415,
|
| 582 |
+
"learning_rate": 1.860763993246053e-05,
|
| 583 |
+
"loss": 0.0077,
|
| 584 |
+
"step": 820
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"epoch": 0.5132168805070335,
|
| 588 |
+
"grad_norm": 0.04646613076329231,
|
| 589 |
+
"learning_rate": 1.8552226477803984e-05,
|
| 590 |
+
"loss": 0.0076,
|
| 591 |
+
"step": 830
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"epoch": 0.5194002164167568,
|
| 595 |
+
"grad_norm": 0.050987377762794495,
|
| 596 |
+
"learning_rate": 1.8495817636100293e-05,
|
| 597 |
+
"loss": 0.0079,
|
| 598 |
+
"step": 840
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"epoch": 0.5255835523264801,
|
| 602 |
+
"grad_norm": 0.0483928844332695,
|
| 603 |
+
"learning_rate": 1.8438419972731066e-05,
|
| 604 |
+
"loss": 0.0076,
|
| 605 |
+
"step": 850
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"epoch": 0.5317668882362034,
|
| 609 |
+
"grad_norm": 0.05614335834980011,
|
| 610 |
+
"learning_rate": 1.8380040168166096e-05,
|
| 611 |
+
"loss": 0.0079,
|
| 612 |
+
"step": 860
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"epoch": 0.5379502241459267,
|
| 616 |
+
"grad_norm": 0.045122936367988586,
|
| 617 |
+
"learning_rate": 1.8320685017185832e-05,
|
| 618 |
+
"loss": 0.0077,
|
| 619 |
+
"step": 870
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"epoch": 0.5441335600556501,
|
| 623 |
+
"grad_norm": 0.03678731620311737,
|
| 624 |
+
"learning_rate": 1.8260361428090542e-05,
|
| 625 |
+
"loss": 0.0077,
|
| 626 |
+
"step": 880
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"epoch": 0.5503168959653734,
|
| 630 |
+
"grad_norm": 0.04048831760883331,
|
| 631 |
+
"learning_rate": 1.8199076421896256e-05,
|
| 632 |
+
"loss": 0.0075,
|
| 633 |
+
"step": 890
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"epoch": 0.5565002318750966,
|
| 637 |
+
"grad_norm": 0.04655023291707039,
|
| 638 |
+
"learning_rate": 1.813683713151761e-05,
|
| 639 |
+
"loss": 0.0076,
|
| 640 |
+
"step": 900
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"epoch": 0.5626835677848199,
|
| 644 |
+
"grad_norm": 0.04041978716850281,
|
| 645 |
+
"learning_rate": 1.8073650800937627e-05,
|
| 646 |
+
"loss": 0.0076,
|
| 647 |
+
"step": 910
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"epoch": 0.5688669036945432,
|
| 651 |
+
"grad_norm": 0.051544759422540665,
|
| 652 |
+
"learning_rate": 1.8009524784364615e-05,
|
| 653 |
+
"loss": 0.0076,
|
| 654 |
+
"step": 920
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"epoch": 0.5750502396042665,
|
| 658 |
+
"grad_norm": 0.04109196737408638,
|
| 659 |
+
"learning_rate": 1.7944466545376215e-05,
|
| 660 |
+
"loss": 0.0079,
|
| 661 |
+
"step": 930
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"epoch": 0.5812335755139898,
|
| 665 |
+
"grad_norm": 0.04459492862224579,
|
| 666 |
+
"learning_rate": 1.7878483656050713e-05,
|
| 667 |
+
"loss": 0.0075,
|
| 668 |
+
"step": 940
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"epoch": 0.5874169114237131,
|
| 672 |
+
"grad_norm": 0.051292601972818375,
|
| 673 |
+
"learning_rate": 1.7811583796085722e-05,
|
| 674 |
+
"loss": 0.0077,
|
| 675 |
+
"step": 950
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"epoch": 0.5936002473334364,
|
| 679 |
+
"grad_norm": 0.04666479676961899,
|
| 680 |
+
"learning_rate": 1.7743774751904385e-05,
|
| 681 |
+
"loss": 0.0077,
|
| 682 |
+
"step": 960
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"epoch": 0.5997835832431597,
|
| 686 |
+
"grad_norm": 0.043166983872652054,
|
| 687 |
+
"learning_rate": 1.7675064415749078e-05,
|
| 688 |
+
"loss": 0.0074,
|
| 689 |
+
"step": 970
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"epoch": 0.605966919152883,
|
| 693 |
+
"grad_norm": 0.0443737618625164,
|
| 694 |
+
"learning_rate": 1.760546078476286e-05,
|
| 695 |
+
"loss": 0.0077,
|
| 696 |
+
"step": 980
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"epoch": 0.6121502550626062,
|
| 700 |
+
"grad_norm": 0.04099385812878609,
|
| 701 |
+
"learning_rate": 1.7534971960058684e-05,
|
| 702 |
+
"loss": 0.0076,
|
| 703 |
+
"step": 990
|
| 704 |
+
},
|
| 705 |
+
{
|
| 706 |
+
"epoch": 0.6183335909723295,
|
| 707 |
+
"grad_norm": 0.04541454464197159,
|
| 708 |
+
"learning_rate": 1.7463606145776525e-05,
|
| 709 |
+
"loss": 0.0076,
|
| 710 |
+
"step": 1000
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"epoch": 0.6245169268820528,
|
| 714 |
+
"grad_norm": 0.0451682023704052,
|
| 715 |
+
"learning_rate": 1.739137164812849e-05,
|
| 716 |
+
"loss": 0.0075,
|
| 717 |
+
"step": 1010
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"epoch": 0.6307002627917762,
|
| 721 |
+
"grad_norm": 0.04592340439558029,
|
| 722 |
+
"learning_rate": 1.731827687443208e-05,
|
| 723 |
+
"loss": 0.0077,
|
| 724 |
+
"step": 1020
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"epoch": 0.6368835987014995,
|
| 728 |
+
"grad_norm": 0.04665357992053032,
|
| 729 |
+
"learning_rate": 1.7244330332131657e-05,
|
| 730 |
+
"loss": 0.0072,
|
| 731 |
+
"step": 1030
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"epoch": 0.6430669346112228,
|
| 735 |
+
"grad_norm": 0.046974148601293564,
|
| 736 |
+
"learning_rate": 1.7169540627808276e-05,
|
| 737 |
+
"loss": 0.0074,
|
| 738 |
+
"step": 1040
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"epoch": 0.6492502705209461,
|
| 742 |
+
"grad_norm": 0.04424068331718445,
|
| 743 |
+
"learning_rate": 1.7093916466177972e-05,
|
| 744 |
+
"loss": 0.0073,
|
| 745 |
+
"step": 1050
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"epoch": 0.6554336064306694,
|
| 749 |
+
"grad_norm": 0.04412393271923065,
|
| 750 |
+
"learning_rate": 1.701746664907862e-05,
|
| 751 |
+
"loss": 0.0072,
|
| 752 |
+
"step": 1060
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"epoch": 0.6616169423403926,
|
| 756 |
+
"grad_norm": 0.046212710440158844,
|
| 757 |
+
"learning_rate": 1.6940200074445503e-05,
|
| 758 |
+
"loss": 0.0073,
|
| 759 |
+
"step": 1070
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"epoch": 0.6678002782501159,
|
| 763 |
+
"grad_norm": 0.05339352414011955,
|
| 764 |
+
"learning_rate": 1.6862125735275675e-05,
|
| 765 |
+
"loss": 0.0077,
|
| 766 |
+
"step": 1080
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"epoch": 0.6739836141598392,
|
| 770 |
+
"grad_norm": 0.053103432059288025,
|
| 771 |
+
"learning_rate": 1.6783252718581296e-05,
|
| 772 |
+
"loss": 0.0078,
|
| 773 |
+
"step": 1090
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"epoch": 0.6801669500695625,
|
| 777 |
+
"grad_norm": 0.04800717905163765,
|
| 778 |
+
"learning_rate": 1.6703590204331967e-05,
|
| 779 |
+
"loss": 0.0073,
|
| 780 |
+
"step": 1100
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"epoch": 0.6863502859792858,
|
| 784 |
+
"grad_norm": 0.04264698177576065,
|
| 785 |
+
"learning_rate": 1.6623147464386324e-05,
|
| 786 |
+
"loss": 0.0075,
|
| 787 |
+
"step": 1110
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"epoch": 0.6925336218890091,
|
| 791 |
+
"grad_norm": 0.040609877556562424,
|
| 792 |
+
"learning_rate": 1.6541933861412848e-05,
|
| 793 |
+
"loss": 0.0073,
|
| 794 |
+
"step": 1120
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"epoch": 0.6987169577987324,
|
| 798 |
+
"grad_norm": 0.03998512774705887,
|
| 799 |
+
"learning_rate": 1.645995884780019e-05,
|
| 800 |
+
"loss": 0.0076,
|
| 801 |
+
"step": 1130
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"epoch": 0.7049002937084557,
|
| 805 |
+
"grad_norm": 0.03671044111251831,
|
| 806 |
+
"learning_rate": 1.637723196455699e-05,
|
| 807 |
+
"loss": 0.0073,
|
| 808 |
+
"step": 1140
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"epoch": 0.7110836296181791,
|
| 812 |
+
"grad_norm": 0.041929442435503006,
|
| 813 |
+
"learning_rate": 1.629376284020143e-05,
|
| 814 |
+
"loss": 0.0075,
|
| 815 |
+
"step": 1150
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"epoch": 0.7172669655279023,
|
| 819 |
+
"grad_norm": 0.042013250291347504,
|
| 820 |
+
"learning_rate": 1.620956118964053e-05,
|
| 821 |
+
"loss": 0.0074,
|
| 822 |
+
"step": 1160
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"epoch": 0.7234503014376256,
|
| 826 |
+
"grad_norm": 0.04549422115087509,
|
| 827 |
+
"learning_rate": 1.6124636813039502e-05,
|
| 828 |
+
"loss": 0.0073,
|
| 829 |
+
"step": 1170
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"epoch": 0.7296336373473489,
|
| 833 |
+
"grad_norm": 0.04200827330350876,
|
| 834 |
+
"learning_rate": 1.6038999594681074e-05,
|
| 835 |
+
"loss": 0.0072,
|
| 836 |
+
"step": 1180
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"epoch": 0.7358169732570722,
|
| 840 |
+
"grad_norm": 0.03912513703107834,
|
| 841 |
+
"learning_rate": 1.5952659501815073e-05,
|
| 842 |
+
"loss": 0.0073,
|
| 843 |
+
"step": 1190
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"epoch": 0.7420003091667955,
|
| 847 |
+
"grad_norm": 0.03626884147524834,
|
| 848 |
+
"learning_rate": 1.5865626583498355e-05,
|
| 849 |
+
"loss": 0.0073,
|
| 850 |
+
"step": 1200
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"epoch": 0.7481836450765188,
|
| 854 |
+
"grad_norm": 0.04432886838912964,
|
| 855 |
+
"learning_rate": 1.5777910969425184e-05,
|
| 856 |
+
"loss": 0.0071,
|
| 857 |
+
"step": 1210
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"epoch": 0.7543669809862421,
|
| 861 |
+
"grad_norm": 0.03677462041378021,
|
| 862 |
+
"learning_rate": 1.5689522868748276e-05,
|
| 863 |
+
"loss": 0.0074,
|
| 864 |
+
"step": 1220
|
| 865 |
+
},
|
| 866 |
+
{
|
| 867 |
+
"epoch": 0.7605503168959654,
|
| 868 |
+
"grad_norm": 0.03566281870007515,
|
| 869 |
+
"learning_rate": 1.5600472568890523e-05,
|
| 870 |
+
"loss": 0.0071,
|
| 871 |
+
"step": 1230
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"epoch": 0.7667336528056886,
|
| 875 |
+
"grad_norm": 0.037937846034765244,
|
| 876 |
+
"learning_rate": 1.551077043434769e-05,
|
| 877 |
+
"loss": 0.0072,
|
| 878 |
+
"step": 1240
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"epoch": 0.7729169887154119,
|
| 882 |
+
"grad_norm": 0.034936949610710144,
|
| 883 |
+
"learning_rate": 1.5420426905482056e-05,
|
| 884 |
+
"loss": 0.0071,
|
| 885 |
+
"step": 1250
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"epoch": 0.7791003246251352,
|
| 889 |
+
"grad_norm": 0.0420398972928524,
|
| 890 |
+
"learning_rate": 1.5329452497307316e-05,
|
| 891 |
+
"loss": 0.0072,
|
| 892 |
+
"step": 1260
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"epoch": 0.7852836605348585,
|
| 896 |
+
"grad_norm": 0.04124725982546806,
|
| 897 |
+
"learning_rate": 1.5237857798264701e-05,
|
| 898 |
+
"loss": 0.0072,
|
| 899 |
+
"step": 1270
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"epoch": 0.7914669964445818,
|
| 903 |
+
"grad_norm": 0.042076483368873596,
|
| 904 |
+
"learning_rate": 1.5145653468990626e-05,
|
| 905 |
+
"loss": 0.0071,
|
| 906 |
+
"step": 1280
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"epoch": 0.7976503323543052,
|
| 910 |
+
"grad_norm": 0.03725574165582657,
|
| 911 |
+
"learning_rate": 1.50528502410759e-05,
|
| 912 |
+
"loss": 0.0069,
|
| 913 |
+
"step": 1290
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"epoch": 0.8038336682640285,
|
| 917 |
+
"grad_norm": 0.04050353169441223,
|
| 918 |
+
"learning_rate": 1.4959458915816681e-05,
|
| 919 |
+
"loss": 0.0072,
|
| 920 |
+
"step": 1300
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"epoch": 0.8100170041737518,
|
| 924 |
+
"grad_norm": 0.03882165625691414,
|
| 925 |
+
"learning_rate": 1.4865490362957317e-05,
|
| 926 |
+
"loss": 0.0073,
|
| 927 |
+
"step": 1310
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"epoch": 0.8162003400834751,
|
| 931 |
+
"grad_norm": 0.03756791725754738,
|
| 932 |
+
"learning_rate": 1.477095551942525e-05,
|
| 933 |
+
"loss": 0.0074,
|
| 934 |
+
"step": 1320
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"epoch": 0.8223836759931983,
|
| 938 |
+
"grad_norm": 0.05022745579481125,
|
| 939 |
+
"learning_rate": 1.4675865388058037e-05,
|
| 940 |
+
"loss": 0.007,
|
| 941 |
+
"step": 1330
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"epoch": 0.8285670119029216,
|
| 945 |
+
"grad_norm": 0.04937414452433586,
|
| 946 |
+
"learning_rate": 1.458023103632277e-05,
|
| 947 |
+
"loss": 0.0071,
|
| 948 |
+
"step": 1340
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"epoch": 0.8347503478126449,
|
| 952 |
+
"grad_norm": 0.051321037113666534,
|
| 953 |
+
"learning_rate": 1.4484063595027924e-05,
|
| 954 |
+
"loss": 0.0071,
|
| 955 |
+
"step": 1350
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"epoch": 0.8409336837223682,
|
| 959 |
+
"grad_norm": 0.035162657499313354,
|
| 960 |
+
"learning_rate": 1.438737425702786e-05,
|
| 961 |
+
"loss": 0.0071,
|
| 962 |
+
"step": 1360
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"epoch": 0.8471170196320915,
|
| 966 |
+
"grad_norm": 0.03311579301953316,
|
| 967 |
+
"learning_rate": 1.4290174275920095e-05,
|
| 968 |
+
"loss": 0.0072,
|
| 969 |
+
"step": 1370
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"epoch": 0.8533003555418148,
|
| 973 |
+
"grad_norm": 0.04103536903858185,
|
| 974 |
+
"learning_rate": 1.41924749647355e-05,
|
| 975 |
+
"loss": 0.0071,
|
| 976 |
+
"step": 1380
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"epoch": 0.8594836914515381,
|
| 980 |
+
"grad_norm": 0.051637377589941025,
|
| 981 |
+
"learning_rate": 1.4094287694621589e-05,
|
| 982 |
+
"loss": 0.0069,
|
| 983 |
+
"step": 1390
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"epoch": 0.8656670273612614,
|
| 987 |
+
"grad_norm": 0.033984847366809845,
|
| 988 |
+
"learning_rate": 1.3995623893519044e-05,
|
| 989 |
+
"loss": 0.007,
|
| 990 |
+
"step": 1400
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"epoch": 0.8718503632709848,
|
| 994 |
+
"grad_norm": 0.03714025020599365,
|
| 995 |
+
"learning_rate": 1.3896495044831622e-05,
|
| 996 |
+
"loss": 0.0066,
|
| 997 |
+
"step": 1410
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"epoch": 0.878033699180708,
|
| 1001 |
+
"grad_norm": 0.041570328176021576,
|
| 1002 |
+
"learning_rate": 1.37969126860896e-05,
|
| 1003 |
+
"loss": 0.0067,
|
| 1004 |
+
"step": 1420
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"epoch": 0.8842170350904313,
|
| 1008 |
+
"grad_norm": 0.04341095685958862,
|
| 1009 |
+
"learning_rate": 1.3696888407606952e-05,
|
| 1010 |
+
"loss": 0.0069,
|
| 1011 |
+
"step": 1430
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"epoch": 0.8904003710001546,
|
| 1015 |
+
"grad_norm": 0.039629433304071426,
|
| 1016 |
+
"learning_rate": 1.3596433851132342e-05,
|
| 1017 |
+
"loss": 0.0069,
|
| 1018 |
+
"step": 1440
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"epoch": 0.8965837069098779,
|
| 1022 |
+
"grad_norm": 0.04006121680140495,
|
| 1023 |
+
"learning_rate": 1.3495560708494167e-05,
|
| 1024 |
+
"loss": 0.007,
|
| 1025 |
+
"step": 1450
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"epoch": 0.9027670428196012,
|
| 1029 |
+
"grad_norm": 0.04321839660406113,
|
| 1030 |
+
"learning_rate": 1.3394280720239733e-05,
|
| 1031 |
+
"loss": 0.007,
|
| 1032 |
+
"step": 1460
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"epoch": 0.9089503787293245,
|
| 1036 |
+
"grad_norm": 0.038396500051021576,
|
| 1037 |
+
"learning_rate": 1.3292605674268803e-05,
|
| 1038 |
+
"loss": 0.0069,
|
| 1039 |
+
"step": 1470
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"epoch": 0.9151337146390478,
|
| 1043 |
+
"grad_norm": 0.040967196226119995,
|
| 1044 |
+
"learning_rate": 1.31905474044616e-05,
|
| 1045 |
+
"loss": 0.007,
|
| 1046 |
+
"step": 1480
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"epoch": 0.9213170505487711,
|
| 1050 |
+
"grad_norm": 0.048842981457710266,
|
| 1051 |
+
"learning_rate": 1.3088117789301473e-05,
|
| 1052 |
+
"loss": 0.0067,
|
| 1053 |
+
"step": 1490
|
| 1054 |
+
},
|
| 1055 |
+
{
|
| 1056 |
+
"epoch": 0.9275003864584943,
|
| 1057 |
+
"grad_norm": 0.03724457696080208,
|
| 1058 |
+
"learning_rate": 1.298532875049237e-05,
|
| 1059 |
+
"loss": 0.0069,
|
| 1060 |
+
"step": 1500
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"epoch": 0.9336837223682176,
|
| 1064 |
+
"grad_norm": 0.039507653564214706,
|
| 1065 |
+
"learning_rate": 1.2882192251571282e-05,
|
| 1066 |
+
"loss": 0.0068,
|
| 1067 |
+
"step": 1510
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"epoch": 0.9398670582779409,
|
| 1071 |
+
"grad_norm": 0.035300228744745255,
|
| 1072 |
+
"learning_rate": 1.2778720296515816e-05,
|
| 1073 |
+
"loss": 0.0068,
|
| 1074 |
+
"step": 1520
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"epoch": 0.9460503941876642,
|
| 1078 |
+
"grad_norm": 0.05400003492832184,
|
| 1079 |
+
"learning_rate": 1.2674924928347055e-05,
|
| 1080 |
+
"loss": 0.0067,
|
| 1081 |
+
"step": 1530
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"epoch": 0.9522337300973875,
|
| 1085 |
+
"grad_norm": 0.04334673658013344,
|
| 1086 |
+
"learning_rate": 1.2570818227727889e-05,
|
| 1087 |
+
"loss": 0.0068,
|
| 1088 |
+
"step": 1540
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"epoch": 0.9584170660071109,
|
| 1092 |
+
"grad_norm": 0.03568002209067345,
|
| 1093 |
+
"learning_rate": 1.2466412311556952e-05,
|
| 1094 |
+
"loss": 0.0068,
|
| 1095 |
+
"step": 1550
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"epoch": 0.9646004019168342,
|
| 1099 |
+
"grad_norm": 0.047103166580200195,
|
| 1100 |
+
"learning_rate": 1.2361719331558346e-05,
|
| 1101 |
+
"loss": 0.0068,
|
| 1102 |
+
"step": 1560
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"epoch": 0.9707837378265575,
|
| 1106 |
+
"grad_norm": 0.036910735070705414,
|
| 1107 |
+
"learning_rate": 1.2256751472867304e-05,
|
| 1108 |
+
"loss": 0.0067,
|
| 1109 |
+
"step": 1570
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"epoch": 0.9769670737362808,
|
| 1113 |
+
"grad_norm": 0.04214445874094963,
|
| 1114 |
+
"learning_rate": 1.2151520952611984e-05,
|
| 1115 |
+
"loss": 0.0067,
|
| 1116 |
+
"step": 1580
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"epoch": 0.983150409646004,
|
| 1120 |
+
"grad_norm": 0.05339273810386658,
|
| 1121 |
+
"learning_rate": 1.2046040018491523e-05,
|
| 1122 |
+
"loss": 0.0066,
|
| 1123 |
+
"step": 1590
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"epoch": 0.9893337455557273,
|
| 1127 |
+
"grad_norm": 0.04332943633198738,
|
| 1128 |
+
"learning_rate": 1.1940320947350532e-05,
|
| 1129 |
+
"loss": 0.007,
|
| 1130 |
+
"step": 1600
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"epoch": 0.9955170814654506,
|
| 1134 |
+
"grad_norm": 0.0429212786257267,
|
| 1135 |
+
"learning_rate": 1.1834376043750201e-05,
|
| 1136 |
+
"loss": 0.0063,
|
| 1137 |
+
"step": 1610
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"epoch": 1.0012366671819446,
|
| 1141 |
+
"grad_norm": 0.04421928524971008,
|
| 1142 |
+
"learning_rate": 1.1728217638536196e-05,
|
| 1143 |
+
"loss": 0.0071,
|
| 1144 |
+
"step": 1620
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"epoch": 1.007420003091668,
|
| 1148 |
+
"grad_norm": 0.04365362226963043,
|
| 1149 |
+
"learning_rate": 1.1621858087403466e-05,
|
| 1150 |
+
"loss": 0.0062,
|
| 1151 |
+
"step": 1630
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"epoch": 1.0136033390013912,
|
| 1155 |
+
"grad_norm": 0.03700665757060051,
|
| 1156 |
+
"learning_rate": 1.1515309769458174e-05,
|
| 1157 |
+
"loss": 0.0059,
|
| 1158 |
+
"step": 1640
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"epoch": 1.0197866749111146,
|
| 1162 |
+
"grad_norm": 0.0455857552587986,
|
| 1163 |
+
"learning_rate": 1.1408585085776916e-05,
|
| 1164 |
+
"loss": 0.0059,
|
| 1165 |
+
"step": 1650
|
| 1166 |
+
},
|
| 1167 |
+
{
|
| 1168 |
+
"epoch": 1.0259700108208378,
|
| 1169 |
+
"grad_norm": 0.03983158990740776,
|
| 1170 |
+
"learning_rate": 1.1301696457963352e-05,
|
| 1171 |
+
"loss": 0.0062,
|
| 1172 |
+
"step": 1660
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"epoch": 1.0321533467305612,
|
| 1176 |
+
"grad_norm": 0.03655843436717987,
|
| 1177 |
+
"learning_rate": 1.1194656326702474e-05,
|
| 1178 |
+
"loss": 0.0062,
|
| 1179 |
+
"step": 1670
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"epoch": 1.0383366826402844,
|
| 1183 |
+
"grad_norm": 0.048476699739694595,
|
| 1184 |
+
"learning_rate": 1.1087477150312653e-05,
|
| 1185 |
+
"loss": 0.006,
|
| 1186 |
+
"step": 1680
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"epoch": 1.0445200185500076,
|
| 1190 |
+
"grad_norm": 0.04713127389550209,
|
| 1191 |
+
"learning_rate": 1.098017140329561e-05,
|
| 1192 |
+
"loss": 0.0059,
|
| 1193 |
+
"step": 1690
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"epoch": 1.050703354459731,
|
| 1197 |
+
"grad_norm": 0.03435790538787842,
|
| 1198 |
+
"learning_rate": 1.0872751574884512e-05,
|
| 1199 |
+
"loss": 0.006,
|
| 1200 |
+
"step": 1700
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"epoch": 1.0568866903694543,
|
| 1204 |
+
"grad_norm": 0.04033854603767395,
|
| 1205 |
+
"learning_rate": 1.0765230167590385e-05,
|
| 1206 |
+
"loss": 0.0056,
|
| 1207 |
+
"step": 1710
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"epoch": 1.0630700262791777,
|
| 1211 |
+
"grad_norm": 0.03484448045492172,
|
| 1212 |
+
"learning_rate": 1.0657619695746944e-05,
|
| 1213 |
+
"loss": 0.0061,
|
| 1214 |
+
"step": 1720
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"epoch": 1.0692533621889009,
|
| 1218 |
+
"grad_norm": 0.041448500007390976,
|
| 1219 |
+
"learning_rate": 1.054993268405405e-05,
|
| 1220 |
+
"loss": 0.006,
|
| 1221 |
+
"step": 1730
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"epoch": 1.0754366980986243,
|
| 1225 |
+
"grad_norm": 0.045591264963150024,
|
| 1226 |
+
"learning_rate": 1.0442181666119984e-05,
|
| 1227 |
+
"loss": 0.006,
|
| 1228 |
+
"step": 1740
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"epoch": 1.0816200340083475,
|
| 1232 |
+
"grad_norm": 0.036942582577466965,
|
| 1233 |
+
"learning_rate": 1.033437918300266e-05,
|
| 1234 |
+
"loss": 0.006,
|
| 1235 |
+
"step": 1750
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"epoch": 1.087803369918071,
|
| 1239 |
+
"grad_norm": 0.03570098802447319,
|
| 1240 |
+
"learning_rate": 1.0226537781749988e-05,
|
| 1241 |
+
"loss": 0.0058,
|
| 1242 |
+
"step": 1760
|
| 1243 |
+
},
|
| 1244 |
+
{
|
| 1245 |
+
"epoch": 1.0939867058277941,
|
| 1246 |
+
"grad_norm": 0.0382462739944458,
|
| 1247 |
+
"learning_rate": 1.0118670013939526e-05,
|
| 1248 |
+
"loss": 0.0058,
|
| 1249 |
+
"step": 1770
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"epoch": 1.1001700417375173,
|
| 1253 |
+
"grad_norm": 0.03386927768588066,
|
| 1254 |
+
"learning_rate": 1.0010788434217625e-05,
|
| 1255 |
+
"loss": 0.0059,
|
| 1256 |
+
"step": 1780
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"epoch": 1.1063533776472407,
|
| 1260 |
+
"grad_norm": 0.04100915789604187,
|
| 1261 |
+
"learning_rate": 9.902905598838177e-06,
|
| 1262 |
+
"loss": 0.0059,
|
| 1263 |
+
"step": 1790
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"epoch": 1.112536713556964,
|
| 1267 |
+
"grad_norm": 0.03817896544933319,
|
| 1268 |
+
"learning_rate": 9.795034064201235e-06,
|
| 1269 |
+
"loss": 0.0058,
|
| 1270 |
+
"step": 1800
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"epoch": 1.1187200494666873,
|
| 1274 |
+
"grad_norm": 0.04328783601522446,
|
| 1275 |
+
"learning_rate": 9.68718638539156e-06,
|
| 1276 |
+
"loss": 0.0059,
|
| 1277 |
+
"step": 1810
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"epoch": 1.1249033853764105,
|
| 1281 |
+
"grad_norm": 0.038214631378650665,
|
| 1282 |
+
"learning_rate": 9.579375114717352e-06,
|
| 1283 |
+
"loss": 0.0058,
|
| 1284 |
+
"step": 1820
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"epoch": 1.1310867212861337,
|
| 1288 |
+
"grad_norm": 0.03657764196395874,
|
| 1289 |
+
"learning_rate": 9.471612800249295e-06,
|
| 1290 |
+
"loss": 0.0059,
|
| 1291 |
+
"step": 1830
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"epoch": 1.1372700571958572,
|
| 1295 |
+
"grad_norm": 0.045281436294317245,
|
| 1296 |
+
"learning_rate": 9.363911984360104e-06,
|
| 1297 |
+
"loss": 0.0059,
|
| 1298 |
+
"step": 1840
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"epoch": 1.1434533931055806,
|
| 1302 |
+
"grad_norm": 0.03649020567536354,
|
| 1303 |
+
"learning_rate": 9.256285202264716e-06,
|
| 1304 |
+
"loss": 0.0061,
|
| 1305 |
+
"step": 1850
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"epoch": 1.1496367290153038,
|
| 1309 |
+
"grad_norm": 0.03974698483943939,
|
| 1310 |
+
"learning_rate": 9.148744980561332e-06,
|
| 1311 |
+
"loss": 0.0056,
|
| 1312 |
+
"step": 1860
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"epoch": 1.155820064925027,
|
| 1316 |
+
"grad_norm": 0.041133228689432144,
|
| 1317 |
+
"learning_rate": 9.041303835773458e-06,
|
| 1318 |
+
"loss": 0.006,
|
| 1319 |
+
"step": 1870
|
| 1320 |
+
},
|
| 1321 |
+
{
|
| 1322 |
+
"epoch": 1.1620034008347504,
|
| 1323 |
+
"grad_norm": 0.039168015122413635,
|
| 1324 |
+
"learning_rate": 8.933974272893113e-06,
|
| 1325 |
+
"loss": 0.0058,
|
| 1326 |
+
"step": 1880
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"epoch": 1.1681867367444736,
|
| 1330 |
+
"grad_norm": 0.06035231426358223,
|
| 1331 |
+
"learning_rate": 8.826768783925385e-06,
|
| 1332 |
+
"loss": 0.0058,
|
| 1333 |
+
"step": 1890
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"epoch": 1.174370072654197,
|
| 1337 |
+
"grad_norm": 0.04310515522956848,
|
| 1338 |
+
"learning_rate": 8.719699846434493e-06,
|
| 1339 |
+
"loss": 0.0057,
|
| 1340 |
+
"step": 1900
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"epoch": 1.1805534085639202,
|
| 1344 |
+
"grad_norm": 0.03753894194960594,
|
| 1345 |
+
"learning_rate": 8.612779922091534e-06,
|
| 1346 |
+
"loss": 0.0055,
|
| 1347 |
+
"step": 1910
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"epoch": 1.1867367444736434,
|
| 1351 |
+
"grad_norm": 0.0496654249727726,
|
| 1352 |
+
"learning_rate": 8.506021455224083e-06,
|
| 1353 |
+
"loss": 0.0056,
|
| 1354 |
+
"step": 1920
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"epoch": 1.1929200803833668,
|
| 1358 |
+
"grad_norm": 0.03786466270685196,
|
| 1359 |
+
"learning_rate": 8.399436871367804e-06,
|
| 1360 |
+
"loss": 0.0059,
|
| 1361 |
+
"step": 1930
|
| 1362 |
+
},
|
| 1363 |
+
{
|
| 1364 |
+
"epoch": 1.19910341629309,
|
| 1365 |
+
"grad_norm": 0.034229736775159836,
|
| 1366 |
+
"learning_rate": 8.293038575820249e-06,
|
| 1367 |
+
"loss": 0.0058,
|
| 1368 |
+
"step": 1940
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"epoch": 1.2052867522028134,
|
| 1372 |
+
"grad_norm": 0.03900885581970215,
|
| 1373 |
+
"learning_rate": 8.186838952197019e-06,
|
| 1374 |
+
"loss": 0.0057,
|
| 1375 |
+
"step": 1950
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"epoch": 1.2114700881125366,
|
| 1379 |
+
"grad_norm": 0.036625415086746216,
|
| 1380 |
+
"learning_rate": 8.080850360990439e-06,
|
| 1381 |
+
"loss": 0.0056,
|
| 1382 |
+
"step": 1960
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"epoch": 1.21765342402226,
|
| 1386 |
+
"grad_norm": 0.032340049743652344,
|
| 1387 |
+
"learning_rate": 7.975085138130938e-06,
|
| 1388 |
+
"loss": 0.0056,
|
| 1389 |
+
"step": 1970
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"epoch": 1.2238367599319833,
|
| 1393 |
+
"grad_norm": 0.03607684373855591,
|
| 1394 |
+
"learning_rate": 7.869555593551277e-06,
|
| 1395 |
+
"loss": 0.0059,
|
| 1396 |
+
"step": 1980
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"epoch": 1.2300200958417067,
|
| 1400 |
+
"grad_norm": 0.032486408948898315,
|
| 1401 |
+
"learning_rate": 7.764274009753796e-06,
|
| 1402 |
+
"loss": 0.0059,
|
| 1403 |
+
"step": 1990
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"epoch": 1.2362034317514299,
|
| 1407 |
+
"grad_norm": 0.03523161634802818,
|
| 1408 |
+
"learning_rate": 7.659252640380876e-06,
|
| 1409 |
+
"loss": 0.0056,
|
| 1410 |
+
"step": 2000
|
| 1411 |
+
},
|
| 1412 |
+
{
|
| 1413 |
+
"epoch": 1.242386767661153,
|
| 1414 |
+
"grad_norm": 0.036453727632761,
|
| 1415 |
+
"learning_rate": 7.554503708788738e-06,
|
| 1416 |
+
"loss": 0.0055,
|
| 1417 |
+
"step": 2010
|
| 1418 |
+
},
|
| 1419 |
+
{
|
| 1420 |
+
"epoch": 1.2485701035708765,
|
| 1421 |
+
"grad_norm": 0.040288910269737244,
|
| 1422 |
+
"learning_rate": 7.450039406624792e-06,
|
| 1423 |
+
"loss": 0.0057,
|
| 1424 |
+
"step": 2020
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"epoch": 1.2547534394806,
|
| 1428 |
+
"grad_norm": 0.0430009663105011,
|
| 1429 |
+
"learning_rate": 7.345871892408631e-06,
|
| 1430 |
+
"loss": 0.0056,
|
| 1431 |
+
"step": 2030
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"epoch": 1.2609367753903231,
|
| 1435 |
+
"grad_norm": 0.03574775531888008,
|
| 1436 |
+
"learning_rate": 7.242013290116944e-06,
|
| 1437 |
+
"loss": 0.0057,
|
| 1438 |
+
"step": 2040
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"epoch": 1.2671201113000463,
|
| 1442 |
+
"grad_norm": 0.03812326118350029,
|
| 1443 |
+
"learning_rate": 7.138475687772381e-06,
|
| 1444 |
+
"loss": 0.0056,
|
| 1445 |
+
"step": 2050
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"epoch": 1.2733034472097697,
|
| 1449 |
+
"grad_norm": 0.03299403935670853,
|
| 1450 |
+
"learning_rate": 7.03527113603667e-06,
|
| 1451 |
+
"loss": 0.0058,
|
| 1452 |
+
"step": 2060
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"epoch": 1.279486783119493,
|
| 1456 |
+
"grad_norm": 0.03786725923418999,
|
| 1457 |
+
"learning_rate": 6.9324116468080305e-06,
|
| 1458 |
+
"loss": 0.0056,
|
| 1459 |
+
"step": 2070
|
| 1460 |
+
},
|
| 1461 |
+
{
|
| 1462 |
+
"epoch": 1.2856701190292164,
|
| 1463 |
+
"grad_norm": 0.03449017554521561,
|
| 1464 |
+
"learning_rate": 6.829909191823121e-06,
|
| 1465 |
+
"loss": 0.0054,
|
| 1466 |
+
"step": 2080
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"epoch": 1.2918534549389395,
|
| 1470 |
+
"grad_norm": 0.03949199244379997,
|
| 1471 |
+
"learning_rate": 6.727775701263666e-06,
|
| 1472 |
+
"loss": 0.0058,
|
| 1473 |
+
"step": 2090
|
| 1474 |
+
},
|
| 1475 |
+
{
|
| 1476 |
+
"epoch": 1.2980367908486627,
|
| 1477 |
+
"grad_norm": 0.03537849709391594,
|
| 1478 |
+
"learning_rate": 6.626023062367894e-06,
|
| 1479 |
+
"loss": 0.006,
|
| 1480 |
+
"step": 2100
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"epoch": 1.3042201267583862,
|
| 1484 |
+
"grad_norm": 0.03561354801058769,
|
| 1485 |
+
"learning_rate": 6.524663118047015e-06,
|
| 1486 |
+
"loss": 0.0058,
|
| 1487 |
+
"step": 2110
|
| 1488 |
+
},
|
| 1489 |
+
{
|
| 1490 |
+
"epoch": 1.3104034626681094,
|
| 1491 |
+
"grad_norm": 0.037109751254320145,
|
| 1492 |
+
"learning_rate": 6.423707665506812e-06,
|
| 1493 |
+
"loss": 0.0056,
|
| 1494 |
+
"step": 2120
|
| 1495 |
+
},
|
| 1496 |
+
{
|
| 1497 |
+
"epoch": 1.3165867985778328,
|
| 1498 |
+
"grad_norm": 0.03227913752198219,
|
| 1499 |
+
"learning_rate": 6.323168454874582e-06,
|
| 1500 |
+
"loss": 0.0054,
|
| 1501 |
+
"step": 2130
|
| 1502 |
+
},
|
| 1503 |
+
{
|
| 1504 |
+
"epoch": 1.322770134487556,
|
| 1505 |
+
"grad_norm": 0.034376900643110275,
|
| 1506 |
+
"learning_rate": 6.223057187831548e-06,
|
| 1507 |
+
"loss": 0.0057,
|
| 1508 |
+
"step": 2140
|
| 1509 |
+
},
|
| 1510 |
+
{
|
| 1511 |
+
"epoch": 1.3289534703972794,
|
| 1512 |
+
"grad_norm": 0.042623914778232574,
|
| 1513 |
+
"learning_rate": 6.123385516250911e-06,
|
| 1514 |
+
"loss": 0.0054,
|
| 1515 |
+
"step": 2150
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"epoch": 1.3351368063070026,
|
| 1519 |
+
"grad_norm": 0.03284977748990059,
|
| 1520 |
+
"learning_rate": 6.02416504084169e-06,
|
| 1521 |
+
"loss": 0.0056,
|
| 1522 |
+
"step": 2160
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"epoch": 1.341320142216726,
|
| 1526 |
+
"grad_norm": 0.03773827850818634,
|
| 1527 |
+
"learning_rate": 5.925407309798535e-06,
|
| 1528 |
+
"loss": 0.0061,
|
| 1529 |
+
"step": 2170
|
| 1530 |
+
},
|
| 1531 |
+
{
|
| 1532 |
+
"epoch": 1.3475034781264492,
|
| 1533 |
+
"grad_norm": 0.03684335947036743,
|
| 1534 |
+
"learning_rate": 5.827123817457631e-06,
|
| 1535 |
+
"loss": 0.0053,
|
| 1536 |
+
"step": 2180
|
| 1537 |
+
},
|
| 1538 |
+
{
|
| 1539 |
+
"epoch": 1.3536868140361724,
|
| 1540 |
+
"grad_norm": 0.03831595927476883,
|
| 1541 |
+
"learning_rate": 5.729326002958889e-06,
|
| 1542 |
+
"loss": 0.0057,
|
| 1543 |
+
"step": 2190
|
| 1544 |
+
},
|
| 1545 |
+
{
|
| 1546 |
+
"epoch": 1.3598701499458958,
|
| 1547 |
+
"grad_norm": 0.03576178103685379,
|
| 1548 |
+
"learning_rate": 5.632025248914546e-06,
|
| 1549 |
+
"loss": 0.0054,
|
| 1550 |
+
"step": 2200
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"epoch": 1.366053485855619,
|
| 1554 |
+
"grad_norm": 0.04004263877868652,
|
| 1555 |
+
"learning_rate": 5.535232880084373e-06,
|
| 1556 |
+
"loss": 0.0057,
|
| 1557 |
+
"step": 2210
|
| 1558 |
+
},
|
| 1559 |
+
{
|
| 1560 |
+
"epoch": 1.3722368217653425,
|
| 1561 |
+
"grad_norm": 0.03518558666110039,
|
| 1562 |
+
"learning_rate": 5.438960162057548e-06,
|
| 1563 |
+
"loss": 0.0054,
|
| 1564 |
+
"step": 2220
|
| 1565 |
+
},
|
| 1566 |
+
{
|
| 1567 |
+
"epoch": 1.3784201576750656,
|
| 1568 |
+
"grad_norm": 0.03575367107987404,
|
| 1569 |
+
"learning_rate": 5.343218299941517e-06,
|
| 1570 |
+
"loss": 0.0055,
|
| 1571 |
+
"step": 2230
|
| 1572 |
+
},
|
| 1573 |
+
{
|
| 1574 |
+
"epoch": 1.384603493584789,
|
| 1575 |
+
"grad_norm": 0.03193347156047821,
|
| 1576 |
+
"learning_rate": 5.248018437057807e-06,
|
| 1577 |
+
"loss": 0.0055,
|
| 1578 |
+
"step": 2240
|
| 1579 |
+
},
|
| 1580 |
+
{
|
| 1581 |
+
"epoch": 1.3907868294945123,
|
| 1582 |
+
"grad_norm": 0.03565206378698349,
|
| 1583 |
+
"learning_rate": 5.15337165364507e-06,
|
| 1584 |
+
"loss": 0.0054,
|
| 1585 |
+
"step": 2250
|
| 1586 |
+
},
|
| 1587 |
+
{
|
| 1588 |
+
"epoch": 1.3969701654042357,
|
| 1589 |
+
"grad_norm": 0.0318601168692112,
|
| 1590 |
+
"learning_rate": 5.059288965569471e-06,
|
| 1591 |
+
"loss": 0.0054,
|
| 1592 |
+
"step": 2260
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"epoch": 1.4031535013139589,
|
| 1596 |
+
"grad_norm": 0.03948667645454407,
|
| 1597 |
+
"learning_rate": 4.965781323042547e-06,
|
| 1598 |
+
"loss": 0.0054,
|
| 1599 |
+
"step": 2270
|
| 1600 |
+
},
|
| 1601 |
+
{
|
| 1602 |
+
"epoch": 1.409336837223682,
|
| 1603 |
+
"grad_norm": 0.03156143054366112,
|
| 1604 |
+
"learning_rate": 4.872859609346733e-06,
|
| 1605 |
+
"loss": 0.0053,
|
| 1606 |
+
"step": 2280
|
| 1607 |
+
},
|
| 1608 |
+
{
|
| 1609 |
+
"epoch": 1.4155201731334055,
|
| 1610 |
+
"grad_norm": 0.03467686474323273,
|
| 1611 |
+
"learning_rate": 4.780534639568651e-06,
|
| 1612 |
+
"loss": 0.0053,
|
| 1613 |
+
"step": 2290
|
| 1614 |
+
},
|
| 1615 |
+
{
|
| 1616 |
+
"epoch": 1.4217035090431287,
|
| 1617 |
+
"grad_norm": 0.03605823591351509,
|
| 1618 |
+
"learning_rate": 4.68881715934037e-06,
|
| 1619 |
+
"loss": 0.0055,
|
| 1620 |
+
"step": 2300
|
| 1621 |
+
},
|
| 1622 |
+
{
|
| 1623 |
+
"epoch": 1.4278868449528521,
|
| 1624 |
+
"grad_norm": 0.03542206436395645,
|
| 1625 |
+
"learning_rate": 4.597717843588708e-06,
|
| 1626 |
+
"loss": 0.0054,
|
| 1627 |
+
"step": 2310
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"epoch": 1.4340701808625753,
|
| 1631 |
+
"grad_norm": 0.03765241429209709,
|
| 1632 |
+
"learning_rate": 4.5072472952928015e-06,
|
| 1633 |
+
"loss": 0.0055,
|
| 1634 |
+
"step": 2320
|
| 1635 |
+
},
|
| 1636 |
+
{
|
| 1637 |
+
"epoch": 1.4402535167722987,
|
| 1638 |
+
"grad_norm": 0.03652080148458481,
|
| 1639 |
+
"learning_rate": 4.417416044250026e-06,
|
| 1640 |
+
"loss": 0.0057,
|
| 1641 |
+
"step": 2330
|
| 1642 |
+
},
|
| 1643 |
+
{
|
| 1644 |
+
"epoch": 1.446436852682022,
|
| 1645 |
+
"grad_norm": 0.03262539580464363,
|
| 1646 |
+
"learning_rate": 4.328234545850441e-06,
|
| 1647 |
+
"loss": 0.0052,
|
| 1648 |
+
"step": 2340
|
| 1649 |
+
},
|
| 1650 |
+
{
|
| 1651 |
+
"epoch": 1.4526201885917454,
|
| 1652 |
+
"grad_norm": 0.03427337110042572,
|
| 1653 |
+
"learning_rate": 4.239713179859901e-06,
|
| 1654 |
+
"loss": 0.0053,
|
| 1655 |
+
"step": 2350
|
| 1656 |
+
},
|
| 1657 |
+
{
|
| 1658 |
+
"epoch": 1.4588035245014686,
|
| 1659 |
+
"grad_norm": 0.03885317221283913,
|
| 1660 |
+
"learning_rate": 4.151862249211953e-06,
|
| 1661 |
+
"loss": 0.0054,
|
| 1662 |
+
"step": 2360
|
| 1663 |
+
},
|
| 1664 |
+
{
|
| 1665 |
+
"epoch": 1.4649868604111917,
|
| 1666 |
+
"grad_norm": 0.03729204460978508,
|
| 1667 |
+
"learning_rate": 4.064691978808699e-06,
|
| 1668 |
+
"loss": 0.0053,
|
| 1669 |
+
"step": 2370
|
| 1670 |
+
},
|
| 1671 |
+
{
|
| 1672 |
+
"epoch": 1.4711701963209152,
|
| 1673 |
+
"grad_norm": 0.032668232917785645,
|
| 1674 |
+
"learning_rate": 3.978212514330703e-06,
|
| 1675 |
+
"loss": 0.0053,
|
| 1676 |
+
"step": 2380
|
| 1677 |
+
},
|
| 1678 |
+
{
|
| 1679 |
+
"epoch": 1.4773535322306384,
|
| 1680 |
+
"grad_norm": 0.03400380164384842,
|
| 1681 |
+
"learning_rate": 3.892433921056184e-06,
|
| 1682 |
+
"loss": 0.0053,
|
| 1683 |
+
"step": 2390
|
| 1684 |
+
},
|
| 1685 |
+
{
|
| 1686 |
+
"epoch": 1.4835368681403618,
|
| 1687 |
+
"grad_norm": 0.03154066205024719,
|
| 1688 |
+
"learning_rate": 3.8073661826894837e-06,
|
| 1689 |
+
"loss": 0.0052,
|
| 1690 |
+
"step": 2400
|
| 1691 |
+
},
|
| 1692 |
+
{
|
| 1693 |
+
"epoch": 1.489720204050085,
|
| 1694 |
+
"grad_norm": 0.0407693088054657,
|
| 1695 |
+
"learning_rate": 3.7230192001990963e-06,
|
| 1696 |
+
"loss": 0.0047,
|
| 1697 |
+
"step": 2410
|
| 1698 |
+
},
|
| 1699 |
+
{
|
| 1700 |
+
"epoch": 1.4959035399598082,
|
| 1701 |
+
"grad_norm": 0.03409425541758537,
|
| 1702 |
+
"learning_rate": 3.6394027906652927e-06,
|
| 1703 |
+
"loss": 0.0048,
|
| 1704 |
+
"step": 2420
|
| 1705 |
+
},
|
| 1706 |
+
{
|
| 1707 |
+
"epoch": 1.5020868758695316,
|
| 1708 |
+
"grad_norm": 0.03952354937791824,
|
| 1709 |
+
"learning_rate": 3.5565266861375236e-06,
|
| 1710 |
+
"loss": 0.0052,
|
| 1711 |
+
"step": 2430
|
| 1712 |
+
},
|
| 1713 |
+
{
|
| 1714 |
+
"epoch": 1.508270211779255,
|
| 1715 |
+
"grad_norm": 0.035029612481594086,
|
| 1716 |
+
"learning_rate": 3.4744005325017073e-06,
|
| 1717 |
+
"loss": 0.0046,
|
| 1718 |
+
"step": 2440
|
| 1719 |
+
},
|
| 1720 |
+
{
|
| 1721 |
+
"epoch": 1.5144535476889782,
|
| 1722 |
+
"grad_norm": 0.04004015028476715,
|
| 1723 |
+
"learning_rate": 3.3930338883575564e-06,
|
| 1724 |
+
"loss": 0.0048,
|
| 1725 |
+
"step": 2450
|
| 1726 |
+
},
|
| 1727 |
+
{
|
| 1728 |
+
"epoch": 1.5206368835987014,
|
| 1729 |
+
"grad_norm": 0.04242485761642456,
|
| 1730 |
+
"learning_rate": 3.3124362239060627e-06,
|
| 1731 |
+
"loss": 0.0051,
|
| 1732 |
+
"step": 2460
|
| 1733 |
+
},
|
| 1734 |
+
{
|
| 1735 |
+
"epoch": 1.5268202195084248,
|
| 1736 |
+
"grad_norm": 0.035334572196006775,
|
| 1737 |
+
"learning_rate": 3.2326169198472555e-06,
|
| 1738 |
+
"loss": 0.005,
|
| 1739 |
+
"step": 2470
|
| 1740 |
+
},
|
| 1741 |
+
{
|
| 1742 |
+
"epoch": 1.5330035554181483,
|
| 1743 |
+
"grad_norm": 0.03957268223166466,
|
| 1744 |
+
"learning_rate": 3.1535852662884138e-06,
|
| 1745 |
+
"loss": 0.0048,
|
| 1746 |
+
"step": 2480
|
| 1747 |
+
},
|
| 1748 |
+
{
|
| 1749 |
+
"epoch": 1.5391868913278715,
|
| 1750 |
+
"grad_norm": 0.03457095846533775,
|
| 1751 |
+
"learning_rate": 3.0753504616627694e-06,
|
| 1752 |
+
"loss": 0.0048,
|
| 1753 |
+
"step": 2490
|
| 1754 |
+
},
|
| 1755 |
+
{
|
| 1756 |
+
"epoch": 1.5453702272375947,
|
| 1757 |
+
"grad_norm": 0.03342267498373985,
|
| 1758 |
+
"learning_rate": 2.9979216116589203e-06,
|
| 1759 |
+
"loss": 0.0048,
|
| 1760 |
+
"step": 2500
|
| 1761 |
+
},
|
| 1762 |
+
{
|
| 1763 |
+
"epoch": 1.5515535631473178,
|
| 1764 |
+
"grad_norm": 0.0400426909327507,
|
| 1765 |
+
"learning_rate": 2.9213077281610336e-06,
|
| 1766 |
+
"loss": 0.0046,
|
| 1767 |
+
"step": 2510
|
| 1768 |
+
},
|
| 1769 |
+
{
|
| 1770 |
+
"epoch": 1.5577368990570413,
|
| 1771 |
+
"grad_norm": 0.034529346972703934,
|
| 1772 |
+
"learning_rate": 2.8455177281999515e-06,
|
| 1773 |
+
"loss": 0.0048,
|
| 1774 |
+
"step": 2520
|
| 1775 |
+
},
|
| 1776 |
+
{
|
| 1777 |
+
"epoch": 1.5639202349667647,
|
| 1778 |
+
"grad_norm": 0.042129479348659515,
|
| 1779 |
+
"learning_rate": 2.7705604329153434e-06,
|
| 1780 |
+
"loss": 0.0048,
|
| 1781 |
+
"step": 2530
|
| 1782 |
+
},
|
| 1783 |
+
{
|
| 1784 |
+
"epoch": 1.5701035708764879,
|
| 1785 |
+
"grad_norm": 0.03391699492931366,
|
| 1786 |
+
"learning_rate": 2.6964445665290274e-06,
|
| 1787 |
+
"loss": 0.0048,
|
| 1788 |
+
"step": 2540
|
| 1789 |
+
},
|
| 1790 |
+
{
|
| 1791 |
+
"epoch": 1.576286906786211,
|
| 1792 |
+
"grad_norm": 0.03239929676055908,
|
| 1793 |
+
"learning_rate": 2.6231787553295583e-06,
|
| 1794 |
+
"loss": 0.005,
|
| 1795 |
+
"step": 2550
|
| 1796 |
+
},
|
| 1797 |
+
{
|
| 1798 |
+
"epoch": 1.5824702426959345,
|
| 1799 |
+
"grad_norm": 0.03297235071659088,
|
| 1800 |
+
"learning_rate": 2.550771526668221e-06,
|
| 1801 |
+
"loss": 0.0047,
|
| 1802 |
+
"step": 2560
|
| 1803 |
+
},
|
| 1804 |
+
{
|
| 1805 |
+
"epoch": 1.5886535786056577,
|
| 1806 |
+
"grad_norm": 0.03652636706829071,
|
| 1807 |
+
"learning_rate": 2.47923130796655e-06,
|
| 1808 |
+
"loss": 0.0048,
|
| 1809 |
+
"step": 2570
|
| 1810 |
+
},
|
| 1811 |
+
{
|
| 1812 |
+
"epoch": 1.5948369145153811,
|
| 1813 |
+
"grad_norm": 0.03381171077489853,
|
| 1814 |
+
"learning_rate": 2.408566425735446e-06,
|
| 1815 |
+
"loss": 0.0047,
|
| 1816 |
+
"step": 2580
|
| 1817 |
+
},
|
| 1818 |
+
{
|
| 1819 |
+
"epoch": 1.6010202504251043,
|
| 1820 |
+
"grad_norm": 0.03702075779438019,
|
| 1821 |
+
"learning_rate": 2.338785104606082e-06,
|
| 1822 |
+
"loss": 0.0046,
|
| 1823 |
+
"step": 2590
|
| 1824 |
+
},
|
| 1825 |
+
{
|
| 1826 |
+
"epoch": 1.6072035863348275,
|
| 1827 |
+
"grad_norm": 0.03340402618050575,
|
| 1828 |
+
"learning_rate": 2.26989546637263e-06,
|
| 1829 |
+
"loss": 0.0047,
|
| 1830 |
+
"step": 2600
|
| 1831 |
+
},
|
| 1832 |
+
{
|
| 1833 |
+
"epoch": 1.613386922244551,
|
| 1834 |
+
"grad_norm": 0.030743056908249855,
|
| 1835 |
+
"learning_rate": 2.2019055290469816e-06,
|
| 1836 |
+
"loss": 0.0048,
|
| 1837 |
+
"step": 2610
|
| 1838 |
+
},
|
| 1839 |
+
{
|
| 1840 |
+
"epoch": 1.6195702581542744,
|
| 1841 |
+
"grad_norm": 0.03447384014725685,
|
| 1842 |
+
"learning_rate": 2.1348232059255293e-06,
|
| 1843 |
+
"loss": 0.0049,
|
| 1844 |
+
"step": 2620
|
| 1845 |
+
},
|
| 1846 |
+
{
|
| 1847 |
+
"epoch": 1.6257535940639976,
|
| 1848 |
+
"grad_norm": 0.03731811046600342,
|
| 1849 |
+
"learning_rate": 2.0686563046681507e-06,
|
| 1850 |
+
"loss": 0.0047,
|
| 1851 |
+
"step": 2630
|
| 1852 |
+
},
|
| 1853 |
+
{
|
| 1854 |
+
"epoch": 1.6319369299737208,
|
| 1855 |
+
"grad_norm": 0.03979882597923279,
|
| 1856 |
+
"learning_rate": 2.0034125263894777e-06,
|
| 1857 |
+
"loss": 0.0047,
|
| 1858 |
+
"step": 2640
|
| 1859 |
+
},
|
| 1860 |
+
{
|
| 1861 |
+
"epoch": 1.6381202658834442,
|
| 1862 |
+
"grad_norm": 0.030915752053260803,
|
| 1863 |
+
"learning_rate": 1.9390994647625693e-06,
|
| 1864 |
+
"loss": 0.0043,
|
| 1865 |
+
"step": 2650
|
| 1866 |
+
},
|
| 1867 |
+
{
|
| 1868 |
+
"epoch": 1.6443036017931674,
|
| 1869 |
+
"grad_norm": 0.03616530820727348,
|
| 1870 |
+
"learning_rate": 1.8757246051350908e-06,
|
| 1871 |
+
"loss": 0.0047,
|
| 1872 |
+
"step": 2660
|
| 1873 |
+
},
|
| 1874 |
+
{
|
| 1875 |
+
"epoch": 1.6504869377028908,
|
| 1876 |
+
"grad_norm": 0.03190992400050163,
|
| 1877 |
+
"learning_rate": 1.813295323658103e-06,
|
| 1878 |
+
"loss": 0.0045,
|
| 1879 |
+
"step": 2670
|
| 1880 |
+
},
|
| 1881 |
+
{
|
| 1882 |
+
"epoch": 1.656670273612614,
|
| 1883 |
+
"grad_norm": 0.032364994287490845,
|
| 1884 |
+
"learning_rate": 1.7518188864275498e-06,
|
| 1885 |
+
"loss": 0.0045,
|
| 1886 |
+
"step": 2680
|
| 1887 |
+
},
|
| 1888 |
+
{
|
| 1889 |
+
"epoch": 1.6628536095223372,
|
| 1890 |
+
"grad_norm": 0.03670560568571091,
|
| 1891 |
+
"learning_rate": 1.6913024486385733e-06,
|
| 1892 |
+
"loss": 0.0047,
|
| 1893 |
+
"step": 2690
|
| 1894 |
+
},
|
| 1895 |
+
{
|
| 1896 |
+
"epoch": 1.6690369454320606,
|
| 1897 |
+
"grad_norm": 0.0347522608935833,
|
| 1898 |
+
"learning_rate": 1.6317530537527148e-06,
|
| 1899 |
+
"loss": 0.0047,
|
| 1900 |
+
"step": 2700
|
| 1901 |
+
},
|
| 1902 |
+
{
|
| 1903 |
+
"epoch": 1.675220281341784,
|
| 1904 |
+
"grad_norm": 0.03402375429868698,
|
| 1905 |
+
"learning_rate": 1.5731776326781435e-06,
|
| 1906 |
+
"loss": 0.0047,
|
| 1907 |
+
"step": 2710
|
| 1908 |
+
},
|
| 1909 |
+
{
|
| 1910 |
+
"epoch": 1.6814036172515072,
|
| 1911 |
+
"grad_norm": 0.034099772572517395,
|
| 1912 |
+
"learning_rate": 1.5155830029629614e-06,
|
| 1913 |
+
"loss": 0.0045,
|
| 1914 |
+
"step": 2720
|
| 1915 |
+
},
|
| 1916 |
+
{
|
| 1917 |
+
"epoch": 1.6875869531612304,
|
| 1918 |
+
"grad_norm": 0.035209812223911285,
|
| 1919 |
+
"learning_rate": 1.4589758680017263e-06,
|
| 1920 |
+
"loss": 0.0047,
|
| 1921 |
+
"step": 2730
|
| 1922 |
+
},
|
| 1923 |
+
{
|
| 1924 |
+
"epoch": 1.6937702890709536,
|
| 1925 |
+
"grad_norm": 0.03288722783327103,
|
| 1926 |
+
"learning_rate": 1.403362816255236e-06,
|
| 1927 |
+
"loss": 0.0044,
|
| 1928 |
+
"step": 2740
|
| 1929 |
+
},
|
| 1930 |
+
{
|
| 1931 |
+
"epoch": 1.699953624980677,
|
| 1932 |
+
"grad_norm": 0.031503114849328995,
|
| 1933 |
+
"learning_rate": 1.3487503204837182e-06,
|
| 1934 |
+
"loss": 0.005,
|
| 1935 |
+
"step": 2750
|
| 1936 |
+
},
|
| 1937 |
+
{
|
| 1938 |
+
"epoch": 1.7061369608904005,
|
| 1939 |
+
"grad_norm": 0.03957793861627579,
|
| 1940 |
+
"learning_rate": 1.2951447369934544e-06,
|
| 1941 |
+
"loss": 0.0046,
|
| 1942 |
+
"step": 2760
|
| 1943 |
+
},
|
| 1944 |
+
{
|
| 1945 |
+
"epoch": 1.7123202968001237,
|
| 1946 |
+
"grad_norm": 0.03468756750226021,
|
| 1947 |
+
"learning_rate": 1.2425523048969835e-06,
|
| 1948 |
+
"loss": 0.0048,
|
| 1949 |
+
"step": 2770
|
| 1950 |
+
},
|
| 1951 |
+
{
|
| 1952 |
+
"epoch": 1.7185036327098469,
|
| 1953 |
+
"grad_norm": 0.03237258270382881,
|
| 1954 |
+
"learning_rate": 1.190979145386939e-06,
|
| 1955 |
+
"loss": 0.0046,
|
| 1956 |
+
"step": 2780
|
| 1957 |
+
},
|
| 1958 |
+
{
|
| 1959 |
+
"epoch": 1.7246869686195703,
|
| 1960 |
+
"grad_norm": 0.032560866326093674,
|
| 1961 |
+
"learning_rate": 1.1404312610235968e-06,
|
| 1962 |
+
"loss": 0.0045,
|
| 1963 |
+
"step": 2790
|
| 1964 |
+
},
|
| 1965 |
+
{
|
| 1966 |
+
"epoch": 1.7308703045292937,
|
| 1967 |
+
"grad_norm": 0.03548423945903778,
|
| 1968 |
+
"learning_rate": 1.0909145350362516e-06,
|
| 1969 |
+
"loss": 0.0046,
|
| 1970 |
+
"step": 2800
|
| 1971 |
+
},
|
| 1972 |
+
{
|
| 1973 |
+
"epoch": 1.7370536404390169,
|
| 1974 |
+
"grad_norm": 0.04064382612705231,
|
| 1975 |
+
"learning_rate": 1.042434730638473e-06,
|
| 1976 |
+
"loss": 0.0046,
|
| 1977 |
+
"step": 2810
|
| 1978 |
+
},
|
| 1979 |
+
{
|
| 1980 |
+
"epoch": 1.74323697634874,
|
| 1981 |
+
"grad_norm": 0.03297872841358185,
|
| 1982 |
+
"learning_rate": 9.949974903573223e-07,
|
| 1983 |
+
"loss": 0.0044,
|
| 1984 |
+
"step": 2820
|
| 1985 |
+
},
|
| 1986 |
+
{
|
| 1987 |
+
"epoch": 1.7494203122584633,
|
| 1988 |
+
"grad_norm": 0.03142615780234337,
|
| 1989 |
+
"learning_rate": 9.486083353766262e-07,
|
| 1990 |
+
"loss": 0.0045,
|
| 1991 |
+
"step": 2830
|
| 1992 |
+
},
|
| 1993 |
+
{
|
| 1994 |
+
"epoch": 1.7556036481681867,
|
| 1995 |
+
"grad_norm": 0.032335978001356125,
|
| 1996 |
+
"learning_rate": 9.032726648943779e-07,
|
| 1997 |
+
"loss": 0.0047,
|
| 1998 |
+
"step": 2840
|
| 1999 |
+
},
|
| 2000 |
+
{
|
| 2001 |
+
"epoch": 1.7617869840779101,
|
| 2002 |
+
"grad_norm": 0.032847121357917786,
|
| 2003 |
+
"learning_rate": 8.58995755494314e-07,
|
| 2004 |
+
"loss": 0.0043,
|
| 2005 |
+
"step": 2850
|
| 2006 |
+
},
|
| 2007 |
+
{
|
| 2008 |
+
"epoch": 1.7679703199876333,
|
| 2009 |
+
"grad_norm": 0.03723368048667908,
|
| 2010 |
+
"learning_rate": 8.157827605317892e-07,
|
| 2011 |
+
"loss": 0.0045,
|
| 2012 |
+
"step": 2860
|
| 2013 |
+
},
|
| 2014 |
+
{
|
| 2015 |
+
"epoch": 1.7741536558973565,
|
| 2016 |
+
"grad_norm": 0.03200025483965874,
|
| 2017 |
+
"learning_rate": 7.736387095339748e-07,
|
| 2018 |
+
"loss": 0.0046,
|
| 2019 |
+
"step": 2870
|
| 2020 |
+
},
|
| 2021 |
+
{
|
| 2022 |
+
"epoch": 1.78033699180708,
|
| 2023 |
+
"grad_norm": 0.03175206854939461,
|
| 2024 |
+
"learning_rate": 7.325685076144795e-07,
|
| 2025 |
+
"loss": 0.0044,
|
| 2026 |
+
"step": 2880
|
| 2027 |
+
},
|
| 2028 |
+
{
|
| 2029 |
+
"epoch": 1.7865203277168034,
|
| 2030 |
+
"grad_norm": 0.03391426429152489,
|
| 2031 |
+
"learning_rate": 6.925769349024459e-07,
|
| 2032 |
+
"loss": 0.0046,
|
| 2033 |
+
"step": 2890
|
| 2034 |
+
},
|
| 2035 |
+
{
|
| 2036 |
+
"epoch": 1.7927036636265266,
|
| 2037 |
+
"grad_norm": 0.033382490277290344,
|
| 2038 |
+
"learning_rate": 6.536686459861918e-07,
|
| 2039 |
+
"loss": 0.0044,
|
| 2040 |
+
"step": 2900
|
| 2041 |
+
},
|
| 2042 |
+
{
|
| 2043 |
+
"epoch": 1.7988869995362498,
|
| 2044 |
+
"grad_norm": 0.03503987565636635,
|
| 2045 |
+
"learning_rate": 6.158481693714735e-07,
|
| 2046 |
+
"loss": 0.0045,
|
| 2047 |
+
"step": 2910
|
| 2048 |
+
},
|
| 2049 |
+
{
|
| 2050 |
+
"epoch": 1.805070335445973,
|
| 2051 |
+
"grad_norm": 0.03369370475411415,
|
| 2052 |
+
"learning_rate": 5.791199069544074e-07,
|
| 2053 |
+
"loss": 0.0043,
|
| 2054 |
+
"step": 2920
|
| 2055 |
+
},
|
| 2056 |
+
{
|
| 2057 |
+
"epoch": 1.8112536713556964,
|
| 2058 |
+
"grad_norm": 0.03411993384361267,
|
| 2059 |
+
"learning_rate": 5.434881335091458e-07,
|
| 2060 |
+
"loss": 0.0047,
|
| 2061 |
+
"step": 2930
|
| 2062 |
+
},
|
| 2063 |
+
{
|
| 2064 |
+
"epoch": 1.8174370072654198,
|
| 2065 |
+
"grad_norm": 0.031462300568819046,
|
| 2066 |
+
"learning_rate": 5.089569961903318e-07,
|
| 2067 |
+
"loss": 0.0048,
|
| 2068 |
+
"step": 2940
|
| 2069 |
+
},
|
| 2070 |
+
{
|
| 2071 |
+
"epoch": 1.823620343175143,
|
| 2072 |
+
"grad_norm": 0.03133223205804825,
|
| 2073 |
+
"learning_rate": 4.755305140504185e-07,
|
| 2074 |
+
"loss": 0.0044,
|
| 2075 |
+
"step": 2950
|
| 2076 |
+
},
|
| 2077 |
+
{
|
| 2078 |
+
"epoch": 1.8298036790848662,
|
| 2079 |
+
"grad_norm": 0.03286576643586159,
|
| 2080 |
+
"learning_rate": 4.432125775718965e-07,
|
| 2081 |
+
"loss": 0.0044,
|
| 2082 |
+
"step": 2960
|
| 2083 |
+
},
|
| 2084 |
+
{
|
| 2085 |
+
"epoch": 1.8359870149945896,
|
| 2086 |
+
"grad_norm": 0.0382905974984169,
|
| 2087 |
+
"learning_rate": 4.120069482144773e-07,
|
| 2088 |
+
"loss": 0.0045,
|
| 2089 |
+
"step": 2970
|
| 2090 |
+
},
|
| 2091 |
+
{
|
| 2092 |
+
"epoch": 1.842170350904313,
|
| 2093 |
+
"grad_norm": 0.0318513922393322,
|
| 2094 |
+
"learning_rate": 3.8191725797730897e-07,
|
| 2095 |
+
"loss": 0.0045,
|
| 2096 |
+
"step": 2980
|
| 2097 |
+
},
|
| 2098 |
+
{
|
| 2099 |
+
"epoch": 1.8483536868140362,
|
| 2100 |
+
"grad_norm": 0.03260161355137825,
|
| 2101 |
+
"learning_rate": 3.529470089762421e-07,
|
| 2102 |
+
"loss": 0.0045,
|
| 2103 |
+
"step": 2990
|
| 2104 |
+
},
|
| 2105 |
+
{
|
| 2106 |
+
"epoch": 1.8545370227237594,
|
| 2107 |
+
"grad_norm": 0.03626921400427818,
|
| 2108 |
+
"learning_rate": 3.2509957303622496e-07,
|
| 2109 |
+
"loss": 0.0045,
|
| 2110 |
+
"step": 3000
|
| 2111 |
+
},
|
| 2112 |
+
{
|
| 2113 |
+
"epoch": 1.8607203586334826,
|
| 2114 |
+
"grad_norm": 0.033349767327308655,
|
| 2115 |
+
"learning_rate": 2.983781912988604e-07,
|
| 2116 |
+
"loss": 0.0044,
|
| 2117 |
+
"step": 3010
|
| 2118 |
+
},
|
| 2119 |
+
{
|
| 2120 |
+
"epoch": 1.866903694543206,
|
| 2121 |
+
"grad_norm": 0.03295992314815521,
|
| 2122 |
+
"learning_rate": 2.727859738451721e-07,
|
| 2123 |
+
"loss": 0.0044,
|
| 2124 |
+
"step": 3020
|
| 2125 |
+
},
|
| 2126 |
+
{
|
| 2127 |
+
"epoch": 1.8730870304529295,
|
| 2128 |
+
"grad_norm": 0.03412463888525963,
|
| 2129 |
+
"learning_rate": 2.4832589933361907e-07,
|
| 2130 |
+
"loss": 0.0042,
|
| 2131 |
+
"step": 3030
|
| 2132 |
+
},
|
| 2133 |
+
{
|
| 2134 |
+
"epoch": 1.8792703663626527,
|
| 2135 |
+
"grad_norm": 0.03095577284693718,
|
| 2136 |
+
"learning_rate": 2.2500081465341993e-07,
|
| 2137 |
+
"loss": 0.0043,
|
| 2138 |
+
"step": 3040
|
| 2139 |
+
},
|
| 2140 |
+
{
|
| 2141 |
+
"epoch": 1.8854537022723759,
|
| 2142 |
+
"grad_norm": 0.03507233411073685,
|
| 2143 |
+
"learning_rate": 2.0281343459319868e-07,
|
| 2144 |
+
"loss": 0.0044,
|
| 2145 |
+
"step": 3050
|
| 2146 |
+
},
|
| 2147 |
+
{
|
| 2148 |
+
"epoch": 1.8916370381820993,
|
| 2149 |
+
"grad_norm": 0.03278861194849014,
|
| 2150 |
+
"learning_rate": 1.8176634152501816e-07,
|
| 2151 |
+
"loss": 0.0043,
|
| 2152 |
+
"step": 3060
|
| 2153 |
+
},
|
| 2154 |
+
{
|
| 2155 |
+
"epoch": 1.8978203740918227,
|
| 2156 |
+
"grad_norm": 0.03288375213742256,
|
| 2157 |
+
"learning_rate": 1.618619851038161e-07,
|
| 2158 |
+
"loss": 0.0045,
|
| 2159 |
+
"step": 3070
|
| 2160 |
+
},
|
| 2161 |
+
{
|
| 2162 |
+
"epoch": 1.904003710001546,
|
| 2163 |
+
"grad_norm": 0.03299954906105995,
|
| 2164 |
+
"learning_rate": 1.4310268198229115e-07,
|
| 2165 |
+
"loss": 0.0044,
|
| 2166 |
+
"step": 3080
|
| 2167 |
+
},
|
| 2168 |
+
{
|
| 2169 |
+
"epoch": 1.910187045911269,
|
| 2170 |
+
"grad_norm": 0.03464515134692192,
|
| 2171 |
+
"learning_rate": 1.2549061554127494e-07,
|
| 2172 |
+
"loss": 0.0043,
|
| 2173 |
+
"step": 3090
|
| 2174 |
+
},
|
| 2175 |
+
{
|
| 2176 |
+
"epoch": 1.9163703818209923,
|
| 2177 |
+
"grad_norm": 0.03539302200078964,
|
| 2178 |
+
"learning_rate": 1.0902783563560226e-07,
|
| 2179 |
+
"loss": 0.0046,
|
| 2180 |
+
"step": 3100
|
| 2181 |
+
},
|
| 2182 |
+
{
|
| 2183 |
+
"epoch": 1.9225537177307157,
|
| 2184 |
+
"grad_norm": 0.03203083202242851,
|
| 2185 |
+
"learning_rate": 9.371625835553622e-08,
|
| 2186 |
+
"loss": 0.0045,
|
| 2187 |
+
"step": 3110
|
| 2188 |
+
},
|
| 2189 |
+
{
|
| 2190 |
+
"epoch": 1.9287370536404391,
|
| 2191 |
+
"grad_norm": 0.03126191347837448,
|
| 2192 |
+
"learning_rate": 7.955766580375334e-08,
|
| 2193 |
+
"loss": 0.0042,
|
| 2194 |
+
"step": 3120
|
| 2195 |
+
},
|
| 2196 |
+
{
|
| 2197 |
+
"epoch": 1.9349203895501623,
|
| 2198 |
+
"grad_norm": 0.031476061791181564,
|
| 2199 |
+
"learning_rate": 6.655370588792732e-08,
|
| 2200 |
+
"loss": 0.0045,
|
| 2201 |
+
"step": 3130
|
| 2202 |
+
},
|
| 2203 |
+
{
|
| 2204 |
+
"epoch": 1.9411037254598855,
|
| 2205 |
+
"grad_norm": 0.03566085919737816,
|
| 2206 |
+
"learning_rate": 5.470589212892785e-08,
|
| 2207 |
+
"loss": 0.0044,
|
| 2208 |
+
"step": 3140
|
| 2209 |
+
},
|
| 2210 |
+
{
|
| 2211 |
+
"epoch": 1.947287061369609,
|
| 2212 |
+
"grad_norm": 0.030942443758249283,
|
| 2213 |
+
"learning_rate": 4.401560348466505e-08,
|
| 2214 |
+
"loss": 0.0043,
|
| 2215 |
+
"step": 3150
|
| 2216 |
+
},
|
| 2217 |
+
{
|
| 2218 |
+
"epoch": 1.9534703972793324,
|
| 2219 |
+
"grad_norm": 0.03156135976314545,
|
| 2220 |
+
"learning_rate": 3.448408418959326e-08,
|
| 2221 |
+
"loss": 0.0043,
|
| 2222 |
+
"step": 3160
|
| 2223 |
+
},
|
| 2224 |
+
{
|
| 2225 |
+
"epoch": 1.9596537331890556,
|
| 2226 |
+
"grad_norm": 0.03293183073401451,
|
| 2227 |
+
"learning_rate": 2.6112443609895845e-08,
|
| 2228 |
+
"loss": 0.0044,
|
| 2229 |
+
"step": 3170
|
| 2230 |
+
},
|
| 2231 |
+
{
|
| 2232 |
+
"epoch": 1.9658370690987788,
|
| 2233 |
+
"grad_norm": 0.03247111290693283,
|
| 2234 |
+
"learning_rate": 1.890165611436734e-08,
|
| 2235 |
+
"loss": 0.0045,
|
| 2236 |
+
"step": 3180
|
| 2237 |
+
},
|
| 2238 |
+
{
|
| 2239 |
+
"epoch": 1.972020405008502,
|
| 2240 |
+
"grad_norm": 0.03142822906374931,
|
| 2241 |
+
"learning_rate": 1.285256096100529e-08,
|
| 2242 |
+
"loss": 0.0044,
|
| 2243 |
+
"step": 3190
|
| 2244 |
+
},
|
| 2245 |
+
{
|
| 2246 |
+
"epoch": 1.9782037409182254,
|
| 2247 |
+
"grad_norm": 0.034565262496471405,
|
| 2248 |
+
"learning_rate": 7.965862199330598e-09,
|
| 2249 |
+
"loss": 0.0045,
|
| 2250 |
+
"step": 3200
|
| 2251 |
+
}
|
| 2252 |
+
],
|
| 2253 |
+
"logging_steps": 10,
|
| 2254 |
+
"max_steps": 3236,
|
| 2255 |
+
"num_input_tokens_seen": 0,
|
| 2256 |
+
"num_train_epochs": 2,
|
| 2257 |
+
"save_steps": 100,
|
| 2258 |
+
"stateful_callbacks": {
|
| 2259 |
+
"TrainerControl": {
|
| 2260 |
+
"args": {
|
| 2261 |
+
"should_epoch_stop": false,
|
| 2262 |
+
"should_evaluate": false,
|
| 2263 |
+
"should_log": false,
|
| 2264 |
+
"should_save": true,
|
| 2265 |
+
"should_training_stop": false
|
| 2266 |
+
},
|
| 2267 |
+
"attributes": {}
|
| 2268 |
+
}
|
| 2269 |
+
},
|
| 2270 |
+
"total_flos": 7.045427946497612e+19,
|
| 2271 |
+
"train_batch_size": 8,
|
| 2272 |
+
"trial_name": null,
|
| 2273 |
+
"trial_params": null
|
| 2274 |
+
}
|
checkpoint-3200/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc8b833b867ea533744d2414dc3b6b6a0d0eef687754e0cce57e2883b75a64ca
|
| 3 |
+
size 7953
|
checkpoint-3200/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-3200/zero_to_fp32.py
ADDED
|
@@ -0,0 +1,760 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
# DeepSpeed Team
|
| 7 |
+
|
| 8 |
+
# This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
|
| 9 |
+
# copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
|
| 10 |
+
# the future. Once extracted, the weights don't require DeepSpeed and can be used in any
|
| 11 |
+
# application.
|
| 12 |
+
#
|
| 13 |
+
# example:
|
| 14 |
+
# python zero_to_fp32.py . output_dir/
|
| 15 |
+
# or
|
| 16 |
+
# python zero_to_fp32.py . output_dir/ --safe_serialization
|
| 17 |
+
|
| 18 |
+
import argparse
|
| 19 |
+
import torch
|
| 20 |
+
import glob
|
| 21 |
+
import math
|
| 22 |
+
import os
|
| 23 |
+
import re
|
| 24 |
+
import gc
|
| 25 |
+
import json
|
| 26 |
+
import numpy as np
|
| 27 |
+
from tqdm import tqdm
|
| 28 |
+
from collections import OrderedDict
|
| 29 |
+
from dataclasses import dataclass
|
| 30 |
+
|
| 31 |
+
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
|
| 32 |
+
# DeepSpeed data structures it has to be available in the current python environment.
|
| 33 |
+
from deepspeed.utils import logger
|
| 34 |
+
from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
|
| 35 |
+
FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
|
| 36 |
+
FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
@dataclass
|
| 40 |
+
class zero_model_state:
|
| 41 |
+
buffers: dict()
|
| 42 |
+
param_shapes: dict()
|
| 43 |
+
shared_params: list
|
| 44 |
+
ds_version: int
|
| 45 |
+
frozen_param_shapes: dict()
|
| 46 |
+
frozen_param_fragments: dict()
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
debug = 0
|
| 50 |
+
|
| 51 |
+
# load to cpu
|
| 52 |
+
device = torch.device('cpu')
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def atoi(text):
|
| 56 |
+
return int(text) if text.isdigit() else text
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def natural_keys(text):
|
| 60 |
+
'''
|
| 61 |
+
alist.sort(key=natural_keys) sorts in human order
|
| 62 |
+
http://nedbatchelder.com/blog/200712/human_sorting.html
|
| 63 |
+
(See Toothy's implementation in the comments)
|
| 64 |
+
'''
|
| 65 |
+
return [atoi(c) for c in re.split(r'(\d+)', text)]
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def get_model_state_file(checkpoint_dir, zero_stage):
|
| 69 |
+
if not os.path.isdir(checkpoint_dir):
|
| 70 |
+
raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
|
| 71 |
+
|
| 72 |
+
# there should be only one file
|
| 73 |
+
if zero_stage <= 2:
|
| 74 |
+
file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
|
| 75 |
+
elif zero_stage == 3:
|
| 76 |
+
file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
|
| 77 |
+
|
| 78 |
+
if not os.path.exists(file):
|
| 79 |
+
raise FileNotFoundError(f"can't find model states file at '{file}'")
|
| 80 |
+
|
| 81 |
+
return file
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def get_checkpoint_files(checkpoint_dir, glob_pattern):
|
| 85 |
+
# XXX: need to test that this simple glob rule works for multi-node setup too
|
| 86 |
+
ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
|
| 87 |
+
|
| 88 |
+
if len(ckpt_files) == 0:
|
| 89 |
+
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
|
| 90 |
+
|
| 91 |
+
return ckpt_files
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def get_optim_files(checkpoint_dir):
|
| 95 |
+
return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
def get_model_state_files(checkpoint_dir):
|
| 99 |
+
return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def parse_model_states(files):
|
| 103 |
+
zero_model_states = []
|
| 104 |
+
for file in files:
|
| 105 |
+
state_dict = torch.load(file, map_location=device, weights_only=False)
|
| 106 |
+
|
| 107 |
+
if BUFFER_NAMES not in state_dict:
|
| 108 |
+
raise ValueError(f"{file} is not a model state checkpoint")
|
| 109 |
+
buffer_names = state_dict[BUFFER_NAMES]
|
| 110 |
+
if debug:
|
| 111 |
+
print("Found buffers:", buffer_names)
|
| 112 |
+
|
| 113 |
+
# recover just the buffers while restoring them to fp32 if they were saved in fp16
|
| 114 |
+
buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
|
| 115 |
+
param_shapes = state_dict[PARAM_SHAPES]
|
| 116 |
+
|
| 117 |
+
# collect parameters that are included in param_shapes
|
| 118 |
+
param_names = []
|
| 119 |
+
for s in param_shapes:
|
| 120 |
+
for name in s.keys():
|
| 121 |
+
param_names.append(name)
|
| 122 |
+
|
| 123 |
+
# update with frozen parameters
|
| 124 |
+
frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
|
| 125 |
+
if frozen_param_shapes is not None:
|
| 126 |
+
if debug:
|
| 127 |
+
print(f"Found frozen_param_shapes: {frozen_param_shapes}")
|
| 128 |
+
param_names += list(frozen_param_shapes.keys())
|
| 129 |
+
|
| 130 |
+
# handle shared params
|
| 131 |
+
shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
|
| 132 |
+
|
| 133 |
+
ds_version = state_dict.get(DS_VERSION, None)
|
| 134 |
+
|
| 135 |
+
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
|
| 136 |
+
|
| 137 |
+
z_model_state = zero_model_state(buffers=buffers,
|
| 138 |
+
param_shapes=param_shapes,
|
| 139 |
+
shared_params=shared_params,
|
| 140 |
+
ds_version=ds_version,
|
| 141 |
+
frozen_param_shapes=frozen_param_shapes,
|
| 142 |
+
frozen_param_fragments=frozen_param_fragments)
|
| 143 |
+
zero_model_states.append(z_model_state)
|
| 144 |
+
|
| 145 |
+
return zero_model_states
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def parse_optim_states(files, ds_checkpoint_dir):
|
| 149 |
+
total_files = len(files)
|
| 150 |
+
state_dicts = []
|
| 151 |
+
for f in tqdm(files, desc='Loading checkpoint shards'):
|
| 152 |
+
state_dict = torch.load(f, map_location=device, mmap=True, weights_only=False)
|
| 153 |
+
# immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
|
| 154 |
+
# and also handle the case where it was already removed by another helper script
|
| 155 |
+
state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
|
| 156 |
+
state_dicts.append(state_dict)
|
| 157 |
+
|
| 158 |
+
if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
|
| 159 |
+
raise ValueError(f"{files[0]} is not a zero checkpoint")
|
| 160 |
+
zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
|
| 161 |
+
world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
|
| 162 |
+
|
| 163 |
+
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert
|
| 164 |
+
# parameters can be different from data parallelism for non-expert parameters. So we can just
|
| 165 |
+
# use the max of the partition_count to get the dp world_size.
|
| 166 |
+
|
| 167 |
+
if type(world_size) is list:
|
| 168 |
+
world_size = max(world_size)
|
| 169 |
+
|
| 170 |
+
if world_size != total_files:
|
| 171 |
+
raise ValueError(
|
| 172 |
+
f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
|
| 173 |
+
"Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
|
| 174 |
+
)
|
| 175 |
+
|
| 176 |
+
# the groups are named differently in each stage
|
| 177 |
+
if zero_stage <= 2:
|
| 178 |
+
fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
|
| 179 |
+
elif zero_stage == 3:
|
| 180 |
+
fp32_groups_key = FP32_FLAT_GROUPS
|
| 181 |
+
else:
|
| 182 |
+
raise ValueError(f"unknown zero stage {zero_stage}")
|
| 183 |
+
|
| 184 |
+
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
|
| 185 |
+
return zero_stage, world_size, fp32_flat_groups
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
|
| 189 |
+
"""
|
| 190 |
+
Returns fp32 state_dict reconstructed from ds checkpoint
|
| 191 |
+
|
| 192 |
+
Args:
|
| 193 |
+
- ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
|
| 194 |
+
|
| 195 |
+
"""
|
| 196 |
+
print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
|
| 197 |
+
|
| 198 |
+
optim_files = get_optim_files(ds_checkpoint_dir)
|
| 199 |
+
zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
|
| 200 |
+
print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
|
| 201 |
+
|
| 202 |
+
model_files = get_model_state_files(ds_checkpoint_dir)
|
| 203 |
+
|
| 204 |
+
zero_model_states = parse_model_states(model_files)
|
| 205 |
+
print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
|
| 206 |
+
|
| 207 |
+
if zero_stage <= 2:
|
| 208 |
+
return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 209 |
+
exclude_frozen_parameters)
|
| 210 |
+
elif zero_stage == 3:
|
| 211 |
+
return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 212 |
+
exclude_frozen_parameters)
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def _zero2_merge_frozen_params(state_dict, zero_model_states):
|
| 216 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 217 |
+
return
|
| 218 |
+
|
| 219 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 220 |
+
frozen_param_fragments = zero_model_states[0].frozen_param_fragments
|
| 221 |
+
|
| 222 |
+
if debug:
|
| 223 |
+
num_elem = sum(s.numel() for s in frozen_param_shapes.values())
|
| 224 |
+
print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 225 |
+
|
| 226 |
+
wanted_params = len(frozen_param_shapes)
|
| 227 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 228 |
+
avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
|
| 229 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 230 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 231 |
+
|
| 232 |
+
total_params = 0
|
| 233 |
+
total_numel = 0
|
| 234 |
+
for name, shape in frozen_param_shapes.items():
|
| 235 |
+
total_params += 1
|
| 236 |
+
unpartitioned_numel = shape.numel()
|
| 237 |
+
total_numel += unpartitioned_numel
|
| 238 |
+
|
| 239 |
+
state_dict[name] = frozen_param_fragments[name]
|
| 240 |
+
|
| 241 |
+
if debug:
|
| 242 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 243 |
+
|
| 244 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
def _has_callable(obj, fn):
|
| 248 |
+
attr = getattr(obj, fn, None)
|
| 249 |
+
return callable(attr)
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 253 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 254 |
+
|
| 255 |
+
# Reconstruction protocol:
|
| 256 |
+
#
|
| 257 |
+
# XXX: document this
|
| 258 |
+
|
| 259 |
+
if debug:
|
| 260 |
+
for i in range(world_size):
|
| 261 |
+
for j in range(len(fp32_flat_groups[0])):
|
| 262 |
+
print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
|
| 263 |
+
|
| 264 |
+
# XXX: memory usage doubles here (zero2)
|
| 265 |
+
num_param_groups = len(fp32_flat_groups[0])
|
| 266 |
+
merged_single_partition_of_fp32_groups = []
|
| 267 |
+
for i in range(num_param_groups):
|
| 268 |
+
merged_partitions = [sd[i] for sd in fp32_flat_groups]
|
| 269 |
+
full_single_fp32_vector = torch.cat(merged_partitions, 0)
|
| 270 |
+
merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
|
| 271 |
+
avail_numel = sum(
|
| 272 |
+
[full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
|
| 273 |
+
|
| 274 |
+
if debug:
|
| 275 |
+
wanted_params = sum([len(shapes) for shapes in param_shapes])
|
| 276 |
+
wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
|
| 277 |
+
# not asserting if there is a mismatch due to possible padding
|
| 278 |
+
print(f"Have {avail_numel} numels to process.")
|
| 279 |
+
print(f"Need {wanted_numel} numels in {wanted_params} params.")
|
| 280 |
+
|
| 281 |
+
# params
|
| 282 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 283 |
+
# out-of-core computing solution
|
| 284 |
+
total_numel = 0
|
| 285 |
+
total_params = 0
|
| 286 |
+
for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
|
| 287 |
+
offset = 0
|
| 288 |
+
avail_numel = full_single_fp32_vector.numel()
|
| 289 |
+
for name, shape in shapes.items():
|
| 290 |
+
|
| 291 |
+
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
|
| 292 |
+
total_numel += unpartitioned_numel
|
| 293 |
+
total_params += 1
|
| 294 |
+
|
| 295 |
+
if debug:
|
| 296 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 297 |
+
state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
|
| 298 |
+
offset += unpartitioned_numel
|
| 299 |
+
|
| 300 |
+
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
|
| 301 |
+
# avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
|
| 302 |
+
# paddings performed in the code it's almost impossible to predict the exact numbers w/o the
|
| 303 |
+
# live optimizer object, so we are checking that the numbers are within the right range
|
| 304 |
+
align_to = 2 * world_size
|
| 305 |
+
|
| 306 |
+
def zero2_align(x):
|
| 307 |
+
return align_to * math.ceil(x / align_to)
|
| 308 |
+
|
| 309 |
+
if debug:
|
| 310 |
+
print(f"original offset={offset}, avail_numel={avail_numel}")
|
| 311 |
+
|
| 312 |
+
offset = zero2_align(offset)
|
| 313 |
+
avail_numel = zero2_align(avail_numel)
|
| 314 |
+
|
| 315 |
+
if debug:
|
| 316 |
+
print(f"aligned offset={offset}, avail_numel={avail_numel}")
|
| 317 |
+
|
| 318 |
+
# Sanity check
|
| 319 |
+
if offset != avail_numel:
|
| 320 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 321 |
+
|
| 322 |
+
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 326 |
+
exclude_frozen_parameters):
|
| 327 |
+
state_dict = OrderedDict()
|
| 328 |
+
|
| 329 |
+
# buffers
|
| 330 |
+
buffers = zero_model_states[0].buffers
|
| 331 |
+
state_dict.update(buffers)
|
| 332 |
+
if debug:
|
| 333 |
+
print(f"added {len(buffers)} buffers")
|
| 334 |
+
|
| 335 |
+
if not exclude_frozen_parameters:
|
| 336 |
+
_zero2_merge_frozen_params(state_dict, zero_model_states)
|
| 337 |
+
|
| 338 |
+
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 339 |
+
|
| 340 |
+
# recover shared parameters
|
| 341 |
+
for pair in zero_model_states[0].shared_params:
|
| 342 |
+
if pair[1] in state_dict:
|
| 343 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 344 |
+
|
| 345 |
+
return state_dict
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
def zero3_partitioned_param_info(unpartitioned_numel, world_size):
|
| 349 |
+
remainder = unpartitioned_numel % world_size
|
| 350 |
+
padding_numel = (world_size - remainder) if remainder else 0
|
| 351 |
+
partitioned_numel = math.ceil(unpartitioned_numel / world_size)
|
| 352 |
+
return partitioned_numel, padding_numel
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
|
| 356 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 357 |
+
return
|
| 358 |
+
|
| 359 |
+
if debug:
|
| 360 |
+
for i in range(world_size):
|
| 361 |
+
num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
|
| 362 |
+
print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 363 |
+
|
| 364 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 365 |
+
wanted_params = len(frozen_param_shapes)
|
| 366 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 367 |
+
avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
|
| 368 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 369 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 370 |
+
|
| 371 |
+
total_params = 0
|
| 372 |
+
total_numel = 0
|
| 373 |
+
for name, shape in zero_model_states[0].frozen_param_shapes.items():
|
| 374 |
+
total_params += 1
|
| 375 |
+
unpartitioned_numel = shape.numel()
|
| 376 |
+
total_numel += unpartitioned_numel
|
| 377 |
+
|
| 378 |
+
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
|
| 379 |
+
state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 380 |
+
|
| 381 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 382 |
+
|
| 383 |
+
if debug:
|
| 384 |
+
print(
|
| 385 |
+
f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 386 |
+
)
|
| 387 |
+
|
| 388 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
class GatheredTensor:
|
| 392 |
+
"""
|
| 393 |
+
A pseudo tensor that collects partitioned weights.
|
| 394 |
+
It is more memory efficient when there are multiple groups.
|
| 395 |
+
"""
|
| 396 |
+
|
| 397 |
+
def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape):
|
| 398 |
+
self.flat_groups = flat_groups
|
| 399 |
+
self.flat_groups_offset = flat_groups_offset
|
| 400 |
+
self.offset = offset
|
| 401 |
+
self.partitioned_numel = partitioned_numel
|
| 402 |
+
self.shape = shape
|
| 403 |
+
self.dtype = self.flat_groups[0][0].dtype
|
| 404 |
+
|
| 405 |
+
def contiguous(self):
|
| 406 |
+
"""
|
| 407 |
+
Merge partitioned weights from flat_groups into a single tensor.
|
| 408 |
+
"""
|
| 409 |
+
end_idx = self.offset + self.partitioned_numel
|
| 410 |
+
world_size = len(self.flat_groups)
|
| 411 |
+
pad_flat_param_chunks = []
|
| 412 |
+
|
| 413 |
+
for rank_i in range(world_size):
|
| 414 |
+
# for each rank, we need to collect weights from related group/groups
|
| 415 |
+
flat_groups_at_rank_i = self.flat_groups[rank_i]
|
| 416 |
+
start_group_id = None
|
| 417 |
+
end_group_id = None
|
| 418 |
+
for group_id in range(len(self.flat_groups_offset)):
|
| 419 |
+
if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]:
|
| 420 |
+
start_group_id = group_id
|
| 421 |
+
if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]:
|
| 422 |
+
end_group_id = group_id
|
| 423 |
+
break
|
| 424 |
+
# collect weights from related group/groups
|
| 425 |
+
for group_id in range(start_group_id, end_group_id + 1):
|
| 426 |
+
flat_tensor = flat_groups_at_rank_i[group_id]
|
| 427 |
+
start_offset = self.offset - self.flat_groups_offset[group_id]
|
| 428 |
+
end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id]
|
| 429 |
+
pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
|
| 430 |
+
|
| 431 |
+
# collect weights from all ranks
|
| 432 |
+
pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0)
|
| 433 |
+
param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous()
|
| 434 |
+
return param
|
| 435 |
+
|
| 436 |
+
|
| 437 |
+
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 438 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 439 |
+
avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
|
| 440 |
+
|
| 441 |
+
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
|
| 442 |
+
# param, re-consolidating each param, while dealing with padding if any
|
| 443 |
+
|
| 444 |
+
# merge list of dicts, preserving order
|
| 445 |
+
param_shapes = {k: v for d in param_shapes for k, v in d.items()}
|
| 446 |
+
|
| 447 |
+
if debug:
|
| 448 |
+
for i in range(world_size):
|
| 449 |
+
print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
|
| 450 |
+
|
| 451 |
+
wanted_params = len(param_shapes)
|
| 452 |
+
wanted_numel = sum(shape.numel() for shape in param_shapes.values())
|
| 453 |
+
# not asserting if there is a mismatch due to possible padding
|
| 454 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 455 |
+
print(f"Trainable params: Have {avail_numel} numels to process.")
|
| 456 |
+
print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
|
| 457 |
+
|
| 458 |
+
# params
|
| 459 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 460 |
+
# out-of-core computing solution
|
| 461 |
+
offset = 0
|
| 462 |
+
total_numel = 0
|
| 463 |
+
total_params = 0
|
| 464 |
+
flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]]))
|
| 465 |
+
for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'):
|
| 466 |
+
unpartitioned_numel = shape.numel()
|
| 467 |
+
total_numel += unpartitioned_numel
|
| 468 |
+
total_params += 1
|
| 469 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 470 |
+
|
| 471 |
+
if debug:
|
| 472 |
+
print(
|
| 473 |
+
f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 474 |
+
)
|
| 475 |
+
|
| 476 |
+
# memory efficient tensor
|
| 477 |
+
tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape)
|
| 478 |
+
state_dict[name] = tensor
|
| 479 |
+
offset += partitioned_numel
|
| 480 |
+
|
| 481 |
+
offset *= world_size
|
| 482 |
+
|
| 483 |
+
# Sanity check
|
| 484 |
+
if offset != avail_numel:
|
| 485 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 486 |
+
|
| 487 |
+
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 491 |
+
exclude_frozen_parameters):
|
| 492 |
+
state_dict = OrderedDict()
|
| 493 |
+
|
| 494 |
+
# buffers
|
| 495 |
+
buffers = zero_model_states[0].buffers
|
| 496 |
+
state_dict.update(buffers)
|
| 497 |
+
if debug:
|
| 498 |
+
print(f"added {len(buffers)} buffers")
|
| 499 |
+
|
| 500 |
+
if not exclude_frozen_parameters:
|
| 501 |
+
_zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
|
| 502 |
+
|
| 503 |
+
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 504 |
+
|
| 505 |
+
# recover shared parameters
|
| 506 |
+
for pair in zero_model_states[0].shared_params:
|
| 507 |
+
if pair[1] in state_dict:
|
| 508 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 509 |
+
|
| 510 |
+
return state_dict
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
def to_torch_tensor(state_dict, return_empty_tensor=False):
|
| 514 |
+
"""
|
| 515 |
+
Convert state_dict of GatheredTensor to torch tensor
|
| 516 |
+
"""
|
| 517 |
+
torch_state_dict = {}
|
| 518 |
+
converted_tensors = {}
|
| 519 |
+
for name, tensor in state_dict.items():
|
| 520 |
+
tensor_id = id(tensor)
|
| 521 |
+
if tensor_id in converted_tensors: # shared tensors
|
| 522 |
+
shared_tensor = torch_state_dict[converted_tensors[tensor_id]]
|
| 523 |
+
torch_state_dict[name] = shared_tensor
|
| 524 |
+
else:
|
| 525 |
+
converted_tensors[tensor_id] = name
|
| 526 |
+
if return_empty_tensor:
|
| 527 |
+
torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype)
|
| 528 |
+
else:
|
| 529 |
+
torch_state_dict[name] = tensor.contiguous()
|
| 530 |
+
return torch_state_dict
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 534 |
+
tag=None,
|
| 535 |
+
exclude_frozen_parameters=False,
|
| 536 |
+
lazy_mode=False):
|
| 537 |
+
"""
|
| 538 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
|
| 539 |
+
``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
|
| 540 |
+
via a model hub.
|
| 541 |
+
|
| 542 |
+
Args:
|
| 543 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder
|
| 544 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14``
|
| 545 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 546 |
+
- ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient.
|
| 547 |
+
Convert the pesduo tensor to torch tensor by ``.contiguous()``
|
| 548 |
+
|
| 549 |
+
Returns:
|
| 550 |
+
- pytorch ``state_dict``
|
| 551 |
+
|
| 552 |
+
A typical usage might be ::
|
| 553 |
+
|
| 554 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 555 |
+
# do the training and checkpoint saving
|
| 556 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
|
| 557 |
+
model = model.cpu() # move to cpu
|
| 558 |
+
model.load_state_dict(state_dict)
|
| 559 |
+
# submit to model hub or save the model to share with others
|
| 560 |
+
|
| 561 |
+
In this example the ``model`` will no longer be usable in the deepspeed context of the same
|
| 562 |
+
application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 563 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 564 |
+
|
| 565 |
+
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
|
| 566 |
+
|
| 567 |
+
Note: the above usage may not work if your application doesn't have sufficient free CPU memory.
|
| 568 |
+
You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
|
| 569 |
+
the checkpoint. Or you can load state_dict in lazy mode ::
|
| 570 |
+
|
| 571 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 572 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu
|
| 573 |
+
for name, lazy_tensor in state_dict.item():
|
| 574 |
+
tensor = lazy_tensor.contiguous() # to cpu
|
| 575 |
+
print(name, tensor)
|
| 576 |
+
# del tensor to release memory if it no longer in use
|
| 577 |
+
"""
|
| 578 |
+
if tag is None:
|
| 579 |
+
latest_path = os.path.join(checkpoint_dir, 'latest')
|
| 580 |
+
if os.path.isfile(latest_path):
|
| 581 |
+
with open(latest_path, 'r') as fd:
|
| 582 |
+
tag = fd.read().strip()
|
| 583 |
+
else:
|
| 584 |
+
raise ValueError(f"Unable to find 'latest' file at {latest_path}")
|
| 585 |
+
|
| 586 |
+
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
|
| 587 |
+
|
| 588 |
+
if not os.path.isdir(ds_checkpoint_dir):
|
| 589 |
+
raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
|
| 590 |
+
|
| 591 |
+
state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
|
| 592 |
+
if lazy_mode:
|
| 593 |
+
return state_dict
|
| 594 |
+
else:
|
| 595 |
+
return to_torch_tensor(state_dict)
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
|
| 599 |
+
output_dir,
|
| 600 |
+
max_shard_size="5GB",
|
| 601 |
+
safe_serialization=False,
|
| 602 |
+
tag=None,
|
| 603 |
+
exclude_frozen_parameters=False):
|
| 604 |
+
"""
|
| 605 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
|
| 606 |
+
loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
|
| 607 |
+
|
| 608 |
+
Args:
|
| 609 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 610 |
+
- ``output_dir``: directory to the pytorch fp32 state_dict output files
|
| 611 |
+
- ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
|
| 612 |
+
- ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
|
| 613 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
|
| 614 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 615 |
+
"""
|
| 616 |
+
|
| 617 |
+
# Dependency pre-check
|
| 618 |
+
if safe_serialization:
|
| 619 |
+
try:
|
| 620 |
+
from safetensors.torch import save_file
|
| 621 |
+
except ImportError:
|
| 622 |
+
print('If you want to use `safe_serialization`, please `pip install safetensors`')
|
| 623 |
+
raise
|
| 624 |
+
if max_shard_size is not None:
|
| 625 |
+
try:
|
| 626 |
+
from huggingface_hub import split_torch_state_dict_into_shards
|
| 627 |
+
except ImportError:
|
| 628 |
+
print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
|
| 629 |
+
raise
|
| 630 |
+
|
| 631 |
+
# Convert zero checkpoint to state_dict
|
| 632 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 633 |
+
tag,
|
| 634 |
+
exclude_frozen_parameters,
|
| 635 |
+
lazy_mode=True)
|
| 636 |
+
|
| 637 |
+
# Shard the model if it is too big.
|
| 638 |
+
weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
|
| 639 |
+
if max_shard_size is not None:
|
| 640 |
+
filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
|
| 641 |
+
# an memory-efficient approach for sharding
|
| 642 |
+
empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True)
|
| 643 |
+
state_dict_split = split_torch_state_dict_into_shards(empty_state_dict,
|
| 644 |
+
filename_pattern=filename_pattern,
|
| 645 |
+
max_shard_size=max_shard_size)
|
| 646 |
+
else:
|
| 647 |
+
from collections import namedtuple
|
| 648 |
+
StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
|
| 649 |
+
state_dict_split = StateDictSplit(is_sharded=False,
|
| 650 |
+
filename_to_tensors={weights_name: list(state_dict.keys())})
|
| 651 |
+
|
| 652 |
+
# Save the model by shard
|
| 653 |
+
os.makedirs(output_dir, exist_ok=True)
|
| 654 |
+
filename_to_tensors = state_dict_split.filename_to_tensors.items()
|
| 655 |
+
for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
|
| 656 |
+
shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors}
|
| 657 |
+
shard_state_dict = to_torch_tensor(shard_state_dict)
|
| 658 |
+
output_path = os.path.join(output_dir, shard_file)
|
| 659 |
+
if safe_serialization:
|
| 660 |
+
save_file(shard_state_dict, output_path, metadata={"format": "pt"})
|
| 661 |
+
else:
|
| 662 |
+
torch.save(shard_state_dict, output_path)
|
| 663 |
+
# release the memory of current shard
|
| 664 |
+
for tensor_name in list(shard_state_dict.keys()):
|
| 665 |
+
del state_dict[tensor_name]
|
| 666 |
+
del shard_state_dict[tensor_name]
|
| 667 |
+
del shard_state_dict
|
| 668 |
+
gc.collect()
|
| 669 |
+
|
| 670 |
+
# Save index if sharded
|
| 671 |
+
if state_dict_split.is_sharded:
|
| 672 |
+
index = {
|
| 673 |
+
"metadata": state_dict_split.metadata,
|
| 674 |
+
"weight_map": state_dict_split.tensor_to_filename,
|
| 675 |
+
}
|
| 676 |
+
save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
|
| 677 |
+
save_index_file = os.path.join(output_dir, save_index_file)
|
| 678 |
+
with open(save_index_file, "w", encoding="utf-8") as f:
|
| 679 |
+
content = json.dumps(index, indent=2, sort_keys=True) + "\n"
|
| 680 |
+
f.write(content)
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
|
| 684 |
+
"""
|
| 685 |
+
1. Put the provided model to cpu
|
| 686 |
+
2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
|
| 687 |
+
3. Load it into the provided model
|
| 688 |
+
|
| 689 |
+
Args:
|
| 690 |
+
- ``model``: the model object to update
|
| 691 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 692 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
|
| 693 |
+
|
| 694 |
+
Returns:
|
| 695 |
+
- ``model`: modified model
|
| 696 |
+
|
| 697 |
+
Make sure you have plenty of CPU memory available before you call this function. If you don't
|
| 698 |
+
have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
|
| 699 |
+
conveniently placed for you in the checkpoint folder.
|
| 700 |
+
|
| 701 |
+
A typical usage might be ::
|
| 702 |
+
|
| 703 |
+
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
|
| 704 |
+
model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
|
| 705 |
+
# submit to model hub or save the model to share with others
|
| 706 |
+
|
| 707 |
+
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
|
| 708 |
+
of the same application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 709 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 710 |
+
|
| 711 |
+
"""
|
| 712 |
+
logger.info(f"Extracting fp32 weights")
|
| 713 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
|
| 714 |
+
|
| 715 |
+
logger.info(f"Overwriting model with fp32 weights")
|
| 716 |
+
model = model.cpu()
|
| 717 |
+
model.load_state_dict(state_dict, strict=False)
|
| 718 |
+
|
| 719 |
+
return model
|
| 720 |
+
|
| 721 |
+
|
| 722 |
+
if __name__ == "__main__":
|
| 723 |
+
parser = argparse.ArgumentParser()
|
| 724 |
+
parser.add_argument("checkpoint_dir",
|
| 725 |
+
type=str,
|
| 726 |
+
help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
|
| 727 |
+
parser.add_argument("output_dir",
|
| 728 |
+
type=str,
|
| 729 |
+
help="directory to the pytorch fp32 state_dict output files"
|
| 730 |
+
"(e.g. path/checkpoint-12-output/)")
|
| 731 |
+
parser.add_argument(
|
| 732 |
+
"--max_shard_size",
|
| 733 |
+
type=str,
|
| 734 |
+
default="5GB",
|
| 735 |
+
help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
|
| 736 |
+
"lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
|
| 737 |
+
"We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
|
| 738 |
+
"without CPU OOM issues.")
|
| 739 |
+
parser.add_argument(
|
| 740 |
+
"--safe_serialization",
|
| 741 |
+
default=False,
|
| 742 |
+
action='store_true',
|
| 743 |
+
help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
|
| 744 |
+
parser.add_argument("-t",
|
| 745 |
+
"--tag",
|
| 746 |
+
type=str,
|
| 747 |
+
default=None,
|
| 748 |
+
help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
|
| 749 |
+
parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
|
| 750 |
+
parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
|
| 751 |
+
args = parser.parse_args()
|
| 752 |
+
|
| 753 |
+
debug = args.debug
|
| 754 |
+
|
| 755 |
+
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
|
| 756 |
+
args.output_dir,
|
| 757 |
+
max_shard_size=args.max_shard_size,
|
| 758 |
+
safe_serialization=args.safe_serialization,
|
| 759 |
+
tag=args.tag,
|
| 760 |
+
exclude_frozen_parameters=args.exclude_frozen_parameters)
|
generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"repetition_penalty": 1.1,
|
| 10 |
+
"temperature": 0.7,
|
| 11 |
+
"top_k": 20,
|
| 12 |
+
"top_p": 0.8,
|
| 13 |
+
"transformers_version": "4.55.0"
|
| 14 |
+
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3554214752
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89a6e59a26bc98ff9cd9e0c0c62ddf5a19ddb7ad689cafa1e7781185299c9272
|
| 3 |
size 3554214752
|
trainer_log.jsonl
CHANGED
|
@@ -78,3 +78,7 @@
|
|
| 78 |
{"current_steps": 3180, "total_steps": 3236, "loss": 0.0045, "lr": 1.890165611436734e-08, "epoch": 1.9658370690987788, "percentage": 98.27, "elapsed_time": "14:10:39", "remaining_time": "0:14:58"}
|
| 79 |
{"current_steps": 3190, "total_steps": 3236, "loss": 0.0044, "lr": 1.285256096100529e-08, "epoch": 1.972020405008502, "percentage": 98.58, "elapsed_time": "14:21:25", "remaining_time": "0:12:25"}
|
| 80 |
{"current_steps": 3200, "total_steps": 3236, "loss": 0.0045, "lr": 7.965862199330598e-09, "epoch": 1.9782037409182254, "percentage": 98.89, "elapsed_time": "14:32:10", "remaining_time": "0:09:48"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
{"current_steps": 3180, "total_steps": 3236, "loss": 0.0045, "lr": 1.890165611436734e-08, "epoch": 1.9658370690987788, "percentage": 98.27, "elapsed_time": "14:10:39", "remaining_time": "0:14:58"}
|
| 79 |
{"current_steps": 3190, "total_steps": 3236, "loss": 0.0044, "lr": 1.285256096100529e-08, "epoch": 1.972020405008502, "percentage": 98.58, "elapsed_time": "14:21:25", "remaining_time": "0:12:25"}
|
| 80 |
{"current_steps": 3200, "total_steps": 3236, "loss": 0.0045, "lr": 7.965862199330598e-09, "epoch": 1.9782037409182254, "percentage": 98.89, "elapsed_time": "14:32:10", "remaining_time": "0:09:48"}
|
| 81 |
+
{"current_steps": 3210, "total_steps": 3236, "loss": 0.0043, "lr": 4.242128588446415e-09, "epoch": 1.9843870768279488, "percentage": 99.2, "elapsed_time": "14:44:32", "remaining_time": "0:07:09"}
|
| 82 |
+
{"current_steps": 3220, "total_steps": 3236, "loss": 0.0047, "lr": 1.6817935308366395e-09, "epoch": 1.990570412737672, "percentage": 99.51, "elapsed_time": "14:55:19", "remaining_time": "0:04:26"}
|
| 83 |
+
{"current_steps": 3230, "total_steps": 3236, "loss": 0.0042, "lr": 2.851550219240551e-10, "epoch": 1.9967537486473952, "percentage": 99.81, "elapsed_time": "15:06:05", "remaining_time": "0:01:40"}
|
| 84 |
+
{"current_steps": 3235, "total_steps": 3236, "epoch": 1.9998454166022568, "percentage": 99.97, "elapsed_time": "15:11:45", "remaining_time": "0:00:16"}
|