Robotics
LeRobot
Safetensors
pi05
TynClause commited on
Commit
8fea050
·
verified ·
1 Parent(s): 8644582

Upload policy weights, train config and readme

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