Robotics
LeRobot
Safetensors
pi0
rafamara commited on
Commit
ffff6bc
·
verified ·
1 Parent(s): 5cf958f

Upload policy weights, train config and readme

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