Robotics
LeRobot
Safetensors
pi05
K0145vin commited on
Commit
a2950df
·
verified ·
1 Parent(s): dddccff

Upload policy weights, train config and readme

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