mimirmimir commited on
Commit
b2ec5fd
·
verified ·
1 Parent(s): cf457ba

Upload policy weights, train config and readme

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