Robotics
LeRobot
Safetensors
pi0
aractingi HF Staff commited on
Commit
ac3c9eb
·
verified ·
1 Parent(s): 63b4f7b

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +70 -0
  2. config.json +94 -0
  3. model.safetensors +3 -0
  4. train_config.json +223 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: lerobot-data-collection/folding_2025-11-30
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi0
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - pi0
9
+ - robotics
10
+ - lerobot
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,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi0",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 16
9
+ ]
10
+ },
11
+ "observation.images.left_wrist": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 720,
16
+ 1280
17
+ ]
18
+ },
19
+ "observation.images.right_wrist": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 720,
24
+ 1280
25
+ ]
26
+ },
27
+ "observation.images.base": {
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
+ 16
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "push_to_hub": true,
47
+ "repo_id": "lerobot-data-collection/full_pi0_transforms",
48
+ "private": null,
49
+ "tags": null,
50
+ "license": null,
51
+ "pretrained_path": "lerobot/pi0_base",
52
+ "paligemma_variant": "gemma_2b",
53
+ "action_expert_variant": "gemma_300m",
54
+ "dtype": "bfloat16",
55
+ "chunk_size": 50,
56
+ "n_action_steps": 50,
57
+ "max_state_dim": 32,
58
+ "max_action_dim": 32,
59
+ "num_inference_steps": 10,
60
+ "time_sampling_beta_alpha": 1.5,
61
+ "time_sampling_beta_beta": 1.0,
62
+ "time_sampling_scale": 0.999,
63
+ "time_sampling_offset": 0.001,
64
+ "min_period": 0.004,
65
+ "max_period": 4.0,
66
+ "rtc_config": null,
67
+ "image_resolution": [
68
+ 224,
69
+ 224
70
+ ],
71
+ "empty_cameras": 0,
72
+ "normalization_mapping": {
73
+ "VISUAL": "IDENTITY",
74
+ "STATE": "MEAN_STD",
75
+ "ACTION": "MEAN_STD"
76
+ },
77
+ "gradient_checkpointing": true,
78
+ "compile_model": true,
79
+ "compile_mode": "max-autotune",
80
+ "freeze_vision_encoder": false,
81
+ "freeze_llm_backbone": false,
82
+ "optimizer_lr": 2.5e-05,
83
+ "optimizer_betas": [
84
+ 0.9,
85
+ 0.95
86
+ ],
87
+ "optimizer_eps": 1e-08,
88
+ "optimizer_weight_decay": 0.01,
89
+ "optimizer_grad_clip_norm": 1.0,
90
+ "scheduler_warmup_steps": 1000,
91
+ "scheduler_decay_steps": 30000,
92
+ "scheduler_decay_lr": 2.5e-06,
93
+ "tokenizer_max_length": 48
94
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc2b358a585520c30f4e2d0e131186cfda67d01974a6b2e3223f2cdad2702fe9
3
+ size 7011548640
train_config.json ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "lerobot-data-collection/folding_2025-11-30",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": true,
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.state": {
88
+ "type": "STATE",
89
+ "shape": [
90
+ 16
91
+ ]
92
+ },
93
+ "observation.images.left_wrist": {
94
+ "type": "VISUAL",
95
+ "shape": [
96
+ 3,
97
+ 720,
98
+ 1280
99
+ ]
100
+ },
101
+ "observation.images.right_wrist": {
102
+ "type": "VISUAL",
103
+ "shape": [
104
+ 3,
105
+ 720,
106
+ 1280
107
+ ]
108
+ },
109
+ "observation.images.base": {
110
+ "type": "VISUAL",
111
+ "shape": [
112
+ 3,
113
+ 480,
114
+ 640
115
+ ]
116
+ }
117
+ },
118
+ "output_features": {
119
+ "action": {
120
+ "type": "ACTION",
121
+ "shape": [
122
+ 16
123
+ ]
124
+ }
125
+ },
126
+ "device": "cuda",
127
+ "use_amp": false,
128
+ "push_to_hub": true,
129
+ "repo_id": "lerobot-data-collection/full_pi0_transforms",
130
+ "private": null,
131
+ "tags": null,
132
+ "license": null,
133
+ "pretrained_path": "lerobot/pi0_base",
134
+ "paligemma_variant": "gemma_2b",
135
+ "action_expert_variant": "gemma_300m",
136
+ "dtype": "bfloat16",
137
+ "chunk_size": 50,
138
+ "n_action_steps": 50,
139
+ "max_state_dim": 32,
140
+ "max_action_dim": 32,
141
+ "num_inference_steps": 10,
142
+ "time_sampling_beta_alpha": 1.5,
143
+ "time_sampling_beta_beta": 1.0,
144
+ "time_sampling_scale": 0.999,
145
+ "time_sampling_offset": 0.001,
146
+ "min_period": 0.004,
147
+ "max_period": 4.0,
148
+ "rtc_config": null,
149
+ "image_resolution": [
150
+ 224,
151
+ 224
152
+ ],
153
+ "empty_cameras": 0,
154
+ "normalization_mapping": {
155
+ "VISUAL": "IDENTITY",
156
+ "STATE": "MEAN_STD",
157
+ "ACTION": "MEAN_STD"
158
+ },
159
+ "gradient_checkpointing": true,
160
+ "compile_model": true,
161
+ "compile_mode": "max-autotune",
162
+ "freeze_vision_encoder": false,
163
+ "freeze_llm_backbone": false,
164
+ "optimizer_lr": 2.5e-05,
165
+ "optimizer_betas": [
166
+ 0.9,
167
+ 0.95
168
+ ],
169
+ "optimizer_eps": 1e-08,
170
+ "optimizer_weight_decay": 0.01,
171
+ "optimizer_grad_clip_norm": 1.0,
172
+ "scheduler_warmup_steps": 1000,
173
+ "scheduler_decay_steps": 30000,
174
+ "scheduler_decay_lr": 2.5e-06,
175
+ "tokenizer_max_length": 48
176
+ },
177
+ "output_dir": "/fsx/michel_aractingi/outputs/shirt-folding/lerobot-data-collection/full_pi0_transforms",
178
+ "job_name": "pi0_fold_frozen_backbone",
179
+ "resume": false,
180
+ "seed": 1000,
181
+ "num_workers": 4,
182
+ "batch_size": 16,
183
+ "steps": 200000,
184
+ "eval_freq": 20000,
185
+ "log_freq": 100,
186
+ "save_checkpoint": true,
187
+ "save_freq": 25000,
188
+ "use_policy_training_preset": true,
189
+ "optimizer": {
190
+ "type": "adamw",
191
+ "lr": 2.5e-05,
192
+ "weight_decay": 0.01,
193
+ "grad_clip_norm": 1.0,
194
+ "betas": [
195
+ 0.9,
196
+ 0.95
197
+ ],
198
+ "eps": 1e-08
199
+ },
200
+ "scheduler": {
201
+ "type": "cosine_decay_with_warmup",
202
+ "num_warmup_steps": 1000,
203
+ "num_decay_steps": 30000,
204
+ "peak_lr": 2.5e-05,
205
+ "decay_lr": 2.5e-06
206
+ },
207
+ "eval": {
208
+ "n_episodes": 50,
209
+ "batch_size": 50,
210
+ "use_async_envs": false
211
+ },
212
+ "wandb": {
213
+ "enable": true,
214
+ "disable_artifact": true,
215
+ "project": "shirt-folding",
216
+ "entity": null,
217
+ "notes": null,
218
+ "run_id": "kuidbknd",
219
+ "mode": null
220
+ },
221
+ "checkpoint_path": null,
222
+ "rename_map": {}
223
+ }