ases200q2 commited on
Commit
9451baf
·
verified ·
1 Parent(s): f2b50ca

Upload policy weights, train config and readme

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