Robotics
LeRobot
Safetensors
pi05
Ready321 commited on
Commit
b580e4f
·
verified ·
1 Parent(s): 2bba693

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +70 -0
  2. config.json +107 -0
  3. model.safetensors +3 -0
  4. train_config.json +248 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: Ready321/grab_cube
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi05
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - pi05
9
+ - robotics
10
+ - lerobot
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
config.json ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi05",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 6
9
+ ]
10
+ },
11
+ "observation.images.top": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.wrist": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ },
27
+ "observation.images.side": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 480,
32
+ 640
33
+ ]
34
+ }
35
+ },
36
+ "output_features": {
37
+ "action": {
38
+ "type": "ACTION",
39
+ "shape": [
40
+ 6
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "use_peft": false,
47
+ "push_to_hub": true,
48
+ "repo_id": "Ready321/pi05_grab_cube",
49
+ "private": false,
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": "bfloat16",
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": false,
68
+ "relative_exclude_joints": [
69
+ "gripper"
70
+ ],
71
+ "action_feature_names": [
72
+ "shoulder_pan.pos",
73
+ "shoulder_lift.pos",
74
+ "elbow_flex.pos",
75
+ "wrist_flex.pos",
76
+ "wrist_roll.pos",
77
+ "gripper.pos"
78
+ ],
79
+ "rtc_config": null,
80
+ "image_resolution": [
81
+ 224,
82
+ 224
83
+ ],
84
+ "empty_cameras": 0,
85
+ "tokenizer_max_length": 200,
86
+ "normalization_mapping": {
87
+ "VISUAL": "IDENTITY",
88
+ "STATE": "QUANTILES",
89
+ "ACTION": "QUANTILES"
90
+ },
91
+ "gradient_checkpointing": true,
92
+ "compile_model": false,
93
+ "compile_mode": "max-autotune",
94
+ "freeze_vision_encoder": false,
95
+ "train_expert_only": true,
96
+ "optimizer_lr": 2.5e-05,
97
+ "optimizer_betas": [
98
+ 0.9,
99
+ 0.95
100
+ ],
101
+ "optimizer_eps": 1e-08,
102
+ "optimizer_weight_decay": 0.01,
103
+ "optimizer_grad_clip_norm": 1.0,
104
+ "scheduler_warmup_steps": 1000,
105
+ "scheduler_decay_steps": 30000,
106
+ "scheduler_decay_lr": 2.5e-06
107
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8a7dd1ba9b70a2dba61b11611fa730277b19e8c1513730bb2de35c546d0ae60
3
+ size 9354050752
train_config.json ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "Ready321/grab_cube",
4
+ "root": null,
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": true,
79
+ "video_backend": "pyav",
80
+ "return_uint8": false,
81
+ "streaming": false
82
+ },
83
+ "env": null,
84
+ "policy": {
85
+ "type": "pi05",
86
+ "n_obs_steps": 1,
87
+ "input_features": {
88
+ "observation.state": {
89
+ "type": "STATE",
90
+ "shape": [
91
+ 6
92
+ ]
93
+ },
94
+ "observation.images.top": {
95
+ "type": "VISUAL",
96
+ "shape": [
97
+ 3,
98
+ 480,
99
+ 640
100
+ ]
101
+ },
102
+ "observation.images.wrist": {
103
+ "type": "VISUAL",
104
+ "shape": [
105
+ 3,
106
+ 480,
107
+ 640
108
+ ]
109
+ },
110
+ "observation.images.side": {
111
+ "type": "VISUAL",
112
+ "shape": [
113
+ 3,
114
+ 480,
115
+ 640
116
+ ]
117
+ }
118
+ },
119
+ "output_features": {
120
+ "action": {
121
+ "type": "ACTION",
122
+ "shape": [
123
+ 6
124
+ ]
125
+ }
126
+ },
127
+ "device": "cuda",
128
+ "use_amp": false,
129
+ "use_peft": false,
130
+ "push_to_hub": true,
131
+ "repo_id": "Ready321/pi05_grab_cube",
132
+ "private": false,
133
+ "tags": null,
134
+ "license": null,
135
+ "pretrained_path": "lerobot/pi05_base",
136
+ "paligemma_variant": "gemma_2b",
137
+ "action_expert_variant": "gemma_300m",
138
+ "dtype": "bfloat16",
139
+ "chunk_size": 50,
140
+ "n_action_steps": 50,
141
+ "max_state_dim": 32,
142
+ "max_action_dim": 32,
143
+ "num_inference_steps": 10,
144
+ "time_sampling_beta_alpha": 1.5,
145
+ "time_sampling_beta_beta": 1.0,
146
+ "time_sampling_scale": 0.999,
147
+ "time_sampling_offset": 0.001,
148
+ "min_period": 0.004,
149
+ "max_period": 4.0,
150
+ "use_relative_actions": false,
151
+ "relative_exclude_joints": [
152
+ "gripper"
153
+ ],
154
+ "action_feature_names": [
155
+ "shoulder_pan.pos",
156
+ "shoulder_lift.pos",
157
+ "elbow_flex.pos",
158
+ "wrist_flex.pos",
159
+ "wrist_roll.pos",
160
+ "gripper.pos"
161
+ ],
162
+ "rtc_config": null,
163
+ "image_resolution": [
164
+ 224,
165
+ 224
166
+ ],
167
+ "empty_cameras": 0,
168
+ "tokenizer_max_length": 200,
169
+ "normalization_mapping": {
170
+ "VISUAL": "IDENTITY",
171
+ "STATE": "QUANTILES",
172
+ "ACTION": "QUANTILES"
173
+ },
174
+ "gradient_checkpointing": true,
175
+ "compile_model": false,
176
+ "compile_mode": "max-autotune",
177
+ "freeze_vision_encoder": false,
178
+ "train_expert_only": true,
179
+ "optimizer_lr": 2.5e-05,
180
+ "optimizer_betas": [
181
+ 0.9,
182
+ 0.95
183
+ ],
184
+ "optimizer_eps": 1e-08,
185
+ "optimizer_weight_decay": 0.01,
186
+ "optimizer_grad_clip_norm": 1.0,
187
+ "scheduler_warmup_steps": 1000,
188
+ "scheduler_decay_steps": 30000,
189
+ "scheduler_decay_lr": 2.5e-06
190
+ },
191
+ "output_dir": "outputs/pi05_grab_cube",
192
+ "job_name": "pi05_grab_cube",
193
+ "resume": false,
194
+ "seed": 1000,
195
+ "cudnn_deterministic": false,
196
+ "num_workers": 4,
197
+ "batch_size": 16,
198
+ "prefetch_factor": 4,
199
+ "persistent_workers": true,
200
+ "steps": 3000,
201
+ "eval_freq": 20000,
202
+ "log_freq": 200,
203
+ "tolerance_s": 0.0001,
204
+ "save_checkpoint": true,
205
+ "save_freq": 1000,
206
+ "use_policy_training_preset": true,
207
+ "optimizer": {
208
+ "type": "adamw",
209
+ "lr": 2.5e-05,
210
+ "weight_decay": 0.01,
211
+ "grad_clip_norm": 1.0,
212
+ "betas": [
213
+ 0.9,
214
+ 0.95
215
+ ],
216
+ "eps": 1e-08
217
+ },
218
+ "scheduler": {
219
+ "type": "cosine_decay_with_warmup",
220
+ "num_warmup_steps": 1000,
221
+ "num_decay_steps": 30000,
222
+ "peak_lr": 2.5e-05,
223
+ "decay_lr": 2.5e-06
224
+ },
225
+ "eval": {
226
+ "n_episodes": 50,
227
+ "batch_size": 19,
228
+ "use_async_envs": true
229
+ },
230
+ "wandb": {
231
+ "enable": true,
232
+ "disable_artifact": false,
233
+ "project": "lerobot",
234
+ "entity": null,
235
+ "notes": null,
236
+ "run_id": "jqfyk3j7",
237
+ "mode": null,
238
+ "add_tags": true
239
+ },
240
+ "peft": null,
241
+ "use_rabc": false,
242
+ "rabc_progress_path": null,
243
+ "rabc_kappa": 0.01,
244
+ "rabc_epsilon": 1e-06,
245
+ "rabc_head_mode": "sparse",
246
+ "rename_map": {},
247
+ "checkpoint_path": null
248
+ }