Robotics
LeRobot
Safetensors
pi05
yhong96 commited on
Commit
74f8dca
·
verified ·
1 Parent(s): ad15bee

Upload policy weights, train config and readme

Browse files
Files changed (5) hide show
  1. README.md +70 -0
  2. adapter_config.json +43 -0
  3. adapter_model.safetensors +3 -0
  4. config.json +116 -0
  5. train_config.json +264 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: yhong96/aloha2_cube_transfer_stack
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi05
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - pi05
10
+ - robotics
11
+ ---
12
+
13
+ # Model Card for pi05
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ **π₀.₅ (Pi05) Policy**
19
+
20
+ π₀.₅ is a Vision-Language-Action model with open-world generalization, from Physical Intelligence. The LeRobot implementation is adapted from their open source OpenPI repository.
21
+
22
+ **Model Overview**
23
+
24
+ π₀.₅ represents a significant evolution from π₀, developed by Physical Intelligence to address a big challenge in robotics: open-world generalization. While robots can perform impressive tasks in controlled environments, π₀.₅ is designed to generalize to entirely new environments and situations that were never seen during training.
25
+
26
+ For more details, see the [Physical Intelligence π₀.₅ blog post](https://www.physicalintelligence.company/blog/pi05).
27
+
28
+
29
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
30
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
31
+
32
+ ---
33
+
34
+ ## How to Get Started with the Model
35
+
36
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
37
+ Below is the short version on how to train and run inference/eval:
38
+
39
+ ### Train from scratch
40
+
41
+ ```bash
42
+ lerobot-train \
43
+ --dataset.repo_id=${HF_USER}/<dataset> \
44
+ --policy.type=act \
45
+ --output_dir=outputs/train/<desired_policy_repo_id> \
46
+ --job_name=lerobot_training \
47
+ --policy.device=cuda \
48
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
49
+ --wandb.enable=true
50
+ ```
51
+
52
+ _Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
53
+
54
+ ### Evaluate the policy/run inference
55
+
56
+ ```bash
57
+ lerobot-record \
58
+ --robot.type=so100_follower \
59
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
60
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
61
+ --episodes=10
62
+ ```
63
+
64
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
65
+
66
+ ---
67
+
68
+ ## Model Details
69
+
70
+ - **License:** apache-2.0
adapter_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "PI05Policy",
7
+ "parent_library": "lerobot.policies.pi05.modeling_pi05"
8
+ },
9
+ "base_model_name_or_path": "lerobot/pi05_base",
10
+ "bias": "none",
11
+ "corda_config": null,
12
+ "ensure_weight_tying": false,
13
+ "eva_config": null,
14
+ "exclude_modules": null,
15
+ "fan_in_fan_out": false,
16
+ "inference_mode": true,
17
+ "init_lora_weights": true,
18
+ "layer_replication": null,
19
+ "layers_pattern": null,
20
+ "layers_to_transform": null,
21
+ "loftq_config": {},
22
+ "lora_alpha": 8,
23
+ "lora_bias": false,
24
+ "lora_dropout": 0.0,
25
+ "lora_ga_config": null,
26
+ "megatron_config": null,
27
+ "megatron_core": "megatron.core",
28
+ "modules_to_save": [],
29
+ "peft_type": "LORA",
30
+ "peft_version": "0.19.1",
31
+ "qalora_group_size": 16,
32
+ "r": 16,
33
+ "rank_pattern": {},
34
+ "revision": null,
35
+ "target_modules": "(.*\\.gemma_expert\\..*\\.self_attn\\.(q|v)_proj|model\\.(state_proj|action_in_proj|action_out_proj|action_time_mlp_in|action_time_mlp_out))",
36
+ "target_parameters": null,
37
+ "task_type": null,
38
+ "trainable_token_indices": null,
39
+ "use_bdlora": null,
40
+ "use_dora": false,
41
+ "use_qalora": false,
42
+ "use_rslora": false
43
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:973445c68779e5734054e29dc3ad5fe95406e6ef3711c137a4d1db1e9ee1c4de
3
+ size 5161624
config.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi05",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.base_0_rgb": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 224,
10
+ 224
11
+ ]
12
+ },
13
+ "observation.images.left_wrist_0_rgb": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 224,
18
+ 224
19
+ ]
20
+ },
21
+ "observation.images.right_wrist_0_rgb": {
22
+ "type": "VISUAL",
23
+ "shape": [
24
+ 3,
25
+ 224,
26
+ 224
27
+ ]
28
+ },
29
+ "observation.state": {
30
+ "type": "STATE",
31
+ "shape": [
32
+ 32
33
+ ]
34
+ }
35
+ },
36
+ "output_features": {
37
+ "action": {
38
+ "type": "ACTION",
39
+ "shape": [
40
+ 14
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "use_peft": true,
47
+ "push_to_hub": true,
48
+ "repo_id": "yhong96/pi05_aloha2_cube_transfer_stack",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": "lerobot/pi05_base",
53
+ "paligemma_variant": "gemma_2b",
54
+ "action_expert_variant": "gemma_300m",
55
+ "dtype": "float32",
56
+ "chunk_size": 50,
57
+ "n_action_steps": 50,
58
+ "max_state_dim": 32,
59
+ "max_action_dim": 32,
60
+ "num_inference_steps": 10,
61
+ "time_sampling_beta_alpha": 1.5,
62
+ "time_sampling_beta_beta": 1.0,
63
+ "time_sampling_scale": 0.999,
64
+ "time_sampling_offset": 0.001,
65
+ "min_period": 0.004,
66
+ "max_period": 4.0,
67
+ "use_relative_actions": true,
68
+ "relative_exclude_joints": [
69
+ "left_gripper",
70
+ "right_gripper"
71
+ ],
72
+ "action_feature_names": [
73
+ "left_waist",
74
+ "left_shoulder",
75
+ "left_elbow",
76
+ "left_forearm_roll",
77
+ "left_wrist_angle",
78
+ "left_wrist_rotate",
79
+ "left_gripper",
80
+ "right_waist",
81
+ "right_shoulder",
82
+ "right_elbow",
83
+ "right_forearm_roll",
84
+ "right_wrist_angle",
85
+ "right_wrist_rotate",
86
+ "right_gripper"
87
+ ],
88
+ "rtc_config": null,
89
+ "image_resolution": [
90
+ 224,
91
+ 224
92
+ ],
93
+ "empty_cameras": 0,
94
+ "tokenizer_max_length": 200,
95
+ "normalization_mapping": {
96
+ "VISUAL": "IDENTITY",
97
+ "STATE": "QUANTILES",
98
+ "ACTION": "QUANTILES"
99
+ },
100
+ "gradient_checkpointing": false,
101
+ "compile_model": false,
102
+ "compile_mode": "max-autotune",
103
+ "freeze_vision_encoder": false,
104
+ "train_expert_only": false,
105
+ "optimizer_lr": 2.5e-05,
106
+ "optimizer_betas": [
107
+ 0.9,
108
+ 0.95
109
+ ],
110
+ "optimizer_eps": 1e-08,
111
+ "optimizer_weight_decay": 0.01,
112
+ "optimizer_grad_clip_norm": 1.0,
113
+ "scheduler_warmup_steps": 1000,
114
+ "scheduler_decay_steps": 30000,
115
+ "scheduler_decay_lr": 2.5e-06
116
+ }
train_config.json ADDED
@@ -0,0 +1,264 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "yhong96/aloha2_cube_transfer_stack",
4
+ "root": "outputs/real_world/lerobot_datasets/yhong96/aloha2_cube_transfer_stack",
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": false,
8
+ "max_num_transforms": 3,
9
+ "random_order": false,
10
+ "tfs": {
11
+ "brightness": {
12
+ "weight": 1.0,
13
+ "type": "ColorJitter",
14
+ "kwargs": {
15
+ "brightness": [
16
+ 0.8,
17
+ 1.2
18
+ ]
19
+ }
20
+ },
21
+ "contrast": {
22
+ "weight": 1.0,
23
+ "type": "ColorJitter",
24
+ "kwargs": {
25
+ "contrast": [
26
+ 0.8,
27
+ 1.2
28
+ ]
29
+ }
30
+ },
31
+ "saturation": {
32
+ "weight": 1.0,
33
+ "type": "ColorJitter",
34
+ "kwargs": {
35
+ "saturation": [
36
+ 0.5,
37
+ 1.5
38
+ ]
39
+ }
40
+ },
41
+ "hue": {
42
+ "weight": 1.0,
43
+ "type": "ColorJitter",
44
+ "kwargs": {
45
+ "hue": [
46
+ -0.05,
47
+ 0.05
48
+ ]
49
+ }
50
+ },
51
+ "sharpness": {
52
+ "weight": 1.0,
53
+ "type": "SharpnessJitter",
54
+ "kwargs": {
55
+ "sharpness": [
56
+ 0.5,
57
+ 1.5
58
+ ]
59
+ }
60
+ },
61
+ "affine": {
62
+ "weight": 1.0,
63
+ "type": "RandomAffine",
64
+ "kwargs": {
65
+ "degrees": [
66
+ -5.0,
67
+ 5.0
68
+ ],
69
+ "translate": [
70
+ 0.05,
71
+ 0.05
72
+ ]
73
+ }
74
+ }
75
+ }
76
+ },
77
+ "revision": null,
78
+ "use_imagenet_stats": false,
79
+ "video_backend": "pyav",
80
+ "streaming": false
81
+ },
82
+ "env": null,
83
+ "policy": {
84
+ "type": "pi05",
85
+ "n_obs_steps": 1,
86
+ "input_features": {
87
+ "observation.images.base_0_rgb": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 3,
91
+ 224,
92
+ 224
93
+ ]
94
+ },
95
+ "observation.images.left_wrist_0_rgb": {
96
+ "type": "VISUAL",
97
+ "shape": [
98
+ 3,
99
+ 224,
100
+ 224
101
+ ]
102
+ },
103
+ "observation.images.right_wrist_0_rgb": {
104
+ "type": "VISUAL",
105
+ "shape": [
106
+ 3,
107
+ 224,
108
+ 224
109
+ ]
110
+ },
111
+ "observation.state": {
112
+ "type": "STATE",
113
+ "shape": [
114
+ 32
115
+ ]
116
+ }
117
+ },
118
+ "output_features": {
119
+ "action": {
120
+ "type": "ACTION",
121
+ "shape": [
122
+ 14
123
+ ]
124
+ }
125
+ },
126
+ "device": "cuda",
127
+ "use_amp": false,
128
+ "use_peft": true,
129
+ "push_to_hub": true,
130
+ "repo_id": "yhong96/pi05_aloha2_cube_transfer_stack",
131
+ "private": null,
132
+ "tags": null,
133
+ "license": null,
134
+ "pretrained_path": "lerobot/pi05_base",
135
+ "paligemma_variant": "gemma_2b",
136
+ "action_expert_variant": "gemma_300m",
137
+ "dtype": "float32",
138
+ "chunk_size": 50,
139
+ "n_action_steps": 50,
140
+ "max_state_dim": 32,
141
+ "max_action_dim": 32,
142
+ "num_inference_steps": 10,
143
+ "time_sampling_beta_alpha": 1.5,
144
+ "time_sampling_beta_beta": 1.0,
145
+ "time_sampling_scale": 0.999,
146
+ "time_sampling_offset": 0.001,
147
+ "min_period": 0.004,
148
+ "max_period": 4.0,
149
+ "use_relative_actions": true,
150
+ "relative_exclude_joints": [
151
+ "left_gripper",
152
+ "right_gripper"
153
+ ],
154
+ "action_feature_names": [
155
+ "left_waist",
156
+ "left_shoulder",
157
+ "left_elbow",
158
+ "left_forearm_roll",
159
+ "left_wrist_angle",
160
+ "left_wrist_rotate",
161
+ "left_gripper",
162
+ "right_waist",
163
+ "right_shoulder",
164
+ "right_elbow",
165
+ "right_forearm_roll",
166
+ "right_wrist_angle",
167
+ "right_wrist_rotate",
168
+ "right_gripper"
169
+ ],
170
+ "rtc_config": null,
171
+ "image_resolution": [
172
+ 224,
173
+ 224
174
+ ],
175
+ "empty_cameras": 0,
176
+ "tokenizer_max_length": 200,
177
+ "normalization_mapping": {
178
+ "VISUAL": "IDENTITY",
179
+ "STATE": "QUANTILES",
180
+ "ACTION": "QUANTILES"
181
+ },
182
+ "gradient_checkpointing": false,
183
+ "compile_model": false,
184
+ "compile_mode": "max-autotune",
185
+ "freeze_vision_encoder": false,
186
+ "train_expert_only": false,
187
+ "optimizer_lr": 2.5e-05,
188
+ "optimizer_betas": [
189
+ 0.9,
190
+ 0.95
191
+ ],
192
+ "optimizer_eps": 1e-08,
193
+ "optimizer_weight_decay": 0.01,
194
+ "optimizer_grad_clip_norm": 1.0,
195
+ "scheduler_warmup_steps": 1000,
196
+ "scheduler_decay_steps": 30000,
197
+ "scheduler_decay_lr": 2.5e-06
198
+ },
199
+ "output_dir": "outputs/real_world/pi05_aloha2/cube_transfer_stack_lora_r16_20260514_013011/yhong96__aloha2_cube_transfer_stack",
200
+ "job_name": "pi05",
201
+ "resume": false,
202
+ "seed": 1000,
203
+ "cudnn_deterministic": false,
204
+ "num_workers": 0,
205
+ "batch_size": 4,
206
+ "steps": 3000,
207
+ "eval_freq": 0,
208
+ "log_freq": 200,
209
+ "tolerance_s": 0.0001,
210
+ "save_checkpoint": true,
211
+ "save_freq": 20000,
212
+ "use_policy_training_preset": true,
213
+ "optimizer": {
214
+ "type": "adamw",
215
+ "lr": 2.5e-05,
216
+ "weight_decay": 0.01,
217
+ "grad_clip_norm": 1.0,
218
+ "betas": [
219
+ 0.9,
220
+ 0.95
221
+ ],
222
+ "eps": 1e-08
223
+ },
224
+ "scheduler": {
225
+ "type": "cosine_decay_with_warmup",
226
+ "num_warmup_steps": 1000,
227
+ "num_decay_steps": 30000,
228
+ "peak_lr": 2.5e-05,
229
+ "decay_lr": 2.5e-06
230
+ },
231
+ "eval": {
232
+ "n_episodes": 50,
233
+ "batch_size": 16,
234
+ "use_async_envs": true
235
+ },
236
+ "wandb": {
237
+ "enable": false,
238
+ "disable_artifact": false,
239
+ "project": "lerobot",
240
+ "entity": null,
241
+ "notes": null,
242
+ "run_id": null,
243
+ "mode": null,
244
+ "add_tags": true
245
+ },
246
+ "peft": {
247
+ "target_modules": null,
248
+ "full_training_modules": [],
249
+ "method_type": "LORA",
250
+ "init_type": null,
251
+ "r": 16
252
+ },
253
+ "use_rabc": false,
254
+ "rabc_progress_path": null,
255
+ "rabc_kappa": 0.01,
256
+ "rabc_epsilon": 1e-06,
257
+ "rabc_head_mode": "sparse",
258
+ "rename_map": {
259
+ "observation.images.cam_high": "observation.images.base_0_rgb",
260
+ "observation.images.cam_left_wrist": "observation.images.left_wrist_0_rgb",
261
+ "observation.images.cam_right_wrist": "observation.images.right_wrist_0_rgb"
262
+ },
263
+ "checkpoint_path": null
264
+ }