Robotics
LeRobot
Safetensors
pi05
danielholl commited on
Commit
d10aa0f
·
verified ·
1 Parent(s): e627773

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +70 -0
  2. config.json +116 -0
  3. model.safetensors +3 -0
  4. train_config.json +254 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: AIR-AUDI/redBoxDataset
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi05
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - pi05
11
+ ---
12
+
13
+ # Model Card for pi05
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ **π₀.₅ (Pi05) Policy**
19
+
20
+ π₀.₅ is a Vision-Language-Action model with open-world generalization, from Physical Intelligence. The LeRobot implementation is adapted from their open source OpenPI repository.
21
+
22
+ **Model Overview**
23
+
24
+ π₀.₅ represents a significant evolution from π₀, developed by Physical Intelligence to address a big challenge in robotics: open-world generalization. While robots can perform impressive tasks in controlled environments, π₀.₅ is designed to generalize to entirely new environments and situations that were never seen during training.
25
+
26
+ For more details, see the [Physical Intelligence π₀.₅ blog post](https://www.physicalintelligence.company/blog/pi05).
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,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi05",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 7
9
+ ]
10
+ },
11
+ "observation.images.cam_right": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.cam_top": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ },
27
+ "observation.images.cam_front": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 480,
32
+ 640
33
+ ]
34
+ },
35
+ "observation.images.cam_arm": {
36
+ "type": "VISUAL",
37
+ "shape": [
38
+ 3,
39
+ 480,
40
+ 640
41
+ ]
42
+ }
43
+ },
44
+ "output_features": {
45
+ "action": {
46
+ "type": "ACTION",
47
+ "shape": [
48
+ 7
49
+ ]
50
+ }
51
+ },
52
+ "device": "cuda",
53
+ "use_amp": false,
54
+ "use_peft": false,
55
+ "push_to_hub": true,
56
+ "repo_id": "AIR-AUDI/pi05_redBoxDataset_run3",
57
+ "private": null,
58
+ "tags": null,
59
+ "license": null,
60
+ "pretrained_path": "lerobot/pi05_base",
61
+ "paligemma_variant": "gemma_2b",
62
+ "action_expert_variant": "gemma_300m",
63
+ "dtype": "bfloat16",
64
+ "chunk_size": 50,
65
+ "n_action_steps": 50,
66
+ "max_state_dim": 32,
67
+ "max_action_dim": 32,
68
+ "num_inference_steps": 10,
69
+ "time_sampling_beta_alpha": 1.5,
70
+ "time_sampling_beta_beta": 1.0,
71
+ "time_sampling_scale": 0.999,
72
+ "time_sampling_offset": 0.001,
73
+ "min_period": 0.004,
74
+ "max_period": 4.0,
75
+ "use_relative_actions": false,
76
+ "relative_exclude_joints": [
77
+ "gripper"
78
+ ],
79
+ "action_feature_names": [
80
+ "joint_1",
81
+ "joint_2",
82
+ "joint_3",
83
+ "joint_4",
84
+ "joint_5",
85
+ "joint_6",
86
+ "gripper"
87
+ ],
88
+ "rtc_config": null,
89
+ "image_resolution": [
90
+ 224,
91
+ 224
92
+ ],
93
+ "empty_cameras": 0,
94
+ "tokenizer_max_length": 200,
95
+ "normalization_mapping": {
96
+ "VISUAL": "IDENTITY",
97
+ "STATE": "QUANTILES",
98
+ "ACTION": "QUANTILES"
99
+ },
100
+ "gradient_checkpointing": true,
101
+ "compile_model": false,
102
+ "compile_mode": "max-autotune",
103
+ "freeze_vision_encoder": false,
104
+ "train_expert_only": true,
105
+ "optimizer_lr": 2.5e-05,
106
+ "optimizer_betas": [
107
+ 0.9,
108
+ 0.95
109
+ ],
110
+ "optimizer_eps": 1e-08,
111
+ "optimizer_weight_decay": 0.01,
112
+ "optimizer_grad_clip_norm": 1.0,
113
+ "scheduler_warmup_steps": 1000,
114
+ "scheduler_decay_steps": 30000,
115
+ "scheduler_decay_lr": 2.5e-06
116
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a303e2eba68901c77e8b35f03be7c4cd438e46d41be21fedf49537382b85ffec
3
+ size 9354050752
train_config.json ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "AIR-AUDI/redBoxDataset",
4
+ "root": "/home/plab/ros/src/abb_ros2/data/datasets/redBoxDataset",
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
+ "return_uint8": false,
81
+ "streaming": false
82
+ },
83
+ "env": null,
84
+ "policy": {
85
+ "type": "pi05",
86
+ "n_obs_steps": 1,
87
+ "input_features": {
88
+ "observation.state": {
89
+ "type": "STATE",
90
+ "shape": [
91
+ 7
92
+ ]
93
+ },
94
+ "observation.images.cam_right": {
95
+ "type": "VISUAL",
96
+ "shape": [
97
+ 3,
98
+ 480,
99
+ 640
100
+ ]
101
+ },
102
+ "observation.images.cam_top": {
103
+ "type": "VISUAL",
104
+ "shape": [
105
+ 3,
106
+ 480,
107
+ 640
108
+ ]
109
+ },
110
+ "observation.images.cam_front": {
111
+ "type": "VISUAL",
112
+ "shape": [
113
+ 3,
114
+ 480,
115
+ 640
116
+ ]
117
+ },
118
+ "observation.images.cam_arm": {
119
+ "type": "VISUAL",
120
+ "shape": [
121
+ 3,
122
+ 480,
123
+ 640
124
+ ]
125
+ }
126
+ },
127
+ "output_features": {
128
+ "action": {
129
+ "type": "ACTION",
130
+ "shape": [
131
+ 7
132
+ ]
133
+ }
134
+ },
135
+ "device": "cuda",
136
+ "use_amp": false,
137
+ "use_peft": false,
138
+ "push_to_hub": true,
139
+ "repo_id": "AIR-AUDI/pi05_redBoxDataset_run3",
140
+ "private": null,
141
+ "tags": null,
142
+ "license": null,
143
+ "pretrained_path": "lerobot/pi05_base",
144
+ "paligemma_variant": "gemma_2b",
145
+ "action_expert_variant": "gemma_300m",
146
+ "dtype": "bfloat16",
147
+ "chunk_size": 50,
148
+ "n_action_steps": 50,
149
+ "max_state_dim": 32,
150
+ "max_action_dim": 32,
151
+ "num_inference_steps": 10,
152
+ "time_sampling_beta_alpha": 1.5,
153
+ "time_sampling_beta_beta": 1.0,
154
+ "time_sampling_scale": 0.999,
155
+ "time_sampling_offset": 0.001,
156
+ "min_period": 0.004,
157
+ "max_period": 4.0,
158
+ "use_relative_actions": false,
159
+ "relative_exclude_joints": [
160
+ "gripper"
161
+ ],
162
+ "action_feature_names": [
163
+ "joint_1",
164
+ "joint_2",
165
+ "joint_3",
166
+ "joint_4",
167
+ "joint_5",
168
+ "joint_6",
169
+ "gripper"
170
+ ],
171
+ "rtc_config": null,
172
+ "image_resolution": [
173
+ 224,
174
+ 224
175
+ ],
176
+ "empty_cameras": 0,
177
+ "tokenizer_max_length": 200,
178
+ "normalization_mapping": {
179
+ "VISUAL": "IDENTITY",
180
+ "STATE": "QUANTILES",
181
+ "ACTION": "QUANTILES"
182
+ },
183
+ "gradient_checkpointing": true,
184
+ "compile_model": false,
185
+ "compile_mode": "max-autotune",
186
+ "freeze_vision_encoder": false,
187
+ "train_expert_only": true,
188
+ "optimizer_lr": 2.5e-05,
189
+ "optimizer_betas": [
190
+ 0.9,
191
+ 0.95
192
+ ],
193
+ "optimizer_eps": 1e-08,
194
+ "optimizer_weight_decay": 0.01,
195
+ "optimizer_grad_clip_norm": 1.0,
196
+ "scheduler_warmup_steps": 1000,
197
+ "scheduler_decay_steps": 30000,
198
+ "scheduler_decay_lr": 2.5e-06
199
+ },
200
+ "reward_model": null,
201
+ "output_dir": "models/pi05_redBoxDataset_run3",
202
+ "job_name": "pi05_redBoxDataset_run3",
203
+ "resume": false,
204
+ "seed": 1000,
205
+ "cudnn_deterministic": false,
206
+ "num_workers": 20,
207
+ "batch_size": 16,
208
+ "prefetch_factor": 4,
209
+ "persistent_workers": true,
210
+ "steps": 20000,
211
+ "eval_freq": 20000,
212
+ "log_freq": 100,
213
+ "tolerance_s": 0.0001,
214
+ "save_checkpoint": true,
215
+ "save_freq": 1000,
216
+ "use_policy_training_preset": true,
217
+ "optimizer": {
218
+ "type": "adamw",
219
+ "lr": 2.5e-05,
220
+ "weight_decay": 0.01,
221
+ "grad_clip_norm": 1.0,
222
+ "betas": [
223
+ 0.9,
224
+ 0.95
225
+ ],
226
+ "eps": 1e-08
227
+ },
228
+ "scheduler": {
229
+ "type": "cosine_decay_with_warmup",
230
+ "num_warmup_steps": 1000,
231
+ "num_decay_steps": 30000,
232
+ "peak_lr": 2.5e-05,
233
+ "decay_lr": 2.5e-06
234
+ },
235
+ "eval": {
236
+ "n_episodes": 50,
237
+ "batch_size": 22,
238
+ "use_async_envs": true
239
+ },
240
+ "wandb": {
241
+ "enable": true,
242
+ "disable_artifact": true,
243
+ "project": "AIR-LAB",
244
+ "entity": "holldaniel13",
245
+ "notes": null,
246
+ "run_id": "pi05_redBoxDataset_run3",
247
+ "mode": "online",
248
+ "add_tags": true
249
+ },
250
+ "peft": null,
251
+ "sample_weighting": null,
252
+ "rename_map": {},
253
+ "checkpoint_path": null
254
+ }