tailong-wu commited on
Commit
a888ff7
·
verified ·
1 Parent(s): f07982a

Upload policy weights, train config and readme

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