Robotics
LeRobot
Safetensors
pi0
shaunkirby commited on
Commit
38f6493
·
verified ·
1 Parent(s): 6840670

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: shaunkirby/three-task_recomputed_stats
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi0
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - pi0
10
+ - robotics
11
+ ---
12
+
13
+ # Model Card for pi0
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ **π₀ (Pi0)**
19
+
20
+ π₀ is a Vision-Language-Action model for general robot control, from Physical Intelligence. The LeRobot implementation is adapted from their open source OpenPI repository.
21
+
22
+ **Model Overview**
23
+
24
+ π₀ represents a breakthrough in robotics as the first general-purpose robot foundation model developed by Physical Intelligence. Unlike traditional robots that are narrow specialists programmed for repetitive motions, π₀ is designed to be a generalist policy that can understand visual inputs, interpret natural language instructions, and control a variety of different robots across diverse tasks.
25
+
26
+ For more details, see the [Physical Intelligence π₀ blog post](https://www.physicalintelligence.company/blog/pi0).
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": "pi0",
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
+ 6
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "use_peft": false,
47
+ "push_to_hub": true,
48
+ "repo_id": "shaunkirby/three-task",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": "lerobot/pi0_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": true,
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
+ "normalization_mapping": {
86
+ "VISUAL": "IDENTITY",
87
+ "STATE": "MEAN_STD",
88
+ "ACTION": "MEAN_STD"
89
+ },
90
+ "gradient_checkpointing": true,
91
+ "compile_model": false,
92
+ "compile_mode": "max-autotune",
93
+ "freeze_vision_encoder": false,
94
+ "train_expert_only": false,
95
+ "optimizer_lr": 2.5e-05,
96
+ "optimizer_betas": [
97
+ 0.9,
98
+ 0.95
99
+ ],
100
+ "optimizer_eps": 1e-08,
101
+ "optimizer_weight_decay": 0.01,
102
+ "optimizer_grad_clip_norm": 1.0,
103
+ "scheduler_warmup_steps": 1000,
104
+ "scheduler_decay_steps": 30000,
105
+ "scheduler_decay_lr": 2.5e-06,
106
+ "tokenizer_max_length": 48
107
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49722f90d159de6e95dbc9bdd2b9750c2a0ac76231e6056774ecd684e3eb7d9c
3
+ size 8892502944
train_config.json ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "shaunkirby/three-task_recomputed_stats",
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": "torchcodec",
80
+ "streaming": false
81
+ },
82
+ "env": null,
83
+ "policy": {
84
+ "type": "pi0",
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
+ 6
123
+ ]
124
+ }
125
+ },
126
+ "device": "cuda",
127
+ "use_amp": false,
128
+ "use_peft": false,
129
+ "push_to_hub": true,
130
+ "repo_id": "shaunkirby/three-task",
131
+ "private": null,
132
+ "tags": null,
133
+ "license": null,
134
+ "pretrained_path": "lerobot/pi0_base",
135
+ "paligemma_variant": "gemma_2b",
136
+ "action_expert_variant": "gemma_300m",
137
+ "dtype": "bfloat16",
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
+ "gripper"
152
+ ],
153
+ "action_feature_names": [
154
+ "shoulder_pan.pos",
155
+ "shoulder_lift.pos",
156
+ "elbow_flex.pos",
157
+ "wrist_flex.pos",
158
+ "wrist_roll.pos",
159
+ "gripper.pos"
160
+ ],
161
+ "rtc_config": null,
162
+ "image_resolution": [
163
+ 224,
164
+ 224
165
+ ],
166
+ "empty_cameras": 0,
167
+ "normalization_mapping": {
168
+ "VISUAL": "IDENTITY",
169
+ "STATE": "MEAN_STD",
170
+ "ACTION": "MEAN_STD"
171
+ },
172
+ "gradient_checkpointing": true,
173
+ "compile_model": false,
174
+ "compile_mode": "max-autotune",
175
+ "freeze_vision_encoder": false,
176
+ "train_expert_only": false,
177
+ "optimizer_lr": 2.5e-05,
178
+ "optimizer_betas": [
179
+ 0.9,
180
+ 0.95
181
+ ],
182
+ "optimizer_eps": 1e-08,
183
+ "optimizer_weight_decay": 0.01,
184
+ "optimizer_grad_clip_norm": 1.0,
185
+ "scheduler_warmup_steps": 1000,
186
+ "scheduler_decay_steps": 30000,
187
+ "scheduler_decay_lr": 2.5e-06,
188
+ "tokenizer_max_length": 48
189
+ },
190
+ "output_dir": "outputs",
191
+ "job_name": "pi0",
192
+ "resume": false,
193
+ "seed": 1000,
194
+ "cudnn_deterministic": false,
195
+ "num_workers": 4,
196
+ "batch_size": 2,
197
+ "steps": 100000,
198
+ "eval_freq": 20000,
199
+ "log_freq": 200,
200
+ "tolerance_s": 0.0001,
201
+ "save_checkpoint": true,
202
+ "save_freq": 20000,
203
+ "use_policy_training_preset": true,
204
+ "optimizer": {
205
+ "type": "adamw",
206
+ "lr": 2.5e-05,
207
+ "weight_decay": 0.01,
208
+ "grad_clip_norm": 1.0,
209
+ "betas": [
210
+ 0.9,
211
+ 0.95
212
+ ],
213
+ "eps": 1e-08
214
+ },
215
+ "scheduler": {
216
+ "type": "cosine_decay_with_warmup",
217
+ "num_warmup_steps": 1000,
218
+ "num_decay_steps": 30000,
219
+ "peak_lr": 2.5e-05,
220
+ "decay_lr": 2.5e-06
221
+ },
222
+ "eval": {
223
+ "n_episodes": 50,
224
+ "batch_size": 50,
225
+ "use_async_envs": false
226
+ },
227
+ "wandb": {
228
+ "enable": false,
229
+ "disable_artifact": false,
230
+ "project": "lerobot",
231
+ "entity": null,
232
+ "notes": null,
233
+ "run_id": null,
234
+ "mode": null,
235
+ "add_tags": true
236
+ },
237
+ "peft": null,
238
+ "use_rabc": false,
239
+ "rabc_progress_path": null,
240
+ "rabc_kappa": 0.01,
241
+ "rabc_epsilon": 1e-06,
242
+ "rabc_head_mode": "sparse",
243
+ "rename_map": {
244
+ "observation.images.side": "observation.images.base_0_rgb",
245
+ "observation.images.top": "observation.images.left_wrist_0_rgb"
246
+ },
247
+ "checkpoint_path": null
248
+ }