Upload folder using huggingface_hub
Browse files- config.json +70 -0
- embodiment_id.json +11 -0
- experiment_cfg/conf.yaml +253 -0
- experiment_cfg/config.yaml +292 -0
- experiment_cfg/dataset_statistics.json +0 -0
- experiment_cfg/final_model_config.json +54 -0
- experiment_cfg/final_processor_config.json +0 -0
- global_step3000/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
- global_step3000/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
- global_step3000/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
- global_step3000/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
- global_step3000/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt +3 -0
- global_step3000/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt +3 -0
- global_step3000/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt +3 -0
- global_step3000/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt +3 -0
- global_step3000/mp_rank_00_model_states.pt +3 -0
- latest +1 -0
- model-00001-of-00002.safetensors +3 -0
- model-00002-of-00002.safetensors +3 -0
- model.safetensors.index.json +0 -0
- processor_config.json +508 -0
- rng_state_0.pth +3 -0
- rng_state_1.pth +3 -0
- rng_state_2.pth +3 -0
- rng_state_3.pth +3 -0
- rng_state_4.pth +3 -0
- rng_state_5.pth +3 -0
- rng_state_6.pth +3 -0
- rng_state_7.pth +3 -0
- scheduler.pt +3 -0
- statistics.json +0 -0
- trainer_state.json +1834 -0
- training_args.bin +3 -0
- wandb_config.json +1 -0
- zero_to_fp32.py +760 -0
config.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"action_horizon": 50,
|
| 3 |
+
"add_pos_embed": true,
|
| 4 |
+
"apply_sincos_state_encoding": true,
|
| 5 |
+
"architectures": [
|
| 6 |
+
"Gr00tN1d6"
|
| 7 |
+
],
|
| 8 |
+
"attn_dropout": 0.2,
|
| 9 |
+
"attn_implementation": null,
|
| 10 |
+
"backbone_embedding_dim": 2048,
|
| 11 |
+
"backbone_model_type": "eagle",
|
| 12 |
+
"backbone_trainable_params_fp32": true,
|
| 13 |
+
"collator_overwrite_image_inputs": false,
|
| 14 |
+
"color_jitter_params": {
|
| 15 |
+
"brightness": 0.1,
|
| 16 |
+
"contrast": 0.1,
|
| 17 |
+
"hue": 0.1,
|
| 18 |
+
"saturation": 0.1
|
| 19 |
+
},
|
| 20 |
+
"crop_fraction": 0.95,
|
| 21 |
+
"diffusion_model_cfg": {
|
| 22 |
+
"attention_head_dim": 48,
|
| 23 |
+
"dropout": 0.2,
|
| 24 |
+
"final_dropout": true,
|
| 25 |
+
"interleave_self_attention": true,
|
| 26 |
+
"norm_type": "ada_norm",
|
| 27 |
+
"num_attention_heads": 32,
|
| 28 |
+
"num_layers": 32,
|
| 29 |
+
"output_dim": 1024,
|
| 30 |
+
"positional_embeddings": null
|
| 31 |
+
},
|
| 32 |
+
"eagle_collator": true,
|
| 33 |
+
"formalize_language": true,
|
| 34 |
+
"gemma_collator": false,
|
| 35 |
+
"hidden_size": 1024,
|
| 36 |
+
"image_crop_size": null,
|
| 37 |
+
"image_target_size": null,
|
| 38 |
+
"input_embedding_dim": 1536,
|
| 39 |
+
"load_bf16": true,
|
| 40 |
+
"max_action_dim": 128,
|
| 41 |
+
"max_num_embodiments": 32,
|
| 42 |
+
"max_seq_len": 1024,
|
| 43 |
+
"max_state_dim": 128,
|
| 44 |
+
"model_dtype": "bfloat16",
|
| 45 |
+
"model_name": "nvidia/Eagle-Block2A-2B-v2",
|
| 46 |
+
"model_type": "Gr00tN1d6",
|
| 47 |
+
"noise_beta_alpha": 1.5,
|
| 48 |
+
"noise_beta_beta": 1.0,
|
| 49 |
+
"noise_s": 0.999,
|
| 50 |
+
"num_inference_timesteps": 4,
|
| 51 |
+
"num_timestep_buckets": 1000,
|
| 52 |
+
"random_rotation_angle": null,
|
| 53 |
+
"reproject_vision": false,
|
| 54 |
+
"select_layer": 16,
|
| 55 |
+
"shortest_image_edge": 256,
|
| 56 |
+
"state_dropout_prob": 0.0,
|
| 57 |
+
"torch_dtype": "bfloat16",
|
| 58 |
+
"transformers_version": "4.51.3",
|
| 59 |
+
"tune_diffusion_model": true,
|
| 60 |
+
"tune_llm": false,
|
| 61 |
+
"tune_projector": true,
|
| 62 |
+
"tune_top_llm_layers": 4,
|
| 63 |
+
"tune_visual": false,
|
| 64 |
+
"tune_vlln": true,
|
| 65 |
+
"use_albumentations_transforms": true,
|
| 66 |
+
"use_alternate_vl_dit": true,
|
| 67 |
+
"use_flash_attention": true,
|
| 68 |
+
"use_relative_action": true,
|
| 69 |
+
"use_vlln": true
|
| 70 |
+
}
|
embodiment_id.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"robocasa_panda_omron": 13,
|
| 3 |
+
"gr1": 20,
|
| 4 |
+
"behavior_r1_pro": 24,
|
| 5 |
+
"unitree_g1": 8,
|
| 6 |
+
"oxe_google": 0,
|
| 7 |
+
"oxe_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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
load_config_path: null
|
| 2 |
+
model:
|
| 3 |
+
model_type: Gr00tN1d6
|
| 4 |
+
model_dtype: bfloat16
|
| 5 |
+
model_name: nvidia/Eagle-Block2A-2B-v2
|
| 6 |
+
backbone_model_type: eagle
|
| 7 |
+
model_revision: null
|
| 8 |
+
tune_top_llm_layers: 4
|
| 9 |
+
backbone_embedding_dim: 2048
|
| 10 |
+
tune_llm: false
|
| 11 |
+
tune_visual: false
|
| 12 |
+
select_layer: 16
|
| 13 |
+
reproject_vision: false
|
| 14 |
+
use_flash_attention: true
|
| 15 |
+
load_bf16: false
|
| 16 |
+
collator_overwrite_image_inputs: false
|
| 17 |
+
eagle_collator: true
|
| 18 |
+
backbone_trainable_params_fp32: true
|
| 19 |
+
image_crop_size: null
|
| 20 |
+
image_target_size: null
|
| 21 |
+
shortest_image_edge: 256
|
| 22 |
+
crop_fraction: 0.95
|
| 23 |
+
random_rotation_angle: null
|
| 24 |
+
color_jitter_params:
|
| 25 |
+
brightness: 0.3
|
| 26 |
+
contrast: 0.4
|
| 27 |
+
saturation: 0.5
|
| 28 |
+
hue: 0.08
|
| 29 |
+
use_albumentations_transforms: true
|
| 30 |
+
extra_augmentation_config: null
|
| 31 |
+
formalize_language: true
|
| 32 |
+
apply_sincos_state_encoding: false
|
| 33 |
+
use_relative_action: true
|
| 34 |
+
max_state_dim: 29
|
| 35 |
+
max_action_dim: 29
|
| 36 |
+
action_horizon: 16
|
| 37 |
+
hidden_size: 1024
|
| 38 |
+
input_embedding_dim: 1536
|
| 39 |
+
add_pos_embed: true
|
| 40 |
+
attn_dropout: 0.2
|
| 41 |
+
use_vlln: true
|
| 42 |
+
max_seq_len: 1024
|
| 43 |
+
use_alternate_vl_dit: true
|
| 44 |
+
attend_text_every_n_blocks: 2
|
| 45 |
+
diffusion_model_cfg:
|
| 46 |
+
positional_embeddings: null
|
| 47 |
+
num_layers: 32
|
| 48 |
+
num_attention_heads: 32
|
| 49 |
+
attention_head_dim: 48
|
| 50 |
+
norm_type: ada_norm
|
| 51 |
+
dropout: 0.2
|
| 52 |
+
final_dropout: true
|
| 53 |
+
output_dim: 1024
|
| 54 |
+
interleave_self_attention: true
|
| 55 |
+
num_inference_timesteps: 4
|
| 56 |
+
noise_beta_alpha: 1.5
|
| 57 |
+
noise_beta_beta: 1.0
|
| 58 |
+
noise_s: 0.999
|
| 59 |
+
num_timestep_buckets: 1000
|
| 60 |
+
tune_projector: true
|
| 61 |
+
tune_diffusion_model: true
|
| 62 |
+
tune_vlln: true
|
| 63 |
+
state_dropout_prob: 0.0
|
| 64 |
+
state_additive_noise_scale: 0.0
|
| 65 |
+
max_num_embodiments: 32
|
| 66 |
+
data:
|
| 67 |
+
datasets:
|
| 68 |
+
- dataset_paths:
|
| 69 |
+
- ./datasets/push_box_real_11
|
| 70 |
+
embodiment_tag: unitree_g1
|
| 71 |
+
mix_ratio: 1.0
|
| 72 |
+
dataset_type: physical_embodiment
|
| 73 |
+
val_dataset_path: null
|
| 74 |
+
modality_configs:
|
| 75 |
+
unitree_g1:
|
| 76 |
+
video:
|
| 77 |
+
delta_indices:
|
| 78 |
+
- 0
|
| 79 |
+
modality_keys:
|
| 80 |
+
- ego_view
|
| 81 |
+
sin_cos_embedding_keys: null
|
| 82 |
+
mean_std_embedding_keys: null
|
| 83 |
+
action_configs: null
|
| 84 |
+
state:
|
| 85 |
+
delta_indices:
|
| 86 |
+
- 0
|
| 87 |
+
modality_keys:
|
| 88 |
+
- left_leg
|
| 89 |
+
- right_leg
|
| 90 |
+
- waist
|
| 91 |
+
- left_arm
|
| 92 |
+
- right_arm
|
| 93 |
+
- left_hand
|
| 94 |
+
- right_hand
|
| 95 |
+
sin_cos_embedding_keys: null
|
| 96 |
+
mean_std_embedding_keys: null
|
| 97 |
+
action_configs: null
|
| 98 |
+
action:
|
| 99 |
+
delta_indices:
|
| 100 |
+
- 0
|
| 101 |
+
- 1
|
| 102 |
+
- 2
|
| 103 |
+
- 3
|
| 104 |
+
- 4
|
| 105 |
+
- 5
|
| 106 |
+
- 6
|
| 107 |
+
- 7
|
| 108 |
+
- 8
|
| 109 |
+
- 9
|
| 110 |
+
- 10
|
| 111 |
+
- 11
|
| 112 |
+
- 12
|
| 113 |
+
- 13
|
| 114 |
+
- 14
|
| 115 |
+
- 15
|
| 116 |
+
- 16
|
| 117 |
+
- 17
|
| 118 |
+
- 18
|
| 119 |
+
- 19
|
| 120 |
+
- 20
|
| 121 |
+
- 21
|
| 122 |
+
- 22
|
| 123 |
+
- 23
|
| 124 |
+
- 24
|
| 125 |
+
- 25
|
| 126 |
+
- 26
|
| 127 |
+
- 27
|
| 128 |
+
- 28
|
| 129 |
+
- 29
|
| 130 |
+
modality_keys:
|
| 131 |
+
- left_arm
|
| 132 |
+
- right_arm
|
| 133 |
+
- left_hand
|
| 134 |
+
- right_hand
|
| 135 |
+
- waist
|
| 136 |
+
- base_height_command
|
| 137 |
+
- navigate_command
|
| 138 |
+
sin_cos_embedding_keys: null
|
| 139 |
+
mean_std_embedding_keys: null
|
| 140 |
+
action_configs:
|
| 141 |
+
- rep: RELATIVE
|
| 142 |
+
type: NON_EEF
|
| 143 |
+
format: DEFAULT
|
| 144 |
+
state_key: null
|
| 145 |
+
- rep: RELATIVE
|
| 146 |
+
type: NON_EEF
|
| 147 |
+
format: DEFAULT
|
| 148 |
+
state_key: null
|
| 149 |
+
- rep: ABSOLUTE
|
| 150 |
+
type: NON_EEF
|
| 151 |
+
format: DEFAULT
|
| 152 |
+
state_key: null
|
| 153 |
+
- rep: ABSOLUTE
|
| 154 |
+
type: NON_EEF
|
| 155 |
+
format: DEFAULT
|
| 156 |
+
state_key: null
|
| 157 |
+
- rep: ABSOLUTE
|
| 158 |
+
type: NON_EEF
|
| 159 |
+
format: DEFAULT
|
| 160 |
+
state_key: null
|
| 161 |
+
- rep: ABSOLUTE
|
| 162 |
+
type: NON_EEF
|
| 163 |
+
format: DEFAULT
|
| 164 |
+
state_key: null
|
| 165 |
+
- rep: ABSOLUTE
|
| 166 |
+
type: NON_EEF
|
| 167 |
+
format: DEFAULT
|
| 168 |
+
state_key: null
|
| 169 |
+
language:
|
| 170 |
+
delta_indices:
|
| 171 |
+
- 0
|
| 172 |
+
modality_keys:
|
| 173 |
+
- annotation.human.task_description
|
| 174 |
+
sin_cos_embedding_keys: null
|
| 175 |
+
mean_std_embedding_keys: null
|
| 176 |
+
action_configs: null
|
| 177 |
+
download_cache: false
|
| 178 |
+
shard_size: 1024
|
| 179 |
+
episode_sampling_rate: 0.1
|
| 180 |
+
num_shards_per_epoch: 100000
|
| 181 |
+
override_pretraining_statistics: false
|
| 182 |
+
mode: single_turn
|
| 183 |
+
random_chop: 0.0
|
| 184 |
+
mock_dataset_mode: false
|
| 185 |
+
shuffle: true
|
| 186 |
+
seed: 42
|
| 187 |
+
multiprocessing_context: fork
|
| 188 |
+
allow_padding: false
|
| 189 |
+
subsample_ratio: 1.0
|
| 190 |
+
image_crop_size:
|
| 191 |
+
- 244
|
| 192 |
+
- 244
|
| 193 |
+
image_target_size:
|
| 194 |
+
- 224
|
| 195 |
+
- 224
|
| 196 |
+
video_backend: torchcodec
|
| 197 |
+
training:
|
| 198 |
+
output_dir: ./outputs
|
| 199 |
+
experiment_name: null
|
| 200 |
+
max_steps: 5000
|
| 201 |
+
global_batch_size: 768
|
| 202 |
+
batch_size: null
|
| 203 |
+
gradient_accumulation_steps: 1
|
| 204 |
+
learning_rate: 0.0001
|
| 205 |
+
lr_scheduler_type: cosine
|
| 206 |
+
weight_decay: 1.0e-05
|
| 207 |
+
warmup_ratio: 0.05
|
| 208 |
+
warmup_steps: 0
|
| 209 |
+
max_grad_norm: 1.0
|
| 210 |
+
optim: adamw_torch
|
| 211 |
+
start_from_checkpoint: nvidia/GR00T-N1.6-3B
|
| 212 |
+
tf32: true
|
| 213 |
+
fp16: false
|
| 214 |
+
bf16: true
|
| 215 |
+
eval_bf16: true
|
| 216 |
+
logging_steps: 10
|
| 217 |
+
save_steps: 1000
|
| 218 |
+
save_total_limit: 5
|
| 219 |
+
save_vl_model: false
|
| 220 |
+
upload_checkpoints: false
|
| 221 |
+
upload_every: 1000
|
| 222 |
+
upload_last_n_checkpoints: 5
|
| 223 |
+
max_concurrent_uploads: 2
|
| 224 |
+
eval_strategy: 'no'
|
| 225 |
+
eval_steps: 500
|
| 226 |
+
eval_set_split_ratio: 0.1
|
| 227 |
+
eval_batch_size: 2
|
| 228 |
+
save_best_eval_metric_name: ''
|
| 229 |
+
save_best_eval_metric_greater_is_better: true
|
| 230 |
+
deepspeed_stage: 2
|
| 231 |
+
gradient_checkpointing: false
|
| 232 |
+
transformers_trust_remote_code: true
|
| 233 |
+
transformers_local_files_only: false
|
| 234 |
+
transformers_cache_dir: null
|
| 235 |
+
transformers_access_token: null
|
| 236 |
+
use_ddp: false
|
| 237 |
+
ddp_bucket_cap_mb: 100
|
| 238 |
+
num_gpus: 8
|
| 239 |
+
dataloader_num_workers: 6
|
| 240 |
+
remove_unused_columns: false
|
| 241 |
+
use_wandb: true
|
| 242 |
+
wandb_project: finetune-gr00t-n1d6
|
| 243 |
+
enable_profiling: false
|
| 244 |
+
max_retries: 3
|
| 245 |
+
assert_loss_less_than: null
|
| 246 |
+
add_rl_callback: false
|
| 247 |
+
enable_open_loop_eval: false
|
| 248 |
+
open_loop_eval_traj_ids:
|
| 249 |
+
- 0
|
| 250 |
+
open_loop_eval_steps_per_traj: 100
|
| 251 |
+
open_loop_eval_plot_indices: null
|
| 252 |
+
max_steps: 5000
|
| 253 |
+
save_steps: 1000
|
experiment_cfg/config.yaml
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
!!python/object:gr00t.configs.base_config.Config
|
| 2 |
+
data: !!python/object:gr00t.configs.data.data_config.DataConfig
|
| 3 |
+
allow_padding: false
|
| 4 |
+
datasets:
|
| 5 |
+
- !!python/object:gr00t.configs.data.data_config.SingleDatasetConfig
|
| 6 |
+
dataset_paths:
|
| 7 |
+
- ./datasets/push_box_real_11
|
| 8 |
+
dataset_type: physical_embodiment
|
| 9 |
+
embodiment_tag: unitree_g1
|
| 10 |
+
mix_ratio: 1.0
|
| 11 |
+
val_dataset_path: null
|
| 12 |
+
download_cache: false
|
| 13 |
+
episode_sampling_rate: 0.1
|
| 14 |
+
image_crop_size:
|
| 15 |
+
- 244
|
| 16 |
+
- 244
|
| 17 |
+
image_target_size:
|
| 18 |
+
- 224
|
| 19 |
+
- 224
|
| 20 |
+
mock_dataset_mode: false
|
| 21 |
+
modality_configs:
|
| 22 |
+
unitree_g1:
|
| 23 |
+
action: !!python/object:gr00t.data.types.ModalityConfig
|
| 24 |
+
action_configs:
|
| 25 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 26 |
+
format: &id001 !!python/object/apply:gr00t.data.types.ActionFormat
|
| 27 |
+
- default
|
| 28 |
+
rep: &id002 !!python/object/apply:gr00t.data.types.ActionRepresentation
|
| 29 |
+
- relative
|
| 30 |
+
state_key: null
|
| 31 |
+
type: &id003 !!python/object/apply:gr00t.data.types.ActionType
|
| 32 |
+
- non_eef
|
| 33 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 34 |
+
format: *id001
|
| 35 |
+
rep: *id002
|
| 36 |
+
state_key: null
|
| 37 |
+
type: *id003
|
| 38 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 39 |
+
format: *id001
|
| 40 |
+
rep: &id004 !!python/object/apply:gr00t.data.types.ActionRepresentation
|
| 41 |
+
- absolute
|
| 42 |
+
state_key: null
|
| 43 |
+
type: *id003
|
| 44 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 45 |
+
format: *id001
|
| 46 |
+
rep: *id004
|
| 47 |
+
state_key: null
|
| 48 |
+
type: *id003
|
| 49 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 50 |
+
format: *id001
|
| 51 |
+
rep: *id004
|
| 52 |
+
state_key: null
|
| 53 |
+
type: *id003
|
| 54 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 55 |
+
format: *id001
|
| 56 |
+
rep: *id004
|
| 57 |
+
state_key: null
|
| 58 |
+
type: *id003
|
| 59 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 60 |
+
format: *id001
|
| 61 |
+
rep: *id004
|
| 62 |
+
state_key: null
|
| 63 |
+
type: *id003
|
| 64 |
+
delta_indices:
|
| 65 |
+
- 0
|
| 66 |
+
- 1
|
| 67 |
+
- 2
|
| 68 |
+
- 3
|
| 69 |
+
- 4
|
| 70 |
+
- 5
|
| 71 |
+
- 6
|
| 72 |
+
- 7
|
| 73 |
+
- 8
|
| 74 |
+
- 9
|
| 75 |
+
- 10
|
| 76 |
+
- 11
|
| 77 |
+
- 12
|
| 78 |
+
- 13
|
| 79 |
+
- 14
|
| 80 |
+
- 15
|
| 81 |
+
- 16
|
| 82 |
+
- 17
|
| 83 |
+
- 18
|
| 84 |
+
- 19
|
| 85 |
+
- 20
|
| 86 |
+
- 21
|
| 87 |
+
- 22
|
| 88 |
+
- 23
|
| 89 |
+
- 24
|
| 90 |
+
- 25
|
| 91 |
+
- 26
|
| 92 |
+
- 27
|
| 93 |
+
- 28
|
| 94 |
+
- 29
|
| 95 |
+
mean_std_embedding_keys: null
|
| 96 |
+
modality_keys:
|
| 97 |
+
- left_arm
|
| 98 |
+
- right_arm
|
| 99 |
+
- left_hand
|
| 100 |
+
- right_hand
|
| 101 |
+
- waist
|
| 102 |
+
- base_height_command
|
| 103 |
+
- navigate_command
|
| 104 |
+
sin_cos_embedding_keys: null
|
| 105 |
+
language: !!python/object:gr00t.data.types.ModalityConfig
|
| 106 |
+
action_configs: null
|
| 107 |
+
delta_indices:
|
| 108 |
+
- 0
|
| 109 |
+
mean_std_embedding_keys: null
|
| 110 |
+
modality_keys:
|
| 111 |
+
- annotation.human.task_description
|
| 112 |
+
sin_cos_embedding_keys: null
|
| 113 |
+
state: !!python/object:gr00t.data.types.ModalityConfig
|
| 114 |
+
action_configs: null
|
| 115 |
+
delta_indices:
|
| 116 |
+
- 0
|
| 117 |
+
mean_std_embedding_keys: null
|
| 118 |
+
modality_keys:
|
| 119 |
+
- left_leg
|
| 120 |
+
- right_leg
|
| 121 |
+
- waist
|
| 122 |
+
- left_arm
|
| 123 |
+
- right_arm
|
| 124 |
+
- left_hand
|
| 125 |
+
- right_hand
|
| 126 |
+
sin_cos_embedding_keys: null
|
| 127 |
+
video: !!python/object:gr00t.data.types.ModalityConfig
|
| 128 |
+
action_configs: null
|
| 129 |
+
delta_indices:
|
| 130 |
+
- 0
|
| 131 |
+
mean_std_embedding_keys: null
|
| 132 |
+
modality_keys:
|
| 133 |
+
- ego_view
|
| 134 |
+
sin_cos_embedding_keys: null
|
| 135 |
+
mode: single_turn
|
| 136 |
+
multiprocessing_context: fork
|
| 137 |
+
num_shards_per_epoch: 100000
|
| 138 |
+
override_pretraining_statistics: false
|
| 139 |
+
random_chop: 0.0
|
| 140 |
+
seed: 42
|
| 141 |
+
shard_size: 1024
|
| 142 |
+
shuffle: true
|
| 143 |
+
subsample_ratio: 1.0
|
| 144 |
+
video_backend: torchcodec
|
| 145 |
+
load_config_path: null
|
| 146 |
+
model: !!python/object:gr00t.configs.model.gr00t_n1d6.Gr00tN1d6Config
|
| 147 |
+
_attn_implementation_autoset: false
|
| 148 |
+
_attn_implementation_internal: null
|
| 149 |
+
_commit_hash: null
|
| 150 |
+
_name_or_path: ''
|
| 151 |
+
add_cross_attention: false
|
| 152 |
+
architectures: null
|
| 153 |
+
backbone_model_type: eagle
|
| 154 |
+
backbone_trainable_params_fp32: true
|
| 155 |
+
bad_words_ids: null
|
| 156 |
+
begin_suppress_tokens: null
|
| 157 |
+
bos_token_id: null
|
| 158 |
+
chunk_size_feed_forward: 0
|
| 159 |
+
color_jitter_params:
|
| 160 |
+
brightness: 0.3
|
| 161 |
+
contrast: 0.4
|
| 162 |
+
hue: 0.08
|
| 163 |
+
saturation: 0.5
|
| 164 |
+
cross_attention_hidden_size: null
|
| 165 |
+
decoder_start_token_id: null
|
| 166 |
+
diffusion_model_cfg:
|
| 167 |
+
attention_head_dim: 48
|
| 168 |
+
dropout: 0.2
|
| 169 |
+
final_dropout: true
|
| 170 |
+
interleave_self_attention: true
|
| 171 |
+
norm_type: ada_norm
|
| 172 |
+
num_attention_heads: 32
|
| 173 |
+
num_layers: 32
|
| 174 |
+
output_dim: 1024
|
| 175 |
+
positional_embeddings: null
|
| 176 |
+
diversity_penalty: 0.0
|
| 177 |
+
do_sample: false
|
| 178 |
+
eagle_collator: true
|
| 179 |
+
early_stopping: false
|
| 180 |
+
encoder_no_repeat_ngram_size: 0
|
| 181 |
+
eos_token_id: null
|
| 182 |
+
exponential_decay_length_penalty: null
|
| 183 |
+
extra_augmentation_config: null
|
| 184 |
+
finetuning_task: null
|
| 185 |
+
forced_bos_token_id: null
|
| 186 |
+
forced_eos_token_id: null
|
| 187 |
+
id2label:
|
| 188 |
+
0: LABEL_0
|
| 189 |
+
1: LABEL_1
|
| 190 |
+
is_decoder: false
|
| 191 |
+
is_encoder_decoder: false
|
| 192 |
+
label2id:
|
| 193 |
+
LABEL_0: 0
|
| 194 |
+
LABEL_1: 1
|
| 195 |
+
length_penalty: 1.0
|
| 196 |
+
load_bf16: false
|
| 197 |
+
max_length: 20
|
| 198 |
+
min_length: 0
|
| 199 |
+
model_name: nvidia/Eagle-Block2A-2B-v2
|
| 200 |
+
no_repeat_ngram_size: 0
|
| 201 |
+
num_beam_groups: 1
|
| 202 |
+
num_beams: 1
|
| 203 |
+
num_return_sequences: 1
|
| 204 |
+
output_attentions: false
|
| 205 |
+
output_hidden_states: false
|
| 206 |
+
output_scores: false
|
| 207 |
+
pad_token_id: null
|
| 208 |
+
prefix: null
|
| 209 |
+
problem_type: null
|
| 210 |
+
pruned_heads: {}
|
| 211 |
+
random_rotation_angle: null
|
| 212 |
+
remove_invalid_values: false
|
| 213 |
+
repetition_penalty: 1.0
|
| 214 |
+
reproject_vision: false
|
| 215 |
+
return_dict: true
|
| 216 |
+
return_dict_in_generate: false
|
| 217 |
+
sep_token_id: null
|
| 218 |
+
state_dropout_prob: 0.0
|
| 219 |
+
suppress_tokens: null
|
| 220 |
+
task_specific_params: null
|
| 221 |
+
temperature: 1.0
|
| 222 |
+
tf_legacy_loss: false
|
| 223 |
+
tie_encoder_decoder: false
|
| 224 |
+
tie_word_embeddings: true
|
| 225 |
+
tokenizer_class: null
|
| 226 |
+
top_k: 50
|
| 227 |
+
top_p: 1.0
|
| 228 |
+
torch_dtype: null
|
| 229 |
+
torchscript: false
|
| 230 |
+
transformers_version: null
|
| 231 |
+
tune_diffusion_model: true
|
| 232 |
+
tune_llm: false
|
| 233 |
+
tune_projector: true
|
| 234 |
+
tune_visual: false
|
| 235 |
+
typical_p: 1.0
|
| 236 |
+
use_bfloat16: false
|
| 237 |
+
use_relative_action: true
|
| 238 |
+
training: !!python/object:gr00t.configs.training.training_config.TrainingConfig
|
| 239 |
+
add_rl_callback: false
|
| 240 |
+
assert_loss_less_than: null
|
| 241 |
+
batch_size: null
|
| 242 |
+
bf16: true
|
| 243 |
+
dataloader_num_workers: 6
|
| 244 |
+
ddp_bucket_cap_mb: 100
|
| 245 |
+
deepspeed_stage: 2
|
| 246 |
+
enable_open_loop_eval: false
|
| 247 |
+
enable_profiling: false
|
| 248 |
+
eval_batch_size: 2
|
| 249 |
+
eval_bf16: true
|
| 250 |
+
eval_set_split_ratio: 0.1
|
| 251 |
+
eval_steps: 500
|
| 252 |
+
eval_strategy: 'no'
|
| 253 |
+
experiment_name: null
|
| 254 |
+
fp16: false
|
| 255 |
+
global_batch_size: 768
|
| 256 |
+
gradient_accumulation_steps: 1
|
| 257 |
+
gradient_checkpointing: false
|
| 258 |
+
learning_rate: 0.0001
|
| 259 |
+
logging_steps: 10
|
| 260 |
+
lr_scheduler_type: cosine
|
| 261 |
+
max_concurrent_uploads: 2
|
| 262 |
+
max_grad_norm: 1.0
|
| 263 |
+
max_retries: 3
|
| 264 |
+
max_steps: 5000
|
| 265 |
+
num_gpus: 8
|
| 266 |
+
open_loop_eval_plot_indices: null
|
| 267 |
+
open_loop_eval_steps_per_traj: 100
|
| 268 |
+
open_loop_eval_traj_ids:
|
| 269 |
+
- 0
|
| 270 |
+
optim: adamw_torch
|
| 271 |
+
output_dir: ./outputs
|
| 272 |
+
remove_unused_columns: false
|
| 273 |
+
save_best_eval_metric_greater_is_better: true
|
| 274 |
+
save_best_eval_metric_name: ''
|
| 275 |
+
save_steps: 1000
|
| 276 |
+
save_total_limit: 5
|
| 277 |
+
save_vl_model: false
|
| 278 |
+
start_from_checkpoint: nvidia/GR00T-N1.6-3B
|
| 279 |
+
tf32: true
|
| 280 |
+
transformers_access_token: null
|
| 281 |
+
transformers_cache_dir: null
|
| 282 |
+
transformers_local_files_only: false
|
| 283 |
+
transformers_trust_remote_code: true
|
| 284 |
+
upload_checkpoints: false
|
| 285 |
+
upload_every: 1000
|
| 286 |
+
upload_last_n_checkpoints: 5
|
| 287 |
+
use_ddp: false
|
| 288 |
+
use_wandb: true
|
| 289 |
+
wandb_project: finetune-gr00t-n1d6
|
| 290 |
+
warmup_ratio: 0.05
|
| 291 |
+
warmup_steps: 0
|
| 292 |
+
weight_decay: 1.0e-05
|
experiment_cfg/dataset_statistics.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
experiment_cfg/final_model_config.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "Gr00tN1d6",
|
| 3 |
+
"model_dtype": "bfloat16",
|
| 4 |
+
"model_name": "nvidia/Eagle-Block2A-2B-v2",
|
| 5 |
+
"backbone_model_type": "eagle",
|
| 6 |
+
"model_revision": null,
|
| 7 |
+
"tune_top_llm_layers": 4,
|
| 8 |
+
"backbone_embedding_dim": 2048,
|
| 9 |
+
"tune_llm": false,
|
| 10 |
+
"tune_visual": false,
|
| 11 |
+
"select_layer": 16,
|
| 12 |
+
"reproject_vision": false,
|
| 13 |
+
"use_flash_attention": true,
|
| 14 |
+
"load_bf16": true,
|
| 15 |
+
"collator_overwrite_image_inputs": false,
|
| 16 |
+
"eagle_collator": true,
|
| 17 |
+
"backbone_trainable_params_fp32": true,
|
| 18 |
+
"extra_augmentation_config": null,
|
| 19 |
+
"apply_sincos_state_encoding": true,
|
| 20 |
+
"use_relative_action": true,
|
| 21 |
+
"max_state_dim": 128,
|
| 22 |
+
"max_action_dim": 128,
|
| 23 |
+
"action_horizon": 50,
|
| 24 |
+
"hidden_size": 1024,
|
| 25 |
+
"input_embedding_dim": 1536,
|
| 26 |
+
"add_pos_embed": true,
|
| 27 |
+
"attn_dropout": 0.2,
|
| 28 |
+
"use_vlln": true,
|
| 29 |
+
"max_seq_len": 1024,
|
| 30 |
+
"use_alternate_vl_dit": true,
|
| 31 |
+
"attend_text_every_n_blocks": 2,
|
| 32 |
+
"diffusion_model_cfg": {
|
| 33 |
+
"attention_head_dim": 48,
|
| 34 |
+
"dropout": 0.2,
|
| 35 |
+
"final_dropout": true,
|
| 36 |
+
"interleave_self_attention": true,
|
| 37 |
+
"norm_type": "ada_norm",
|
| 38 |
+
"num_attention_heads": 32,
|
| 39 |
+
"num_layers": 32,
|
| 40 |
+
"output_dim": 1024,
|
| 41 |
+
"positional_embeddings": null
|
| 42 |
+
},
|
| 43 |
+
"num_inference_timesteps": 4,
|
| 44 |
+
"noise_beta_alpha": 1.5,
|
| 45 |
+
"noise_beta_beta": 1.0,
|
| 46 |
+
"noise_s": 0.999,
|
| 47 |
+
"num_timestep_buckets": 1000,
|
| 48 |
+
"tune_projector": true,
|
| 49 |
+
"tune_diffusion_model": true,
|
| 50 |
+
"tune_vlln": true,
|
| 51 |
+
"state_dropout_prob": 0.0,
|
| 52 |
+
"state_additive_noise_scale": 0.0,
|
| 53 |
+
"max_num_embodiments": 32
|
| 54 |
+
}
|
experiment_cfg/final_processor_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
global_step3000/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2bee2ad0ca183018f94471159e9cc04178dc5dba256022b70b79c952329b9ca9
|
| 3 |
+
size 2429964677
|
global_step3000/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ff0cf1757feafc5bc9cecb4c514dee4896624dc1c368c8879f5d1a0c2b83c6a
|
| 3 |
+
size 2429964421
|
global_step3000/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:14403243e919f12ed35e34ad2a102e941ed701b45e3559f44d1684e36f437f9c
|
| 3 |
+
size 2429964613
|
global_step3000/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:b6815ef723aba74053387a977af3406f590aa4656cd376c570be26bac46a228e
|
| 3 |
+
size 2429964485
|
global_step3000/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:ff16936c49d3df8ea7dedae3eeec5a112bc07b7772999201f445fe2f06bdee04
|
| 3 |
+
size 2429964421
|
global_step3000/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:10388becbee530c724bd170f404bc3eec747b4baea5782b12108fbaf850b6ee9
|
| 3 |
+
size 2429964613
|
global_step3000/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:11ac8f8c3c5689ac3f0d50cad84fbf978957b1b78bcc12150256eb27da7810ec
|
| 3 |
+
size 2429962437
|
global_step3000/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:a8a623a748f99d776d5435a56c20731a14905fb703b1989e3840adcd66e0b14d
|
| 3 |
+
size 2429960773
|
global_step3000/mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5b6f8e52f81f0fc3486d49bc15a6f27c958be648cd8bb92e562217d8648a20a
|
| 3 |
+
size 9907202435
|
latest
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
global_step3000
|
model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7678721ff5facbfbfc9fa1b5cfd85099e1721d5044d227aeecb81f5a090382c
|
| 3 |
+
size 4991091456
|
model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:911f5e8c95dc954aa46fcddedb9e7f761f0c55d37a1aca317ec47c2714ef08c3
|
| 3 |
+
size 1582283096
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
processor_config.json
ADDED
|
@@ -0,0 +1,508 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"processor_class": "Gr00tN1d6Processor",
|
| 3 |
+
"processor_kwargs": {
|
| 4 |
+
"modality_configs": {
|
| 5 |
+
"behavior_r1_pro": {
|
| 6 |
+
"video": {
|
| 7 |
+
"delta_indices": [
|
| 8 |
+
0
|
| 9 |
+
],
|
| 10 |
+
"modality_keys": [
|
| 11 |
+
"observation.images.rgb.head_256_256",
|
| 12 |
+
"observation.images.rgb.left_wrist_256_256",
|
| 13 |
+
"observation.images.rgb.right_wrist_256_256"
|
| 14 |
+
],
|
| 15 |
+
"sin_cos_embedding_keys": null,
|
| 16 |
+
"mean_std_embedding_keys": null,
|
| 17 |
+
"action_configs": null
|
| 18 |
+
},
|
| 19 |
+
"state": {
|
| 20 |
+
"delta_indices": [
|
| 21 |
+
0
|
| 22 |
+
],
|
| 23 |
+
"modality_keys": [
|
| 24 |
+
"robot_pos",
|
| 25 |
+
"robot_ori_cos",
|
| 26 |
+
"robot_ori_sin",
|
| 27 |
+
"robot_2d_ori",
|
| 28 |
+
"robot_2d_ori_cos",
|
| 29 |
+
"robot_2d_ori_sin",
|
| 30 |
+
"robot_lin_vel",
|
| 31 |
+
"robot_ang_vel",
|
| 32 |
+
"arm_left_qpos",
|
| 33 |
+
"arm_left_qpos_sin",
|
| 34 |
+
"arm_left_qpos_cos",
|
| 35 |
+
"eef_left_pos",
|
| 36 |
+
"eef_left_quat",
|
| 37 |
+
"gripper_left_qpos",
|
| 38 |
+
"arm_right_qpos",
|
| 39 |
+
"arm_right_qpos_sin",
|
| 40 |
+
"arm_right_qpos_cos",
|
| 41 |
+
"eef_right_pos",
|
| 42 |
+
"eef_right_quat",
|
| 43 |
+
"gripper_right_qpos",
|
| 44 |
+
"trunk_qpos"
|
| 45 |
+
],
|
| 46 |
+
"sin_cos_embedding_keys": null,
|
| 47 |
+
"mean_std_embedding_keys": null,
|
| 48 |
+
"action_configs": null
|
| 49 |
+
},
|
| 50 |
+
"action": {
|
| 51 |
+
"delta_indices": [
|
| 52 |
+
0,
|
| 53 |
+
1,
|
| 54 |
+
2,
|
| 55 |
+
3,
|
| 56 |
+
4,
|
| 57 |
+
5,
|
| 58 |
+
6,
|
| 59 |
+
7,
|
| 60 |
+
8,
|
| 61 |
+
9,
|
| 62 |
+
10,
|
| 63 |
+
11,
|
| 64 |
+
12,
|
| 65 |
+
13,
|
| 66 |
+
14,
|
| 67 |
+
15,
|
| 68 |
+
16,
|
| 69 |
+
17,
|
| 70 |
+
18,
|
| 71 |
+
19,
|
| 72 |
+
20,
|
| 73 |
+
21,
|
| 74 |
+
22,
|
| 75 |
+
23,
|
| 76 |
+
24,
|
| 77 |
+
25,
|
| 78 |
+
26,
|
| 79 |
+
27,
|
| 80 |
+
28,
|
| 81 |
+
29,
|
| 82 |
+
30,
|
| 83 |
+
31
|
| 84 |
+
],
|
| 85 |
+
"modality_keys": [
|
| 86 |
+
"base",
|
| 87 |
+
"torso",
|
| 88 |
+
"left_arm",
|
| 89 |
+
"left_gripper",
|
| 90 |
+
"right_arm",
|
| 91 |
+
"right_gripper"
|
| 92 |
+
],
|
| 93 |
+
"sin_cos_embedding_keys": null,
|
| 94 |
+
"mean_std_embedding_keys": null,
|
| 95 |
+
"action_configs": [
|
| 96 |
+
{
|
| 97 |
+
"rep": "ABSOLUTE",
|
| 98 |
+
"type": "NON_EEF",
|
| 99 |
+
"format": "DEFAULT",
|
| 100 |
+
"state_key": null
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"rep": "RELATIVE",
|
| 104 |
+
"type": "NON_EEF",
|
| 105 |
+
"format": "DEFAULT",
|
| 106 |
+
"state_key": "trunk_qpos"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"rep": "RELATIVE",
|
| 110 |
+
"type": "NON_EEF",
|
| 111 |
+
"format": "DEFAULT",
|
| 112 |
+
"state_key": "arm_left_qpos"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"rep": "ABSOLUTE",
|
| 116 |
+
"type": "NON_EEF",
|
| 117 |
+
"format": "DEFAULT",
|
| 118 |
+
"state_key": null
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"rep": "RELATIVE",
|
| 122 |
+
"type": "NON_EEF",
|
| 123 |
+
"format": "DEFAULT",
|
| 124 |
+
"state_key": "arm_right_qpos"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"rep": "ABSOLUTE",
|
| 128 |
+
"type": "NON_EEF",
|
| 129 |
+
"format": "DEFAULT",
|
| 130 |
+
"state_key": null
|
| 131 |
+
}
|
| 132 |
+
]
|
| 133 |
+
},
|
| 134 |
+
"language": {
|
| 135 |
+
"delta_indices": [
|
| 136 |
+
0
|
| 137 |
+
],
|
| 138 |
+
"modality_keys": [
|
| 139 |
+
"annotation.human.coarse_action"
|
| 140 |
+
],
|
| 141 |
+
"sin_cos_embedding_keys": null,
|
| 142 |
+
"mean_std_embedding_keys": null,
|
| 143 |
+
"action_configs": null
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
"gr1": {
|
| 147 |
+
"video": {
|
| 148 |
+
"delta_indices": [
|
| 149 |
+
0
|
| 150 |
+
],
|
| 151 |
+
"modality_keys": [
|
| 152 |
+
"ego_view_bg_crop_pad_res256_freq20"
|
| 153 |
+
],
|
| 154 |
+
"sin_cos_embedding_keys": null,
|
| 155 |
+
"mean_std_embedding_keys": null,
|
| 156 |
+
"action_configs": null
|
| 157 |
+
},
|
| 158 |
+
"state": {
|
| 159 |
+
"delta_indices": [
|
| 160 |
+
0
|
| 161 |
+
],
|
| 162 |
+
"modality_keys": [
|
| 163 |
+
"left_arm",
|
| 164 |
+
"right_arm",
|
| 165 |
+
"left_hand",
|
| 166 |
+
"right_hand",
|
| 167 |
+
"waist"
|
| 168 |
+
],
|
| 169 |
+
"sin_cos_embedding_keys": [
|
| 170 |
+
"left_arm",
|
| 171 |
+
"right_arm",
|
| 172 |
+
"left_hand",
|
| 173 |
+
"right_hand",
|
| 174 |
+
"waist"
|
| 175 |
+
],
|
| 176 |
+
"mean_std_embedding_keys": null,
|
| 177 |
+
"action_configs": null
|
| 178 |
+
},
|
| 179 |
+
"action": {
|
| 180 |
+
"delta_indices": [
|
| 181 |
+
0,
|
| 182 |
+
1,
|
| 183 |
+
2,
|
| 184 |
+
3,
|
| 185 |
+
4,
|
| 186 |
+
5,
|
| 187 |
+
6,
|
| 188 |
+
7,
|
| 189 |
+
8,
|
| 190 |
+
9,
|
| 191 |
+
10,
|
| 192 |
+
11,
|
| 193 |
+
12,
|
| 194 |
+
13,
|
| 195 |
+
14,
|
| 196 |
+
15
|
| 197 |
+
],
|
| 198 |
+
"modality_keys": [
|
| 199 |
+
"left_arm",
|
| 200 |
+
"right_arm",
|
| 201 |
+
"left_hand",
|
| 202 |
+
"right_hand",
|
| 203 |
+
"waist"
|
| 204 |
+
],
|
| 205 |
+
"sin_cos_embedding_keys": null,
|
| 206 |
+
"mean_std_embedding_keys": null,
|
| 207 |
+
"action_configs": [
|
| 208 |
+
{
|
| 209 |
+
"rep": "RELATIVE",
|
| 210 |
+
"type": "NON_EEF",
|
| 211 |
+
"format": "DEFAULT",
|
| 212 |
+
"state_key": null
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"rep": "RELATIVE",
|
| 216 |
+
"type": "NON_EEF",
|
| 217 |
+
"format": "DEFAULT",
|
| 218 |
+
"state_key": null
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"rep": "RELATIVE",
|
| 222 |
+
"type": "NON_EEF",
|
| 223 |
+
"format": "DEFAULT",
|
| 224 |
+
"state_key": null
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"rep": "RELATIVE",
|
| 228 |
+
"type": "NON_EEF",
|
| 229 |
+
"format": "DEFAULT",
|
| 230 |
+
"state_key": null
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"rep": "ABSOLUTE",
|
| 234 |
+
"type": "NON_EEF",
|
| 235 |
+
"format": "DEFAULT",
|
| 236 |
+
"state_key": null
|
| 237 |
+
}
|
| 238 |
+
]
|
| 239 |
+
},
|
| 240 |
+
"language": {
|
| 241 |
+
"delta_indices": [
|
| 242 |
+
0
|
| 243 |
+
],
|
| 244 |
+
"modality_keys": [
|
| 245 |
+
"task"
|
| 246 |
+
],
|
| 247 |
+
"sin_cos_embedding_keys": null,
|
| 248 |
+
"mean_std_embedding_keys": null,
|
| 249 |
+
"action_configs": null
|
| 250 |
+
}
|
| 251 |
+
},
|
| 252 |
+
"robocasa_panda_omron": {
|
| 253 |
+
"video": {
|
| 254 |
+
"delta_indices": [
|
| 255 |
+
0
|
| 256 |
+
],
|
| 257 |
+
"modality_keys": [
|
| 258 |
+
"res256_image_side_0",
|
| 259 |
+
"res256_image_side_1",
|
| 260 |
+
"res256_image_wrist_0"
|
| 261 |
+
],
|
| 262 |
+
"sin_cos_embedding_keys": null,
|
| 263 |
+
"mean_std_embedding_keys": null,
|
| 264 |
+
"action_configs": null
|
| 265 |
+
},
|
| 266 |
+
"state": {
|
| 267 |
+
"delta_indices": [
|
| 268 |
+
0
|
| 269 |
+
],
|
| 270 |
+
"modality_keys": [
|
| 271 |
+
"end_effector_position_relative",
|
| 272 |
+
"end_effector_rotation_relative",
|
| 273 |
+
"gripper_qpos",
|
| 274 |
+
"base_position",
|
| 275 |
+
"base_rotation"
|
| 276 |
+
],
|
| 277 |
+
"sin_cos_embedding_keys": null,
|
| 278 |
+
"mean_std_embedding_keys": null,
|
| 279 |
+
"action_configs": null
|
| 280 |
+
},
|
| 281 |
+
"action": {
|
| 282 |
+
"delta_indices": [
|
| 283 |
+
0,
|
| 284 |
+
1,
|
| 285 |
+
2,
|
| 286 |
+
3,
|
| 287 |
+
4,
|
| 288 |
+
5,
|
| 289 |
+
6,
|
| 290 |
+
7,
|
| 291 |
+
8,
|
| 292 |
+
9,
|
| 293 |
+
10,
|
| 294 |
+
11,
|
| 295 |
+
12,
|
| 296 |
+
13,
|
| 297 |
+
14,
|
| 298 |
+
15
|
| 299 |
+
],
|
| 300 |
+
"modality_keys": [
|
| 301 |
+
"end_effector_position",
|
| 302 |
+
"end_effector_rotation",
|
| 303 |
+
"gripper_close",
|
| 304 |
+
"base_motion",
|
| 305 |
+
"control_mode"
|
| 306 |
+
],
|
| 307 |
+
"sin_cos_embedding_keys": null,
|
| 308 |
+
"mean_std_embedding_keys": null,
|
| 309 |
+
"action_configs": [
|
| 310 |
+
{
|
| 311 |
+
"rep": "ABSOLUTE",
|
| 312 |
+
"type": "NON_EEF",
|
| 313 |
+
"format": "DEFAULT",
|
| 314 |
+
"state_key": null
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"rep": "ABSOLUTE",
|
| 318 |
+
"type": "NON_EEF",
|
| 319 |
+
"format": "DEFAULT",
|
| 320 |
+
"state_key": null
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"rep": "ABSOLUTE",
|
| 324 |
+
"type": "NON_EEF",
|
| 325 |
+
"format": "DEFAULT",
|
| 326 |
+
"state_key": null
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"rep": "ABSOLUTE",
|
| 330 |
+
"type": "NON_EEF",
|
| 331 |
+
"format": "DEFAULT",
|
| 332 |
+
"state_key": null
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"rep": "ABSOLUTE",
|
| 336 |
+
"type": "NON_EEF",
|
| 337 |
+
"format": "DEFAULT",
|
| 338 |
+
"state_key": null
|
| 339 |
+
}
|
| 340 |
+
]
|
| 341 |
+
},
|
| 342 |
+
"language": {
|
| 343 |
+
"delta_indices": [
|
| 344 |
+
0
|
| 345 |
+
],
|
| 346 |
+
"modality_keys": [
|
| 347 |
+
"annotation.human.action.task_description"
|
| 348 |
+
],
|
| 349 |
+
"sin_cos_embedding_keys": null,
|
| 350 |
+
"mean_std_embedding_keys": null,
|
| 351 |
+
"action_configs": null
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
"unitree_g1": {
|
| 355 |
+
"video": {
|
| 356 |
+
"delta_indices": [
|
| 357 |
+
0
|
| 358 |
+
],
|
| 359 |
+
"modality_keys": [
|
| 360 |
+
"ego_view"
|
| 361 |
+
],
|
| 362 |
+
"sin_cos_embedding_keys": null,
|
| 363 |
+
"mean_std_embedding_keys": null,
|
| 364 |
+
"action_configs": null
|
| 365 |
+
},
|
| 366 |
+
"state": {
|
| 367 |
+
"delta_indices": [
|
| 368 |
+
0
|
| 369 |
+
],
|
| 370 |
+
"modality_keys": [
|
| 371 |
+
"left_leg",
|
| 372 |
+
"right_leg",
|
| 373 |
+
"waist",
|
| 374 |
+
"left_arm",
|
| 375 |
+
"right_arm",
|
| 376 |
+
"left_hand",
|
| 377 |
+
"right_hand"
|
| 378 |
+
],
|
| 379 |
+
"sin_cos_embedding_keys": null,
|
| 380 |
+
"mean_std_embedding_keys": null,
|
| 381 |
+
"action_configs": null
|
| 382 |
+
},
|
| 383 |
+
"action": {
|
| 384 |
+
"delta_indices": [
|
| 385 |
+
0,
|
| 386 |
+
1,
|
| 387 |
+
2,
|
| 388 |
+
3,
|
| 389 |
+
4,
|
| 390 |
+
5,
|
| 391 |
+
6,
|
| 392 |
+
7,
|
| 393 |
+
8,
|
| 394 |
+
9,
|
| 395 |
+
10,
|
| 396 |
+
11,
|
| 397 |
+
12,
|
| 398 |
+
13,
|
| 399 |
+
14,
|
| 400 |
+
15,
|
| 401 |
+
16,
|
| 402 |
+
17,
|
| 403 |
+
18,
|
| 404 |
+
19,
|
| 405 |
+
20,
|
| 406 |
+
21,
|
| 407 |
+
22,
|
| 408 |
+
23,
|
| 409 |
+
24,
|
| 410 |
+
25,
|
| 411 |
+
26,
|
| 412 |
+
27,
|
| 413 |
+
28,
|
| 414 |
+
29
|
| 415 |
+
],
|
| 416 |
+
"modality_keys": [
|
| 417 |
+
"left_arm",
|
| 418 |
+
"right_arm",
|
| 419 |
+
"left_hand",
|
| 420 |
+
"right_hand",
|
| 421 |
+
"waist",
|
| 422 |
+
"base_height_command",
|
| 423 |
+
"navigate_command"
|
| 424 |
+
],
|
| 425 |
+
"sin_cos_embedding_keys": null,
|
| 426 |
+
"mean_std_embedding_keys": null,
|
| 427 |
+
"action_configs": [
|
| 428 |
+
{
|
| 429 |
+
"rep": "RELATIVE",
|
| 430 |
+
"type": "NON_EEF",
|
| 431 |
+
"format": "DEFAULT",
|
| 432 |
+
"state_key": null
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"rep": "RELATIVE",
|
| 436 |
+
"type": "NON_EEF",
|
| 437 |
+
"format": "DEFAULT",
|
| 438 |
+
"state_key": null
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"rep": "ABSOLUTE",
|
| 442 |
+
"type": "NON_EEF",
|
| 443 |
+
"format": "DEFAULT",
|
| 444 |
+
"state_key": null
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"rep": "ABSOLUTE",
|
| 448 |
+
"type": "NON_EEF",
|
| 449 |
+
"format": "DEFAULT",
|
| 450 |
+
"state_key": null
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"rep": "ABSOLUTE",
|
| 454 |
+
"type": "NON_EEF",
|
| 455 |
+
"format": "DEFAULT",
|
| 456 |
+
"state_key": null
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"rep": "ABSOLUTE",
|
| 460 |
+
"type": "NON_EEF",
|
| 461 |
+
"format": "DEFAULT",
|
| 462 |
+
"state_key": null
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"rep": "ABSOLUTE",
|
| 466 |
+
"type": "NON_EEF",
|
| 467 |
+
"format": "DEFAULT",
|
| 468 |
+
"state_key": null
|
| 469 |
+
}
|
| 470 |
+
]
|
| 471 |
+
},
|
| 472 |
+
"language": {
|
| 473 |
+
"delta_indices": [
|
| 474 |
+
0
|
| 475 |
+
],
|
| 476 |
+
"modality_keys": [
|
| 477 |
+
"annotation.human.task_description"
|
| 478 |
+
],
|
| 479 |
+
"sin_cos_embedding_keys": null,
|
| 480 |
+
"mean_std_embedding_keys": null,
|
| 481 |
+
"action_configs": null
|
| 482 |
+
}
|
| 483 |
+
}
|
| 484 |
+
},
|
| 485 |
+
"image_crop_size": null,
|
| 486 |
+
"image_target_size": null,
|
| 487 |
+
"use_albumentations": true,
|
| 488 |
+
"random_rotation_angle": null,
|
| 489 |
+
"color_jitter_params": {
|
| 490 |
+
"brightness": 0.3,
|
| 491 |
+
"contrast": 0.4,
|
| 492 |
+
"saturation": 0.5,
|
| 493 |
+
"hue": 0.08
|
| 494 |
+
},
|
| 495 |
+
"shortest_image_edge": 256,
|
| 496 |
+
"crop_fraction": 0.95,
|
| 497 |
+
"model_name": "nvidia/Eagle-Block2A-2B-v2",
|
| 498 |
+
"model_type": "eagle",
|
| 499 |
+
"formalize_language": true,
|
| 500 |
+
"max_state_dim": 128,
|
| 501 |
+
"max_action_dim": 128,
|
| 502 |
+
"max_action_horizon": 50,
|
| 503 |
+
"use_percentiles": false,
|
| 504 |
+
"clip_outliers": true,
|
| 505 |
+
"apply_sincos_state_encoding": true,
|
| 506 |
+
"use_relative_action": true
|
| 507 |
+
}
|
| 508 |
+
}
|
rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:932e1f8d91fe7ccf48c0e96843dd3b1fd68daa7444f02a740cc61e36cfb7b9db
|
| 3 |
+
size 16389
|
rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af0ec08538c0f4709cc3e28baed7e0a76a36c1222cbcb12e107b6cda14ee7b2e
|
| 3 |
+
size 16389
|
rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:779952c995e85a3f009b0cf8c2a569a944b493599a214175acbd6b1e6aac1e3b
|
| 3 |
+
size 16389
|
rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64291057621487199da0626cffc9d8f60b8ec5d0c1936cda1a8ca1a3f5725972
|
| 3 |
+
size 16389
|
rng_state_4.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b26f238cb7391a1f70a754fda7ae00858fca668fc362c26a4ffd5ee844dad4c8
|
| 3 |
+
size 16389
|
rng_state_5.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c55d9af5147ece28cc96a998fcf57a65aa2ffbb3c02d9ab7f704d7c27f2b1b52
|
| 3 |
+
size 16389
|
rng_state_6.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b17b143f2cd01bcee3fbf53e9d6bf20301f7a699d091277b21bab7b8f46d28d
|
| 3 |
+
size 16389
|
rng_state_7.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:415046c91afbb1f92fa5bf5a32ca45188793a330bf390fc5904c3bfebdd07435
|
| 3 |
+
size 16389
|
scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46c2a89c5d2cbcb36d487414dffb5e48474a9a9308a1e4dc29d920720acffd00
|
| 3 |
+
size 1465
|
statistics.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
trainer_state.json
ADDED
|
@@ -0,0 +1,1834 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.6,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 3000,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"grad_norm": 0.5559354424476624,
|
| 14 |
+
"learning_rate": 3.6e-06,
|
| 15 |
+
"loss": 1.0823,
|
| 16 |
+
"step": 10
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"grad_norm": 0.18485906720161438,
|
| 20 |
+
"learning_rate": 7.6e-06,
|
| 21 |
+
"loss": 1.069,
|
| 22 |
+
"step": 20
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"grad_norm": 0.08647036552429199,
|
| 26 |
+
"learning_rate": 1.16e-05,
|
| 27 |
+
"loss": 1.0486,
|
| 28 |
+
"step": 30
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"grad_norm": 0.07257135212421417,
|
| 32 |
+
"learning_rate": 1.56e-05,
|
| 33 |
+
"loss": 1.0473,
|
| 34 |
+
"step": 40
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"grad_norm": 0.08415159583091736,
|
| 38 |
+
"learning_rate": 1.9600000000000002e-05,
|
| 39 |
+
"loss": 1.043,
|
| 40 |
+
"step": 50
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"grad_norm": 0.06655513495206833,
|
| 44 |
+
"learning_rate": 2.36e-05,
|
| 45 |
+
"loss": 1.0373,
|
| 46 |
+
"step": 60
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"grad_norm": 0.0863005742430687,
|
| 50 |
+
"learning_rate": 2.7600000000000003e-05,
|
| 51 |
+
"loss": 1.029,
|
| 52 |
+
"step": 70
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"grad_norm": 0.12436088174581528,
|
| 56 |
+
"learning_rate": 3.16e-05,
|
| 57 |
+
"loss": 1.0279,
|
| 58 |
+
"step": 80
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"grad_norm": 0.6764670014381409,
|
| 62 |
+
"learning_rate": 3.56e-05,
|
| 63 |
+
"loss": 1.0159,
|
| 64 |
+
"step": 90
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"grad_norm": 0.2262982428073883,
|
| 68 |
+
"learning_rate": 3.960000000000001e-05,
|
| 69 |
+
"loss": 0.9873,
|
| 70 |
+
"step": 100
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"grad_norm": 0.5042984485626221,
|
| 74 |
+
"learning_rate": 4.36e-05,
|
| 75 |
+
"loss": 0.9377,
|
| 76 |
+
"step": 110
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"grad_norm": 0.6563258767127991,
|
| 80 |
+
"learning_rate": 4.76e-05,
|
| 81 |
+
"loss": 0.849,
|
| 82 |
+
"step": 120
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"grad_norm": 0.7196201086044312,
|
| 86 |
+
"learning_rate": 5.16e-05,
|
| 87 |
+
"loss": 0.7659,
|
| 88 |
+
"step": 130
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"grad_norm": 0.8339490294456482,
|
| 92 |
+
"learning_rate": 5.560000000000001e-05,
|
| 93 |
+
"loss": 0.6787,
|
| 94 |
+
"step": 140
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"grad_norm": 0.6760191321372986,
|
| 98 |
+
"learning_rate": 5.96e-05,
|
| 99 |
+
"loss": 0.6034,
|
| 100 |
+
"step": 150
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"grad_norm": 1.257449746131897,
|
| 104 |
+
"learning_rate": 6.36e-05,
|
| 105 |
+
"loss": 0.5337,
|
| 106 |
+
"step": 160
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"grad_norm": 0.8350836634635925,
|
| 110 |
+
"learning_rate": 6.76e-05,
|
| 111 |
+
"loss": 0.4704,
|
| 112 |
+
"step": 170
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"grad_norm": 0.7451810836791992,
|
| 116 |
+
"learning_rate": 7.16e-05,
|
| 117 |
+
"loss": 0.4174,
|
| 118 |
+
"step": 180
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"grad_norm": 1.0491914749145508,
|
| 122 |
+
"learning_rate": 7.560000000000001e-05,
|
| 123 |
+
"loss": 0.378,
|
| 124 |
+
"step": 190
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"grad_norm": 0.8344352841377258,
|
| 128 |
+
"learning_rate": 7.960000000000001e-05,
|
| 129 |
+
"loss": 0.3493,
|
| 130 |
+
"step": 200
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"grad_norm": 1.2254072427749634,
|
| 134 |
+
"learning_rate": 8.36e-05,
|
| 135 |
+
"loss": 0.3153,
|
| 136 |
+
"step": 210
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"grad_norm": 0.7592558860778809,
|
| 140 |
+
"learning_rate": 8.76e-05,
|
| 141 |
+
"loss": 0.2874,
|
| 142 |
+
"step": 220
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"grad_norm": 1.0830541849136353,
|
| 146 |
+
"learning_rate": 9.16e-05,
|
| 147 |
+
"loss": 0.2624,
|
| 148 |
+
"step": 230
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"grad_norm": 0.8931087255477905,
|
| 152 |
+
"learning_rate": 9.56e-05,
|
| 153 |
+
"loss": 0.237,
|
| 154 |
+
"step": 240
|
| 155 |
+
},
|
| 156 |
+
{
|
| 157 |
+
"grad_norm": 1.8609894514083862,
|
| 158 |
+
"learning_rate": 9.960000000000001e-05,
|
| 159 |
+
"loss": 0.2146,
|
| 160 |
+
"step": 250
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"grad_norm": 0.9318896532058716,
|
| 164 |
+
"learning_rate": 9.999911419878559e-05,
|
| 165 |
+
"loss": 0.1964,
|
| 166 |
+
"step": 260
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"grad_norm": 0.7143105864524841,
|
| 170 |
+
"learning_rate": 9.999605221019081e-05,
|
| 171 |
+
"loss": 0.1792,
|
| 172 |
+
"step": 270
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"grad_norm": 0.6846148371696472,
|
| 176 |
+
"learning_rate": 9.999080323230761e-05,
|
| 177 |
+
"loss": 0.1651,
|
| 178 |
+
"step": 280
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"grad_norm": 0.9225878119468689,
|
| 182 |
+
"learning_rate": 9.998336749474329e-05,
|
| 183 |
+
"loss": 0.162,
|
| 184 |
+
"step": 290
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"grad_norm": 0.7997626662254333,
|
| 188 |
+
"learning_rate": 9.997374532276107e-05,
|
| 189 |
+
"loss": 0.151,
|
| 190 |
+
"step": 300
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"grad_norm": 1.0227575302124023,
|
| 194 |
+
"learning_rate": 9.996193713726596e-05,
|
| 195 |
+
"loss": 0.1404,
|
| 196 |
+
"step": 310
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"grad_norm": 0.87727952003479,
|
| 200 |
+
"learning_rate": 9.994794345478624e-05,
|
| 201 |
+
"loss": 0.1291,
|
| 202 |
+
"step": 320
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"grad_norm": 0.6596595644950867,
|
| 206 |
+
"learning_rate": 9.99317648874509e-05,
|
| 207 |
+
"loss": 0.1247,
|
| 208 |
+
"step": 330
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"grad_norm": 0.8926133513450623,
|
| 212 |
+
"learning_rate": 9.991340214296292e-05,
|
| 213 |
+
"loss": 0.1181,
|
| 214 |
+
"step": 340
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"grad_norm": 1.250920295715332,
|
| 218 |
+
"learning_rate": 9.989285602456819e-05,
|
| 219 |
+
"loss": 0.1078,
|
| 220 |
+
"step": 350
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"grad_norm": 0.8213496804237366,
|
| 224 |
+
"learning_rate": 9.98701274310205e-05,
|
| 225 |
+
"loss": 0.1036,
|
| 226 |
+
"step": 360
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"grad_norm": 0.8651483058929443,
|
| 230 |
+
"learning_rate": 9.984521735654218e-05,
|
| 231 |
+
"loss": 0.0871,
|
| 232 |
+
"step": 370
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"grad_norm": 0.8947259783744812,
|
| 236 |
+
"learning_rate": 9.981812689078057e-05,
|
| 237 |
+
"loss": 0.0835,
|
| 238 |
+
"step": 380
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"grad_norm": 0.7791630625724792,
|
| 242 |
+
"learning_rate": 9.978885721876041e-05,
|
| 243 |
+
"loss": 0.0711,
|
| 244 |
+
"step": 390
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"grad_norm": 0.6401210427284241,
|
| 248 |
+
"learning_rate": 9.975740962083198e-05,
|
| 249 |
+
"loss": 0.0685,
|
| 250 |
+
"step": 400
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"grad_norm": 0.7891541123390198,
|
| 254 |
+
"learning_rate": 9.972378547261504e-05,
|
| 255 |
+
"loss": 0.0649,
|
| 256 |
+
"step": 410
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"grad_norm": 0.8624171018600464,
|
| 260 |
+
"learning_rate": 9.968798624493885e-05,
|
| 261 |
+
"loss": 0.0608,
|
| 262 |
+
"step": 420
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"grad_norm": 0.747508704662323,
|
| 266 |
+
"learning_rate": 9.965001350377753e-05,
|
| 267 |
+
"loss": 0.0655,
|
| 268 |
+
"step": 430
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"grad_norm": 0.9979900121688843,
|
| 272 |
+
"learning_rate": 9.960986891018183e-05,
|
| 273 |
+
"loss": 0.061,
|
| 274 |
+
"step": 440
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"grad_norm": 0.8667426705360413,
|
| 278 |
+
"learning_rate": 9.95675542202063e-05,
|
| 279 |
+
"loss": 0.0564,
|
| 280 |
+
"step": 450
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"grad_norm": 0.794110894203186,
|
| 284 |
+
"learning_rate": 9.952307128483256e-05,
|
| 285 |
+
"loss": 0.0534,
|
| 286 |
+
"step": 460
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"grad_norm": 0.9227981567382812,
|
| 290 |
+
"learning_rate": 9.947642204988835e-05,
|
| 291 |
+
"loss": 0.0536,
|
| 292 |
+
"step": 470
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"grad_norm": 0.8375693559646606,
|
| 296 |
+
"learning_rate": 9.942760855596226e-05,
|
| 297 |
+
"loss": 0.0572,
|
| 298 |
+
"step": 480
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"grad_norm": 0.7793428897857666,
|
| 302 |
+
"learning_rate": 9.937663293831471e-05,
|
| 303 |
+
"loss": 0.0567,
|
| 304 |
+
"step": 490
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"grad_norm": 0.91439288854599,
|
| 308 |
+
"learning_rate": 9.932349742678433e-05,
|
| 309 |
+
"loss": 0.0589,
|
| 310 |
+
"step": 500
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"grad_norm": 0.6325005888938904,
|
| 314 |
+
"learning_rate": 9.926820434569051e-05,
|
| 315 |
+
"loss": 0.054,
|
| 316 |
+
"step": 510
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"grad_norm": 0.7945265769958496,
|
| 320 |
+
"learning_rate": 9.921075611373179e-05,
|
| 321 |
+
"loss": 0.0572,
|
| 322 |
+
"step": 520
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"grad_norm": 0.6466599702835083,
|
| 326 |
+
"learning_rate": 9.915115524387988e-05,
|
| 327 |
+
"loss": 0.0514,
|
| 328 |
+
"step": 530
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"grad_norm": 0.7136776447296143,
|
| 332 |
+
"learning_rate": 9.908940434326997e-05,
|
| 333 |
+
"loss": 0.0494,
|
| 334 |
+
"step": 540
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"grad_norm": 0.6695866584777832,
|
| 338 |
+
"learning_rate": 9.902550611308645e-05,
|
| 339 |
+
"loss": 0.0508,
|
| 340 |
+
"step": 550
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"grad_norm": 0.7268887758255005,
|
| 344 |
+
"learning_rate": 9.895946334844494e-05,
|
| 345 |
+
"loss": 0.0488,
|
| 346 |
+
"step": 560
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"grad_norm": 0.6591328382492065,
|
| 350 |
+
"learning_rate": 9.889127893826989e-05,
|
| 351 |
+
"loss": 0.0523,
|
| 352 |
+
"step": 570
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"grad_norm": 0.6082274913787842,
|
| 356 |
+
"learning_rate": 9.882095586516831e-05,
|
| 357 |
+
"loss": 0.0511,
|
| 358 |
+
"step": 580
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"grad_norm": 0.6265851855278015,
|
| 362 |
+
"learning_rate": 9.874849720529921e-05,
|
| 363 |
+
"loss": 0.0495,
|
| 364 |
+
"step": 590
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"grad_norm": 0.6399803161621094,
|
| 368 |
+
"learning_rate": 9.867390612823914e-05,
|
| 369 |
+
"loss": 0.0508,
|
| 370 |
+
"step": 600
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"grad_norm": 0.69126296043396,
|
| 374 |
+
"learning_rate": 9.859718589684344e-05,
|
| 375 |
+
"loss": 0.045,
|
| 376 |
+
"step": 610
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"grad_norm": 0.6693220734596252,
|
| 380 |
+
"learning_rate": 9.851833986710353e-05,
|
| 381 |
+
"loss": 0.0479,
|
| 382 |
+
"step": 620
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"grad_norm": 0.6840260624885559,
|
| 386 |
+
"learning_rate": 9.843737148800023e-05,
|
| 387 |
+
"loss": 0.0455,
|
| 388 |
+
"step": 630
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"grad_norm": 0.6354555487632751,
|
| 392 |
+
"learning_rate": 9.835428430135271e-05,
|
| 393 |
+
"loss": 0.0491,
|
| 394 |
+
"step": 640
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"grad_norm": 0.6883493661880493,
|
| 398 |
+
"learning_rate": 9.82690819416637e-05,
|
| 399 |
+
"loss": 0.047,
|
| 400 |
+
"step": 650
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"grad_norm": 0.5793970823287964,
|
| 404 |
+
"learning_rate": 9.818176813596041e-05,
|
| 405 |
+
"loss": 0.0472,
|
| 406 |
+
"step": 660
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"grad_norm": 0.6782571077346802,
|
| 410 |
+
"learning_rate": 9.809234670363159e-05,
|
| 411 |
+
"loss": 0.0417,
|
| 412 |
+
"step": 670
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"grad_norm": 0.6450523734092712,
|
| 416 |
+
"learning_rate": 9.800082155626034e-05,
|
| 417 |
+
"loss": 0.048,
|
| 418 |
+
"step": 680
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"grad_norm": 0.8551111221313477,
|
| 422 |
+
"learning_rate": 9.790719669745312e-05,
|
| 423 |
+
"loss": 0.0427,
|
| 424 |
+
"step": 690
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"grad_norm": 0.664426863193512,
|
| 428 |
+
"learning_rate": 9.781147622266455e-05,
|
| 429 |
+
"loss": 0.0411,
|
| 430 |
+
"step": 700
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"grad_norm": 0.625340461730957,
|
| 434 |
+
"learning_rate": 9.771366431901831e-05,
|
| 435 |
+
"loss": 0.0407,
|
| 436 |
+
"step": 710
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"grad_norm": 0.7012608647346497,
|
| 440 |
+
"learning_rate": 9.761376526512394e-05,
|
| 441 |
+
"loss": 0.0453,
|
| 442 |
+
"step": 720
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"grad_norm": 0.5774393677711487,
|
| 446 |
+
"learning_rate": 9.751178343088963e-05,
|
| 447 |
+
"loss": 0.0414,
|
| 448 |
+
"step": 730
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"grad_norm": 0.6276810765266418,
|
| 452 |
+
"learning_rate": 9.740772327733123e-05,
|
| 453 |
+
"loss": 0.0393,
|
| 454 |
+
"step": 740
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"grad_norm": 0.6698007583618164,
|
| 458 |
+
"learning_rate": 9.730158935637697e-05,
|
| 459 |
+
"loss": 0.0418,
|
| 460 |
+
"step": 750
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"grad_norm": 0.7352779507637024,
|
| 464 |
+
"learning_rate": 9.719338631066834e-05,
|
| 465 |
+
"loss": 0.0428,
|
| 466 |
+
"step": 760
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"grad_norm": 0.6087306141853333,
|
| 470 |
+
"learning_rate": 9.708311887335713e-05,
|
| 471 |
+
"loss": 0.0416,
|
| 472 |
+
"step": 770
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"grad_norm": 0.7178246378898621,
|
| 476 |
+
"learning_rate": 9.697079186789823e-05,
|
| 477 |
+
"loss": 0.0404,
|
| 478 |
+
"step": 780
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"grad_norm": 0.6541343927383423,
|
| 482 |
+
"learning_rate": 9.685641020783876e-05,
|
| 483 |
+
"loss": 0.0416,
|
| 484 |
+
"step": 790
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"grad_norm": 0.7868788838386536,
|
| 488 |
+
"learning_rate": 9.67399788966031e-05,
|
| 489 |
+
"loss": 0.0419,
|
| 490 |
+
"step": 800
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"grad_norm": 0.6893565058708191,
|
| 494 |
+
"learning_rate": 9.662150302727395e-05,
|
| 495 |
+
"loss": 0.0384,
|
| 496 |
+
"step": 810
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"grad_norm": 0.555400013923645,
|
| 500 |
+
"learning_rate": 9.650098778236968e-05,
|
| 501 |
+
"loss": 0.0416,
|
| 502 |
+
"step": 820
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"grad_norm": 0.6447874307632446,
|
| 506 |
+
"learning_rate": 9.637843843361749e-05,
|
| 507 |
+
"loss": 0.0373,
|
| 508 |
+
"step": 830
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"grad_norm": 0.536383867263794,
|
| 512 |
+
"learning_rate": 9.62538603417229e-05,
|
| 513 |
+
"loss": 0.0396,
|
| 514 |
+
"step": 840
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"grad_norm": 0.7303484082221985,
|
| 518 |
+
"learning_rate": 9.612725895613526e-05,
|
| 519 |
+
"loss": 0.0408,
|
| 520 |
+
"step": 850
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"grad_norm": 0.5790427923202515,
|
| 524 |
+
"learning_rate": 9.599863981480926e-05,
|
| 525 |
+
"loss": 0.0388,
|
| 526 |
+
"step": 860
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"grad_norm": 0.5682157874107361,
|
| 530 |
+
"learning_rate": 9.586800854396283e-05,
|
| 531 |
+
"loss": 0.0374,
|
| 532 |
+
"step": 870
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"grad_norm": 0.6473719477653503,
|
| 536 |
+
"learning_rate": 9.573537085783095e-05,
|
| 537 |
+
"loss": 0.0362,
|
| 538 |
+
"step": 880
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"grad_norm": 0.6345632672309875,
|
| 542 |
+
"learning_rate": 9.560073255841571e-05,
|
| 543 |
+
"loss": 0.0424,
|
| 544 |
+
"step": 890
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"grad_norm": 0.7409985661506653,
|
| 548 |
+
"learning_rate": 9.546409953523247e-05,
|
| 549 |
+
"loss": 0.0402,
|
| 550 |
+
"step": 900
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"grad_norm": 0.5863397121429443,
|
| 554 |
+
"learning_rate": 9.532547776505229e-05,
|
| 555 |
+
"loss": 0.0383,
|
| 556 |
+
"step": 910
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"grad_norm": 0.5814641118049622,
|
| 560 |
+
"learning_rate": 9.518487331164048e-05,
|
| 561 |
+
"loss": 0.0365,
|
| 562 |
+
"step": 920
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"grad_norm": 0.6481305956840515,
|
| 566 |
+
"learning_rate": 9.504229232549134e-05,
|
| 567 |
+
"loss": 0.0366,
|
| 568 |
+
"step": 930
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"grad_norm": 0.5147769451141357,
|
| 572 |
+
"learning_rate": 9.489774104355909e-05,
|
| 573 |
+
"loss": 0.0366,
|
| 574 |
+
"step": 940
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"grad_norm": 0.5624653100967407,
|
| 578 |
+
"learning_rate": 9.475122578898507e-05,
|
| 579 |
+
"loss": 0.0366,
|
| 580 |
+
"step": 950
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"grad_norm": 0.6372323632240295,
|
| 584 |
+
"learning_rate": 9.460275297082119e-05,
|
| 585 |
+
"loss": 0.0352,
|
| 586 |
+
"step": 960
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"grad_norm": 0.7020699381828308,
|
| 590 |
+
"learning_rate": 9.445232908374948e-05,
|
| 591 |
+
"loss": 0.0393,
|
| 592 |
+
"step": 970
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"grad_norm": 0.6161628365516663,
|
| 596 |
+
"learning_rate": 9.429996070779808e-05,
|
| 597 |
+
"loss": 0.0355,
|
| 598 |
+
"step": 980
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"grad_norm": 0.603900134563446,
|
| 602 |
+
"learning_rate": 9.414565450805333e-05,
|
| 603 |
+
"loss": 0.0383,
|
| 604 |
+
"step": 990
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"grad_norm": 0.6112933158874512,
|
| 608 |
+
"learning_rate": 9.398941723436831e-05,
|
| 609 |
+
"loss": 0.035,
|
| 610 |
+
"step": 1000
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"grad_norm": 0.7074472904205322,
|
| 614 |
+
"learning_rate": 9.383125572106752e-05,
|
| 615 |
+
"loss": 0.0373,
|
| 616 |
+
"step": 1010
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"grad_norm": 0.494828462600708,
|
| 620 |
+
"learning_rate": 9.367117688664791e-05,
|
| 621 |
+
"loss": 0.0351,
|
| 622 |
+
"step": 1020
|
| 623 |
+
},
|
| 624 |
+
{
|
| 625 |
+
"grad_norm": 0.5672491788864136,
|
| 626 |
+
"learning_rate": 9.35091877334763e-05,
|
| 627 |
+
"loss": 0.0372,
|
| 628 |
+
"step": 1030
|
| 629 |
+
},
|
| 630 |
+
{
|
| 631 |
+
"grad_norm": 0.6434159874916077,
|
| 632 |
+
"learning_rate": 9.334529534748297e-05,
|
| 633 |
+
"loss": 0.0362,
|
| 634 |
+
"step": 1040
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"grad_norm": 0.6190149784088135,
|
| 638 |
+
"learning_rate": 9.317950689785188e-05,
|
| 639 |
+
"loss": 0.0374,
|
| 640 |
+
"step": 1050
|
| 641 |
+
},
|
| 642 |
+
{
|
| 643 |
+
"grad_norm": 0.603152334690094,
|
| 644 |
+
"learning_rate": 9.301182963670688e-05,
|
| 645 |
+
"loss": 0.0363,
|
| 646 |
+
"step": 1060
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"grad_norm": 0.661074161529541,
|
| 650 |
+
"learning_rate": 9.284227089879456e-05,
|
| 651 |
+
"loss": 0.0379,
|
| 652 |
+
"step": 1070
|
| 653 |
+
},
|
| 654 |
+
{
|
| 655 |
+
"grad_norm": 0.5567871928215027,
|
| 656 |
+
"learning_rate": 9.26708381011634e-05,
|
| 657 |
+
"loss": 0.0333,
|
| 658 |
+
"step": 1080
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"grad_norm": 0.5913634300231934,
|
| 662 |
+
"learning_rate": 9.249753874283937e-05,
|
| 663 |
+
"loss": 0.0368,
|
| 664 |
+
"step": 1090
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"grad_norm": 0.502541184425354,
|
| 668 |
+
"learning_rate": 9.232238040449779e-05,
|
| 669 |
+
"loss": 0.0328,
|
| 670 |
+
"step": 1100
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"grad_norm": 0.5475773215293884,
|
| 674 |
+
"learning_rate": 9.214537074813181e-05,
|
| 675 |
+
"loss": 0.0332,
|
| 676 |
+
"step": 1110
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"grad_norm": 0.48871368169784546,
|
| 680 |
+
"learning_rate": 9.196651751671724e-05,
|
| 681 |
+
"loss": 0.0345,
|
| 682 |
+
"step": 1120
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"grad_norm": 0.5380433201789856,
|
| 686 |
+
"learning_rate": 9.178582853387384e-05,
|
| 687 |
+
"loss": 0.0399,
|
| 688 |
+
"step": 1130
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"grad_norm": 0.5141293406486511,
|
| 692 |
+
"learning_rate": 9.160331170352304e-05,
|
| 693 |
+
"loss": 0.036,
|
| 694 |
+
"step": 1140
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"grad_norm": 0.5303184986114502,
|
| 698 |
+
"learning_rate": 9.141897500954229e-05,
|
| 699 |
+
"loss": 0.0328,
|
| 700 |
+
"step": 1150
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"grad_norm": 0.7091088891029358,
|
| 704 |
+
"learning_rate": 9.123282651541576e-05,
|
| 705 |
+
"loss": 0.035,
|
| 706 |
+
"step": 1160
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"grad_norm": 0.5543999671936035,
|
| 710 |
+
"learning_rate": 9.104487436388161e-05,
|
| 711 |
+
"loss": 0.0364,
|
| 712 |
+
"step": 1170
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"grad_norm": 0.5627062916755676,
|
| 716 |
+
"learning_rate": 9.085512677657582e-05,
|
| 717 |
+
"loss": 0.0347,
|
| 718 |
+
"step": 1180
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"grad_norm": 0.5156577825546265,
|
| 722 |
+
"learning_rate": 9.066359205367258e-05,
|
| 723 |
+
"loss": 0.0346,
|
| 724 |
+
"step": 1190
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"grad_norm": 0.49538666009902954,
|
| 728 |
+
"learning_rate": 9.047027857352112e-05,
|
| 729 |
+
"loss": 0.034,
|
| 730 |
+
"step": 1200
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"grad_norm": 0.5321311950683594,
|
| 734 |
+
"learning_rate": 9.027519479227935e-05,
|
| 735 |
+
"loss": 0.0318,
|
| 736 |
+
"step": 1210
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"grad_norm": 0.5262922048568726,
|
| 740 |
+
"learning_rate": 9.007834924354383e-05,
|
| 741 |
+
"loss": 0.0334,
|
| 742 |
+
"step": 1220
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"grad_norm": 0.5841954946517944,
|
| 746 |
+
"learning_rate": 8.987975053797655e-05,
|
| 747 |
+
"loss": 0.035,
|
| 748 |
+
"step": 1230
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"grad_norm": 0.6468002200126648,
|
| 752 |
+
"learning_rate": 8.967940736292825e-05,
|
| 753 |
+
"loss": 0.0345,
|
| 754 |
+
"step": 1240
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"grad_norm": 0.46627357602119446,
|
| 758 |
+
"learning_rate": 8.947732848205846e-05,
|
| 759 |
+
"loss": 0.0337,
|
| 760 |
+
"step": 1250
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"grad_norm": 0.5673134326934814,
|
| 764 |
+
"learning_rate": 8.927352273495204e-05,
|
| 765 |
+
"loss": 0.0344,
|
| 766 |
+
"step": 1260
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"grad_norm": 0.4791153371334076,
|
| 770 |
+
"learning_rate": 8.906799903673265e-05,
|
| 771 |
+
"loss": 0.0313,
|
| 772 |
+
"step": 1270
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"grad_norm": 0.5575198531150818,
|
| 776 |
+
"learning_rate": 8.88607663776726e-05,
|
| 777 |
+
"loss": 0.0339,
|
| 778 |
+
"step": 1280
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"grad_norm": 0.5566645860671997,
|
| 782 |
+
"learning_rate": 8.865183382279978e-05,
|
| 783 |
+
"loss": 0.0331,
|
| 784 |
+
"step": 1290
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"grad_norm": 0.5976455807685852,
|
| 788 |
+
"learning_rate": 8.844121051150096e-05,
|
| 789 |
+
"loss": 0.0316,
|
| 790 |
+
"step": 1300
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"grad_norm": 0.6168678402900696,
|
| 794 |
+
"learning_rate": 8.822890565712211e-05,
|
| 795 |
+
"loss": 0.0312,
|
| 796 |
+
"step": 1310
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"grad_norm": 0.5337743163108826,
|
| 800 |
+
"learning_rate": 8.801492854656536e-05,
|
| 801 |
+
"loss": 0.0337,
|
| 802 |
+
"step": 1320
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"grad_norm": 0.48274630308151245,
|
| 806 |
+
"learning_rate": 8.779928853988268e-05,
|
| 807 |
+
"loss": 0.0316,
|
| 808 |
+
"step": 1330
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"grad_norm": 0.5677248239517212,
|
| 812 |
+
"learning_rate": 8.758199506986655e-05,
|
| 813 |
+
"loss": 0.0314,
|
| 814 |
+
"step": 1340
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"grad_norm": 0.5900443196296692,
|
| 818 |
+
"learning_rate": 8.73630576416373e-05,
|
| 819 |
+
"loss": 0.0325,
|
| 820 |
+
"step": 1350
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"grad_norm": 0.6770350337028503,
|
| 824 |
+
"learning_rate": 8.714248583222726e-05,
|
| 825 |
+
"loss": 0.0336,
|
| 826 |
+
"step": 1360
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"grad_norm": 0.5382674932479858,
|
| 830 |
+
"learning_rate": 8.692028929016196e-05,
|
| 831 |
+
"loss": 0.0326,
|
| 832 |
+
"step": 1370
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"grad_norm": 0.6602237224578857,
|
| 836 |
+
"learning_rate": 8.669647773503797e-05,
|
| 837 |
+
"loss": 0.0321,
|
| 838 |
+
"step": 1380
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"grad_norm": 0.49021854996681213,
|
| 842 |
+
"learning_rate": 8.647106095709773e-05,
|
| 843 |
+
"loss": 0.0314,
|
| 844 |
+
"step": 1390
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"grad_norm": 0.4499266445636749,
|
| 848 |
+
"learning_rate": 8.624404881680139e-05,
|
| 849 |
+
"loss": 0.0322,
|
| 850 |
+
"step": 1400
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"grad_norm": 0.5155117511749268,
|
| 854 |
+
"learning_rate": 8.601545124439535e-05,
|
| 855 |
+
"loss": 0.0281,
|
| 856 |
+
"step": 1410
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"grad_norm": 0.4751155376434326,
|
| 860 |
+
"learning_rate": 8.5785278239478e-05,
|
| 861 |
+
"loss": 0.0336,
|
| 862 |
+
"step": 1420
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"grad_norm": 0.5017455816268921,
|
| 866 |
+
"learning_rate": 8.555353987056224e-05,
|
| 867 |
+
"loss": 0.0301,
|
| 868 |
+
"step": 1430
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"grad_norm": 0.5961615443229675,
|
| 872 |
+
"learning_rate": 8.532024627463505e-05,
|
| 873 |
+
"loss": 0.0295,
|
| 874 |
+
"step": 1440
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"grad_norm": 0.5489777326583862,
|
| 878 |
+
"learning_rate": 8.508540765671407e-05,
|
| 879 |
+
"loss": 0.0293,
|
| 880 |
+
"step": 1450
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"grad_norm": 0.4945319890975952,
|
| 884 |
+
"learning_rate": 8.484903428940121e-05,
|
| 885 |
+
"loss": 0.0295,
|
| 886 |
+
"step": 1460
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"grad_norm": 0.3737506866455078,
|
| 890 |
+
"learning_rate": 8.461113651243334e-05,
|
| 891 |
+
"loss": 0.0337,
|
| 892 |
+
"step": 1470
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"grad_norm": 0.5633870959281921,
|
| 896 |
+
"learning_rate": 8.437172473222987e-05,
|
| 897 |
+
"loss": 0.0343,
|
| 898 |
+
"step": 1480
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"grad_norm": 0.6242406368255615,
|
| 902 |
+
"learning_rate": 8.413080942143767e-05,
|
| 903 |
+
"loss": 0.0298,
|
| 904 |
+
"step": 1490
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"grad_norm": 0.4667608439922333,
|
| 908 |
+
"learning_rate": 8.388840111847288e-05,
|
| 909 |
+
"loss": 0.0307,
|
| 910 |
+
"step": 1500
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"grad_norm": 0.6139534115791321,
|
| 914 |
+
"learning_rate": 8.364451042705998e-05,
|
| 915 |
+
"loss": 0.0322,
|
| 916 |
+
"step": 1510
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"grad_norm": 0.5110672116279602,
|
| 920 |
+
"learning_rate": 8.33991480157679e-05,
|
| 921 |
+
"loss": 0.0286,
|
| 922 |
+
"step": 1520
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"grad_norm": 0.49589312076568604,
|
| 926 |
+
"learning_rate": 8.315232461754338e-05,
|
| 927 |
+
"loss": 0.0299,
|
| 928 |
+
"step": 1530
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"grad_norm": 0.5107879042625427,
|
| 932 |
+
"learning_rate": 8.290405102924144e-05,
|
| 933 |
+
"loss": 0.0312,
|
| 934 |
+
"step": 1540
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"grad_norm": 0.4434208869934082,
|
| 938 |
+
"learning_rate": 8.265433811115316e-05,
|
| 939 |
+
"loss": 0.0312,
|
| 940 |
+
"step": 1550
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"grad_norm": 0.47019222378730774,
|
| 944 |
+
"learning_rate": 8.240319678653049e-05,
|
| 945 |
+
"loss": 0.0311,
|
| 946 |
+
"step": 1560
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"grad_norm": 0.5786542892456055,
|
| 950 |
+
"learning_rate": 8.215063804110857e-05,
|
| 951 |
+
"loss": 0.0329,
|
| 952 |
+
"step": 1570
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"grad_norm": 0.5275363326072693,
|
| 956 |
+
"learning_rate": 8.189667292262512e-05,
|
| 957 |
+
"loss": 0.0298,
|
| 958 |
+
"step": 1580
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"grad_norm": 0.43545565009117126,
|
| 962 |
+
"learning_rate": 8.164131254033716e-05,
|
| 963 |
+
"loss": 0.0302,
|
| 964 |
+
"step": 1590
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"grad_norm": 0.45718058943748474,
|
| 968 |
+
"learning_rate": 8.138456806453503e-05,
|
| 969 |
+
"loss": 0.031,
|
| 970 |
+
"step": 1600
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"grad_norm": 0.4676479697227478,
|
| 974 |
+
"learning_rate": 8.112645072605386e-05,
|
| 975 |
+
"loss": 0.029,
|
| 976 |
+
"step": 1610
|
| 977 |
+
},
|
| 978 |
+
{
|
| 979 |
+
"grad_norm": 0.5057063102722168,
|
| 980 |
+
"learning_rate": 8.086697181578222e-05,
|
| 981 |
+
"loss": 0.0327,
|
| 982 |
+
"step": 1620
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"grad_norm": 0.47432973980903625,
|
| 986 |
+
"learning_rate": 8.060614268416823e-05,
|
| 987 |
+
"loss": 0.0311,
|
| 988 |
+
"step": 1630
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"grad_norm": 0.44880610704421997,
|
| 992 |
+
"learning_rate": 8.034397474072309e-05,
|
| 993 |
+
"loss": 0.0288,
|
| 994 |
+
"step": 1640
|
| 995 |
+
},
|
| 996 |
+
{
|
| 997 |
+
"grad_norm": 0.42829442024230957,
|
| 998 |
+
"learning_rate": 8.008047945352193e-05,
|
| 999 |
+
"loss": 0.0289,
|
| 1000 |
+
"step": 1650
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"grad_norm": 0.4990540146827698,
|
| 1004 |
+
"learning_rate": 7.981566834870225e-05,
|
| 1005 |
+
"loss": 0.0316,
|
| 1006 |
+
"step": 1660
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"grad_norm": 0.4872753322124481,
|
| 1010 |
+
"learning_rate": 7.954955300995961e-05,
|
| 1011 |
+
"loss": 0.0295,
|
| 1012 |
+
"step": 1670
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"grad_norm": 0.4374905526638031,
|
| 1016 |
+
"learning_rate": 7.928214507804104e-05,
|
| 1017 |
+
"loss": 0.0295,
|
| 1018 |
+
"step": 1680
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"grad_norm": 0.4577570855617523,
|
| 1022 |
+
"learning_rate": 7.901345625023576e-05,
|
| 1023 |
+
"loss": 0.0279,
|
| 1024 |
+
"step": 1690
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"grad_norm": 0.570063591003418,
|
| 1028 |
+
"learning_rate": 7.874349827986354e-05,
|
| 1029 |
+
"loss": 0.0313,
|
| 1030 |
+
"step": 1700
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"grad_norm": 0.5689144134521484,
|
| 1034 |
+
"learning_rate": 7.847228297576053e-05,
|
| 1035 |
+
"loss": 0.0314,
|
| 1036 |
+
"step": 1710
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"grad_norm": 0.6005192995071411,
|
| 1040 |
+
"learning_rate": 7.819982220176276e-05,
|
| 1041 |
+
"loss": 0.0293,
|
| 1042 |
+
"step": 1720
|
| 1043 |
+
},
|
| 1044 |
+
{
|
| 1045 |
+
"grad_norm": 0.48968422412872314,
|
| 1046 |
+
"learning_rate": 7.792612787618714e-05,
|
| 1047 |
+
"loss": 0.0283,
|
| 1048 |
+
"step": 1730
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"grad_norm": 0.5264543890953064,
|
| 1052 |
+
"learning_rate": 7.765121197131009e-05,
|
| 1053 |
+
"loss": 0.0322,
|
| 1054 |
+
"step": 1740
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"grad_norm": 0.45399144291877747,
|
| 1058 |
+
"learning_rate": 7.737508651284391e-05,
|
| 1059 |
+
"loss": 0.0282,
|
| 1060 |
+
"step": 1750
|
| 1061 |
+
},
|
| 1062 |
+
{
|
| 1063 |
+
"grad_norm": 0.46420109272003174,
|
| 1064 |
+
"learning_rate": 7.709776357941069e-05,
|
| 1065 |
+
"loss": 0.0303,
|
| 1066 |
+
"step": 1760
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"grad_norm": 0.5926071405410767,
|
| 1070 |
+
"learning_rate": 7.681925530201392e-05,
|
| 1071 |
+
"loss": 0.029,
|
| 1072 |
+
"step": 1770
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"grad_norm": 0.4228203594684601,
|
| 1076 |
+
"learning_rate": 7.65395738635079e-05,
|
| 1077 |
+
"loss": 0.0295,
|
| 1078 |
+
"step": 1780
|
| 1079 |
+
},
|
| 1080 |
+
{
|
| 1081 |
+
"grad_norm": 0.4261937439441681,
|
| 1082 |
+
"learning_rate": 7.62587314980648e-05,
|
| 1083 |
+
"loss": 0.0301,
|
| 1084 |
+
"step": 1790
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"grad_norm": 0.364317923784256,
|
| 1088 |
+
"learning_rate": 7.597674049063947e-05,
|
| 1089 |
+
"loss": 0.0273,
|
| 1090 |
+
"step": 1800
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"grad_norm": 0.5105056166648865,
|
| 1094 |
+
"learning_rate": 7.569361317643211e-05,
|
| 1095 |
+
"loss": 0.0274,
|
| 1096 |
+
"step": 1810
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"grad_norm": 0.4250337779521942,
|
| 1100 |
+
"learning_rate": 7.540936194034865e-05,
|
| 1101 |
+
"loss": 0.0287,
|
| 1102 |
+
"step": 1820
|
| 1103 |
+
},
|
| 1104 |
+
{
|
| 1105 |
+
"grad_norm": 0.508609414100647,
|
| 1106 |
+
"learning_rate": 7.512399921645901e-05,
|
| 1107 |
+
"loss": 0.0263,
|
| 1108 |
+
"step": 1830
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"grad_norm": 0.43374282121658325,
|
| 1112 |
+
"learning_rate": 7.483753748745317e-05,
|
| 1113 |
+
"loss": 0.0271,
|
| 1114 |
+
"step": 1840
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"grad_norm": 0.5021738409996033,
|
| 1118 |
+
"learning_rate": 7.454998928409516e-05,
|
| 1119 |
+
"loss": 0.0285,
|
| 1120 |
+
"step": 1850
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"grad_norm": 0.43334484100341797,
|
| 1124 |
+
"learning_rate": 7.426136718467493e-05,
|
| 1125 |
+
"loss": 0.0271,
|
| 1126 |
+
"step": 1860
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"grad_norm": 0.6424834132194519,
|
| 1130 |
+
"learning_rate": 7.397168381445812e-05,
|
| 1131 |
+
"loss": 0.0289,
|
| 1132 |
+
"step": 1870
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"grad_norm": 0.4178658723831177,
|
| 1136 |
+
"learning_rate": 7.368095184513377e-05,
|
| 1137 |
+
"loss": 0.0296,
|
| 1138 |
+
"step": 1880
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"grad_norm": 0.37668871879577637,
|
| 1142 |
+
"learning_rate": 7.338918399426005e-05,
|
| 1143 |
+
"loss": 0.0262,
|
| 1144 |
+
"step": 1890
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"grad_norm": 0.35139450430870056,
|
| 1148 |
+
"learning_rate": 7.309639302470801e-05,
|
| 1149 |
+
"loss": 0.0273,
|
| 1150 |
+
"step": 1900
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"grad_norm": 0.5204653739929199,
|
| 1154 |
+
"learning_rate": 7.280259174410312e-05,
|
| 1155 |
+
"loss": 0.0314,
|
| 1156 |
+
"step": 1910
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"grad_norm": 0.44355618953704834,
|
| 1160 |
+
"learning_rate": 7.250779300426517e-05,
|
| 1161 |
+
"loss": 0.0266,
|
| 1162 |
+
"step": 1920
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"grad_norm": 0.4035153090953827,
|
| 1166 |
+
"learning_rate": 7.22120097006461e-05,
|
| 1167 |
+
"loss": 0.029,
|
| 1168 |
+
"step": 1930
|
| 1169 |
+
},
|
| 1170 |
+
{
|
| 1171 |
+
"grad_norm": 0.38775312900543213,
|
| 1172 |
+
"learning_rate": 7.191525477176577e-05,
|
| 1173 |
+
"loss": 0.0264,
|
| 1174 |
+
"step": 1940
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"grad_norm": 0.48700636625289917,
|
| 1178 |
+
"learning_rate": 7.161754119864616e-05,
|
| 1179 |
+
"loss": 0.0311,
|
| 1180 |
+
"step": 1950
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"grad_norm": 0.5373815894126892,
|
| 1184 |
+
"learning_rate": 7.131888200424339e-05,
|
| 1185 |
+
"loss": 0.0309,
|
| 1186 |
+
"step": 1960
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"grad_norm": 0.469199538230896,
|
| 1190 |
+
"learning_rate": 7.101929025287816e-05,
|
| 1191 |
+
"loss": 0.0278,
|
| 1192 |
+
"step": 1970
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"grad_norm": 0.35309985280036926,
|
| 1196 |
+
"learning_rate": 7.071877904966423e-05,
|
| 1197 |
+
"loss": 0.0266,
|
| 1198 |
+
"step": 1980
|
| 1199 |
+
},
|
| 1200 |
+
{
|
| 1201 |
+
"grad_norm": 0.4618619680404663,
|
| 1202 |
+
"learning_rate": 7.04173615399351e-05,
|
| 1203 |
+
"loss": 0.0248,
|
| 1204 |
+
"step": 1990
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"grad_norm": 0.49200907349586487,
|
| 1208 |
+
"learning_rate": 7.011505090866913e-05,
|
| 1209 |
+
"loss": 0.0271,
|
| 1210 |
+
"step": 2000
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"grad_norm": 0.47308212518692017,
|
| 1214 |
+
"learning_rate": 6.981186037991271e-05,
|
| 1215 |
+
"loss": 0.025,
|
| 1216 |
+
"step": 2010
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"grad_norm": 0.4434255361557007,
|
| 1220 |
+
"learning_rate": 6.950780321620174e-05,
|
| 1221 |
+
"loss": 0.0268,
|
| 1222 |
+
"step": 2020
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"grad_norm": 0.41241246461868286,
|
| 1226 |
+
"learning_rate": 6.920289271798157e-05,
|
| 1227 |
+
"loss": 0.0273,
|
| 1228 |
+
"step": 2030
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"grad_norm": 0.39038220047950745,
|
| 1232 |
+
"learning_rate": 6.889714222302517e-05,
|
| 1233 |
+
"loss": 0.0249,
|
| 1234 |
+
"step": 2040
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"grad_norm": 0.3572078049182892,
|
| 1238 |
+
"learning_rate": 6.85905651058497e-05,
|
| 1239 |
+
"loss": 0.0246,
|
| 1240 |
+
"step": 2050
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"grad_norm": 0.5165647864341736,
|
| 1244 |
+
"learning_rate": 6.82831747771314e-05,
|
| 1245 |
+
"loss": 0.0287,
|
| 1246 |
+
"step": 2060
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"grad_norm": 0.4069594740867615,
|
| 1250 |
+
"learning_rate": 6.797498468311907e-05,
|
| 1251 |
+
"loss": 0.027,
|
| 1252 |
+
"step": 2070
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"grad_norm": 0.5012965798377991,
|
| 1256 |
+
"learning_rate": 6.766600830504585e-05,
|
| 1257 |
+
"loss": 0.026,
|
| 1258 |
+
"step": 2080
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"grad_norm": 0.44795289635658264,
|
| 1262 |
+
"learning_rate": 6.735625915853942e-05,
|
| 1263 |
+
"loss": 0.0282,
|
| 1264 |
+
"step": 2090
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"grad_norm": 0.4666174054145813,
|
| 1268 |
+
"learning_rate": 6.70457507930309e-05,
|
| 1269 |
+
"loss": 0.0268,
|
| 1270 |
+
"step": 2100
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"grad_norm": 0.3589176535606384,
|
| 1274 |
+
"learning_rate": 6.673449679116215e-05,
|
| 1275 |
+
"loss": 0.0248,
|
| 1276 |
+
"step": 2110
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"grad_norm": 0.5180903077125549,
|
| 1280 |
+
"learning_rate": 6.642251076819148e-05,
|
| 1281 |
+
"loss": 0.0249,
|
| 1282 |
+
"step": 2120
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"grad_norm": 0.46328508853912354,
|
| 1286 |
+
"learning_rate": 6.610980637139827e-05,
|
| 1287 |
+
"loss": 0.0266,
|
| 1288 |
+
"step": 2130
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"grad_norm": 0.5663616061210632,
|
| 1292 |
+
"learning_rate": 6.579639727948583e-05,
|
| 1293 |
+
"loss": 0.0261,
|
| 1294 |
+
"step": 2140
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"grad_norm": 0.520371675491333,
|
| 1298 |
+
"learning_rate": 6.548229720198315e-05,
|
| 1299 |
+
"loss": 0.0235,
|
| 1300 |
+
"step": 2150
|
| 1301 |
+
},
|
| 1302 |
+
{
|
| 1303 |
+
"grad_norm": 0.49466976523399353,
|
| 1304 |
+
"learning_rate": 6.516751987864517e-05,
|
| 1305 |
+
"loss": 0.026,
|
| 1306 |
+
"step": 2160
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"grad_norm": 0.4332965314388275,
|
| 1310 |
+
"learning_rate": 6.485207907885175e-05,
|
| 1311 |
+
"loss": 0.0257,
|
| 1312 |
+
"step": 2170
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"grad_norm": 0.33331456780433655,
|
| 1316 |
+
"learning_rate": 6.453598860100536e-05,
|
| 1317 |
+
"loss": 0.0273,
|
| 1318 |
+
"step": 2180
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"grad_norm": 0.45183008909225464,
|
| 1322 |
+
"learning_rate": 6.421926227192749e-05,
|
| 1323 |
+
"loss": 0.0277,
|
| 1324 |
+
"step": 2190
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"grad_norm": 0.5034352540969849,
|
| 1328 |
+
"learning_rate": 6.390191394625381e-05,
|
| 1329 |
+
"loss": 0.0288,
|
| 1330 |
+
"step": 2200
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"grad_norm": 0.4152516722679138,
|
| 1334 |
+
"learning_rate": 6.358395750582817e-05,
|
| 1335 |
+
"loss": 0.0264,
|
| 1336 |
+
"step": 2210
|
| 1337 |
+
},
|
| 1338 |
+
{
|
| 1339 |
+
"grad_norm": 0.3540273606777191,
|
| 1340 |
+
"learning_rate": 6.326540685909532e-05,
|
| 1341 |
+
"loss": 0.0249,
|
| 1342 |
+
"step": 2220
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"grad_norm": 0.4603210389614105,
|
| 1346 |
+
"learning_rate": 6.294627594049249e-05,
|
| 1347 |
+
"loss": 0.0261,
|
| 1348 |
+
"step": 2230
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"grad_norm": 0.47433316707611084,
|
| 1352 |
+
"learning_rate": 6.262657870983989e-05,
|
| 1353 |
+
"loss": 0.0245,
|
| 1354 |
+
"step": 2240
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"grad_norm": 0.46469366550445557,
|
| 1358 |
+
"learning_rate": 6.230632915173009e-05,
|
| 1359 |
+
"loss": 0.0267,
|
| 1360 |
+
"step": 2250
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"grad_norm": 0.4406663775444031,
|
| 1364 |
+
"learning_rate": 6.198554127491622e-05,
|
| 1365 |
+
"loss": 0.0235,
|
| 1366 |
+
"step": 2260
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"grad_norm": 0.41085439920425415,
|
| 1370 |
+
"learning_rate": 6.166422911169923e-05,
|
| 1371 |
+
"loss": 0.0256,
|
| 1372 |
+
"step": 2270
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"grad_norm": 0.41472023725509644,
|
| 1376 |
+
"learning_rate": 6.1342406717314e-05,
|
| 1377 |
+
"loss": 0.0241,
|
| 1378 |
+
"step": 2280
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"grad_norm": 0.4377051889896393,
|
| 1382 |
+
"learning_rate": 6.102008816931466e-05,
|
| 1383 |
+
"loss": 0.0258,
|
| 1384 |
+
"step": 2290
|
| 1385 |
+
},
|
| 1386 |
+
{
|
| 1387 |
+
"grad_norm": 0.34513914585113525,
|
| 1388 |
+
"learning_rate": 6.069728756695866e-05,
|
| 1389 |
+
"loss": 0.0263,
|
| 1390 |
+
"step": 2300
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"grad_norm": 0.3869786858558655,
|
| 1394 |
+
"learning_rate": 6.037401903059008e-05,
|
| 1395 |
+
"loss": 0.026,
|
| 1396 |
+
"step": 2310
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"grad_norm": 0.3966286778450012,
|
| 1400 |
+
"learning_rate": 6.005029670102195e-05,
|
| 1401 |
+
"loss": 0.0247,
|
| 1402 |
+
"step": 2320
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"grad_norm": 0.35494574904441833,
|
| 1406 |
+
"learning_rate": 5.972613473891766e-05,
|
| 1407 |
+
"loss": 0.0256,
|
| 1408 |
+
"step": 2330
|
| 1409 |
+
},
|
| 1410 |
+
{
|
| 1411 |
+
"grad_norm": 0.31937381625175476,
|
| 1412 |
+
"learning_rate": 5.940154732417158e-05,
|
| 1413 |
+
"loss": 0.0231,
|
| 1414 |
+
"step": 2340
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"grad_norm": 0.38585540652275085,
|
| 1418 |
+
"learning_rate": 5.907654865528876e-05,
|
| 1419 |
+
"loss": 0.0277,
|
| 1420 |
+
"step": 2350
|
| 1421 |
+
},
|
| 1422 |
+
{
|
| 1423 |
+
"grad_norm": 0.3926496207714081,
|
| 1424 |
+
"learning_rate": 5.875115294876381e-05,
|
| 1425 |
+
"loss": 0.0238,
|
| 1426 |
+
"step": 2360
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"grad_norm": 0.3543730676174164,
|
| 1430 |
+
"learning_rate": 5.842537443845908e-05,
|
| 1431 |
+
"loss": 0.0236,
|
| 1432 |
+
"step": 2370
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"grad_norm": 0.36009931564331055,
|
| 1436 |
+
"learning_rate": 5.809922737498198e-05,
|
| 1437 |
+
"loss": 0.0251,
|
| 1438 |
+
"step": 2380
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"grad_norm": 0.3577284514904022,
|
| 1442 |
+
"learning_rate": 5.777272602506165e-05,
|
| 1443 |
+
"loss": 0.0264,
|
| 1444 |
+
"step": 2390
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"grad_norm": 0.4154857397079468,
|
| 1448 |
+
"learning_rate": 5.744588467092483e-05,
|
| 1449 |
+
"loss": 0.0261,
|
| 1450 |
+
"step": 2400
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"grad_norm": 0.3121699094772339,
|
| 1454 |
+
"learning_rate": 5.7118717609671194e-05,
|
| 1455 |
+
"loss": 0.0232,
|
| 1456 |
+
"step": 2410
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"grad_norm": 0.44973379373550415,
|
| 1460 |
+
"learning_rate": 5.679123915264786e-05,
|
| 1461 |
+
"loss": 0.0232,
|
| 1462 |
+
"step": 2420
|
| 1463 |
+
},
|
| 1464 |
+
{
|
| 1465 |
+
"grad_norm": 0.3639560639858246,
|
| 1466 |
+
"learning_rate": 5.646346362482342e-05,
|
| 1467 |
+
"loss": 0.023,
|
| 1468 |
+
"step": 2430
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"grad_norm": 0.5088344812393188,
|
| 1472 |
+
"learning_rate": 5.613540536416132e-05,
|
| 1473 |
+
"loss": 0.0256,
|
| 1474 |
+
"step": 2440
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"grad_norm": 0.45135802030563354,
|
| 1478 |
+
"learning_rate": 5.5807078720992645e-05,
|
| 1479 |
+
"loss": 0.0242,
|
| 1480 |
+
"step": 2450
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"grad_norm": 0.39155149459838867,
|
| 1484 |
+
"learning_rate": 5.547849805738836e-05,
|
| 1485 |
+
"loss": 0.0239,
|
| 1486 |
+
"step": 2460
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"grad_norm": 0.37671616673469543,
|
| 1490 |
+
"learning_rate": 5.514967774653118e-05,
|
| 1491 |
+
"loss": 0.0242,
|
| 1492 |
+
"step": 2470
|
| 1493 |
+
},
|
| 1494 |
+
{
|
| 1495 |
+
"grad_norm": 0.43713143467903137,
|
| 1496 |
+
"learning_rate": 5.482063217208674e-05,
|
| 1497 |
+
"loss": 0.0256,
|
| 1498 |
+
"step": 2480
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"grad_norm": 0.3587101995944977,
|
| 1502 |
+
"learning_rate": 5.449137572757439e-05,
|
| 1503 |
+
"loss": 0.0243,
|
| 1504 |
+
"step": 2490
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"grad_norm": 0.3240886926651001,
|
| 1508 |
+
"learning_rate": 5.4161922815737696e-05,
|
| 1509 |
+
"loss": 0.0244,
|
| 1510 |
+
"step": 2500
|
| 1511 |
+
},
|
| 1512 |
+
{
|
| 1513 |
+
"grad_norm": 0.4713996946811676,
|
| 1514 |
+
"learning_rate": 5.3832287847914276e-05,
|
| 1515 |
+
"loss": 0.0244,
|
| 1516 |
+
"step": 2510
|
| 1517 |
+
},
|
| 1518 |
+
{
|
| 1519 |
+
"grad_norm": 0.41371750831604004,
|
| 1520 |
+
"learning_rate": 5.35024852434055e-05,
|
| 1521 |
+
"loss": 0.0222,
|
| 1522 |
+
"step": 2520
|
| 1523 |
+
},
|
| 1524 |
+
{
|
| 1525 |
+
"grad_norm": 0.47091564536094666,
|
| 1526 |
+
"learning_rate": 5.317252942884567e-05,
|
| 1527 |
+
"loss": 0.0258,
|
| 1528 |
+
"step": 2530
|
| 1529 |
+
},
|
| 1530 |
+
{
|
| 1531 |
+
"grad_norm": 0.34738633036613464,
|
| 1532 |
+
"learning_rate": 5.284243483757109e-05,
|
| 1533 |
+
"loss": 0.0231,
|
| 1534 |
+
"step": 2540
|
| 1535 |
+
},
|
| 1536 |
+
{
|
| 1537 |
+
"grad_norm": 0.3713128864765167,
|
| 1538 |
+
"learning_rate": 5.2512215908988484e-05,
|
| 1539 |
+
"loss": 0.0239,
|
| 1540 |
+
"step": 2550
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"grad_norm": 0.41222378611564636,
|
| 1544 |
+
"learning_rate": 5.218188708794357e-05,
|
| 1545 |
+
"loss": 0.0233,
|
| 1546 |
+
"step": 2560
|
| 1547 |
+
},
|
| 1548 |
+
{
|
| 1549 |
+
"grad_norm": 0.3636377155780792,
|
| 1550 |
+
"learning_rate": 5.18514628240891e-05,
|
| 1551 |
+
"loss": 0.0232,
|
| 1552 |
+
"step": 2570
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"grad_norm": 0.3390437066555023,
|
| 1556 |
+
"learning_rate": 5.1520957571252795e-05,
|
| 1557 |
+
"loss": 0.0237,
|
| 1558 |
+
"step": 2580
|
| 1559 |
+
},
|
| 1560 |
+
{
|
| 1561 |
+
"grad_norm": 0.4193287491798401,
|
| 1562 |
+
"learning_rate": 5.1190385786805106e-05,
|
| 1563 |
+
"loss": 0.0216,
|
| 1564 |
+
"step": 2590
|
| 1565 |
+
},
|
| 1566 |
+
{
|
| 1567 |
+
"grad_norm": 0.23783208429813385,
|
| 1568 |
+
"learning_rate": 5.085976193102677e-05,
|
| 1569 |
+
"loss": 0.0228,
|
| 1570 |
+
"step": 2600
|
| 1571 |
+
},
|
| 1572 |
+
{
|
| 1573 |
+
"grad_norm": 0.4361535310745239,
|
| 1574 |
+
"learning_rate": 5.052910046647634e-05,
|
| 1575 |
+
"loss": 0.0276,
|
| 1576 |
+
"step": 2610
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"grad_norm": 0.41962987184524536,
|
| 1580 |
+
"learning_rate": 5.0198415857357464e-05,
|
| 1581 |
+
"loss": 0.0224,
|
| 1582 |
+
"step": 2620
|
| 1583 |
+
},
|
| 1584 |
+
{
|
| 1585 |
+
"grad_norm": 0.40996408462524414,
|
| 1586 |
+
"learning_rate": 4.9867722568886223e-05,
|
| 1587 |
+
"loss": 0.023,
|
| 1588 |
+
"step": 2630
|
| 1589 |
+
},
|
| 1590 |
+
{
|
| 1591 |
+
"grad_norm": 0.36495038866996765,
|
| 1592 |
+
"learning_rate": 4.9537035066658314e-05,
|
| 1593 |
+
"loss": 0.0234,
|
| 1594 |
+
"step": 2640
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"grad_norm": 0.42483624815940857,
|
| 1598 |
+
"learning_rate": 4.920636781601638e-05,
|
| 1599 |
+
"loss": 0.0256,
|
| 1600 |
+
"step": 2650
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"grad_norm": 0.39142847061157227,
|
| 1604 |
+
"learning_rate": 4.88757352814172e-05,
|
| 1605 |
+
"loss": 0.0289,
|
| 1606 |
+
"step": 2660
|
| 1607 |
+
},
|
| 1608 |
+
{
|
| 1609 |
+
"grad_norm": 0.3761405348777771,
|
| 1610 |
+
"learning_rate": 4.8545151925798924e-05,
|
| 1611 |
+
"loss": 0.0242,
|
| 1612 |
+
"step": 2670
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"grad_norm": 0.323021799325943,
|
| 1616 |
+
"learning_rate": 4.821463220994848e-05,
|
| 1617 |
+
"loss": 0.0227,
|
| 1618 |
+
"step": 2680
|
| 1619 |
+
},
|
| 1620 |
+
{
|
| 1621 |
+
"grad_norm": 0.4299248158931732,
|
| 1622 |
+
"learning_rate": 4.788419059186895e-05,
|
| 1623 |
+
"loss": 0.0218,
|
| 1624 |
+
"step": 2690
|
| 1625 |
+
},
|
| 1626 |
+
{
|
| 1627 |
+
"grad_norm": 0.3656862676143646,
|
| 1628 |
+
"learning_rate": 4.7553841526147205e-05,
|
| 1629 |
+
"loss": 0.0217,
|
| 1630 |
+
"step": 2700
|
| 1631 |
+
},
|
| 1632 |
+
{
|
| 1633 |
+
"grad_norm": 0.4491414725780487,
|
| 1634 |
+
"learning_rate": 4.722359946332156e-05,
|
| 1635 |
+
"loss": 0.0224,
|
| 1636 |
+
"step": 2710
|
| 1637 |
+
},
|
| 1638 |
+
{
|
| 1639 |
+
"grad_norm": 0.3371823728084564,
|
| 1640 |
+
"learning_rate": 4.6893478849249654e-05,
|
| 1641 |
+
"loss": 0.0231,
|
| 1642 |
+
"step": 2720
|
| 1643 |
+
},
|
| 1644 |
+
{
|
| 1645 |
+
"grad_norm": 0.3152349591255188,
|
| 1646 |
+
"learning_rate": 4.656349412447664e-05,
|
| 1647 |
+
"loss": 0.0229,
|
| 1648 |
+
"step": 2730
|
| 1649 |
+
},
|
| 1650 |
+
{
|
| 1651 |
+
"grad_norm": 0.37586328387260437,
|
| 1652 |
+
"learning_rate": 4.623365972360337e-05,
|
| 1653 |
+
"loss": 0.0228,
|
| 1654 |
+
"step": 2740
|
| 1655 |
+
},
|
| 1656 |
+
{
|
| 1657 |
+
"grad_norm": 0.37701380252838135,
|
| 1658 |
+
"learning_rate": 4.590399007465503e-05,
|
| 1659 |
+
"loss": 0.0214,
|
| 1660 |
+
"step": 2750
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"grad_norm": 0.342559814453125,
|
| 1664 |
+
"learning_rate": 4.557449959845005e-05,
|
| 1665 |
+
"loss": 0.0241,
|
| 1666 |
+
"step": 2760
|
| 1667 |
+
},
|
| 1668 |
+
{
|
| 1669 |
+
"grad_norm": 0.32800132036209106,
|
| 1670 |
+
"learning_rate": 4.524520270796927e-05,
|
| 1671 |
+
"loss": 0.0226,
|
| 1672 |
+
"step": 2770
|
| 1673 |
+
},
|
| 1674 |
+
{
|
| 1675 |
+
"grad_norm": 0.32837751507759094,
|
| 1676 |
+
"learning_rate": 4.491611380772545e-05,
|
| 1677 |
+
"loss": 0.0222,
|
| 1678 |
+
"step": 2780
|
| 1679 |
+
},
|
| 1680 |
+
{
|
| 1681 |
+
"grad_norm": 0.2714412808418274,
|
| 1682 |
+
"learning_rate": 4.458724729313318e-05,
|
| 1683 |
+
"loss": 0.0211,
|
| 1684 |
+
"step": 2790
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"grad_norm": 0.2909301221370697,
|
| 1688 |
+
"learning_rate": 4.42586175498792e-05,
|
| 1689 |
+
"loss": 0.0221,
|
| 1690 |
+
"step": 2800
|
| 1691 |
+
},
|
| 1692 |
+
{
|
| 1693 |
+
"grad_norm": 0.36365005373954773,
|
| 1694 |
+
"learning_rate": 4.3930238953293094e-05,
|
| 1695 |
+
"loss": 0.0216,
|
| 1696 |
+
"step": 2810
|
| 1697 |
+
},
|
| 1698 |
+
{
|
| 1699 |
+
"grad_norm": 0.3241809010505676,
|
| 1700 |
+
"learning_rate": 4.360212586771847e-05,
|
| 1701 |
+
"loss": 0.0204,
|
| 1702 |
+
"step": 2820
|
| 1703 |
+
},
|
| 1704 |
+
{
|
| 1705 |
+
"grad_norm": 0.35609936714172363,
|
| 1706 |
+
"learning_rate": 4.327429264588463e-05,
|
| 1707 |
+
"loss": 0.0243,
|
| 1708 |
+
"step": 2830
|
| 1709 |
+
},
|
| 1710 |
+
{
|
| 1711 |
+
"grad_norm": 0.40654465556144714,
|
| 1712 |
+
"learning_rate": 4.2946753628278725e-05,
|
| 1713 |
+
"loss": 0.0213,
|
| 1714 |
+
"step": 2840
|
| 1715 |
+
},
|
| 1716 |
+
{
|
| 1717 |
+
"grad_norm": 0.418736070394516,
|
| 1718 |
+
"learning_rate": 4.2619523142518474e-05,
|
| 1719 |
+
"loss": 0.0204,
|
| 1720 |
+
"step": 2850
|
| 1721 |
+
},
|
| 1722 |
+
{
|
| 1723 |
+
"grad_norm": 0.36981862783432007,
|
| 1724 |
+
"learning_rate": 4.229261550272539e-05,
|
| 1725 |
+
"loss": 0.0215,
|
| 1726 |
+
"step": 2860
|
| 1727 |
+
},
|
| 1728 |
+
{
|
| 1729 |
+
"grad_norm": 0.33936744928359985,
|
| 1730 |
+
"learning_rate": 4.196604500889868e-05,
|
| 1731 |
+
"loss": 0.0224,
|
| 1732 |
+
"step": 2870
|
| 1733 |
+
},
|
| 1734 |
+
{
|
| 1735 |
+
"grad_norm": 0.32824283838272095,
|
| 1736 |
+
"learning_rate": 4.163982594628969e-05,
|
| 1737 |
+
"loss": 0.0217,
|
| 1738 |
+
"step": 2880
|
| 1739 |
+
},
|
| 1740 |
+
{
|
| 1741 |
+
"grad_norm": 0.37890446186065674,
|
| 1742 |
+
"learning_rate": 4.131397258477702e-05,
|
| 1743 |
+
"loss": 0.0222,
|
| 1744 |
+
"step": 2890
|
| 1745 |
+
},
|
| 1746 |
+
{
|
| 1747 |
+
"grad_norm": 0.3364039957523346,
|
| 1748 |
+
"learning_rate": 4.0988499178242315e-05,
|
| 1749 |
+
"loss": 0.0223,
|
| 1750 |
+
"step": 2900
|
| 1751 |
+
},
|
| 1752 |
+
{
|
| 1753 |
+
"grad_norm": 0.4417213499546051,
|
| 1754 |
+
"learning_rate": 4.066341996394678e-05,
|
| 1755 |
+
"loss": 0.0209,
|
| 1756 |
+
"step": 2910
|
| 1757 |
+
},
|
| 1758 |
+
{
|
| 1759 |
+
"grad_norm": 0.4310370683670044,
|
| 1760 |
+
"learning_rate": 4.033874916190833e-05,
|
| 1761 |
+
"loss": 0.023,
|
| 1762 |
+
"step": 2920
|
| 1763 |
+
},
|
| 1764 |
+
{
|
| 1765 |
+
"grad_norm": 0.3380214273929596,
|
| 1766 |
+
"learning_rate": 4.001450097427966e-05,
|
| 1767 |
+
"loss": 0.0231,
|
| 1768 |
+
"step": 2930
|
| 1769 |
+
},
|
| 1770 |
+
{
|
| 1771 |
+
"grad_norm": 0.35001277923583984,
|
| 1772 |
+
"learning_rate": 3.9690689584726894e-05,
|
| 1773 |
+
"loss": 0.0234,
|
| 1774 |
+
"step": 2940
|
| 1775 |
+
},
|
| 1776 |
+
{
|
| 1777 |
+
"grad_norm": 0.412845641374588,
|
| 1778 |
+
"learning_rate": 3.936732915780923e-05,
|
| 1779 |
+
"loss": 0.0215,
|
| 1780 |
+
"step": 2950
|
| 1781 |
+
},
|
| 1782 |
+
{
|
| 1783 |
+
"grad_norm": 0.37060216069221497,
|
| 1784 |
+
"learning_rate": 3.904443383835929e-05,
|
| 1785 |
+
"loss": 0.0216,
|
| 1786 |
+
"step": 2960
|
| 1787 |
+
},
|
| 1788 |
+
{
|
| 1789 |
+
"grad_norm": 0.3685567080974579,
|
| 1790 |
+
"learning_rate": 3.872201775086437e-05,
|
| 1791 |
+
"loss": 0.0214,
|
| 1792 |
+
"step": 2970
|
| 1793 |
+
},
|
| 1794 |
+
{
|
| 1795 |
+
"grad_norm": 0.3236818015575409,
|
| 1796 |
+
"learning_rate": 3.8400094998848616e-05,
|
| 1797 |
+
"loss": 0.0198,
|
| 1798 |
+
"step": 2980
|
| 1799 |
+
},
|
| 1800 |
+
{
|
| 1801 |
+
"grad_norm": 0.2800779640674591,
|
| 1802 |
+
"learning_rate": 3.807867966425611e-05,
|
| 1803 |
+
"loss": 0.0219,
|
| 1804 |
+
"step": 2990
|
| 1805 |
+
},
|
| 1806 |
+
{
|
| 1807 |
+
"grad_norm": 0.2978470027446747,
|
| 1808 |
+
"learning_rate": 3.775778580683481e-05,
|
| 1809 |
+
"loss": 0.0231,
|
| 1810 |
+
"step": 3000
|
| 1811 |
+
}
|
| 1812 |
+
],
|
| 1813 |
+
"logging_steps": 10,
|
| 1814 |
+
"max_steps": 5000,
|
| 1815 |
+
"num_input_tokens_seen": 0,
|
| 1816 |
+
"num_train_epochs": 9223372036854775807,
|
| 1817 |
+
"save_steps": 1000,
|
| 1818 |
+
"stateful_callbacks": {
|
| 1819 |
+
"TrainerControl": {
|
| 1820 |
+
"args": {
|
| 1821 |
+
"should_epoch_stop": false,
|
| 1822 |
+
"should_evaluate": false,
|
| 1823 |
+
"should_log": false,
|
| 1824 |
+
"should_save": true,
|
| 1825 |
+
"should_training_stop": false
|
| 1826 |
+
},
|
| 1827 |
+
"attributes": {}
|
| 1828 |
+
}
|
| 1829 |
+
},
|
| 1830 |
+
"total_flos": 0.0,
|
| 1831 |
+
"train_batch_size": 96,
|
| 1832 |
+
"trial_name": null,
|
| 1833 |
+
"trial_params": null
|
| 1834 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4bc72cc7b1b93028ee352fc4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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
|
| 3 |
+
# Copyright (c) Microsoft Corporation.
|
| 4 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 5 |
+
|
| 6 |
+
# DeepSpeed Team
|
| 7 |
+
|
| 8 |
+
# This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
|
| 9 |
+
# copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
|
| 10 |
+
# the future. Once extracted, the weights don't require DeepSpeed and can be used in any
|
| 11 |
+
# application.
|
| 12 |
+
#
|
| 13 |
+
# example:
|
| 14 |
+
# python zero_to_fp32.py . output_dir/
|
| 15 |
+
# or
|
| 16 |
+
# python zero_to_fp32.py . output_dir/ --safe_serialization
|
| 17 |
+
|
| 18 |
+
import argparse
|
| 19 |
+
import torch
|
| 20 |
+
import glob
|
| 21 |
+
import math
|
| 22 |
+
import os
|
| 23 |
+
import re
|
| 24 |
+
import gc
|
| 25 |
+
import json
|
| 26 |
+
import numpy as np
|
| 27 |
+
from tqdm import tqdm
|
| 28 |
+
from collections import OrderedDict
|
| 29 |
+
from dataclasses import dataclass
|
| 30 |
+
|
| 31 |
+
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
|
| 32 |
+
# DeepSpeed data structures it has to be available in the current python environment.
|
| 33 |
+
from deepspeed.utils import logger
|
| 34 |
+
from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
|
| 35 |
+
FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
|
| 36 |
+
FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
@dataclass
|
| 40 |
+
class zero_model_state:
|
| 41 |
+
buffers: dict()
|
| 42 |
+
param_shapes: dict()
|
| 43 |
+
shared_params: list
|
| 44 |
+
ds_version: int
|
| 45 |
+
frozen_param_shapes: dict()
|
| 46 |
+
frozen_param_fragments: dict()
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
debug = 0
|
| 50 |
+
|
| 51 |
+
# load to cpu
|
| 52 |
+
device = torch.device('cpu')
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def atoi(text):
|
| 56 |
+
return int(text) if text.isdigit() else text
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def natural_keys(text):
|
| 60 |
+
'''
|
| 61 |
+
alist.sort(key=natural_keys) sorts in human order
|
| 62 |
+
http://nedbatchelder.com/blog/200712/human_sorting.html
|
| 63 |
+
(See Toothy's implementation in the comments)
|
| 64 |
+
'''
|
| 65 |
+
return [atoi(c) for c in re.split(r'(\d+)', text)]
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def get_model_state_file(checkpoint_dir, zero_stage):
|
| 69 |
+
if not os.path.isdir(checkpoint_dir):
|
| 70 |
+
raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
|
| 71 |
+
|
| 72 |
+
# there should be only one file
|
| 73 |
+
if zero_stage <= 2:
|
| 74 |
+
file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
|
| 75 |
+
elif zero_stage == 3:
|
| 76 |
+
file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
|
| 77 |
+
|
| 78 |
+
if not os.path.exists(file):
|
| 79 |
+
raise FileNotFoundError(f"can't find model states file at '{file}'")
|
| 80 |
+
|
| 81 |
+
return file
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def get_checkpoint_files(checkpoint_dir, glob_pattern):
|
| 85 |
+
# XXX: need to test that this simple glob rule works for multi-node setup too
|
| 86 |
+
ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
|
| 87 |
+
|
| 88 |
+
if len(ckpt_files) == 0:
|
| 89 |
+
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
|
| 90 |
+
|
| 91 |
+
return ckpt_files
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def get_optim_files(checkpoint_dir):
|
| 95 |
+
return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
def get_model_state_files(checkpoint_dir):
|
| 99 |
+
return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def parse_model_states(files):
|
| 103 |
+
zero_model_states = []
|
| 104 |
+
for file in files:
|
| 105 |
+
state_dict = torch.load(file, map_location=device, weights_only=False)
|
| 106 |
+
|
| 107 |
+
if BUFFER_NAMES not in state_dict:
|
| 108 |
+
raise ValueError(f"{file} is not a model state checkpoint")
|
| 109 |
+
buffer_names = state_dict[BUFFER_NAMES]
|
| 110 |
+
if debug:
|
| 111 |
+
print("Found buffers:", buffer_names)
|
| 112 |
+
|
| 113 |
+
# recover just the buffers while restoring them to fp32 if they were saved in fp16
|
| 114 |
+
buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
|
| 115 |
+
param_shapes = state_dict[PARAM_SHAPES]
|
| 116 |
+
|
| 117 |
+
# collect parameters that are included in param_shapes
|
| 118 |
+
param_names = []
|
| 119 |
+
for s in param_shapes:
|
| 120 |
+
for name in s.keys():
|
| 121 |
+
param_names.append(name)
|
| 122 |
+
|
| 123 |
+
# update with frozen parameters
|
| 124 |
+
frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
|
| 125 |
+
if frozen_param_shapes is not None:
|
| 126 |
+
if debug:
|
| 127 |
+
print(f"Found frozen_param_shapes: {frozen_param_shapes}")
|
| 128 |
+
param_names += list(frozen_param_shapes.keys())
|
| 129 |
+
|
| 130 |
+
# handle shared params
|
| 131 |
+
shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
|
| 132 |
+
|
| 133 |
+
ds_version = state_dict.get(DS_VERSION, None)
|
| 134 |
+
|
| 135 |
+
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
|
| 136 |
+
|
| 137 |
+
z_model_state = zero_model_state(buffers=buffers,
|
| 138 |
+
param_shapes=param_shapes,
|
| 139 |
+
shared_params=shared_params,
|
| 140 |
+
ds_version=ds_version,
|
| 141 |
+
frozen_param_shapes=frozen_param_shapes,
|
| 142 |
+
frozen_param_fragments=frozen_param_fragments)
|
| 143 |
+
zero_model_states.append(z_model_state)
|
| 144 |
+
|
| 145 |
+
return zero_model_states
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def parse_optim_states(files, ds_checkpoint_dir):
|
| 149 |
+
total_files = len(files)
|
| 150 |
+
state_dicts = []
|
| 151 |
+
for f in tqdm(files, desc='Loading checkpoint shards'):
|
| 152 |
+
state_dict = torch.load(f, map_location=device, mmap=True, weights_only=False)
|
| 153 |
+
# immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
|
| 154 |
+
# and also handle the case where it was already removed by another helper script
|
| 155 |
+
state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
|
| 156 |
+
state_dicts.append(state_dict)
|
| 157 |
+
|
| 158 |
+
if ZERO_STAGE not in state_dicts[0][OPTIMIZER_STATE_DICT]:
|
| 159 |
+
raise ValueError(f"{files[0]} is not a zero checkpoint")
|
| 160 |
+
zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
|
| 161 |
+
world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
|
| 162 |
+
|
| 163 |
+
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert
|
| 164 |
+
# parameters can be different from data parallelism for non-expert parameters. So we can just
|
| 165 |
+
# use the max of the partition_count to get the dp world_size.
|
| 166 |
+
|
| 167 |
+
if type(world_size) is list:
|
| 168 |
+
world_size = max(world_size)
|
| 169 |
+
|
| 170 |
+
if world_size != total_files:
|
| 171 |
+
raise ValueError(
|
| 172 |
+
f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
|
| 173 |
+
"Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
|
| 174 |
+
)
|
| 175 |
+
|
| 176 |
+
# the groups are named differently in each stage
|
| 177 |
+
if zero_stage <= 2:
|
| 178 |
+
fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
|
| 179 |
+
elif zero_stage == 3:
|
| 180 |
+
fp32_groups_key = FP32_FLAT_GROUPS
|
| 181 |
+
else:
|
| 182 |
+
raise ValueError(f"unknown zero stage {zero_stage}")
|
| 183 |
+
|
| 184 |
+
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
|
| 185 |
+
return zero_stage, world_size, fp32_flat_groups
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
|
| 189 |
+
"""
|
| 190 |
+
Returns fp32 state_dict reconstructed from ds checkpoint
|
| 191 |
+
|
| 192 |
+
Args:
|
| 193 |
+
- ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
|
| 194 |
+
|
| 195 |
+
"""
|
| 196 |
+
print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
|
| 197 |
+
|
| 198 |
+
optim_files = get_optim_files(ds_checkpoint_dir)
|
| 199 |
+
zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
|
| 200 |
+
print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
|
| 201 |
+
|
| 202 |
+
model_files = get_model_state_files(ds_checkpoint_dir)
|
| 203 |
+
|
| 204 |
+
zero_model_states = parse_model_states(model_files)
|
| 205 |
+
print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
|
| 206 |
+
|
| 207 |
+
if zero_stage <= 2:
|
| 208 |
+
return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 209 |
+
exclude_frozen_parameters)
|
| 210 |
+
elif zero_stage == 3:
|
| 211 |
+
return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 212 |
+
exclude_frozen_parameters)
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def _zero2_merge_frozen_params(state_dict, zero_model_states):
|
| 216 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 217 |
+
return
|
| 218 |
+
|
| 219 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 220 |
+
frozen_param_fragments = zero_model_states[0].frozen_param_fragments
|
| 221 |
+
|
| 222 |
+
if debug:
|
| 223 |
+
num_elem = sum(s.numel() for s in frozen_param_shapes.values())
|
| 224 |
+
print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 225 |
+
|
| 226 |
+
wanted_params = len(frozen_param_shapes)
|
| 227 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 228 |
+
avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
|
| 229 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 230 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 231 |
+
|
| 232 |
+
total_params = 0
|
| 233 |
+
total_numel = 0
|
| 234 |
+
for name, shape in frozen_param_shapes.items():
|
| 235 |
+
total_params += 1
|
| 236 |
+
unpartitioned_numel = shape.numel()
|
| 237 |
+
total_numel += unpartitioned_numel
|
| 238 |
+
|
| 239 |
+
state_dict[name] = frozen_param_fragments[name]
|
| 240 |
+
|
| 241 |
+
if debug:
|
| 242 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 243 |
+
|
| 244 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
def _has_callable(obj, fn):
|
| 248 |
+
attr = getattr(obj, fn, None)
|
| 249 |
+
return callable(attr)
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 253 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 254 |
+
|
| 255 |
+
# Reconstruction protocol:
|
| 256 |
+
#
|
| 257 |
+
# XXX: document this
|
| 258 |
+
|
| 259 |
+
if debug:
|
| 260 |
+
for i in range(world_size):
|
| 261 |
+
for j in range(len(fp32_flat_groups[0])):
|
| 262 |
+
print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
|
| 263 |
+
|
| 264 |
+
# XXX: memory usage doubles here (zero2)
|
| 265 |
+
num_param_groups = len(fp32_flat_groups[0])
|
| 266 |
+
merged_single_partition_of_fp32_groups = []
|
| 267 |
+
for i in range(num_param_groups):
|
| 268 |
+
merged_partitions = [sd[i] for sd in fp32_flat_groups]
|
| 269 |
+
full_single_fp32_vector = torch.cat(merged_partitions, 0)
|
| 270 |
+
merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
|
| 271 |
+
avail_numel = sum(
|
| 272 |
+
[full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
|
| 273 |
+
|
| 274 |
+
if debug:
|
| 275 |
+
wanted_params = sum([len(shapes) for shapes in param_shapes])
|
| 276 |
+
wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
|
| 277 |
+
# not asserting if there is a mismatch due to possible padding
|
| 278 |
+
print(f"Have {avail_numel} numels to process.")
|
| 279 |
+
print(f"Need {wanted_numel} numels in {wanted_params} params.")
|
| 280 |
+
|
| 281 |
+
# params
|
| 282 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 283 |
+
# out-of-core computing solution
|
| 284 |
+
total_numel = 0
|
| 285 |
+
total_params = 0
|
| 286 |
+
for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
|
| 287 |
+
offset = 0
|
| 288 |
+
avail_numel = full_single_fp32_vector.numel()
|
| 289 |
+
for name, shape in shapes.items():
|
| 290 |
+
|
| 291 |
+
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
|
| 292 |
+
total_numel += unpartitioned_numel
|
| 293 |
+
total_params += 1
|
| 294 |
+
|
| 295 |
+
if debug:
|
| 296 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 297 |
+
state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
|
| 298 |
+
offset += unpartitioned_numel
|
| 299 |
+
|
| 300 |
+
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
|
| 301 |
+
# avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
|
| 302 |
+
# paddings performed in the code it's almost impossible to predict the exact numbers w/o the
|
| 303 |
+
# live optimizer object, so we are checking that the numbers are within the right range
|
| 304 |
+
align_to = 2 * world_size
|
| 305 |
+
|
| 306 |
+
def zero2_align(x):
|
| 307 |
+
return align_to * math.ceil(x / align_to)
|
| 308 |
+
|
| 309 |
+
if debug:
|
| 310 |
+
print(f"original offset={offset}, avail_numel={avail_numel}")
|
| 311 |
+
|
| 312 |
+
offset = zero2_align(offset)
|
| 313 |
+
avail_numel = zero2_align(avail_numel)
|
| 314 |
+
|
| 315 |
+
if debug:
|
| 316 |
+
print(f"aligned offset={offset}, avail_numel={avail_numel}")
|
| 317 |
+
|
| 318 |
+
# Sanity check
|
| 319 |
+
if offset != avail_numel:
|
| 320 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 321 |
+
|
| 322 |
+
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 326 |
+
exclude_frozen_parameters):
|
| 327 |
+
state_dict = OrderedDict()
|
| 328 |
+
|
| 329 |
+
# buffers
|
| 330 |
+
buffers = zero_model_states[0].buffers
|
| 331 |
+
state_dict.update(buffers)
|
| 332 |
+
if debug:
|
| 333 |
+
print(f"added {len(buffers)} buffers")
|
| 334 |
+
|
| 335 |
+
if not exclude_frozen_parameters:
|
| 336 |
+
_zero2_merge_frozen_params(state_dict, zero_model_states)
|
| 337 |
+
|
| 338 |
+
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 339 |
+
|
| 340 |
+
# recover shared parameters
|
| 341 |
+
for pair in zero_model_states[0].shared_params:
|
| 342 |
+
if pair[1] in state_dict:
|
| 343 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 344 |
+
|
| 345 |
+
return state_dict
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
def zero3_partitioned_param_info(unpartitioned_numel, world_size):
|
| 349 |
+
remainder = unpartitioned_numel % world_size
|
| 350 |
+
padding_numel = (world_size - remainder) if remainder else 0
|
| 351 |
+
partitioned_numel = math.ceil(unpartitioned_numel / world_size)
|
| 352 |
+
return partitioned_numel, padding_numel
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
|
| 356 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 357 |
+
return
|
| 358 |
+
|
| 359 |
+
if debug:
|
| 360 |
+
for i in range(world_size):
|
| 361 |
+
num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
|
| 362 |
+
print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 363 |
+
|
| 364 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 365 |
+
wanted_params = len(frozen_param_shapes)
|
| 366 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 367 |
+
avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
|
| 368 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 369 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 370 |
+
|
| 371 |
+
total_params = 0
|
| 372 |
+
total_numel = 0
|
| 373 |
+
for name, shape in zero_model_states[0].frozen_param_shapes.items():
|
| 374 |
+
total_params += 1
|
| 375 |
+
unpartitioned_numel = shape.numel()
|
| 376 |
+
total_numel += unpartitioned_numel
|
| 377 |
+
|
| 378 |
+
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
|
| 379 |
+
state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 380 |
+
|
| 381 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 382 |
+
|
| 383 |
+
if debug:
|
| 384 |
+
print(
|
| 385 |
+
f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 386 |
+
)
|
| 387 |
+
|
| 388 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
class GatheredTensor:
|
| 392 |
+
"""
|
| 393 |
+
A pseudo tensor that collects partitioned weights.
|
| 394 |
+
It is more memory efficient when there are multiple groups.
|
| 395 |
+
"""
|
| 396 |
+
|
| 397 |
+
def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape):
|
| 398 |
+
self.flat_groups = flat_groups
|
| 399 |
+
self.flat_groups_offset = flat_groups_offset
|
| 400 |
+
self.offset = offset
|
| 401 |
+
self.partitioned_numel = partitioned_numel
|
| 402 |
+
self.shape = shape
|
| 403 |
+
self.dtype = self.flat_groups[0][0].dtype
|
| 404 |
+
|
| 405 |
+
def contiguous(self):
|
| 406 |
+
"""
|
| 407 |
+
Merge partitioned weights from flat_groups into a single tensor.
|
| 408 |
+
"""
|
| 409 |
+
end_idx = self.offset + self.partitioned_numel
|
| 410 |
+
world_size = len(self.flat_groups)
|
| 411 |
+
pad_flat_param_chunks = []
|
| 412 |
+
|
| 413 |
+
for rank_i in range(world_size):
|
| 414 |
+
# for each rank, we need to collect weights from related group/groups
|
| 415 |
+
flat_groups_at_rank_i = self.flat_groups[rank_i]
|
| 416 |
+
start_group_id = None
|
| 417 |
+
end_group_id = None
|
| 418 |
+
for group_id in range(len(self.flat_groups_offset)):
|
| 419 |
+
if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]:
|
| 420 |
+
start_group_id = group_id
|
| 421 |
+
if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]:
|
| 422 |
+
end_group_id = group_id
|
| 423 |
+
break
|
| 424 |
+
# collect weights from related group/groups
|
| 425 |
+
for group_id in range(start_group_id, end_group_id + 1):
|
| 426 |
+
flat_tensor = flat_groups_at_rank_i[group_id]
|
| 427 |
+
start_offset = self.offset - self.flat_groups_offset[group_id]
|
| 428 |
+
end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id]
|
| 429 |
+
pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
|
| 430 |
+
|
| 431 |
+
# collect weights from all ranks
|
| 432 |
+
pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0)
|
| 433 |
+
param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous()
|
| 434 |
+
return param
|
| 435 |
+
|
| 436 |
+
|
| 437 |
+
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 438 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 439 |
+
avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
|
| 440 |
+
|
| 441 |
+
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
|
| 442 |
+
# param, re-consolidating each param, while dealing with padding if any
|
| 443 |
+
|
| 444 |
+
# merge list of dicts, preserving order
|
| 445 |
+
param_shapes = {k: v for d in param_shapes for k, v in d.items()}
|
| 446 |
+
|
| 447 |
+
if debug:
|
| 448 |
+
for i in range(world_size):
|
| 449 |
+
print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
|
| 450 |
+
|
| 451 |
+
wanted_params = len(param_shapes)
|
| 452 |
+
wanted_numel = sum(shape.numel() for shape in param_shapes.values())
|
| 453 |
+
# not asserting if there is a mismatch due to possible padding
|
| 454 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 455 |
+
print(f"Trainable params: Have {avail_numel} numels to process.")
|
| 456 |
+
print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
|
| 457 |
+
|
| 458 |
+
# params
|
| 459 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 460 |
+
# out-of-core computing solution
|
| 461 |
+
offset = 0
|
| 462 |
+
total_numel = 0
|
| 463 |
+
total_params = 0
|
| 464 |
+
flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]]))
|
| 465 |
+
for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'):
|
| 466 |
+
unpartitioned_numel = shape.numel()
|
| 467 |
+
total_numel += unpartitioned_numel
|
| 468 |
+
total_params += 1
|
| 469 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 470 |
+
|
| 471 |
+
if debug:
|
| 472 |
+
print(
|
| 473 |
+
f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 474 |
+
)
|
| 475 |
+
|
| 476 |
+
# memory efficient tensor
|
| 477 |
+
tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape)
|
| 478 |
+
state_dict[name] = tensor
|
| 479 |
+
offset += partitioned_numel
|
| 480 |
+
|
| 481 |
+
offset *= world_size
|
| 482 |
+
|
| 483 |
+
# Sanity check
|
| 484 |
+
if offset != avail_numel:
|
| 485 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 486 |
+
|
| 487 |
+
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 491 |
+
exclude_frozen_parameters):
|
| 492 |
+
state_dict = OrderedDict()
|
| 493 |
+
|
| 494 |
+
# buffers
|
| 495 |
+
buffers = zero_model_states[0].buffers
|
| 496 |
+
state_dict.update(buffers)
|
| 497 |
+
if debug:
|
| 498 |
+
print(f"added {len(buffers)} buffers")
|
| 499 |
+
|
| 500 |
+
if not exclude_frozen_parameters:
|
| 501 |
+
_zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
|
| 502 |
+
|
| 503 |
+
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 504 |
+
|
| 505 |
+
# recover shared parameters
|
| 506 |
+
for pair in zero_model_states[0].shared_params:
|
| 507 |
+
if pair[1] in state_dict:
|
| 508 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 509 |
+
|
| 510 |
+
return state_dict
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
def to_torch_tensor(state_dict, return_empty_tensor=False):
|
| 514 |
+
"""
|
| 515 |
+
Convert state_dict of GatheredTensor to torch tensor
|
| 516 |
+
"""
|
| 517 |
+
torch_state_dict = {}
|
| 518 |
+
converted_tensors = {}
|
| 519 |
+
for name, tensor in state_dict.items():
|
| 520 |
+
tensor_id = id(tensor)
|
| 521 |
+
if tensor_id in converted_tensors: # shared tensors
|
| 522 |
+
shared_tensor = torch_state_dict[converted_tensors[tensor_id]]
|
| 523 |
+
torch_state_dict[name] = shared_tensor
|
| 524 |
+
else:
|
| 525 |
+
converted_tensors[tensor_id] = name
|
| 526 |
+
if return_empty_tensor:
|
| 527 |
+
torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype)
|
| 528 |
+
else:
|
| 529 |
+
torch_state_dict[name] = tensor.contiguous()
|
| 530 |
+
return torch_state_dict
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 534 |
+
tag=None,
|
| 535 |
+
exclude_frozen_parameters=False,
|
| 536 |
+
lazy_mode=False):
|
| 537 |
+
"""
|
| 538 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
|
| 539 |
+
``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
|
| 540 |
+
via a model hub.
|
| 541 |
+
|
| 542 |
+
Args:
|
| 543 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder
|
| 544 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14``
|
| 545 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 546 |
+
- ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient.
|
| 547 |
+
Convert the pesduo tensor to torch tensor by ``.contiguous()``
|
| 548 |
+
|
| 549 |
+
Returns:
|
| 550 |
+
- pytorch ``state_dict``
|
| 551 |
+
|
| 552 |
+
A typical usage might be ::
|
| 553 |
+
|
| 554 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 555 |
+
# do the training and checkpoint saving
|
| 556 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
|
| 557 |
+
model = model.cpu() # move to cpu
|
| 558 |
+
model.load_state_dict(state_dict)
|
| 559 |
+
# submit to model hub or save the model to share with others
|
| 560 |
+
|
| 561 |
+
In this example the ``model`` will no longer be usable in the deepspeed context of the same
|
| 562 |
+
application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 563 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 564 |
+
|
| 565 |
+
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
|
| 566 |
+
|
| 567 |
+
Note: the above usage may not work if your application doesn't have sufficient free CPU memory.
|
| 568 |
+
You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
|
| 569 |
+
the checkpoint. Or you can load state_dict in lazy mode ::
|
| 570 |
+
|
| 571 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 572 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu
|
| 573 |
+
for name, lazy_tensor in state_dict.item():
|
| 574 |
+
tensor = lazy_tensor.contiguous() # to cpu
|
| 575 |
+
print(name, tensor)
|
| 576 |
+
# del tensor to release memory if it no longer in use
|
| 577 |
+
"""
|
| 578 |
+
if tag is None:
|
| 579 |
+
latest_path = os.path.join(checkpoint_dir, 'latest')
|
| 580 |
+
if os.path.isfile(latest_path):
|
| 581 |
+
with open(latest_path, 'r') as fd:
|
| 582 |
+
tag = fd.read().strip()
|
| 583 |
+
else:
|
| 584 |
+
raise ValueError(f"Unable to find 'latest' file at {latest_path}")
|
| 585 |
+
|
| 586 |
+
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
|
| 587 |
+
|
| 588 |
+
if not os.path.isdir(ds_checkpoint_dir):
|
| 589 |
+
raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
|
| 590 |
+
|
| 591 |
+
state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
|
| 592 |
+
if lazy_mode:
|
| 593 |
+
return state_dict
|
| 594 |
+
else:
|
| 595 |
+
return to_torch_tensor(state_dict)
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
|
| 599 |
+
output_dir,
|
| 600 |
+
max_shard_size="5GB",
|
| 601 |
+
safe_serialization=False,
|
| 602 |
+
tag=None,
|
| 603 |
+
exclude_frozen_parameters=False):
|
| 604 |
+
"""
|
| 605 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
|
| 606 |
+
loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
|
| 607 |
+
|
| 608 |
+
Args:
|
| 609 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 610 |
+
- ``output_dir``: directory to the pytorch fp32 state_dict output files
|
| 611 |
+
- ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
|
| 612 |
+
- ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
|
| 613 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
|
| 614 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 615 |
+
"""
|
| 616 |
+
|
| 617 |
+
# Dependency pre-check
|
| 618 |
+
if safe_serialization:
|
| 619 |
+
try:
|
| 620 |
+
from safetensors.torch import save_file
|
| 621 |
+
except ImportError:
|
| 622 |
+
print('If you want to use `safe_serialization`, please `pip install safetensors`')
|
| 623 |
+
raise
|
| 624 |
+
if max_shard_size is not None:
|
| 625 |
+
try:
|
| 626 |
+
from huggingface_hub import split_torch_state_dict_into_shards
|
| 627 |
+
except ImportError:
|
| 628 |
+
print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
|
| 629 |
+
raise
|
| 630 |
+
|
| 631 |
+
# Convert zero checkpoint to state_dict
|
| 632 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 633 |
+
tag,
|
| 634 |
+
exclude_frozen_parameters,
|
| 635 |
+
lazy_mode=True)
|
| 636 |
+
|
| 637 |
+
# Shard the model if it is too big.
|
| 638 |
+
weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
|
| 639 |
+
if max_shard_size is not None:
|
| 640 |
+
filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
|
| 641 |
+
# an memory-efficient approach for sharding
|
| 642 |
+
empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True)
|
| 643 |
+
state_dict_split = split_torch_state_dict_into_shards(empty_state_dict,
|
| 644 |
+
filename_pattern=filename_pattern,
|
| 645 |
+
max_shard_size=max_shard_size)
|
| 646 |
+
else:
|
| 647 |
+
from collections import namedtuple
|
| 648 |
+
StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
|
| 649 |
+
state_dict_split = StateDictSplit(is_sharded=False,
|
| 650 |
+
filename_to_tensors={weights_name: list(state_dict.keys())})
|
| 651 |
+
|
| 652 |
+
# Save the model by shard
|
| 653 |
+
os.makedirs(output_dir, exist_ok=True)
|
| 654 |
+
filename_to_tensors = state_dict_split.filename_to_tensors.items()
|
| 655 |
+
for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
|
| 656 |
+
shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors}
|
| 657 |
+
shard_state_dict = to_torch_tensor(shard_state_dict)
|
| 658 |
+
output_path = os.path.join(output_dir, shard_file)
|
| 659 |
+
if safe_serialization:
|
| 660 |
+
save_file(shard_state_dict, output_path, metadata={"format": "pt"})
|
| 661 |
+
else:
|
| 662 |
+
torch.save(shard_state_dict, output_path)
|
| 663 |
+
# release the memory of current shard
|
| 664 |
+
for tensor_name in list(shard_state_dict.keys()):
|
| 665 |
+
del state_dict[tensor_name]
|
| 666 |
+
del shard_state_dict[tensor_name]
|
| 667 |
+
del shard_state_dict
|
| 668 |
+
gc.collect()
|
| 669 |
+
|
| 670 |
+
# Save index if sharded
|
| 671 |
+
if state_dict_split.is_sharded:
|
| 672 |
+
index = {
|
| 673 |
+
"metadata": state_dict_split.metadata,
|
| 674 |
+
"weight_map": state_dict_split.tensor_to_filename,
|
| 675 |
+
}
|
| 676 |
+
save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
|
| 677 |
+
save_index_file = os.path.join(output_dir, save_index_file)
|
| 678 |
+
with open(save_index_file, "w", encoding="utf-8") as f:
|
| 679 |
+
content = json.dumps(index, indent=2, sort_keys=True) + "\n"
|
| 680 |
+
f.write(content)
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
|
| 684 |
+
"""
|
| 685 |
+
1. Put the provided model to cpu
|
| 686 |
+
2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
|
| 687 |
+
3. Load it into the provided model
|
| 688 |
+
|
| 689 |
+
Args:
|
| 690 |
+
- ``model``: the model object to update
|
| 691 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 692 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
|
| 693 |
+
|
| 694 |
+
Returns:
|
| 695 |
+
- ``model`: modified model
|
| 696 |
+
|
| 697 |
+
Make sure you have plenty of CPU memory available before you call this function. If you don't
|
| 698 |
+
have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
|
| 699 |
+
conveniently placed for you in the checkpoint folder.
|
| 700 |
+
|
| 701 |
+
A typical usage might be ::
|
| 702 |
+
|
| 703 |
+
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
|
| 704 |
+
model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
|
| 705 |
+
# submit to model hub or save the model to share with others
|
| 706 |
+
|
| 707 |
+
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
|
| 708 |
+
of the same application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 709 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 710 |
+
|
| 711 |
+
"""
|
| 712 |
+
logger.info("Extracting fp32 weights")
|
| 713 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
|
| 714 |
+
|
| 715 |
+
logger.info("Overwriting model with fp32 weights")
|
| 716 |
+
model = model.cpu()
|
| 717 |
+
model.load_state_dict(state_dict, strict=False)
|
| 718 |
+
|
| 719 |
+
return model
|
| 720 |
+
|
| 721 |
+
|
| 722 |
+
if __name__ == "__main__":
|
| 723 |
+
parser = argparse.ArgumentParser()
|
| 724 |
+
parser.add_argument("checkpoint_dir",
|
| 725 |
+
type=str,
|
| 726 |
+
help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
|
| 727 |
+
parser.add_argument("output_dir",
|
| 728 |
+
type=str,
|
| 729 |
+
help="directory to the pytorch fp32 state_dict output files"
|
| 730 |
+
"(e.g. path/checkpoint-12-output/)")
|
| 731 |
+
parser.add_argument(
|
| 732 |
+
"--max_shard_size",
|
| 733 |
+
type=str,
|
| 734 |
+
default="5GB",
|
| 735 |
+
help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
|
| 736 |
+
"lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
|
| 737 |
+
"We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
|
| 738 |
+
"without CPU OOM issues.")
|
| 739 |
+
parser.add_argument(
|
| 740 |
+
"--safe_serialization",
|
| 741 |
+
default=False,
|
| 742 |
+
action='store_true',
|
| 743 |
+
help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
|
| 744 |
+
parser.add_argument("-t",
|
| 745 |
+
"--tag",
|
| 746 |
+
type=str,
|
| 747 |
+
default=None,
|
| 748 |
+
help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
|
| 749 |
+
parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
|
| 750 |
+
parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
|
| 751 |
+
args = parser.parse_args()
|
| 752 |
+
|
| 753 |
+
debug = args.debug
|
| 754 |
+
|
| 755 |
+
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
|
| 756 |
+
args.output_dir,
|
| 757 |
+
max_shard_size=args.max_shard_size,
|
| 758 |
+
safe_serialization=args.safe_serialization,
|
| 759 |
+
tag=args.tag,
|
| 760 |
+
exclude_frozen_parameters=args.exclude_frozen_parameters)
|