AriRyo commited on
Commit
e52d77b
·
verified ·
1 Parent(s): bc86c83

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +70 -0
  2. config.json +87 -0
  3. model.safetensors +3 -0
  4. train_config.json +236 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: AriRyo/blockpick_gray_03
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,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.above": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.side": {
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": "AriRyo/blockpick_gray_pi05_12",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": "lerobot/pi05_base",
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
+ "rtc_config": null,
60
+ "image_resolution": [
61
+ 224,
62
+ 224
63
+ ],
64
+ "empty_cameras": 0,
65
+ "tokenizer_max_length": 200,
66
+ "normalization_mapping": {
67
+ "VISUAL": "IDENTITY",
68
+ "STATE": "QUANTILES",
69
+ "ACTION": "QUANTILES"
70
+ },
71
+ "gradient_checkpointing": true,
72
+ "compile_model": false,
73
+ "compile_mode": "max-autotune",
74
+ "freeze_vision_encoder": false,
75
+ "train_expert_only": false,
76
+ "optimizer_lr": 2.5e-05,
77
+ "optimizer_betas": [
78
+ 0.9,
79
+ 0.95
80
+ ],
81
+ "optimizer_eps": 1e-08,
82
+ "optimizer_weight_decay": 0.01,
83
+ "optimizer_grad_clip_norm": 1.0,
84
+ "scheduler_warmup_steps": 1000,
85
+ "scheduler_decay_steps": 30000,
86
+ "scheduler_decay_lr": 2.5e-06
87
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f2af1909aa23ef8594441c527e943cd195b444d68e2051fed5c8112ee45b069
3
+ size 7473096344
train_config.json ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "AriRyo/blockpick_gray_03",
4
+ "root": null,
5
+ "episodes": [
6
+ 0,
7
+ 1,
8
+ 2,
9
+ 3,
10
+ 4,
11
+ 5,
12
+ 6,
13
+ 7,
14
+ 8,
15
+ 9,
16
+ 10,
17
+ 11
18
+ ],
19
+ "image_transforms": {
20
+ "enable": false,
21
+ "max_num_transforms": 3,
22
+ "random_order": false,
23
+ "tfs": {
24
+ "brightness": {
25
+ "weight": 1.0,
26
+ "type": "ColorJitter",
27
+ "kwargs": {
28
+ "brightness": [
29
+ 0.8,
30
+ 1.2
31
+ ]
32
+ }
33
+ },
34
+ "contrast": {
35
+ "weight": 1.0,
36
+ "type": "ColorJitter",
37
+ "kwargs": {
38
+ "contrast": [
39
+ 0.8,
40
+ 1.2
41
+ ]
42
+ }
43
+ },
44
+ "saturation": {
45
+ "weight": 1.0,
46
+ "type": "ColorJitter",
47
+ "kwargs": {
48
+ "saturation": [
49
+ 0.5,
50
+ 1.5
51
+ ]
52
+ }
53
+ },
54
+ "hue": {
55
+ "weight": 1.0,
56
+ "type": "ColorJitter",
57
+ "kwargs": {
58
+ "hue": [
59
+ -0.05,
60
+ 0.05
61
+ ]
62
+ }
63
+ },
64
+ "sharpness": {
65
+ "weight": 1.0,
66
+ "type": "SharpnessJitter",
67
+ "kwargs": {
68
+ "sharpness": [
69
+ 0.5,
70
+ 1.5
71
+ ]
72
+ }
73
+ },
74
+ "affine": {
75
+ "weight": 1.0,
76
+ "type": "RandomAffine",
77
+ "kwargs": {
78
+ "degrees": [
79
+ -5.0,
80
+ 5.0
81
+ ],
82
+ "translate": [
83
+ 0.05,
84
+ 0.05
85
+ ]
86
+ }
87
+ }
88
+ }
89
+ },
90
+ "revision": null,
91
+ "use_imagenet_stats": true,
92
+ "video_backend": "torchcodec",
93
+ "streaming": false
94
+ },
95
+ "env": null,
96
+ "policy": {
97
+ "type": "pi05",
98
+ "n_obs_steps": 1,
99
+ "input_features": {
100
+ "observation.state": {
101
+ "type": "STATE",
102
+ "shape": [
103
+ 6
104
+ ]
105
+ },
106
+ "observation.images.above": {
107
+ "type": "VISUAL",
108
+ "shape": [
109
+ 3,
110
+ 480,
111
+ 640
112
+ ]
113
+ },
114
+ "observation.images.side": {
115
+ "type": "VISUAL",
116
+ "shape": [
117
+ 3,
118
+ 480,
119
+ 640
120
+ ]
121
+ }
122
+ },
123
+ "output_features": {
124
+ "action": {
125
+ "type": "ACTION",
126
+ "shape": [
127
+ 6
128
+ ]
129
+ }
130
+ },
131
+ "device": "cuda",
132
+ "use_amp": false,
133
+ "use_peft": false,
134
+ "push_to_hub": true,
135
+ "repo_id": "AriRyo/blockpick_gray_pi05_12",
136
+ "private": null,
137
+ "tags": null,
138
+ "license": null,
139
+ "pretrained_path": "lerobot/pi05_base",
140
+ "paligemma_variant": "gemma_2b",
141
+ "action_expert_variant": "gemma_300m",
142
+ "dtype": "bfloat16",
143
+ "chunk_size": 50,
144
+ "n_action_steps": 50,
145
+ "max_state_dim": 32,
146
+ "max_action_dim": 32,
147
+ "num_inference_steps": 10,
148
+ "time_sampling_beta_alpha": 1.5,
149
+ "time_sampling_beta_beta": 1.0,
150
+ "time_sampling_scale": 0.999,
151
+ "time_sampling_offset": 0.001,
152
+ "min_period": 0.004,
153
+ "max_period": 4.0,
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
+ "VISUAL": "IDENTITY",
163
+ "STATE": "QUANTILES",
164
+ "ACTION": "QUANTILES"
165
+ },
166
+ "gradient_checkpointing": true,
167
+ "compile_model": false,
168
+ "compile_mode": "max-autotune",
169
+ "freeze_vision_encoder": false,
170
+ "train_expert_only": false,
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
+ "output_dir": "outputs/train/blockpick_gray_pi05_12",
184
+ "job_name": "blockpick_gray_pi05_12",
185
+ "resume": false,
186
+ "seed": 1000,
187
+ "num_workers": 4,
188
+ "batch_size": 16,
189
+ "steps": 5000,
190
+ "eval_freq": 20000,
191
+ "log_freq": 200,
192
+ "tolerance_s": 0.0001,
193
+ "save_checkpoint": true,
194
+ "save_freq": 1000,
195
+ "use_policy_training_preset": true,
196
+ "optimizer": {
197
+ "type": "adamw",
198
+ "lr": 2.5e-05,
199
+ "weight_decay": 0.01,
200
+ "grad_clip_norm": 1.0,
201
+ "betas": [
202
+ 0.9,
203
+ 0.95
204
+ ],
205
+ "eps": 1e-08
206
+ },
207
+ "scheduler": {
208
+ "type": "cosine_decay_with_warmup",
209
+ "num_warmup_steps": 1000,
210
+ "num_decay_steps": 30000,
211
+ "peak_lr": 2.5e-05,
212
+ "decay_lr": 2.5e-06
213
+ },
214
+ "eval": {
215
+ "n_episodes": 50,
216
+ "batch_size": 50,
217
+ "use_async_envs": false
218
+ },
219
+ "wandb": {
220
+ "enable": true,
221
+ "disable_artifact": true,
222
+ "project": "lerobot",
223
+ "entity": null,
224
+ "notes": null,
225
+ "run_id": "c9gl176t",
226
+ "mode": null
227
+ },
228
+ "peft": null,
229
+ "use_rabc": false,
230
+ "rabc_progress_path": null,
231
+ "rabc_kappa": 0.01,
232
+ "rabc_epsilon": 1e-06,
233
+ "rabc_head_mode": "sparse",
234
+ "rename_map": {},
235
+ "checkpoint_path": null
236
+ }