thewisp commited on
Commit
edb4c6b
·
verified ·
1 Parent(s): 3c9f423

Upload policy weights, train config and readme

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