Upload folder using huggingface_hub
Browse files- checkpoint-45000/config.json +70 -0
- checkpoint-45000/embodiment_id.json +11 -0
- checkpoint-45000/experiment_cfg/conf.yaml +385 -0
- checkpoint-45000/experiment_cfg/config.yaml +421 -0
- checkpoint-45000/experiment_cfg/dataset_statistics.json +317 -0
- checkpoint-45000/experiment_cfg/final_model_config.json +53 -0
- checkpoint-45000/experiment_cfg/final_processor_config.json +0 -0
- checkpoint-45000/global_step45000/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
- checkpoint-45000/global_step45000/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
- checkpoint-45000/global_step45000/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
- checkpoint-45000/global_step45000/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
- checkpoint-45000/global_step45000/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt +3 -0
- checkpoint-45000/global_step45000/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt +3 -0
- checkpoint-45000/global_step45000/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt +3 -0
- checkpoint-45000/global_step45000/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt +3 -0
- checkpoint-45000/global_step45000/mp_rank_00_model_states.pt +3 -0
- checkpoint-45000/latest +1 -0
- checkpoint-45000/model-00001-of-00002.safetensors +3 -0
- checkpoint-45000/model-00002-of-00002.safetensors +3 -0
- checkpoint-45000/model.safetensors.index.json +0 -0
- checkpoint-45000/processor_config.json +378 -0
- checkpoint-45000/rng_state_0.pth +3 -0
- checkpoint-45000/rng_state_1.pth +3 -0
- checkpoint-45000/rng_state_2.pth +3 -0
- checkpoint-45000/rng_state_3.pth +3 -0
- checkpoint-45000/rng_state_4.pth +3 -0
- checkpoint-45000/rng_state_5.pth +3 -0
- checkpoint-45000/rng_state_6.pth +3 -0
- checkpoint-45000/rng_state_7.pth +3 -0
- checkpoint-45000/scheduler.pt +3 -0
- checkpoint-45000/statistics.json +0 -0
- checkpoint-45000/trainer_state.json +0 -0
- checkpoint-45000/training_args.bin +3 -0
- checkpoint-45000/wandb_config.json +1 -0
- checkpoint-45000/zero_to_fp32.py +760 -0
checkpoint-45000/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 |
+
}
|
checkpoint-45000/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_widowx": 1,
|
| 8 |
+
"libero_panda": 2,
|
| 9 |
+
"oxe_droid": 16,
|
| 10 |
+
"new_embodiment": 10
|
| 11 |
+
}
|
checkpoint-45000/experiment_cfg/conf.yaml
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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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: null
|
| 25 |
+
use_albumentations_transforms: true
|
| 26 |
+
formalize_language: true
|
| 27 |
+
apply_sincos_state_encoding: false
|
| 28 |
+
use_relative_action: true
|
| 29 |
+
max_state_dim: 29
|
| 30 |
+
max_action_dim: 29
|
| 31 |
+
action_horizon: 16
|
| 32 |
+
hidden_size: 1024
|
| 33 |
+
input_embedding_dim: 1536
|
| 34 |
+
add_pos_embed: true
|
| 35 |
+
attn_dropout: 0.2
|
| 36 |
+
use_vlln: true
|
| 37 |
+
max_seq_len: 1024
|
| 38 |
+
use_alternate_vl_dit: true
|
| 39 |
+
attend_text_every_n_blocks: 2
|
| 40 |
+
diffusion_model_cfg:
|
| 41 |
+
positional_embeddings: null
|
| 42 |
+
num_layers: 32
|
| 43 |
+
num_attention_heads: 32
|
| 44 |
+
attention_head_dim: 48
|
| 45 |
+
norm_type: ada_norm
|
| 46 |
+
dropout: 0.2
|
| 47 |
+
final_dropout: true
|
| 48 |
+
output_dim: 1024
|
| 49 |
+
interleave_self_attention: true
|
| 50 |
+
num_inference_timesteps: 4
|
| 51 |
+
noise_beta_alpha: 1.5
|
| 52 |
+
noise_beta_beta: 1.0
|
| 53 |
+
noise_s: 0.999
|
| 54 |
+
num_timestep_buckets: 1000
|
| 55 |
+
tune_projector: true
|
| 56 |
+
tune_diffusion_model: true
|
| 57 |
+
tune_vlln: true
|
| 58 |
+
state_dropout_prob: 0.0
|
| 59 |
+
state_additive_noise_scale: 0.0
|
| 60 |
+
max_num_embodiments: 32
|
| 61 |
+
data:
|
| 62 |
+
datasets:
|
| 63 |
+
- dataset_paths:
|
| 64 |
+
- /root/videos/atomic_split_train/AdjustToasterOvenTemperature/GraspObject/20250820/lerobot
|
| 65 |
+
- /root/videos/atomic_split_train/AdjustToasterOvenTemperature/TwistKnob/20250820/lerobot
|
| 66 |
+
- /root/videos/atomic_split_train/AdjustWaterTemperature/GraspObject/20250820/lerobot
|
| 67 |
+
- /root/videos/atomic_split_train/AdjustWaterTemperature/TwistKnob/20250820/lerobot
|
| 68 |
+
- /root/videos/atomic_split_train/CheesyBread/PickObject/20250714/lerobot
|
| 69 |
+
- /root/videos/atomic_split_train/CheesyBread/PlaceObject/20250714/lerobot
|
| 70 |
+
- /root/videos/atomic_split_train/CloseBlenderLid/PickObject/20250822/lerobot
|
| 71 |
+
- /root/videos/atomic_split_train/CloseBlenderLid/PlaceObject/20250822/lerobot
|
| 72 |
+
- /root/videos/atomic_split_train/CloseCabinet-DoubleDoor/ApproachToObject_0/20250819/lerobot
|
| 73 |
+
- /root/videos/atomic_split_train/CloseCabinet-DoubleDoor/ApproachToObject_1/20250819/lerobot
|
| 74 |
+
- /root/videos/atomic_split_train/CloseCabinet-DoubleDoor/CloseDoor_0/20250819/lerobot
|
| 75 |
+
- /root/videos/atomic_split_train/CloseCabinet-DoubleDoor/CloseDoor_1/20250819/lerobot
|
| 76 |
+
- /root/videos/atomic_split_train/CloseCabinet-SingleDoor/ApproachToObject/20250819/lerobot
|
| 77 |
+
- /root/videos/atomic_split_train/CloseCabinet-SingleDoor/CloseDoor/20250819/lerobot
|
| 78 |
+
- /root/videos/atomic_split_train/CloseCabinet/20250819/lerobot
|
| 79 |
+
- /root/videos/atomic_split_train/CloseDishwasher/ApproachToObject/20250820/lerobot
|
| 80 |
+
- /root/videos/atomic_split_train/CloseDishwasher/PushClose/20250820/lerobot
|
| 81 |
+
- /root/videos/atomic_split_train/CloseDrawer/ApproachToObject/20250819/lerobot
|
| 82 |
+
- /root/videos/atomic_split_train/CloseDrawer/PushClose/20250819/lerobot
|
| 83 |
+
- /root/videos/atomic_split_train/CloseElectricKettleLid/20250820/lerobot
|
| 84 |
+
- /root/videos/atomic_split_train/CloseFridge-DoubleDoor/ApproachToObject_0/20250819/lerobot
|
| 85 |
+
- /root/videos/atomic_split_train/CloseFridge-DoubleDoor/ApproachToObject_1/20250819/lerobot
|
| 86 |
+
- /root/videos/atomic_split_train/CloseFridge-DoubleDoor/CloseDoor_0/20250819/lerobot
|
| 87 |
+
- /root/videos/atomic_split_train/CloseFridge-DoubleDoor/CloseDoor_1/20250819/lerobot
|
| 88 |
+
- /root/videos/atomic_split_train/CloseFridge-SingleDoor/ApproachToObject/20250819/lerobot
|
| 89 |
+
- /root/videos/atomic_split_train/CloseFridge-SingleDoor/CloseDoor/20250819/lerobot
|
| 90 |
+
- /root/videos/atomic_split_train/CloseFridgeDrawer/ApproachToObject/20250821/lerobot
|
| 91 |
+
- /root/videos/atomic_split_train/CloseFridgeDrawer/PushClose/20250821/lerobot
|
| 92 |
+
- /root/videos/atomic_split_train/CloseMicrowave/ApproachToObject/20250819/lerobot
|
| 93 |
+
- /root/videos/atomic_split_train/CloseMicrowave/CloseDoor/20250819/lerobot
|
| 94 |
+
- /root/videos/atomic_split_train/CloseOven-split/ApproachToObject/20250820/lerobot
|
| 95 |
+
- /root/videos/atomic_split_train/CloseOven-split/PushClose/20250820/lerobot
|
| 96 |
+
- /root/videos/atomic_split_train/CloseOven/20250820/lerobot
|
| 97 |
+
- /root/videos/atomic_split_train/CloseStandMixerHead-split/ApproachToObject/20250820/lerobot
|
| 98 |
+
- /root/videos/atomic_split_train/CloseStandMixerHead-split/CloseDoor/20250820/lerobot
|
| 99 |
+
- /root/videos/atomic_split_train/CloseStandMixerHead/20250820/lerobot
|
| 100 |
+
- /root/videos/atomic_split_train/CloseToasterOvenDoor-split/ApproachToObject/20250820/lerobot
|
| 101 |
+
- /root/videos/atomic_split_train/CloseToasterOvenDoor-split/CloseDoor/20250820/lerobot
|
| 102 |
+
- /root/videos/atomic_split_train/CloseToasterOvenDoor/20250820/lerobot
|
| 103 |
+
- /root/videos/atomic_split_train/CoffeeServeMug/PickObject/20250819/lerobot
|
| 104 |
+
- /root/videos/atomic_split_train/CoffeeServeMug/PlaceObject/20250819/lerobot
|
| 105 |
+
- /root/videos/atomic_split_train/CoffeeSetupMug/PickObject/20250819/lerobot
|
| 106 |
+
- /root/videos/atomic_split_train/CoffeeSetupMug/PlaceObject/20250819/lerobot
|
| 107 |
+
- /root/videos/atomic_split_train/LowerHeat/GraspObject/20250805/lerobot
|
| 108 |
+
- /root/videos/atomic_split_train/LowerHeat/TwistKnob/20250805/lerobot
|
| 109 |
+
- /root/videos/atomic_split_train/MakeIcedCoffee/PickObject/20250801/lerobot
|
| 110 |
+
- /root/videos/atomic_split_train/MakeIcedCoffee/PlaceObject/20250801/lerobot
|
| 111 |
+
- /root/videos/atomic_split_train/OpenBlenderLid/PickObject/20250822/lerobot
|
| 112 |
+
- /root/videos/atomic_split_train/OpenBlenderLid/PlaceObject/20250822/lerobot
|
| 113 |
+
- /root/videos/atomic_split_train/OpenCabinet-DoubleDoor/GraspObject_0/20250819/lerobot
|
| 114 |
+
- /root/videos/atomic_split_train/OpenCabinet-DoubleDoor/GraspObject_1/20250819/lerobot
|
| 115 |
+
- /root/videos/atomic_split_train/OpenCabinet-DoubleDoor/OpenDoor_0/20250819/lerobot
|
| 116 |
+
- /root/videos/atomic_split_train/OpenCabinet-DoubleDoor/OpenDoor_1/20250819/lerobot
|
| 117 |
+
- /root/videos/atomic_split_train/OpenCabinet-SingleDoor/GraspObject/20250819/lerobot
|
| 118 |
+
- /root/videos/atomic_split_train/OpenCabinet-SingleDoor/OpenDoor/20250819/lerobot
|
| 119 |
+
- /root/videos/atomic_split_train/OpenDishwasher/GraspObject/20250820/lerobot
|
| 120 |
+
- /root/videos/atomic_split_train/OpenDishwasher/OpenDoor/20250820/lerobot
|
| 121 |
+
- /root/videos/atomic_split_train/OpenDrawer/GraspObject/20250819/lerobot
|
| 122 |
+
- /root/videos/atomic_split_train/OpenDrawer/PullOpen/20250819/lerobot
|
| 123 |
+
- /root/videos/atomic_split_train/OpenElectricKettleLid-split/ApproachToObject/20250820/lerobot
|
| 124 |
+
- /root/videos/atomic_split_train/OpenElectricKettleLid-split/PressButton/20250820/lerobot
|
| 125 |
+
- /root/videos/atomic_split_train/OpenElectricKettleLid/20250820/lerobot
|
| 126 |
+
- /root/videos/atomic_split_train/OpenFridge-DoubleDoor/GraspObject_0/20250819/lerobot
|
| 127 |
+
- /root/videos/atomic_split_train/OpenFridge-DoubleDoor/GraspObject_1/20250819/lerobot
|
| 128 |
+
- /root/videos/atomic_split_train/OpenFridge-DoubleDoor/OpenDoor_0/20250819/lerobot
|
| 129 |
+
- /root/videos/atomic_split_train/OpenFridge-DoubleDoor/OpenDoor_1/20250819/lerobot
|
| 130 |
+
- /root/videos/atomic_split_train/OpenFridge-SingleDoor/GraspObject/20250819/lerobot
|
| 131 |
+
- /root/videos/atomic_split_train/OpenFridge-SingleDoor/OpenDoor/20250819/lerobot
|
| 132 |
+
- /root/videos/atomic_split_train/OpenFridgeDrawer-split/GraspObject/20250821/lerobot
|
| 133 |
+
- /root/videos/atomic_split_train/OpenFridgeDrawer-split/PullOpen/20250821/lerobot
|
| 134 |
+
- /root/videos/atomic_split_train/OpenFridgeDrawer/20250821/lerobot
|
| 135 |
+
- /root/videos/atomic_split_train/OpenMicrowave/GraspObject/20250819/lerobot
|
| 136 |
+
- /root/videos/atomic_split_train/OpenMicrowave/OpenDoor/20250819/lerobot
|
| 137 |
+
- /root/videos/atomic_split_train/OpenOven/GraspObject/20250820/lerobot
|
| 138 |
+
- /root/videos/atomic_split_train/OpenOven/OpenDoor/20250820/lerobot
|
| 139 |
+
- /root/videos/atomic_split_train/OpenStandMixerHead-split/GraspObject/20250820/lerobot
|
| 140 |
+
- /root/videos/atomic_split_train/OpenStandMixerHead-split/OpenDoor/20250820/lerobot
|
| 141 |
+
- /root/videos/atomic_split_train/OpenStandMixerHead/20250820/lerobot
|
| 142 |
+
- /root/videos/atomic_split_train/OpenToasterOvenDoor/GraspObject/20250820/lerobot
|
| 143 |
+
- /root/videos/atomic_split_train/OpenToasterOvenDoor/OpenDoor/20250820/lerobot
|
| 144 |
+
- /root/videos/atomic_split_train/PackDessert/PickObject/20250806/lerobot
|
| 145 |
+
- /root/videos/atomic_split_train/PackDessert/PlaceObject/20250806/lerobot
|
| 146 |
+
- /root/videos/atomic_split_train/PickPlaceCabinetToCounter/PickObject/20250819/lerobot
|
| 147 |
+
- /root/videos/atomic_split_train/PickPlaceCabinetToCounter/PlaceObject/20250819/lerobot
|
| 148 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToBlender/PickObject/20250822/lerobot
|
| 149 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToBlender/PlaceObject/20250822/lerobot
|
| 150 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToCabinet/PickObject/20250819/lerobot
|
| 151 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToCabinet/PlaceObject/20250819/lerobot
|
| 152 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToDrawer/PickObject/20250821/lerobot
|
| 153 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToDrawer/PlaceObject/20250821/lerobot
|
| 154 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToMicrowave/PickObject/20250819/lerobot
|
| 155 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToMicrowave/PlaceObject/20250819/lerobot
|
| 156 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToOven/PickObject/20250819/lerobot
|
| 157 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToOven/PlaceObject/20250819/lerobot
|
| 158 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToSink/PickObject/20250819/lerobot
|
| 159 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToSink/PlaceObject/20250819/lerobot
|
| 160 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToStandMixer/PickObject/20250820/lerobot
|
| 161 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToStandMixer/PlaceObject/20250820/lerobot
|
| 162 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToStove/PickObject/20250819/lerobot
|
| 163 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToStove/PlaceObject/20250819/lerobot
|
| 164 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToToasterOven/PickObject/20250819/lerobot
|
| 165 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToToasterOven/PlaceObject/20250819/lerobot
|
| 166 |
+
- /root/videos/atomic_split_train/PickPlaceDrawerToCounter/PickObject/20250820/lerobot
|
| 167 |
+
- /root/videos/atomic_split_train/PickPlaceDrawerToCounter/PlaceObject/20250820/lerobot
|
| 168 |
+
- /root/videos/atomic_split_train/PickPlaceFridgeDrawerToShelf/PickObject/20250821/lerobot
|
| 169 |
+
- /root/videos/atomic_split_train/PickPlaceFridgeDrawerToShelf/PlaceObject/20250821/lerobot
|
| 170 |
+
- /root/videos/atomic_split_train/PickPlaceFridgeShelfToDrawer/PickObject/20250821/lerobot
|
| 171 |
+
- /root/videos/atomic_split_train/PickPlaceFridgeShelfToDrawer/PlaceObject/20250821/lerobot
|
| 172 |
+
- /root/videos/atomic_split_train/PickPlaceMicrowaveToCounter/PickObject/20250819/lerobot
|
| 173 |
+
- /root/videos/atomic_split_train/PickPlaceMicrowaveToCounter/PlaceObject/20250819/lerobot
|
| 174 |
+
- /root/videos/atomic_split_train/PickPlaceSinkToCounter/PickObject/20250819/lerobot
|
| 175 |
+
- /root/videos/atomic_split_train/PickPlaceSinkToCounter/PlaceObject/20250819/lerobot
|
| 176 |
+
- /root/videos/atomic_split_train/PickPlaceStoveToCounter/PickObject/20250819/lerobot
|
| 177 |
+
- /root/videos/atomic_split_train/PickPlaceStoveToCounter/PlaceObject/20250819/lerobot
|
| 178 |
+
- /root/videos/atomic_split_train/PickPlaceToasterOvenToCounter/PickObject/20250819/lerobot
|
| 179 |
+
- /root/videos/atomic_split_train/PickPlaceToasterOvenToCounter/PlaceObject/20250819/lerobot
|
| 180 |
+
- /root/videos/atomic_split_train/PickPlaceToasterToCounter/PickObject/20250819/lerobot
|
| 181 |
+
- /root/videos/atomic_split_train/PickPlaceToasterToCounter/PlaceObject/20250819/lerobot
|
| 182 |
+
- /root/videos/atomic_split_train/PreheatOven/GraspObject/20250903/lerobot
|
| 183 |
+
- /root/videos/atomic_split_train/PreheatOven/TwistKnob/20250903/lerobot
|
| 184 |
+
- /root/videos/atomic_split_train/SlideDishwasherRack-split/GraspObject/20250820/lerobot
|
| 185 |
+
- /root/videos/atomic_split_train/SlideDishwasherRack-split/SlideRack/20250820/lerobot
|
| 186 |
+
- /root/videos/atomic_split_train/SlideDishwasherRack/20250820/lerobot
|
| 187 |
+
- /root/videos/atomic_split_train/SlideOvenRack-split/GraspObject/20250820/lerobot
|
| 188 |
+
- /root/videos/atomic_split_train/SlideOvenRack-split/SlideRack/20250820/lerobot
|
| 189 |
+
- /root/videos/atomic_split_train/SlideOvenRack/20250820/lerobot
|
| 190 |
+
- /root/videos/atomic_split_train/SlideToasterOvenRack-split/GraspObject/20250820/lerobot
|
| 191 |
+
- /root/videos/atomic_split_train/SlideToasterOvenRack-split/SlideRack/20250820/lerobot
|
| 192 |
+
- /root/videos/atomic_split_train/SlideToasterOvenRack/20250820/lerobot
|
| 193 |
+
- /root/videos/atomic_split_train/StartCoffeeMachine-split/ApproachToObject/20250819/lerobot
|
| 194 |
+
- /root/videos/atomic_split_train/StartCoffeeMachine-split/PressButton/20250819/lerobot
|
| 195 |
+
- /root/videos/atomic_split_train/StartCoffeeMachine/20250819/lerobot
|
| 196 |
+
- /root/videos/atomic_split_train/TurnOffMicrowave-split/ApproachToObject/20250819/lerobot
|
| 197 |
+
- /root/videos/atomic_split_train/TurnOffMicrowave-split/PressButton/20250819/lerobot
|
| 198 |
+
- /root/videos/atomic_split_train/TurnOffMicrowave/20250819/lerobot
|
| 199 |
+
- /root/videos/atomic_split_train/TurnOffSinkFaucet-split/GraspObject/20250819/lerobot
|
| 200 |
+
- /root/videos/atomic_split_train/TurnOffSinkFaucet-split/TwistKnob/20250819/lerobot
|
| 201 |
+
- /root/videos/atomic_split_train/TurnOffSinkFaucet/20250819/lerobot
|
| 202 |
+
- /root/videos/atomic_split_train/TurnOffStove/GraspObject/20250819/lerobot
|
| 203 |
+
- /root/videos/atomic_split_train/TurnOffStove/TwistKnob/20250819/lerobot
|
| 204 |
+
- /root/videos/atomic_split_train/TurnOnBlender-split/ApproachToObject/20250822/lerobot
|
| 205 |
+
- /root/videos/atomic_split_train/TurnOnBlender-split/PressButton/20250822/lerobot
|
| 206 |
+
- /root/videos/atomic_split_train/TurnOnBlender/20250822/lerobot
|
| 207 |
+
- /root/videos/atomic_split_train/TurnOnElectricKettle-split/ApproachToObject/20250820/lerobot
|
| 208 |
+
- /root/videos/atomic_split_train/TurnOnElectricKettle-split/PressButton/20250820/lerobot
|
| 209 |
+
- /root/videos/atomic_split_train/TurnOnElectricKettle/20250820/lerobot
|
| 210 |
+
- /root/videos/atomic_split_train/TurnOnMicrowave-split/ApproachToObject/20250819/lerobot
|
| 211 |
+
- /root/videos/atomic_split_train/TurnOnMicrowave-split/PressButton/20250819/lerobot
|
| 212 |
+
- /root/videos/atomic_split_train/TurnOnMicrowave/20250819/lerobot
|
| 213 |
+
- /root/videos/atomic_split_train/TurnOnSinkFaucet-split/GraspObject/20250819/lerobot
|
| 214 |
+
- /root/videos/atomic_split_train/TurnOnSinkFaucet-split/TwistKnob/20250819/lerobot
|
| 215 |
+
- /root/videos/atomic_split_train/TurnOnSinkFaucet/20250819/lerobot
|
| 216 |
+
- /root/videos/atomic_split_train/TurnOnStove/GraspObject/20250819/lerobot
|
| 217 |
+
- /root/videos/atomic_split_train/TurnOnStove/TwistKnob/20250819/lerobot
|
| 218 |
+
- /root/videos/atomic_split_train/TurnOnToaster-split/ApproachToObject/20250820/lerobot
|
| 219 |
+
- /root/videos/atomic_split_train/TurnOnToaster-split/PressButton/20250820/lerobot
|
| 220 |
+
- /root/videos/atomic_split_train/TurnOnToaster/20250820/lerobot
|
| 221 |
+
- /root/videos/atomic_split_train/TurnOnToasterOven/GraspObject/20250820/lerobot
|
| 222 |
+
- /root/videos/atomic_split_train/TurnOnToasterOven/TwistKnob/20250820/lerobot
|
| 223 |
+
- /root/videos/atomic_split_train/TurnSinkSpout/20250820/lerobot
|
| 224 |
+
- /root/videos/atomic_split_train/TurnSinkSpout/GraspObject/20250820/lerobot
|
| 225 |
+
- /root/videos/atomic_split_train/TurnSinkSpout/TurnSinkSpout/20250820/lerobot
|
| 226 |
+
embodiment_tag: robocasa_panda_omron
|
| 227 |
+
mix_ratio: 1.0
|
| 228 |
+
dataset_type: physical_embodiment
|
| 229 |
+
val_dataset_path: null
|
| 230 |
+
modality_configs:
|
| 231 |
+
robocasa_panda_omron:
|
| 232 |
+
video:
|
| 233 |
+
delta_indices:
|
| 234 |
+
- 0
|
| 235 |
+
modality_keys:
|
| 236 |
+
- res256_image_side_0
|
| 237 |
+
- res256_image_side_1
|
| 238 |
+
- res256_image_wrist_0
|
| 239 |
+
sin_cos_embedding_keys: null
|
| 240 |
+
mean_std_embedding_keys: null
|
| 241 |
+
action_configs: null
|
| 242 |
+
state:
|
| 243 |
+
delta_indices:
|
| 244 |
+
- 0
|
| 245 |
+
modality_keys:
|
| 246 |
+
- end_effector_position_relative
|
| 247 |
+
- end_effector_rotation_relative
|
| 248 |
+
- gripper_qpos
|
| 249 |
+
- base_position
|
| 250 |
+
- base_rotation
|
| 251 |
+
sin_cos_embedding_keys: null
|
| 252 |
+
mean_std_embedding_keys: null
|
| 253 |
+
action_configs: null
|
| 254 |
+
action:
|
| 255 |
+
delta_indices:
|
| 256 |
+
- 0
|
| 257 |
+
- 1
|
| 258 |
+
- 2
|
| 259 |
+
- 3
|
| 260 |
+
- 4
|
| 261 |
+
- 5
|
| 262 |
+
- 6
|
| 263 |
+
- 7
|
| 264 |
+
- 8
|
| 265 |
+
- 9
|
| 266 |
+
- 10
|
| 267 |
+
- 11
|
| 268 |
+
- 12
|
| 269 |
+
- 13
|
| 270 |
+
- 14
|
| 271 |
+
- 15
|
| 272 |
+
modality_keys:
|
| 273 |
+
- end_effector_position
|
| 274 |
+
- end_effector_rotation
|
| 275 |
+
- gripper_close
|
| 276 |
+
- base_motion
|
| 277 |
+
- control_mode
|
| 278 |
+
sin_cos_embedding_keys: null
|
| 279 |
+
mean_std_embedding_keys: null
|
| 280 |
+
action_configs:
|
| 281 |
+
- rep: ABSOLUTE
|
| 282 |
+
type: NON_EEF
|
| 283 |
+
format: DEFAULT
|
| 284 |
+
state_key: null
|
| 285 |
+
- rep: ABSOLUTE
|
| 286 |
+
type: NON_EEF
|
| 287 |
+
format: DEFAULT
|
| 288 |
+
state_key: null
|
| 289 |
+
- rep: ABSOLUTE
|
| 290 |
+
type: NON_EEF
|
| 291 |
+
format: DEFAULT
|
| 292 |
+
state_key: null
|
| 293 |
+
- rep: ABSOLUTE
|
| 294 |
+
type: NON_EEF
|
| 295 |
+
format: DEFAULT
|
| 296 |
+
state_key: null
|
| 297 |
+
- rep: ABSOLUTE
|
| 298 |
+
type: NON_EEF
|
| 299 |
+
format: DEFAULT
|
| 300 |
+
state_key: null
|
| 301 |
+
language:
|
| 302 |
+
delta_indices:
|
| 303 |
+
- 0
|
| 304 |
+
modality_keys:
|
| 305 |
+
- annotation.human.task_description
|
| 306 |
+
sin_cos_embedding_keys: null
|
| 307 |
+
mean_std_embedding_keys: null
|
| 308 |
+
action_configs: null
|
| 309 |
+
download_cache: false
|
| 310 |
+
shard_size: 1024
|
| 311 |
+
episode_sampling_rate: 0.1
|
| 312 |
+
num_shards_per_epoch: 100000
|
| 313 |
+
override_pretraining_statistics: false
|
| 314 |
+
mode: single_turn
|
| 315 |
+
random_chop: 0.0
|
| 316 |
+
mock_dataset_mode: false
|
| 317 |
+
shuffle: true
|
| 318 |
+
seed: 42
|
| 319 |
+
multiprocessing_context: fork
|
| 320 |
+
allow_padding: false
|
| 321 |
+
subsample_ratio: 1.0
|
| 322 |
+
image_crop_size:
|
| 323 |
+
- 244
|
| 324 |
+
- 244
|
| 325 |
+
image_target_size:
|
| 326 |
+
- 224
|
| 327 |
+
- 224
|
| 328 |
+
video_backend: torchcodec
|
| 329 |
+
training:
|
| 330 |
+
output_dir: /root/outputs/gr00t-all-tasks
|
| 331 |
+
experiment_name: null
|
| 332 |
+
max_steps: 50000
|
| 333 |
+
global_batch_size: 64
|
| 334 |
+
batch_size: null
|
| 335 |
+
gradient_accumulation_steps: 1
|
| 336 |
+
learning_rate: 0.0001
|
| 337 |
+
lr_scheduler_type: cosine
|
| 338 |
+
weight_decay: 1.0e-05
|
| 339 |
+
warmup_ratio: 0.05
|
| 340 |
+
warmup_steps: 0
|
| 341 |
+
max_grad_norm: 1.0
|
| 342 |
+
optim: adamw_torch
|
| 343 |
+
start_from_checkpoint: nvidia/GR00T-N1.6-3B
|
| 344 |
+
tf32: true
|
| 345 |
+
fp16: false
|
| 346 |
+
bf16: true
|
| 347 |
+
eval_bf16: true
|
| 348 |
+
logging_steps: 10
|
| 349 |
+
save_steps: 2500
|
| 350 |
+
save_total_limit: 5
|
| 351 |
+
save_vl_model: false
|
| 352 |
+
upload_checkpoints: false
|
| 353 |
+
upload_every: 1000
|
| 354 |
+
upload_last_n_checkpoints: 5
|
| 355 |
+
max_concurrent_uploads: 2
|
| 356 |
+
eval_strategy: 'no'
|
| 357 |
+
eval_steps: 500
|
| 358 |
+
eval_set_split_ratio: 0.1
|
| 359 |
+
eval_batch_size: 2
|
| 360 |
+
save_best_eval_metric_name: ''
|
| 361 |
+
save_best_eval_metric_greater_is_better: true
|
| 362 |
+
deepspeed_stage: 2
|
| 363 |
+
gradient_checkpointing: false
|
| 364 |
+
transformers_trust_remote_code: true
|
| 365 |
+
transformers_local_files_only: false
|
| 366 |
+
transformers_cache_dir: null
|
| 367 |
+
transformers_access_token: null
|
| 368 |
+
use_ddp: false
|
| 369 |
+
ddp_bucket_cap_mb: 100
|
| 370 |
+
num_gpus: 8
|
| 371 |
+
dataloader_num_workers: 4
|
| 372 |
+
remove_unused_columns: false
|
| 373 |
+
use_wandb: false
|
| 374 |
+
wandb_project: finetune-gr00t-n1d6
|
| 375 |
+
enable_profiling: false
|
| 376 |
+
max_retries: 3
|
| 377 |
+
assert_loss_less_than: null
|
| 378 |
+
add_rl_callback: false
|
| 379 |
+
enable_open_loop_eval: false
|
| 380 |
+
open_loop_eval_traj_ids:
|
| 381 |
+
- 0
|
| 382 |
+
open_loop_eval_steps_per_traj: 100
|
| 383 |
+
open_loop_eval_plot_indices: null
|
| 384 |
+
max_steps: 50000
|
| 385 |
+
save_steps: 2500
|
checkpoint-45000/experiment_cfg/config.yaml
ADDED
|
@@ -0,0 +1,421 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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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 |
+
- /root/videos/atomic_split_train/AdjustToasterOvenTemperature/GraspObject/20250820/lerobot
|
| 8 |
+
- /root/videos/atomic_split_train/AdjustToasterOvenTemperature/TwistKnob/20250820/lerobot
|
| 9 |
+
- /root/videos/atomic_split_train/AdjustWaterTemperature/GraspObject/20250820/lerobot
|
| 10 |
+
- /root/videos/atomic_split_train/AdjustWaterTemperature/TwistKnob/20250820/lerobot
|
| 11 |
+
- /root/videos/atomic_split_train/CheesyBread/PickObject/20250714/lerobot
|
| 12 |
+
- /root/videos/atomic_split_train/CheesyBread/PlaceObject/20250714/lerobot
|
| 13 |
+
- /root/videos/atomic_split_train/CloseBlenderLid/PickObject/20250822/lerobot
|
| 14 |
+
- /root/videos/atomic_split_train/CloseBlenderLid/PlaceObject/20250822/lerobot
|
| 15 |
+
- /root/videos/atomic_split_train/CloseCabinet-DoubleDoor/ApproachToObject_0/20250819/lerobot
|
| 16 |
+
- /root/videos/atomic_split_train/CloseCabinet-DoubleDoor/ApproachToObject_1/20250819/lerobot
|
| 17 |
+
- /root/videos/atomic_split_train/CloseCabinet-DoubleDoor/CloseDoor_0/20250819/lerobot
|
| 18 |
+
- /root/videos/atomic_split_train/CloseCabinet-DoubleDoor/CloseDoor_1/20250819/lerobot
|
| 19 |
+
- /root/videos/atomic_split_train/CloseCabinet-SingleDoor/ApproachToObject/20250819/lerobot
|
| 20 |
+
- /root/videos/atomic_split_train/CloseCabinet-SingleDoor/CloseDoor/20250819/lerobot
|
| 21 |
+
- /root/videos/atomic_split_train/CloseCabinet/20250819/lerobot
|
| 22 |
+
- /root/videos/atomic_split_train/CloseDishwasher/ApproachToObject/20250820/lerobot
|
| 23 |
+
- /root/videos/atomic_split_train/CloseDishwasher/PushClose/20250820/lerobot
|
| 24 |
+
- /root/videos/atomic_split_train/CloseDrawer/ApproachToObject/20250819/lerobot
|
| 25 |
+
- /root/videos/atomic_split_train/CloseDrawer/PushClose/20250819/lerobot
|
| 26 |
+
- /root/videos/atomic_split_train/CloseElectricKettleLid/20250820/lerobot
|
| 27 |
+
- /root/videos/atomic_split_train/CloseFridge-DoubleDoor/ApproachToObject_0/20250819/lerobot
|
| 28 |
+
- /root/videos/atomic_split_train/CloseFridge-DoubleDoor/ApproachToObject_1/20250819/lerobot
|
| 29 |
+
- /root/videos/atomic_split_train/CloseFridge-DoubleDoor/CloseDoor_0/20250819/lerobot
|
| 30 |
+
- /root/videos/atomic_split_train/CloseFridge-DoubleDoor/CloseDoor_1/20250819/lerobot
|
| 31 |
+
- /root/videos/atomic_split_train/CloseFridge-SingleDoor/ApproachToObject/20250819/lerobot
|
| 32 |
+
- /root/videos/atomic_split_train/CloseFridge-SingleDoor/CloseDoor/20250819/lerobot
|
| 33 |
+
- /root/videos/atomic_split_train/CloseFridgeDrawer/ApproachToObject/20250821/lerobot
|
| 34 |
+
- /root/videos/atomic_split_train/CloseFridgeDrawer/PushClose/20250821/lerobot
|
| 35 |
+
- /root/videos/atomic_split_train/CloseMicrowave/ApproachToObject/20250819/lerobot
|
| 36 |
+
- /root/videos/atomic_split_train/CloseMicrowave/CloseDoor/20250819/lerobot
|
| 37 |
+
- /root/videos/atomic_split_train/CloseOven-split/ApproachToObject/20250820/lerobot
|
| 38 |
+
- /root/videos/atomic_split_train/CloseOven-split/PushClose/20250820/lerobot
|
| 39 |
+
- /root/videos/atomic_split_train/CloseOven/20250820/lerobot
|
| 40 |
+
- /root/videos/atomic_split_train/CloseStandMixerHead-split/ApproachToObject/20250820/lerobot
|
| 41 |
+
- /root/videos/atomic_split_train/CloseStandMixerHead-split/CloseDoor/20250820/lerobot
|
| 42 |
+
- /root/videos/atomic_split_train/CloseStandMixerHead/20250820/lerobot
|
| 43 |
+
- /root/videos/atomic_split_train/CloseToasterOvenDoor-split/ApproachToObject/20250820/lerobot
|
| 44 |
+
- /root/videos/atomic_split_train/CloseToasterOvenDoor-split/CloseDoor/20250820/lerobot
|
| 45 |
+
- /root/videos/atomic_split_train/CloseToasterOvenDoor/20250820/lerobot
|
| 46 |
+
- /root/videos/atomic_split_train/CoffeeServeMug/PickObject/20250819/lerobot
|
| 47 |
+
- /root/videos/atomic_split_train/CoffeeServeMug/PlaceObject/20250819/lerobot
|
| 48 |
+
- /root/videos/atomic_split_train/CoffeeSetupMug/PickObject/20250819/lerobot
|
| 49 |
+
- /root/videos/atomic_split_train/CoffeeSetupMug/PlaceObject/20250819/lerobot
|
| 50 |
+
- /root/videos/atomic_split_train/LowerHeat/GraspObject/20250805/lerobot
|
| 51 |
+
- /root/videos/atomic_split_train/LowerHeat/TwistKnob/20250805/lerobot
|
| 52 |
+
- /root/videos/atomic_split_train/MakeIcedCoffee/PickObject/20250801/lerobot
|
| 53 |
+
- /root/videos/atomic_split_train/MakeIcedCoffee/PlaceObject/20250801/lerobot
|
| 54 |
+
- /root/videos/atomic_split_train/OpenBlenderLid/PickObject/20250822/lerobot
|
| 55 |
+
- /root/videos/atomic_split_train/OpenBlenderLid/PlaceObject/20250822/lerobot
|
| 56 |
+
- /root/videos/atomic_split_train/OpenCabinet-DoubleDoor/GraspObject_0/20250819/lerobot
|
| 57 |
+
- /root/videos/atomic_split_train/OpenCabinet-DoubleDoor/GraspObject_1/20250819/lerobot
|
| 58 |
+
- /root/videos/atomic_split_train/OpenCabinet-DoubleDoor/OpenDoor_0/20250819/lerobot
|
| 59 |
+
- /root/videos/atomic_split_train/OpenCabinet-DoubleDoor/OpenDoor_1/20250819/lerobot
|
| 60 |
+
- /root/videos/atomic_split_train/OpenCabinet-SingleDoor/GraspObject/20250819/lerobot
|
| 61 |
+
- /root/videos/atomic_split_train/OpenCabinet-SingleDoor/OpenDoor/20250819/lerobot
|
| 62 |
+
- /root/videos/atomic_split_train/OpenDishwasher/GraspObject/20250820/lerobot
|
| 63 |
+
- /root/videos/atomic_split_train/OpenDishwasher/OpenDoor/20250820/lerobot
|
| 64 |
+
- /root/videos/atomic_split_train/OpenDrawer/GraspObject/20250819/lerobot
|
| 65 |
+
- /root/videos/atomic_split_train/OpenDrawer/PullOpen/20250819/lerobot
|
| 66 |
+
- /root/videos/atomic_split_train/OpenElectricKettleLid-split/ApproachToObject/20250820/lerobot
|
| 67 |
+
- /root/videos/atomic_split_train/OpenElectricKettleLid-split/PressButton/20250820/lerobot
|
| 68 |
+
- /root/videos/atomic_split_train/OpenElectricKettleLid/20250820/lerobot
|
| 69 |
+
- /root/videos/atomic_split_train/OpenFridge-DoubleDoor/GraspObject_0/20250819/lerobot
|
| 70 |
+
- /root/videos/atomic_split_train/OpenFridge-DoubleDoor/GraspObject_1/20250819/lerobot
|
| 71 |
+
- /root/videos/atomic_split_train/OpenFridge-DoubleDoor/OpenDoor_0/20250819/lerobot
|
| 72 |
+
- /root/videos/atomic_split_train/OpenFridge-DoubleDoor/OpenDoor_1/20250819/lerobot
|
| 73 |
+
- /root/videos/atomic_split_train/OpenFridge-SingleDoor/GraspObject/20250819/lerobot
|
| 74 |
+
- /root/videos/atomic_split_train/OpenFridge-SingleDoor/OpenDoor/20250819/lerobot
|
| 75 |
+
- /root/videos/atomic_split_train/OpenFridgeDrawer-split/GraspObject/20250821/lerobot
|
| 76 |
+
- /root/videos/atomic_split_train/OpenFridgeDrawer-split/PullOpen/20250821/lerobot
|
| 77 |
+
- /root/videos/atomic_split_train/OpenFridgeDrawer/20250821/lerobot
|
| 78 |
+
- /root/videos/atomic_split_train/OpenMicrowave/GraspObject/20250819/lerobot
|
| 79 |
+
- /root/videos/atomic_split_train/OpenMicrowave/OpenDoor/20250819/lerobot
|
| 80 |
+
- /root/videos/atomic_split_train/OpenOven/GraspObject/20250820/lerobot
|
| 81 |
+
- /root/videos/atomic_split_train/OpenOven/OpenDoor/20250820/lerobot
|
| 82 |
+
- /root/videos/atomic_split_train/OpenStandMixerHead-split/GraspObject/20250820/lerobot
|
| 83 |
+
- /root/videos/atomic_split_train/OpenStandMixerHead-split/OpenDoor/20250820/lerobot
|
| 84 |
+
- /root/videos/atomic_split_train/OpenStandMixerHead/20250820/lerobot
|
| 85 |
+
- /root/videos/atomic_split_train/OpenToasterOvenDoor/GraspObject/20250820/lerobot
|
| 86 |
+
- /root/videos/atomic_split_train/OpenToasterOvenDoor/OpenDoor/20250820/lerobot
|
| 87 |
+
- /root/videos/atomic_split_train/PackDessert/PickObject/20250806/lerobot
|
| 88 |
+
- /root/videos/atomic_split_train/PackDessert/PlaceObject/20250806/lerobot
|
| 89 |
+
- /root/videos/atomic_split_train/PickPlaceCabinetToCounter/PickObject/20250819/lerobot
|
| 90 |
+
- /root/videos/atomic_split_train/PickPlaceCabinetToCounter/PlaceObject/20250819/lerobot
|
| 91 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToBlender/PickObject/20250822/lerobot
|
| 92 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToBlender/PlaceObject/20250822/lerobot
|
| 93 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToCabinet/PickObject/20250819/lerobot
|
| 94 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToCabinet/PlaceObject/20250819/lerobot
|
| 95 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToDrawer/PickObject/20250821/lerobot
|
| 96 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToDrawer/PlaceObject/20250821/lerobot
|
| 97 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToMicrowave/PickObject/20250819/lerobot
|
| 98 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToMicrowave/PlaceObject/20250819/lerobot
|
| 99 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToOven/PickObject/20250819/lerobot
|
| 100 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToOven/PlaceObject/20250819/lerobot
|
| 101 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToSink/PickObject/20250819/lerobot
|
| 102 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToSink/PlaceObject/20250819/lerobot
|
| 103 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToStandMixer/PickObject/20250820/lerobot
|
| 104 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToStandMixer/PlaceObject/20250820/lerobot
|
| 105 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToStove/PickObject/20250819/lerobot
|
| 106 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToStove/PlaceObject/20250819/lerobot
|
| 107 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToToasterOven/PickObject/20250819/lerobot
|
| 108 |
+
- /root/videos/atomic_split_train/PickPlaceCounterToToasterOven/PlaceObject/20250819/lerobot
|
| 109 |
+
- /root/videos/atomic_split_train/PickPlaceDrawerToCounter/PickObject/20250820/lerobot
|
| 110 |
+
- /root/videos/atomic_split_train/PickPlaceDrawerToCounter/PlaceObject/20250820/lerobot
|
| 111 |
+
- /root/videos/atomic_split_train/PickPlaceFridgeDrawerToShelf/PickObject/20250821/lerobot
|
| 112 |
+
- /root/videos/atomic_split_train/PickPlaceFridgeDrawerToShelf/PlaceObject/20250821/lerobot
|
| 113 |
+
- /root/videos/atomic_split_train/PickPlaceFridgeShelfToDrawer/PickObject/20250821/lerobot
|
| 114 |
+
- /root/videos/atomic_split_train/PickPlaceFridgeShelfToDrawer/PlaceObject/20250821/lerobot
|
| 115 |
+
- /root/videos/atomic_split_train/PickPlaceMicrowaveToCounter/PickObject/20250819/lerobot
|
| 116 |
+
- /root/videos/atomic_split_train/PickPlaceMicrowaveToCounter/PlaceObject/20250819/lerobot
|
| 117 |
+
- /root/videos/atomic_split_train/PickPlaceSinkToCounter/PickObject/20250819/lerobot
|
| 118 |
+
- /root/videos/atomic_split_train/PickPlaceSinkToCounter/PlaceObject/20250819/lerobot
|
| 119 |
+
- /root/videos/atomic_split_train/PickPlaceStoveToCounter/PickObject/20250819/lerobot
|
| 120 |
+
- /root/videos/atomic_split_train/PickPlaceStoveToCounter/PlaceObject/20250819/lerobot
|
| 121 |
+
- /root/videos/atomic_split_train/PickPlaceToasterOvenToCounter/PickObject/20250819/lerobot
|
| 122 |
+
- /root/videos/atomic_split_train/PickPlaceToasterOvenToCounter/PlaceObject/20250819/lerobot
|
| 123 |
+
- /root/videos/atomic_split_train/PickPlaceToasterToCounter/PickObject/20250819/lerobot
|
| 124 |
+
- /root/videos/atomic_split_train/PickPlaceToasterToCounter/PlaceObject/20250819/lerobot
|
| 125 |
+
- /root/videos/atomic_split_train/PreheatOven/GraspObject/20250903/lerobot
|
| 126 |
+
- /root/videos/atomic_split_train/PreheatOven/TwistKnob/20250903/lerobot
|
| 127 |
+
- /root/videos/atomic_split_train/SlideDishwasherRack-split/GraspObject/20250820/lerobot
|
| 128 |
+
- /root/videos/atomic_split_train/SlideDishwasherRack-split/SlideRack/20250820/lerobot
|
| 129 |
+
- /root/videos/atomic_split_train/SlideDishwasherRack/20250820/lerobot
|
| 130 |
+
- /root/videos/atomic_split_train/SlideOvenRack-split/GraspObject/20250820/lerobot
|
| 131 |
+
- /root/videos/atomic_split_train/SlideOvenRack-split/SlideRack/20250820/lerobot
|
| 132 |
+
- /root/videos/atomic_split_train/SlideOvenRack/20250820/lerobot
|
| 133 |
+
- /root/videos/atomic_split_train/SlideToasterOvenRack-split/GraspObject/20250820/lerobot
|
| 134 |
+
- /root/videos/atomic_split_train/SlideToasterOvenRack-split/SlideRack/20250820/lerobot
|
| 135 |
+
- /root/videos/atomic_split_train/SlideToasterOvenRack/20250820/lerobot
|
| 136 |
+
- /root/videos/atomic_split_train/StartCoffeeMachine-split/ApproachToObject/20250819/lerobot
|
| 137 |
+
- /root/videos/atomic_split_train/StartCoffeeMachine-split/PressButton/20250819/lerobot
|
| 138 |
+
- /root/videos/atomic_split_train/StartCoffeeMachine/20250819/lerobot
|
| 139 |
+
- /root/videos/atomic_split_train/TurnOffMicrowave-split/ApproachToObject/20250819/lerobot
|
| 140 |
+
- /root/videos/atomic_split_train/TurnOffMicrowave-split/PressButton/20250819/lerobot
|
| 141 |
+
- /root/videos/atomic_split_train/TurnOffMicrowave/20250819/lerobot
|
| 142 |
+
- /root/videos/atomic_split_train/TurnOffSinkFaucet-split/GraspObject/20250819/lerobot
|
| 143 |
+
- /root/videos/atomic_split_train/TurnOffSinkFaucet-split/TwistKnob/20250819/lerobot
|
| 144 |
+
- /root/videos/atomic_split_train/TurnOffSinkFaucet/20250819/lerobot
|
| 145 |
+
- /root/videos/atomic_split_train/TurnOffStove/GraspObject/20250819/lerobot
|
| 146 |
+
- /root/videos/atomic_split_train/TurnOffStove/TwistKnob/20250819/lerobot
|
| 147 |
+
- /root/videos/atomic_split_train/TurnOnBlender-split/ApproachToObject/20250822/lerobot
|
| 148 |
+
- /root/videos/atomic_split_train/TurnOnBlender-split/PressButton/20250822/lerobot
|
| 149 |
+
- /root/videos/atomic_split_train/TurnOnBlender/20250822/lerobot
|
| 150 |
+
- /root/videos/atomic_split_train/TurnOnElectricKettle-split/ApproachToObject/20250820/lerobot
|
| 151 |
+
- /root/videos/atomic_split_train/TurnOnElectricKettle-split/PressButton/20250820/lerobot
|
| 152 |
+
- /root/videos/atomic_split_train/TurnOnElectricKettle/20250820/lerobot
|
| 153 |
+
- /root/videos/atomic_split_train/TurnOnMicrowave-split/ApproachToObject/20250819/lerobot
|
| 154 |
+
- /root/videos/atomic_split_train/TurnOnMicrowave-split/PressButton/20250819/lerobot
|
| 155 |
+
- /root/videos/atomic_split_train/TurnOnMicrowave/20250819/lerobot
|
| 156 |
+
- /root/videos/atomic_split_train/TurnOnSinkFaucet-split/GraspObject/20250819/lerobot
|
| 157 |
+
- /root/videos/atomic_split_train/TurnOnSinkFaucet-split/TwistKnob/20250819/lerobot
|
| 158 |
+
- /root/videos/atomic_split_train/TurnOnSinkFaucet/20250819/lerobot
|
| 159 |
+
- /root/videos/atomic_split_train/TurnOnStove/GraspObject/20250819/lerobot
|
| 160 |
+
- /root/videos/atomic_split_train/TurnOnStove/TwistKnob/20250819/lerobot
|
| 161 |
+
- /root/videos/atomic_split_train/TurnOnToaster-split/ApproachToObject/20250820/lerobot
|
| 162 |
+
- /root/videos/atomic_split_train/TurnOnToaster-split/PressButton/20250820/lerobot
|
| 163 |
+
- /root/videos/atomic_split_train/TurnOnToaster/20250820/lerobot
|
| 164 |
+
- /root/videos/atomic_split_train/TurnOnToasterOven/GraspObject/20250820/lerobot
|
| 165 |
+
- /root/videos/atomic_split_train/TurnOnToasterOven/TwistKnob/20250820/lerobot
|
| 166 |
+
- /root/videos/atomic_split_train/TurnSinkSpout/20250820/lerobot
|
| 167 |
+
- /root/videos/atomic_split_train/TurnSinkSpout/GraspObject/20250820/lerobot
|
| 168 |
+
- /root/videos/atomic_split_train/TurnSinkSpout/TurnSinkSpout/20250820/lerobot
|
| 169 |
+
dataset_type: physical_embodiment
|
| 170 |
+
embodiment_tag: robocasa_panda_omron
|
| 171 |
+
mix_ratio: 1.0
|
| 172 |
+
val_dataset_path: null
|
| 173 |
+
download_cache: false
|
| 174 |
+
episode_sampling_rate: 0.1
|
| 175 |
+
image_crop_size:
|
| 176 |
+
- 244
|
| 177 |
+
- 244
|
| 178 |
+
image_target_size:
|
| 179 |
+
- 224
|
| 180 |
+
- 224
|
| 181 |
+
mock_dataset_mode: false
|
| 182 |
+
modality_configs:
|
| 183 |
+
robocasa_panda_omron:
|
| 184 |
+
action: !!python/object:gr00t.data.types.ModalityConfig
|
| 185 |
+
action_configs:
|
| 186 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 187 |
+
format: &id001 !!python/object/apply:gr00t.data.types.ActionFormat
|
| 188 |
+
- default
|
| 189 |
+
rep: &id002 !!python/object/apply:gr00t.data.types.ActionRepresentation
|
| 190 |
+
- absolute
|
| 191 |
+
state_key: null
|
| 192 |
+
type: &id003 !!python/object/apply:gr00t.data.types.ActionType
|
| 193 |
+
- non_eef
|
| 194 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 195 |
+
format: *id001
|
| 196 |
+
rep: *id002
|
| 197 |
+
state_key: null
|
| 198 |
+
type: *id003
|
| 199 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 200 |
+
format: *id001
|
| 201 |
+
rep: *id002
|
| 202 |
+
state_key: null
|
| 203 |
+
type: *id003
|
| 204 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 205 |
+
format: *id001
|
| 206 |
+
rep: *id002
|
| 207 |
+
state_key: null
|
| 208 |
+
type: *id003
|
| 209 |
+
- !!python/object:gr00t.data.types.ActionConfig
|
| 210 |
+
format: *id001
|
| 211 |
+
rep: *id002
|
| 212 |
+
state_key: null
|
| 213 |
+
type: *id003
|
| 214 |
+
delta_indices:
|
| 215 |
+
- 0
|
| 216 |
+
- 1
|
| 217 |
+
- 2
|
| 218 |
+
- 3
|
| 219 |
+
- 4
|
| 220 |
+
- 5
|
| 221 |
+
- 6
|
| 222 |
+
- 7
|
| 223 |
+
- 8
|
| 224 |
+
- 9
|
| 225 |
+
- 10
|
| 226 |
+
- 11
|
| 227 |
+
- 12
|
| 228 |
+
- 13
|
| 229 |
+
- 14
|
| 230 |
+
- 15
|
| 231 |
+
mean_std_embedding_keys: null
|
| 232 |
+
modality_keys:
|
| 233 |
+
- end_effector_position
|
| 234 |
+
- end_effector_rotation
|
| 235 |
+
- gripper_close
|
| 236 |
+
- base_motion
|
| 237 |
+
- control_mode
|
| 238 |
+
sin_cos_embedding_keys: null
|
| 239 |
+
language: !!python/object:gr00t.data.types.ModalityConfig
|
| 240 |
+
action_configs: null
|
| 241 |
+
delta_indices:
|
| 242 |
+
- 0
|
| 243 |
+
mean_std_embedding_keys: null
|
| 244 |
+
modality_keys:
|
| 245 |
+
- annotation.human.task_description
|
| 246 |
+
sin_cos_embedding_keys: null
|
| 247 |
+
state: !!python/object:gr00t.data.types.ModalityConfig
|
| 248 |
+
action_configs: null
|
| 249 |
+
delta_indices:
|
| 250 |
+
- 0
|
| 251 |
+
mean_std_embedding_keys: null
|
| 252 |
+
modality_keys:
|
| 253 |
+
- end_effector_position_relative
|
| 254 |
+
- end_effector_rotation_relative
|
| 255 |
+
- gripper_qpos
|
| 256 |
+
- base_position
|
| 257 |
+
- base_rotation
|
| 258 |
+
sin_cos_embedding_keys: null
|
| 259 |
+
video: !!python/object:gr00t.data.types.ModalityConfig
|
| 260 |
+
action_configs: null
|
| 261 |
+
delta_indices:
|
| 262 |
+
- 0
|
| 263 |
+
mean_std_embedding_keys: null
|
| 264 |
+
modality_keys:
|
| 265 |
+
- res256_image_side_0
|
| 266 |
+
- res256_image_side_1
|
| 267 |
+
- res256_image_wrist_0
|
| 268 |
+
sin_cos_embedding_keys: null
|
| 269 |
+
mode: single_turn
|
| 270 |
+
multiprocessing_context: fork
|
| 271 |
+
num_shards_per_epoch: 100000
|
| 272 |
+
override_pretraining_statistics: false
|
| 273 |
+
random_chop: 0.0
|
| 274 |
+
seed: 42
|
| 275 |
+
shard_size: 1024
|
| 276 |
+
shuffle: true
|
| 277 |
+
subsample_ratio: 1.0
|
| 278 |
+
video_backend: torchcodec
|
| 279 |
+
load_config_path: null
|
| 280 |
+
model: !!python/object:gr00t.configs.model.gr00t_n1d6.Gr00tN1d6Config
|
| 281 |
+
_attn_implementation_autoset: false
|
| 282 |
+
_attn_implementation_internal: null
|
| 283 |
+
_commit_hash: null
|
| 284 |
+
_name_or_path: ''
|
| 285 |
+
add_cross_attention: false
|
| 286 |
+
architectures: null
|
| 287 |
+
backbone_model_type: eagle
|
| 288 |
+
backbone_trainable_params_fp32: true
|
| 289 |
+
bad_words_ids: null
|
| 290 |
+
begin_suppress_tokens: null
|
| 291 |
+
bos_token_id: null
|
| 292 |
+
chunk_size_feed_forward: 0
|
| 293 |
+
color_jitter_params: null
|
| 294 |
+
cross_attention_hidden_size: null
|
| 295 |
+
decoder_start_token_id: null
|
| 296 |
+
diffusion_model_cfg:
|
| 297 |
+
attention_head_dim: 48
|
| 298 |
+
dropout: 0.2
|
| 299 |
+
final_dropout: true
|
| 300 |
+
interleave_self_attention: true
|
| 301 |
+
norm_type: ada_norm
|
| 302 |
+
num_attention_heads: 32
|
| 303 |
+
num_layers: 32
|
| 304 |
+
output_dim: 1024
|
| 305 |
+
positional_embeddings: null
|
| 306 |
+
diversity_penalty: 0.0
|
| 307 |
+
do_sample: false
|
| 308 |
+
eagle_collator: true
|
| 309 |
+
early_stopping: false
|
| 310 |
+
encoder_no_repeat_ngram_size: 0
|
| 311 |
+
eos_token_id: null
|
| 312 |
+
exponential_decay_length_penalty: null
|
| 313 |
+
finetuning_task: null
|
| 314 |
+
forced_bos_token_id: null
|
| 315 |
+
forced_eos_token_id: null
|
| 316 |
+
id2label:
|
| 317 |
+
0: LABEL_0
|
| 318 |
+
1: LABEL_1
|
| 319 |
+
is_decoder: false
|
| 320 |
+
is_encoder_decoder: false
|
| 321 |
+
label2id:
|
| 322 |
+
LABEL_0: 0
|
| 323 |
+
LABEL_1: 1
|
| 324 |
+
length_penalty: 1.0
|
| 325 |
+
load_bf16: false
|
| 326 |
+
max_length: 20
|
| 327 |
+
min_length: 0
|
| 328 |
+
model_name: nvidia/Eagle-Block2A-2B-v2
|
| 329 |
+
no_repeat_ngram_size: 0
|
| 330 |
+
num_beam_groups: 1
|
| 331 |
+
num_beams: 1
|
| 332 |
+
num_return_sequences: 1
|
| 333 |
+
output_attentions: false
|
| 334 |
+
output_hidden_states: false
|
| 335 |
+
output_scores: false
|
| 336 |
+
pad_token_id: null
|
| 337 |
+
prefix: null
|
| 338 |
+
problem_type: null
|
| 339 |
+
pruned_heads: {}
|
| 340 |
+
random_rotation_angle: null
|
| 341 |
+
remove_invalid_values: false
|
| 342 |
+
repetition_penalty: 1.0
|
| 343 |
+
reproject_vision: false
|
| 344 |
+
return_dict: true
|
| 345 |
+
return_dict_in_generate: false
|
| 346 |
+
sep_token_id: null
|
| 347 |
+
state_dropout_prob: 0.0
|
| 348 |
+
suppress_tokens: null
|
| 349 |
+
task_specific_params: null
|
| 350 |
+
temperature: 1.0
|
| 351 |
+
tf_legacy_loss: false
|
| 352 |
+
tie_encoder_decoder: false
|
| 353 |
+
tie_word_embeddings: true
|
| 354 |
+
tokenizer_class: null
|
| 355 |
+
top_k: 50
|
| 356 |
+
top_p: 1.0
|
| 357 |
+
torch_dtype: null
|
| 358 |
+
torchscript: false
|
| 359 |
+
transformers_version: null
|
| 360 |
+
tune_diffusion_model: true
|
| 361 |
+
tune_llm: false
|
| 362 |
+
tune_projector: true
|
| 363 |
+
tune_visual: false
|
| 364 |
+
typical_p: 1.0
|
| 365 |
+
use_bfloat16: false
|
| 366 |
+
use_relative_action: true
|
| 367 |
+
training: !!python/object:gr00t.configs.training.training_config.TrainingConfig
|
| 368 |
+
add_rl_callback: false
|
| 369 |
+
assert_loss_less_than: null
|
| 370 |
+
batch_size: null
|
| 371 |
+
bf16: true
|
| 372 |
+
dataloader_num_workers: 4
|
| 373 |
+
ddp_bucket_cap_mb: 100
|
| 374 |
+
deepspeed_stage: 2
|
| 375 |
+
enable_open_loop_eval: false
|
| 376 |
+
enable_profiling: false
|
| 377 |
+
eval_batch_size: 2
|
| 378 |
+
eval_bf16: true
|
| 379 |
+
eval_set_split_ratio: 0.1
|
| 380 |
+
eval_steps: 500
|
| 381 |
+
eval_strategy: 'no'
|
| 382 |
+
experiment_name: null
|
| 383 |
+
fp16: false
|
| 384 |
+
global_batch_size: 64
|
| 385 |
+
gradient_accumulation_steps: 1
|
| 386 |
+
gradient_checkpointing: false
|
| 387 |
+
learning_rate: 0.0001
|
| 388 |
+
logging_steps: 10
|
| 389 |
+
lr_scheduler_type: cosine
|
| 390 |
+
max_concurrent_uploads: 2
|
| 391 |
+
max_grad_norm: 1.0
|
| 392 |
+
max_retries: 3
|
| 393 |
+
max_steps: 50000
|
| 394 |
+
num_gpus: 8
|
| 395 |
+
open_loop_eval_plot_indices: null
|
| 396 |
+
open_loop_eval_steps_per_traj: 100
|
| 397 |
+
open_loop_eval_traj_ids:
|
| 398 |
+
- 0
|
| 399 |
+
optim: adamw_torch
|
| 400 |
+
output_dir: /root/outputs/gr00t-all-tasks
|
| 401 |
+
remove_unused_columns: false
|
| 402 |
+
save_best_eval_metric_greater_is_better: true
|
| 403 |
+
save_best_eval_metric_name: ''
|
| 404 |
+
save_steps: 2500
|
| 405 |
+
save_total_limit: 5
|
| 406 |
+
save_vl_model: false
|
| 407 |
+
start_from_checkpoint: nvidia/GR00T-N1.6-3B
|
| 408 |
+
tf32: true
|
| 409 |
+
transformers_access_token: null
|
| 410 |
+
transformers_cache_dir: null
|
| 411 |
+
transformers_local_files_only: false
|
| 412 |
+
transformers_trust_remote_code: true
|
| 413 |
+
upload_checkpoints: false
|
| 414 |
+
upload_every: 1000
|
| 415 |
+
upload_last_n_checkpoints: 5
|
| 416 |
+
use_ddp: false
|
| 417 |
+
use_wandb: false
|
| 418 |
+
wandb_project: finetune-gr00t-n1d6
|
| 419 |
+
warmup_ratio: 0.05
|
| 420 |
+
warmup_steps: 0
|
| 421 |
+
weight_decay: 1.0e-05
|
checkpoint-45000/experiment_cfg/dataset_statistics.json
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"robocasa_panda_omron": {
|
| 3 |
+
"state": {
|
| 4 |
+
"end_effector_position_relative": {
|
| 5 |
+
"min": [
|
| 6 |
+
-4.821934223175049,
|
| 7 |
+
-6.890198230743408,
|
| 8 |
+
0.6994727253913879
|
| 9 |
+
],
|
| 10 |
+
"max": [
|
| 11 |
+
7.312802314758301,
|
| 12 |
+
0.4876587688922882,
|
| 13 |
+
0.7223060727119446
|
| 14 |
+
],
|
| 15 |
+
"mean": [
|
| 16 |
+
2.632137834062483,
|
| 17 |
+
-2.1012502467089176,
|
| 18 |
+
0.7004640659262085
|
| 19 |
+
],
|
| 20 |
+
"std": [
|
| 21 |
+
1.6703172900404137,
|
| 22 |
+
1.3527759463804145,
|
| 23 |
+
0.0011049435086240903
|
| 24 |
+
],
|
| 25 |
+
"q01": [
|
| 26 |
+
-4.570115985870362,
|
| 27 |
+
-6.890125727653503,
|
| 28 |
+
0.6998056852817536
|
| 29 |
+
],
|
| 30 |
+
"q99": [
|
| 31 |
+
7.312699794769287,
|
| 32 |
+
0.48759907245635986,
|
| 33 |
+
0.7159942960739136
|
| 34 |
+
]
|
| 35 |
+
},
|
| 36 |
+
"end_effector_rotation_relative": {
|
| 37 |
+
"min": [
|
| 38 |
+
0.0,
|
| 39 |
+
0.0,
|
| 40 |
+
-1.0,
|
| 41 |
+
0.0
|
| 42 |
+
],
|
| 43 |
+
"max": [
|
| 44 |
+
0.0,
|
| 45 |
+
0.0,
|
| 46 |
+
1.0,
|
| 47 |
+
1.0
|
| 48 |
+
],
|
| 49 |
+
"mean": [
|
| 50 |
+
0.0,
|
| 51 |
+
0.0,
|
| 52 |
+
0.24719667310306095,
|
| 53 |
+
0.604356052193361
|
| 54 |
+
],
|
| 55 |
+
"std": [
|
| 56 |
+
0.0,
|
| 57 |
+
0.0,
|
| 58 |
+
0.6612804897677296,
|
| 59 |
+
0.36922738359963947
|
| 60 |
+
],
|
| 61 |
+
"q01": [
|
| 62 |
+
0.0,
|
| 63 |
+
0.0,
|
| 64 |
+
-1.0,
|
| 65 |
+
1.4936076922822391e-07
|
| 66 |
+
],
|
| 67 |
+
"q99": [
|
| 68 |
+
0.0,
|
| 69 |
+
0.0,
|
| 70 |
+
1.0,
|
| 71 |
+
1.0
|
| 72 |
+
]
|
| 73 |
+
},
|
| 74 |
+
"gripper_qpos": {
|
| 75 |
+
"min": [
|
| 76 |
+
-0.5828549861907959,
|
| 77 |
+
-0.8486236333847046
|
| 78 |
+
],
|
| 79 |
+
"max": [
|
| 80 |
+
0.8984705209732056,
|
| 81 |
+
0.8276846408843994
|
| 82 |
+
],
|
| 83 |
+
"mean": [
|
| 84 |
+
0.2756862304733528,
|
| 85 |
+
-0.01928894071868549
|
| 86 |
+
],
|
| 87 |
+
"std": [
|
| 88 |
+
0.16439036890222622,
|
| 89 |
+
0.2507434896484107
|
| 90 |
+
],
|
| 91 |
+
"q01": [
|
| 92 |
+
-0.38679012656211853,
|
| 93 |
+
-0.737857882976532
|
| 94 |
+
],
|
| 95 |
+
"q99": [
|
| 96 |
+
0.8634055067216393,
|
| 97 |
+
0.7653709030151367
|
| 98 |
+
]
|
| 99 |
+
},
|
| 100 |
+
"base_position": {
|
| 101 |
+
"min": [
|
| 102 |
+
-0.3446122705936432,
|
| 103 |
+
-0.9999930262565613,
|
| 104 |
+
-0.9999884366989136
|
| 105 |
+
],
|
| 106 |
+
"max": [
|
| 107 |
+
1.0538847019960584,
|
| 108 |
+
0.9999998807907104,
|
| 109 |
+
0.9997354745864868
|
| 110 |
+
],
|
| 111 |
+
"mean": [
|
| 112 |
+
0.4386128584770705,
|
| 113 |
+
-0.236187959678786,
|
| 114 |
+
0.03440304100469987
|
| 115 |
+
],
|
| 116 |
+
"std": [
|
| 117 |
+
0.2138587124612812,
|
| 118 |
+
0.8254625564899771,
|
| 119 |
+
0.30061384229178
|
| 120 |
+
],
|
| 121 |
+
"q01": [
|
| 122 |
+
-0.2664716064929962,
|
| 123 |
+
-0.999696980714798,
|
| 124 |
+
-0.9779104268550873
|
| 125 |
+
],
|
| 126 |
+
"q99": [
|
| 127 |
+
0.9607213485847528,
|
| 128 |
+
0.9996132826805115,
|
| 129 |
+
0.983684875965118
|
| 130 |
+
]
|
| 131 |
+
},
|
| 132 |
+
"base_rotation": {
|
| 133 |
+
"min": [
|
| 134 |
+
-0.9975369572639465,
|
| 135 |
+
6.754255821306288e-08,
|
| 136 |
+
-0.011436971835792065,
|
| 137 |
+
-0.06307756155729294
|
| 138 |
+
],
|
| 139 |
+
"max": [
|
| 140 |
+
0.9900747537612915,
|
| 141 |
+
0.9735639095306396,
|
| 142 |
+
0.05586916867422667,
|
| 143 |
+
0.010916369967162609
|
| 144 |
+
],
|
| 145 |
+
"mean": [
|
| 146 |
+
-0.07227329122419625,
|
| 147 |
+
0.14411132909092314,
|
| 148 |
+
0.03140565182425891,
|
| 149 |
+
-0.0316361944376031
|
| 150 |
+
],
|
| 151 |
+
"std": [
|
| 152 |
+
0.34065961750646406,
|
| 153 |
+
0.17097897402192125,
|
| 154 |
+
0.012491187867591168,
|
| 155 |
+
0.012261243048427888
|
| 156 |
+
],
|
| 157 |
+
"q01": [
|
| 158 |
+
-0.9171609520912171,
|
| 159 |
+
0.00014284539400250652,
|
| 160 |
+
-0.0034570247586816548,
|
| 161 |
+
-0.05656256314543609
|
| 162 |
+
],
|
| 163 |
+
"q99": [
|
| 164 |
+
0.9476015937328336,
|
| 165 |
+
0.9460982489585876,
|
| 166 |
+
0.05580083291027281,
|
| 167 |
+
0.0037876180186867726
|
| 168 |
+
]
|
| 169 |
+
}
|
| 170 |
+
},
|
| 171 |
+
"action": {
|
| 172 |
+
"end_effector_position": {
|
| 173 |
+
"min": [
|
| 174 |
+
-1.0,
|
| 175 |
+
-1.0,
|
| 176 |
+
-1.0
|
| 177 |
+
],
|
| 178 |
+
"max": [
|
| 179 |
+
1.0,
|
| 180 |
+
1.0,
|
| 181 |
+
1.0
|
| 182 |
+
],
|
| 183 |
+
"mean": [
|
| 184 |
+
0.003215061227666985,
|
| 185 |
+
0.0015200642241156692,
|
| 186 |
+
-0.0011421955591327765
|
| 187 |
+
],
|
| 188 |
+
"std": [
|
| 189 |
+
0.09016256759823495,
|
| 190 |
+
0.08451339450696209,
|
| 191 |
+
0.06564718888397388
|
| 192 |
+
],
|
| 193 |
+
"q01": [
|
| 194 |
+
-1.0,
|
| 195 |
+
-1.0,
|
| 196 |
+
-0.9657142758369446
|
| 197 |
+
],
|
| 198 |
+
"q99": [
|
| 199 |
+
1.0,
|
| 200 |
+
1.0,
|
| 201 |
+
1.0
|
| 202 |
+
]
|
| 203 |
+
},
|
| 204 |
+
"end_effector_rotation": {
|
| 205 |
+
"min": [
|
| 206 |
+
0.0,
|
| 207 |
+
-1.0,
|
| 208 |
+
-1.0
|
| 209 |
+
],
|
| 210 |
+
"max": [
|
| 211 |
+
0.0,
|
| 212 |
+
1.0,
|
| 213 |
+
1.0
|
| 214 |
+
],
|
| 215 |
+
"mean": [
|
| 216 |
+
0.0,
|
| 217 |
+
-0.9463277607073037,
|
| 218 |
+
-0.00632101623049963
|
| 219 |
+
],
|
| 220 |
+
"std": [
|
| 221 |
+
0.0,
|
| 222 |
+
0.3232245701712277,
|
| 223 |
+
0.4491370524676613
|
| 224 |
+
],
|
| 225 |
+
"q01": [
|
| 226 |
+
0.0,
|
| 227 |
+
-1.0,
|
| 228 |
+
-1.0
|
| 229 |
+
],
|
| 230 |
+
"q99": [
|
| 231 |
+
0.0,
|
| 232 |
+
1.0,
|
| 233 |
+
1.0
|
| 234 |
+
]
|
| 235 |
+
},
|
| 236 |
+
"gripper_close": {
|
| 237 |
+
"min": [
|
| 238 |
+
-1.0
|
| 239 |
+
],
|
| 240 |
+
"max": [
|
| 241 |
+
1.0
|
| 242 |
+
],
|
| 243 |
+
"mean": [
|
| 244 |
+
-0.0057538288612615255
|
| 245 |
+
],
|
| 246 |
+
"std": [
|
| 247 |
+
0.4104968917775479
|
| 248 |
+
],
|
| 249 |
+
"q01": [
|
| 250 |
+
-1.0
|
| 251 |
+
],
|
| 252 |
+
"q99": [
|
| 253 |
+
1.0
|
| 254 |
+
]
|
| 255 |
+
},
|
| 256 |
+
"base_motion": {
|
| 257 |
+
"min": [
|
| 258 |
+
-1.0,
|
| 259 |
+
-1.0,
|
| 260 |
+
-1.0,
|
| 261 |
+
-1.0
|
| 262 |
+
],
|
| 263 |
+
"max": [
|
| 264 |
+
1.0,
|
| 265 |
+
1.0,
|
| 266 |
+
1.0,
|
| 267 |
+
1.0
|
| 268 |
+
],
|
| 269 |
+
"mean": [
|
| 270 |
+
-0.06451660020185172,
|
| 271 |
+
0.007555278668096627,
|
| 272 |
+
-0.023032587824433987,
|
| 273 |
+
0.0011521431231020069
|
| 274 |
+
],
|
| 275 |
+
"std": [
|
| 276 |
+
0.4041732707681895,
|
| 277 |
+
0.11050048169521205,
|
| 278 |
+
0.1305818519167956,
|
| 279 |
+
0.12145431652616569
|
| 280 |
+
],
|
| 281 |
+
"q01": [
|
| 282 |
+
-1.0,
|
| 283 |
+
-0.8114285469055176,
|
| 284 |
+
-1.0,
|
| 285 |
+
-1.0
|
| 286 |
+
],
|
| 287 |
+
"q99": [
|
| 288 |
+
1.0,
|
| 289 |
+
1.0,
|
| 290 |
+
1.0,
|
| 291 |
+
1.0
|
| 292 |
+
]
|
| 293 |
+
},
|
| 294 |
+
"control_mode": {
|
| 295 |
+
"min": [
|
| 296 |
+
-1.0
|
| 297 |
+
],
|
| 298 |
+
"max": [
|
| 299 |
+
1.0
|
| 300 |
+
],
|
| 301 |
+
"mean": [
|
| 302 |
+
-0.264296489609035
|
| 303 |
+
],
|
| 304 |
+
"std": [
|
| 305 |
+
0.9644378227331523
|
| 306 |
+
],
|
| 307 |
+
"q01": [
|
| 308 |
+
-1.0
|
| 309 |
+
],
|
| 310 |
+
"q99": [
|
| 311 |
+
1.0
|
| 312 |
+
]
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
"relative_action": {}
|
| 316 |
+
}
|
| 317 |
+
}
|
checkpoint-45000/experiment_cfg/final_model_config.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"apply_sincos_state_encoding": true,
|
| 19 |
+
"use_relative_action": true,
|
| 20 |
+
"max_state_dim": 128,
|
| 21 |
+
"max_action_dim": 128,
|
| 22 |
+
"action_horizon": 50,
|
| 23 |
+
"hidden_size": 1024,
|
| 24 |
+
"input_embedding_dim": 1536,
|
| 25 |
+
"add_pos_embed": true,
|
| 26 |
+
"attn_dropout": 0.2,
|
| 27 |
+
"use_vlln": true,
|
| 28 |
+
"max_seq_len": 1024,
|
| 29 |
+
"use_alternate_vl_dit": true,
|
| 30 |
+
"attend_text_every_n_blocks": 2,
|
| 31 |
+
"diffusion_model_cfg": {
|
| 32 |
+
"attention_head_dim": 48,
|
| 33 |
+
"dropout": 0.2,
|
| 34 |
+
"final_dropout": true,
|
| 35 |
+
"interleave_self_attention": true,
|
| 36 |
+
"norm_type": "ada_norm",
|
| 37 |
+
"num_attention_heads": 32,
|
| 38 |
+
"num_layers": 32,
|
| 39 |
+
"output_dim": 1024,
|
| 40 |
+
"positional_embeddings": null
|
| 41 |
+
},
|
| 42 |
+
"num_inference_timesteps": 4,
|
| 43 |
+
"noise_beta_alpha": 1.5,
|
| 44 |
+
"noise_beta_beta": 1.0,
|
| 45 |
+
"noise_s": 0.999,
|
| 46 |
+
"num_timestep_buckets": 1000,
|
| 47 |
+
"tune_projector": true,
|
| 48 |
+
"tune_diffusion_model": true,
|
| 49 |
+
"tune_vlln": true,
|
| 50 |
+
"state_dropout_prob": 0.0,
|
| 51 |
+
"state_additive_noise_scale": 0.0,
|
| 52 |
+
"max_num_embodiments": 32
|
| 53 |
+
}
|
checkpoint-45000/experiment_cfg/final_processor_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-45000/global_step45000/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:d5f7a367a466bd74bab3d9a82f2208946cd02f8b2657f1c2444859c87bb2f316
|
| 3 |
+
size 2429964677
|
checkpoint-45000/global_step45000/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:78394376678d07bd5b66a71a9af6cc244568458ff276f2de1619436e1c18fe61
|
| 3 |
+
size 2429964421
|
checkpoint-45000/global_step45000/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:76f02719d4b73e94ea04405f1f40c55c14fd97c3c70518d17059438eb38f9652
|
| 3 |
+
size 2429964613
|
checkpoint-45000/global_step45000/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:35fa2fe09de9cc3d8b37004d20fc25edeef6a370bc368978061c9a9d7cc96d15
|
| 3 |
+
size 2429964485
|
checkpoint-45000/global_step45000/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:f56fe2c7340dfb1ac020ceec3fbe6a458fb129328044e93d9eb3d1cf6248904c
|
| 3 |
+
size 2429964421
|
checkpoint-45000/global_step45000/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:8866095147752d276c62288272b314240ad18bd265bcaae36eb4010d8f1862da
|
| 3 |
+
size 2429964613
|
checkpoint-45000/global_step45000/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:a2aa3a06c79a90ec21be5ed8316d2457dca18b8fdf453e96c3da3f70e8f1e5d6
|
| 3 |
+
size 2429962437
|
checkpoint-45000/global_step45000/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:b83ba1c4612e2815ca88a36b1de4713725bca442d20b0aa2b9025f438bb353a2
|
| 3 |
+
size 2429960773
|
checkpoint-45000/global_step45000/mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:454a432eaac263729f6b621d340b79a9ef3f94a7cceeb681caeb1645f7fd4342
|
| 3 |
+
size 9907202435
|
checkpoint-45000/latest
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
global_step45000
|
checkpoint-45000/model-00001-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20d12dbb96c0281eda6e61734a3cdd64112fb0742a5fc4f3c2e548f3f93786c1
|
| 3 |
+
size 4991091456
|
checkpoint-45000/model-00002-of-00002.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67ecdd9ec6d0b03717ef86bba5e2170cf0acad823375adcbc7673c995bec173b
|
| 3 |
+
size 1582283096
|
checkpoint-45000/model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-45000/processor_config.json
ADDED
|
@@ -0,0 +1,378 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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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.task_description"
|
| 348 |
+
],
|
| 349 |
+
"sin_cos_embedding_keys": null,
|
| 350 |
+
"mean_std_embedding_keys": null,
|
| 351 |
+
"action_configs": null
|
| 352 |
+
}
|
| 353 |
+
}
|
| 354 |
+
},
|
| 355 |
+
"image_crop_size": null,
|
| 356 |
+
"image_target_size": null,
|
| 357 |
+
"use_albumentations": true,
|
| 358 |
+
"random_rotation_angle": null,
|
| 359 |
+
"color_jitter_params": {
|
| 360 |
+
"brightness": 0.3,
|
| 361 |
+
"contrast": 0.4,
|
| 362 |
+
"saturation": 0.5,
|
| 363 |
+
"hue": 0.08
|
| 364 |
+
},
|
| 365 |
+
"shortest_image_edge": 256,
|
| 366 |
+
"crop_fraction": 0.95,
|
| 367 |
+
"model_name": "nvidia/Eagle-Block2A-2B-v2",
|
| 368 |
+
"model_type": "eagle",
|
| 369 |
+
"formalize_language": true,
|
| 370 |
+
"max_state_dim": 128,
|
| 371 |
+
"max_action_dim": 128,
|
| 372 |
+
"max_action_horizon": 50,
|
| 373 |
+
"use_percentiles": false,
|
| 374 |
+
"clip_outliers": true,
|
| 375 |
+
"apply_sincos_state_encoding": true,
|
| 376 |
+
"use_relative_action": true
|
| 377 |
+
}
|
| 378 |
+
}
|
checkpoint-45000/rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b66dec1cd06794116b116c0fc5aa7e589a7b784351d0adfaaf5606a8d558002f
|
| 3 |
+
size 16389
|
checkpoint-45000/rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58ca38345d4fa9925cd5a02ed7646a2e71d52ca2330c9b0316ac1d3fa86cda9f
|
| 3 |
+
size 16389
|
checkpoint-45000/rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3fc796558fb348973690ead263c59b40d01612b8b61d4f2e394a0dcd57f723f
|
| 3 |
+
size 16389
|
checkpoint-45000/rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:949391baf741161d27daa10bbd39991d759c6f0c2b9de413c39605f8e9091cfa
|
| 3 |
+
size 16389
|
checkpoint-45000/rng_state_4.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7209a30d1027b7be6e4cbfa0d962555f6d07dcff66542c43aeba539b2512a6be
|
| 3 |
+
size 16389
|
checkpoint-45000/rng_state_5.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:129503497c59c3add1b35657a81470808eaaa8cdf89c5ae445d2f5704d833cca
|
| 3 |
+
size 16389
|
checkpoint-45000/rng_state_6.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0dc646b0ddde9f13b92c845e1105f2e55d60cc93fafcb775f01d8f14e6673cab
|
| 3 |
+
size 16389
|
checkpoint-45000/rng_state_7.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63fbd0c0a86dab62725643fd6ffe6ebc2b40891f41e2af70dec6dbeff8e434fc
|
| 3 |
+
size 16389
|
checkpoint-45000/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:997ef53b0518dbb0c4ff99199317428603e8cd0edc065b1cd42c6dfaf703cff0
|
| 3 |
+
size 1465
|
checkpoint-45000/statistics.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-45000/trainer_state.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-45000/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:afcd045eb00207b145c981520f576cebe98e204e8b078d861f270369cf7ccacc
|
| 3 |
+
size 7633
|
checkpoint-45000/wandb_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"project": "finetune-gr00t-n1d6", "run_id": "gr00t-all-tasks"}
|
checkpoint-45000/zero_to_fp32.py
ADDED
|
@@ -0,0 +1,760 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
|
| 3 |
+
# Copyright (c) Microsoft Corporation.
|
| 4 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 5 |
+
|
| 6 |
+
# DeepSpeed Team
|
| 7 |
+
|
| 8 |
+
# This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
|
| 9 |
+
# copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
|
| 10 |
+
# the future. Once extracted, the weights don't require DeepSpeed and can be used in any
|
| 11 |
+
# application.
|
| 12 |
+
#
|
| 13 |
+
# example:
|
| 14 |
+
# python zero_to_fp32.py . output_dir/
|
| 15 |
+
# or
|
| 16 |
+
# python zero_to_fp32.py . output_dir/ --safe_serialization
|
| 17 |
+
|
| 18 |
+
import argparse
|
| 19 |
+
import torch
|
| 20 |
+
import glob
|
| 21 |
+
import math
|
| 22 |
+
import os
|
| 23 |
+
import re
|
| 24 |
+
import gc
|
| 25 |
+
import json
|
| 26 |
+
import numpy as np
|
| 27 |
+
from tqdm import tqdm
|
| 28 |
+
from collections import OrderedDict
|
| 29 |
+
from dataclasses import dataclass
|
| 30 |
+
|
| 31 |
+
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
|
| 32 |
+
# DeepSpeed data structures it has to be available in the current python environment.
|
| 33 |
+
from deepspeed.utils import logger
|
| 34 |
+
from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
|
| 35 |
+
FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
|
| 36 |
+
FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
@dataclass
|
| 40 |
+
class zero_model_state:
|
| 41 |
+
buffers: dict()
|
| 42 |
+
param_shapes: dict()
|
| 43 |
+
shared_params: list
|
| 44 |
+
ds_version: int
|
| 45 |
+
frozen_param_shapes: dict()
|
| 46 |
+
frozen_param_fragments: dict()
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
debug = 0
|
| 50 |
+
|
| 51 |
+
# load to cpu
|
| 52 |
+
device = torch.device('cpu')
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def atoi(text):
|
| 56 |
+
return int(text) if text.isdigit() else text
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def natural_keys(text):
|
| 60 |
+
'''
|
| 61 |
+
alist.sort(key=natural_keys) sorts in human order
|
| 62 |
+
http://nedbatchelder.com/blog/200712/human_sorting.html
|
| 63 |
+
(See Toothy's implementation in the comments)
|
| 64 |
+
'''
|
| 65 |
+
return [atoi(c) for c in re.split(r'(\d+)', text)]
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def get_model_state_file(checkpoint_dir, zero_stage):
|
| 69 |
+
if not os.path.isdir(checkpoint_dir):
|
| 70 |
+
raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
|
| 71 |
+
|
| 72 |
+
# there should be only one file
|
| 73 |
+
if zero_stage <= 2:
|
| 74 |
+
file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
|
| 75 |
+
elif zero_stage == 3:
|
| 76 |
+
file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
|
| 77 |
+
|
| 78 |
+
if not os.path.exists(file):
|
| 79 |
+
raise FileNotFoundError(f"can't find model states file at '{file}'")
|
| 80 |
+
|
| 81 |
+
return file
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def get_checkpoint_files(checkpoint_dir, glob_pattern):
|
| 85 |
+
# XXX: need to test that this simple glob rule works for multi-node setup too
|
| 86 |
+
ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
|
| 87 |
+
|
| 88 |
+
if len(ckpt_files) == 0:
|
| 89 |
+
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
|
| 90 |
+
|
| 91 |
+
return ckpt_files
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def get_optim_files(checkpoint_dir):
|
| 95 |
+
return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
def get_model_state_files(checkpoint_dir):
|
| 99 |
+
return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def parse_model_states(files):
|
| 103 |
+
zero_model_states = []
|
| 104 |
+
for file in files:
|
| 105 |
+
state_dict = torch.load(file, map_location=device, weights_only=False)
|
| 106 |
+
|
| 107 |
+
if BUFFER_NAMES not in state_dict:
|
| 108 |
+
raise ValueError(f"{file} is not a model state checkpoint")
|
| 109 |
+
buffer_names = state_dict[BUFFER_NAMES]
|
| 110 |
+
if debug:
|
| 111 |
+
print("Found buffers:", buffer_names)
|
| 112 |
+
|
| 113 |
+
# recover just the buffers while restoring them to fp32 if they were saved in fp16
|
| 114 |
+
buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
|
| 115 |
+
param_shapes = state_dict[PARAM_SHAPES]
|
| 116 |
+
|
| 117 |
+
# collect parameters that are included in param_shapes
|
| 118 |
+
param_names = []
|
| 119 |
+
for s in param_shapes:
|
| 120 |
+
for name in s.keys():
|
| 121 |
+
param_names.append(name)
|
| 122 |
+
|
| 123 |
+
# update with frozen parameters
|
| 124 |
+
frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
|
| 125 |
+
if frozen_param_shapes is not None:
|
| 126 |
+
if debug:
|
| 127 |
+
print(f"Found frozen_param_shapes: {frozen_param_shapes}")
|
| 128 |
+
param_names += list(frozen_param_shapes.keys())
|
| 129 |
+
|
| 130 |
+
# handle shared params
|
| 131 |
+
shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
|
| 132 |
+
|
| 133 |
+
ds_version = state_dict.get(DS_VERSION, None)
|
| 134 |
+
|
| 135 |
+
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
|
| 136 |
+
|
| 137 |
+
z_model_state = zero_model_state(buffers=buffers,
|
| 138 |
+
param_shapes=param_shapes,
|
| 139 |
+
shared_params=shared_params,
|
| 140 |
+
ds_version=ds_version,
|
| 141 |
+
frozen_param_shapes=frozen_param_shapes,
|
| 142 |
+
frozen_param_fragments=frozen_param_fragments)
|
| 143 |
+
zero_model_states.append(z_model_state)
|
| 144 |
+
|
| 145 |
+
return zero_model_states
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def parse_optim_states(files, ds_checkpoint_dir):
|
| 149 |
+
total_files = len(files)
|
| 150 |
+
state_dicts = []
|
| 151 |
+
for f in tqdm(files, desc='Loading checkpoint shards'):
|
| 152 |
+
state_dict = torch.load(f, map_location=device, mmap=True, weights_only=False)
|
| 153 |
+
# immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
|
| 154 |
+
# and also handle the case where it was already removed by another helper script
|
| 155 |
+
state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
|
| 156 |
+
state_dicts.append(state_dict)
|
| 157 |
+
|
| 158 |
+
if ZERO_STAGE not in state_dicts[0][OPTIMIZER_STATE_DICT]:
|
| 159 |
+
raise ValueError(f"{files[0]} is not a zero checkpoint")
|
| 160 |
+
zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
|
| 161 |
+
world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
|
| 162 |
+
|
| 163 |
+
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert
|
| 164 |
+
# parameters can be different from data parallelism for non-expert parameters. So we can just
|
| 165 |
+
# use the max of the partition_count to get the dp world_size.
|
| 166 |
+
|
| 167 |
+
if type(world_size) is list:
|
| 168 |
+
world_size = max(world_size)
|
| 169 |
+
|
| 170 |
+
if world_size != total_files:
|
| 171 |
+
raise ValueError(
|
| 172 |
+
f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
|
| 173 |
+
"Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
|
| 174 |
+
)
|
| 175 |
+
|
| 176 |
+
# the groups are named differently in each stage
|
| 177 |
+
if zero_stage <= 2:
|
| 178 |
+
fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
|
| 179 |
+
elif zero_stage == 3:
|
| 180 |
+
fp32_groups_key = FP32_FLAT_GROUPS
|
| 181 |
+
else:
|
| 182 |
+
raise ValueError(f"unknown zero stage {zero_stage}")
|
| 183 |
+
|
| 184 |
+
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
|
| 185 |
+
return zero_stage, world_size, fp32_flat_groups
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
|
| 189 |
+
"""
|
| 190 |
+
Returns fp32 state_dict reconstructed from ds checkpoint
|
| 191 |
+
|
| 192 |
+
Args:
|
| 193 |
+
- ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
|
| 194 |
+
|
| 195 |
+
"""
|
| 196 |
+
print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
|
| 197 |
+
|
| 198 |
+
optim_files = get_optim_files(ds_checkpoint_dir)
|
| 199 |
+
zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
|
| 200 |
+
print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
|
| 201 |
+
|
| 202 |
+
model_files = get_model_state_files(ds_checkpoint_dir)
|
| 203 |
+
|
| 204 |
+
zero_model_states = parse_model_states(model_files)
|
| 205 |
+
print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
|
| 206 |
+
|
| 207 |
+
if zero_stage <= 2:
|
| 208 |
+
return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 209 |
+
exclude_frozen_parameters)
|
| 210 |
+
elif zero_stage == 3:
|
| 211 |
+
return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 212 |
+
exclude_frozen_parameters)
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def _zero2_merge_frozen_params(state_dict, zero_model_states):
|
| 216 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 217 |
+
return
|
| 218 |
+
|
| 219 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 220 |
+
frozen_param_fragments = zero_model_states[0].frozen_param_fragments
|
| 221 |
+
|
| 222 |
+
if debug:
|
| 223 |
+
num_elem = sum(s.numel() for s in frozen_param_shapes.values())
|
| 224 |
+
print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 225 |
+
|
| 226 |
+
wanted_params = len(frozen_param_shapes)
|
| 227 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 228 |
+
avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
|
| 229 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 230 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 231 |
+
|
| 232 |
+
total_params = 0
|
| 233 |
+
total_numel = 0
|
| 234 |
+
for name, shape in frozen_param_shapes.items():
|
| 235 |
+
total_params += 1
|
| 236 |
+
unpartitioned_numel = shape.numel()
|
| 237 |
+
total_numel += unpartitioned_numel
|
| 238 |
+
|
| 239 |
+
state_dict[name] = frozen_param_fragments[name]
|
| 240 |
+
|
| 241 |
+
if debug:
|
| 242 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 243 |
+
|
| 244 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
def _has_callable(obj, fn):
|
| 248 |
+
attr = getattr(obj, fn, None)
|
| 249 |
+
return callable(attr)
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 253 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 254 |
+
|
| 255 |
+
# Reconstruction protocol:
|
| 256 |
+
#
|
| 257 |
+
# XXX: document this
|
| 258 |
+
|
| 259 |
+
if debug:
|
| 260 |
+
for i in range(world_size):
|
| 261 |
+
for j in range(len(fp32_flat_groups[0])):
|
| 262 |
+
print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
|
| 263 |
+
|
| 264 |
+
# XXX: memory usage doubles here (zero2)
|
| 265 |
+
num_param_groups = len(fp32_flat_groups[0])
|
| 266 |
+
merged_single_partition_of_fp32_groups = []
|
| 267 |
+
for i in range(num_param_groups):
|
| 268 |
+
merged_partitions = [sd[i] for sd in fp32_flat_groups]
|
| 269 |
+
full_single_fp32_vector = torch.cat(merged_partitions, 0)
|
| 270 |
+
merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
|
| 271 |
+
avail_numel = sum(
|
| 272 |
+
[full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
|
| 273 |
+
|
| 274 |
+
if debug:
|
| 275 |
+
wanted_params = sum([len(shapes) for shapes in param_shapes])
|
| 276 |
+
wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
|
| 277 |
+
# not asserting if there is a mismatch due to possible padding
|
| 278 |
+
print(f"Have {avail_numel} numels to process.")
|
| 279 |
+
print(f"Need {wanted_numel} numels in {wanted_params} params.")
|
| 280 |
+
|
| 281 |
+
# params
|
| 282 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 283 |
+
# out-of-core computing solution
|
| 284 |
+
total_numel = 0
|
| 285 |
+
total_params = 0
|
| 286 |
+
for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
|
| 287 |
+
offset = 0
|
| 288 |
+
avail_numel = full_single_fp32_vector.numel()
|
| 289 |
+
for name, shape in shapes.items():
|
| 290 |
+
|
| 291 |
+
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
|
| 292 |
+
total_numel += unpartitioned_numel
|
| 293 |
+
total_params += 1
|
| 294 |
+
|
| 295 |
+
if debug:
|
| 296 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 297 |
+
state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
|
| 298 |
+
offset += unpartitioned_numel
|
| 299 |
+
|
| 300 |
+
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
|
| 301 |
+
# avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
|
| 302 |
+
# paddings performed in the code it's almost impossible to predict the exact numbers w/o the
|
| 303 |
+
# live optimizer object, so we are checking that the numbers are within the right range
|
| 304 |
+
align_to = 2 * world_size
|
| 305 |
+
|
| 306 |
+
def zero2_align(x):
|
| 307 |
+
return align_to * math.ceil(x / align_to)
|
| 308 |
+
|
| 309 |
+
if debug:
|
| 310 |
+
print(f"original offset={offset}, avail_numel={avail_numel}")
|
| 311 |
+
|
| 312 |
+
offset = zero2_align(offset)
|
| 313 |
+
avail_numel = zero2_align(avail_numel)
|
| 314 |
+
|
| 315 |
+
if debug:
|
| 316 |
+
print(f"aligned offset={offset}, avail_numel={avail_numel}")
|
| 317 |
+
|
| 318 |
+
# Sanity check
|
| 319 |
+
if offset != avail_numel:
|
| 320 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 321 |
+
|
| 322 |
+
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 326 |
+
exclude_frozen_parameters):
|
| 327 |
+
state_dict = OrderedDict()
|
| 328 |
+
|
| 329 |
+
# buffers
|
| 330 |
+
buffers = zero_model_states[0].buffers
|
| 331 |
+
state_dict.update(buffers)
|
| 332 |
+
if debug:
|
| 333 |
+
print(f"added {len(buffers)} buffers")
|
| 334 |
+
|
| 335 |
+
if not exclude_frozen_parameters:
|
| 336 |
+
_zero2_merge_frozen_params(state_dict, zero_model_states)
|
| 337 |
+
|
| 338 |
+
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 339 |
+
|
| 340 |
+
# recover shared parameters
|
| 341 |
+
for pair in zero_model_states[0].shared_params:
|
| 342 |
+
if pair[1] in state_dict:
|
| 343 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 344 |
+
|
| 345 |
+
return state_dict
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
def zero3_partitioned_param_info(unpartitioned_numel, world_size):
|
| 349 |
+
remainder = unpartitioned_numel % world_size
|
| 350 |
+
padding_numel = (world_size - remainder) if remainder else 0
|
| 351 |
+
partitioned_numel = math.ceil(unpartitioned_numel / world_size)
|
| 352 |
+
return partitioned_numel, padding_numel
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
|
| 356 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 357 |
+
return
|
| 358 |
+
|
| 359 |
+
if debug:
|
| 360 |
+
for i in range(world_size):
|
| 361 |
+
num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
|
| 362 |
+
print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 363 |
+
|
| 364 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 365 |
+
wanted_params = len(frozen_param_shapes)
|
| 366 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 367 |
+
avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
|
| 368 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 369 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 370 |
+
|
| 371 |
+
total_params = 0
|
| 372 |
+
total_numel = 0
|
| 373 |
+
for name, shape in zero_model_states[0].frozen_param_shapes.items():
|
| 374 |
+
total_params += 1
|
| 375 |
+
unpartitioned_numel = shape.numel()
|
| 376 |
+
total_numel += unpartitioned_numel
|
| 377 |
+
|
| 378 |
+
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
|
| 379 |
+
state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 380 |
+
|
| 381 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 382 |
+
|
| 383 |
+
if debug:
|
| 384 |
+
print(
|
| 385 |
+
f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 386 |
+
)
|
| 387 |
+
|
| 388 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
class GatheredTensor:
|
| 392 |
+
"""
|
| 393 |
+
A pseudo tensor that collects partitioned weights.
|
| 394 |
+
It is more memory efficient when there are multiple groups.
|
| 395 |
+
"""
|
| 396 |
+
|
| 397 |
+
def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape):
|
| 398 |
+
self.flat_groups = flat_groups
|
| 399 |
+
self.flat_groups_offset = flat_groups_offset
|
| 400 |
+
self.offset = offset
|
| 401 |
+
self.partitioned_numel = partitioned_numel
|
| 402 |
+
self.shape = shape
|
| 403 |
+
self.dtype = self.flat_groups[0][0].dtype
|
| 404 |
+
|
| 405 |
+
def contiguous(self):
|
| 406 |
+
"""
|
| 407 |
+
Merge partitioned weights from flat_groups into a single tensor.
|
| 408 |
+
"""
|
| 409 |
+
end_idx = self.offset + self.partitioned_numel
|
| 410 |
+
world_size = len(self.flat_groups)
|
| 411 |
+
pad_flat_param_chunks = []
|
| 412 |
+
|
| 413 |
+
for rank_i in range(world_size):
|
| 414 |
+
# for each rank, we need to collect weights from related group/groups
|
| 415 |
+
flat_groups_at_rank_i = self.flat_groups[rank_i]
|
| 416 |
+
start_group_id = None
|
| 417 |
+
end_group_id = None
|
| 418 |
+
for group_id in range(len(self.flat_groups_offset)):
|
| 419 |
+
if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]:
|
| 420 |
+
start_group_id = group_id
|
| 421 |
+
if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]:
|
| 422 |
+
end_group_id = group_id
|
| 423 |
+
break
|
| 424 |
+
# collect weights from related group/groups
|
| 425 |
+
for group_id in range(start_group_id, end_group_id + 1):
|
| 426 |
+
flat_tensor = flat_groups_at_rank_i[group_id]
|
| 427 |
+
start_offset = self.offset - self.flat_groups_offset[group_id]
|
| 428 |
+
end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id]
|
| 429 |
+
pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
|
| 430 |
+
|
| 431 |
+
# collect weights from all ranks
|
| 432 |
+
pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0)
|
| 433 |
+
param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous()
|
| 434 |
+
return param
|
| 435 |
+
|
| 436 |
+
|
| 437 |
+
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 438 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 439 |
+
avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
|
| 440 |
+
|
| 441 |
+
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
|
| 442 |
+
# param, re-consolidating each param, while dealing with padding if any
|
| 443 |
+
|
| 444 |
+
# merge list of dicts, preserving order
|
| 445 |
+
param_shapes = {k: v for d in param_shapes for k, v in d.items()}
|
| 446 |
+
|
| 447 |
+
if debug:
|
| 448 |
+
for i in range(world_size):
|
| 449 |
+
print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
|
| 450 |
+
|
| 451 |
+
wanted_params = len(param_shapes)
|
| 452 |
+
wanted_numel = sum(shape.numel() for shape in param_shapes.values())
|
| 453 |
+
# not asserting if there is a mismatch due to possible padding
|
| 454 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 455 |
+
print(f"Trainable params: Have {avail_numel} numels to process.")
|
| 456 |
+
print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
|
| 457 |
+
|
| 458 |
+
# params
|
| 459 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 460 |
+
# out-of-core computing solution
|
| 461 |
+
offset = 0
|
| 462 |
+
total_numel = 0
|
| 463 |
+
total_params = 0
|
| 464 |
+
flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]]))
|
| 465 |
+
for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'):
|
| 466 |
+
unpartitioned_numel = shape.numel()
|
| 467 |
+
total_numel += unpartitioned_numel
|
| 468 |
+
total_params += 1
|
| 469 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 470 |
+
|
| 471 |
+
if debug:
|
| 472 |
+
print(
|
| 473 |
+
f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 474 |
+
)
|
| 475 |
+
|
| 476 |
+
# memory efficient tensor
|
| 477 |
+
tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape)
|
| 478 |
+
state_dict[name] = tensor
|
| 479 |
+
offset += partitioned_numel
|
| 480 |
+
|
| 481 |
+
offset *= world_size
|
| 482 |
+
|
| 483 |
+
# Sanity check
|
| 484 |
+
if offset != avail_numel:
|
| 485 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 486 |
+
|
| 487 |
+
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 491 |
+
exclude_frozen_parameters):
|
| 492 |
+
state_dict = OrderedDict()
|
| 493 |
+
|
| 494 |
+
# buffers
|
| 495 |
+
buffers = zero_model_states[0].buffers
|
| 496 |
+
state_dict.update(buffers)
|
| 497 |
+
if debug:
|
| 498 |
+
print(f"added {len(buffers)} buffers")
|
| 499 |
+
|
| 500 |
+
if not exclude_frozen_parameters:
|
| 501 |
+
_zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
|
| 502 |
+
|
| 503 |
+
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 504 |
+
|
| 505 |
+
# recover shared parameters
|
| 506 |
+
for pair in zero_model_states[0].shared_params:
|
| 507 |
+
if pair[1] in state_dict:
|
| 508 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 509 |
+
|
| 510 |
+
return state_dict
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
def to_torch_tensor(state_dict, return_empty_tensor=False):
|
| 514 |
+
"""
|
| 515 |
+
Convert state_dict of GatheredTensor to torch tensor
|
| 516 |
+
"""
|
| 517 |
+
torch_state_dict = {}
|
| 518 |
+
converted_tensors = {}
|
| 519 |
+
for name, tensor in state_dict.items():
|
| 520 |
+
tensor_id = id(tensor)
|
| 521 |
+
if tensor_id in converted_tensors: # shared tensors
|
| 522 |
+
shared_tensor = torch_state_dict[converted_tensors[tensor_id]]
|
| 523 |
+
torch_state_dict[name] = shared_tensor
|
| 524 |
+
else:
|
| 525 |
+
converted_tensors[tensor_id] = name
|
| 526 |
+
if return_empty_tensor:
|
| 527 |
+
torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype)
|
| 528 |
+
else:
|
| 529 |
+
torch_state_dict[name] = tensor.contiguous()
|
| 530 |
+
return torch_state_dict
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 534 |
+
tag=None,
|
| 535 |
+
exclude_frozen_parameters=False,
|
| 536 |
+
lazy_mode=False):
|
| 537 |
+
"""
|
| 538 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
|
| 539 |
+
``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
|
| 540 |
+
via a model hub.
|
| 541 |
+
|
| 542 |
+
Args:
|
| 543 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder
|
| 544 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14``
|
| 545 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 546 |
+
- ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient.
|
| 547 |
+
Convert the pesduo tensor to torch tensor by ``.contiguous()``
|
| 548 |
+
|
| 549 |
+
Returns:
|
| 550 |
+
- pytorch ``state_dict``
|
| 551 |
+
|
| 552 |
+
A typical usage might be ::
|
| 553 |
+
|
| 554 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 555 |
+
# do the training and checkpoint saving
|
| 556 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
|
| 557 |
+
model = model.cpu() # move to cpu
|
| 558 |
+
model.load_state_dict(state_dict)
|
| 559 |
+
# submit to model hub or save the model to share with others
|
| 560 |
+
|
| 561 |
+
In this example the ``model`` will no longer be usable in the deepspeed context of the same
|
| 562 |
+
application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 563 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 564 |
+
|
| 565 |
+
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
|
| 566 |
+
|
| 567 |
+
Note: the above usage may not work if your application doesn't have sufficient free CPU memory.
|
| 568 |
+
You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
|
| 569 |
+
the checkpoint. Or you can load state_dict in lazy mode ::
|
| 570 |
+
|
| 571 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 572 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu
|
| 573 |
+
for name, lazy_tensor in state_dict.item():
|
| 574 |
+
tensor = lazy_tensor.contiguous() # to cpu
|
| 575 |
+
print(name, tensor)
|
| 576 |
+
# del tensor to release memory if it no longer in use
|
| 577 |
+
"""
|
| 578 |
+
if tag is None:
|
| 579 |
+
latest_path = os.path.join(checkpoint_dir, 'latest')
|
| 580 |
+
if os.path.isfile(latest_path):
|
| 581 |
+
with open(latest_path, 'r') as fd:
|
| 582 |
+
tag = fd.read().strip()
|
| 583 |
+
else:
|
| 584 |
+
raise ValueError(f"Unable to find 'latest' file at {latest_path}")
|
| 585 |
+
|
| 586 |
+
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
|
| 587 |
+
|
| 588 |
+
if not os.path.isdir(ds_checkpoint_dir):
|
| 589 |
+
raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
|
| 590 |
+
|
| 591 |
+
state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
|
| 592 |
+
if lazy_mode:
|
| 593 |
+
return state_dict
|
| 594 |
+
else:
|
| 595 |
+
return to_torch_tensor(state_dict)
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
|
| 599 |
+
output_dir,
|
| 600 |
+
max_shard_size="5GB",
|
| 601 |
+
safe_serialization=False,
|
| 602 |
+
tag=None,
|
| 603 |
+
exclude_frozen_parameters=False):
|
| 604 |
+
"""
|
| 605 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
|
| 606 |
+
loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
|
| 607 |
+
|
| 608 |
+
Args:
|
| 609 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 610 |
+
- ``output_dir``: directory to the pytorch fp32 state_dict output files
|
| 611 |
+
- ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
|
| 612 |
+
- ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
|
| 613 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
|
| 614 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 615 |
+
"""
|
| 616 |
+
|
| 617 |
+
# Dependency pre-check
|
| 618 |
+
if safe_serialization:
|
| 619 |
+
try:
|
| 620 |
+
from safetensors.torch import save_file
|
| 621 |
+
except ImportError:
|
| 622 |
+
print('If you want to use `safe_serialization`, please `pip install safetensors`')
|
| 623 |
+
raise
|
| 624 |
+
if max_shard_size is not None:
|
| 625 |
+
try:
|
| 626 |
+
from huggingface_hub import split_torch_state_dict_into_shards
|
| 627 |
+
except ImportError:
|
| 628 |
+
print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
|
| 629 |
+
raise
|
| 630 |
+
|
| 631 |
+
# Convert zero checkpoint to state_dict
|
| 632 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 633 |
+
tag,
|
| 634 |
+
exclude_frozen_parameters,
|
| 635 |
+
lazy_mode=True)
|
| 636 |
+
|
| 637 |
+
# Shard the model if it is too big.
|
| 638 |
+
weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
|
| 639 |
+
if max_shard_size is not None:
|
| 640 |
+
filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
|
| 641 |
+
# an memory-efficient approach for sharding
|
| 642 |
+
empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True)
|
| 643 |
+
state_dict_split = split_torch_state_dict_into_shards(empty_state_dict,
|
| 644 |
+
filename_pattern=filename_pattern,
|
| 645 |
+
max_shard_size=max_shard_size)
|
| 646 |
+
else:
|
| 647 |
+
from collections import namedtuple
|
| 648 |
+
StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
|
| 649 |
+
state_dict_split = StateDictSplit(is_sharded=False,
|
| 650 |
+
filename_to_tensors={weights_name: list(state_dict.keys())})
|
| 651 |
+
|
| 652 |
+
# Save the model by shard
|
| 653 |
+
os.makedirs(output_dir, exist_ok=True)
|
| 654 |
+
filename_to_tensors = state_dict_split.filename_to_tensors.items()
|
| 655 |
+
for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
|
| 656 |
+
shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors}
|
| 657 |
+
shard_state_dict = to_torch_tensor(shard_state_dict)
|
| 658 |
+
output_path = os.path.join(output_dir, shard_file)
|
| 659 |
+
if safe_serialization:
|
| 660 |
+
save_file(shard_state_dict, output_path, metadata={"format": "pt"})
|
| 661 |
+
else:
|
| 662 |
+
torch.save(shard_state_dict, output_path)
|
| 663 |
+
# release the memory of current shard
|
| 664 |
+
for tensor_name in list(shard_state_dict.keys()):
|
| 665 |
+
del state_dict[tensor_name]
|
| 666 |
+
del shard_state_dict[tensor_name]
|
| 667 |
+
del shard_state_dict
|
| 668 |
+
gc.collect()
|
| 669 |
+
|
| 670 |
+
# Save index if sharded
|
| 671 |
+
if state_dict_split.is_sharded:
|
| 672 |
+
index = {
|
| 673 |
+
"metadata": state_dict_split.metadata,
|
| 674 |
+
"weight_map": state_dict_split.tensor_to_filename,
|
| 675 |
+
}
|
| 676 |
+
save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
|
| 677 |
+
save_index_file = os.path.join(output_dir, save_index_file)
|
| 678 |
+
with open(save_index_file, "w", encoding="utf-8") as f:
|
| 679 |
+
content = json.dumps(index, indent=2, sort_keys=True) + "\n"
|
| 680 |
+
f.write(content)
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
|
| 684 |
+
"""
|
| 685 |
+
1. Put the provided model to cpu
|
| 686 |
+
2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
|
| 687 |
+
3. Load it into the provided model
|
| 688 |
+
|
| 689 |
+
Args:
|
| 690 |
+
- ``model``: the model object to update
|
| 691 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 692 |
+
- ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
|
| 693 |
+
|
| 694 |
+
Returns:
|
| 695 |
+
- ``model`: modified model
|
| 696 |
+
|
| 697 |
+
Make sure you have plenty of CPU memory available before you call this function. If you don't
|
| 698 |
+
have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
|
| 699 |
+
conveniently placed for you in the checkpoint folder.
|
| 700 |
+
|
| 701 |
+
A typical usage might be ::
|
| 702 |
+
|
| 703 |
+
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
|
| 704 |
+
model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
|
| 705 |
+
# submit to model hub or save the model to share with others
|
| 706 |
+
|
| 707 |
+
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
|
| 708 |
+
of the same application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 709 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 710 |
+
|
| 711 |
+
"""
|
| 712 |
+
logger.info("Extracting fp32 weights")
|
| 713 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
|
| 714 |
+
|
| 715 |
+
logger.info("Overwriting model with fp32 weights")
|
| 716 |
+
model = model.cpu()
|
| 717 |
+
model.load_state_dict(state_dict, strict=False)
|
| 718 |
+
|
| 719 |
+
return model
|
| 720 |
+
|
| 721 |
+
|
| 722 |
+
if __name__ == "__main__":
|
| 723 |
+
parser = argparse.ArgumentParser()
|
| 724 |
+
parser.add_argument("checkpoint_dir",
|
| 725 |
+
type=str,
|
| 726 |
+
help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
|
| 727 |
+
parser.add_argument("output_dir",
|
| 728 |
+
type=str,
|
| 729 |
+
help="directory to the pytorch fp32 state_dict output files"
|
| 730 |
+
"(e.g. path/checkpoint-12-output/)")
|
| 731 |
+
parser.add_argument(
|
| 732 |
+
"--max_shard_size",
|
| 733 |
+
type=str,
|
| 734 |
+
default="5GB",
|
| 735 |
+
help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
|
| 736 |
+
"lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
|
| 737 |
+
"We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
|
| 738 |
+
"without CPU OOM issues.")
|
| 739 |
+
parser.add_argument(
|
| 740 |
+
"--safe_serialization",
|
| 741 |
+
default=False,
|
| 742 |
+
action='store_true',
|
| 743 |
+
help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
|
| 744 |
+
parser.add_argument("-t",
|
| 745 |
+
"--tag",
|
| 746 |
+
type=str,
|
| 747 |
+
default=None,
|
| 748 |
+
help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
|
| 749 |
+
parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
|
| 750 |
+
parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
|
| 751 |
+
args = parser.parse_args()
|
| 752 |
+
|
| 753 |
+
debug = args.debug
|
| 754 |
+
|
| 755 |
+
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
|
| 756 |
+
args.output_dir,
|
| 757 |
+
max_shard_size=args.max_shard_size,
|
| 758 |
+
safe_serialization=args.safe_serialization,
|
| 759 |
+
tag=args.tag,
|
| 760 |
+
exclude_frozen_parameters=args.exclude_frozen_parameters)
|