Gavin1411 commited on
Commit
c7ff445
·
verified ·
1 Parent(s): 48d1b6e

Upload policy weights, train config and readme

Browse files
Files changed (5) hide show
  1. README.md +70 -0
  2. adapter_config.json +41 -0
  3. adapter_model.safetensors +3 -0
  4. config.json +87 -0
  5. train_config.json +280 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - 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
adapter_config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "PI05Policy",
7
+ "parent_library": "lerobot.policies.pi05.modeling_pi05"
8
+ },
9
+ "base_model_name_or_path": "/data/taojiachen/Continuous_VLA/exp/er/spatial/seed42/task30/train/checkpoints/last/pretrained_model",
10
+ "bias": "none",
11
+ "corda_config": null,
12
+ "ensure_weight_tying": false,
13
+ "eva_config": null,
14
+ "exclude_modules": null,
15
+ "fan_in_fan_out": false,
16
+ "inference_mode": true,
17
+ "init_lora_weights": true,
18
+ "layer_replication": null,
19
+ "layers_pattern": null,
20
+ "layers_to_transform": null,
21
+ "loftq_config": {},
22
+ "lora_alpha": 8,
23
+ "lora_bias": false,
24
+ "lora_dropout": 0.0,
25
+ "megatron_config": null,
26
+ "megatron_core": "megatron.core",
27
+ "modules_to_save": [],
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.18.1",
30
+ "qalora_group_size": 16,
31
+ "r": 16,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": "(.*\\.gemma_expert\\..*\\.self_attn\\.(q|v)_proj|model\\.(state_proj|action_in_proj|action_out_proj|action_time_mlp_in|action_time_mlp_out))",
35
+ "target_parameters": null,
36
+ "task_type": null,
37
+ "trainable_token_indices": null,
38
+ "use_dora": false,
39
+ "use_qalora": false,
40
+ "use_rslora": false
41
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e43064f61aaa65aa23013f153ac3f6b5941483dffe39ffb53cdbad1bc7c8094
3
+ size 5161624
config.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "use_peft": true,
39
+ "push_to_hub": true,
40
+ "repo_id": "Gavin1411/task31_train",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": "/data/taojiachen/Continuous_VLA/exp/er/spatial/seed42/task30/train/checkpoints/last/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
+ "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
+ }
train_config.json ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "HuggingFaceVLA/libero",
4
+ "root": null,
5
+ "episodes": [
6
+ 31,
7
+ 70,
8
+ 71,
9
+ 111,
10
+ 151,
11
+ 191,
12
+ 231,
13
+ 271,
14
+ 310,
15
+ 311,
16
+ 350,
17
+ 351,
18
+ 391,
19
+ 431,
20
+ 471,
21
+ 511,
22
+ 551,
23
+ 590,
24
+ 591,
25
+ 630,
26
+ 631,
27
+ 671,
28
+ 710,
29
+ 711,
30
+ 751,
31
+ 791,
32
+ 831,
33
+ 871,
34
+ 911,
35
+ 951,
36
+ 991,
37
+ 1031,
38
+ 1071,
39
+ 1111,
40
+ 1151,
41
+ 1191,
42
+ 1231,
43
+ 1271,
44
+ 1311,
45
+ 1351,
46
+ 1391,
47
+ 1431,
48
+ 1471,
49
+ 1511,
50
+ 1551,
51
+ 1591,
52
+ 1630,
53
+ 1631,
54
+ 1671
55
+ ],
56
+ "image_transforms": {
57
+ "enable": false,
58
+ "max_num_transforms": 3,
59
+ "random_order": false,
60
+ "tfs": {
61
+ "brightness": {
62
+ "weight": 1.0,
63
+ "type": "ColorJitter",
64
+ "kwargs": {
65
+ "brightness": [
66
+ 0.8,
67
+ 1.2
68
+ ]
69
+ }
70
+ },
71
+ "contrast": {
72
+ "weight": 1.0,
73
+ "type": "ColorJitter",
74
+ "kwargs": {
75
+ "contrast": [
76
+ 0.8,
77
+ 1.2
78
+ ]
79
+ }
80
+ },
81
+ "saturation": {
82
+ "weight": 1.0,
83
+ "type": "ColorJitter",
84
+ "kwargs": {
85
+ "saturation": [
86
+ 0.5,
87
+ 1.5
88
+ ]
89
+ }
90
+ },
91
+ "hue": {
92
+ "weight": 1.0,
93
+ "type": "ColorJitter",
94
+ "kwargs": {
95
+ "hue": [
96
+ -0.05,
97
+ 0.05
98
+ ]
99
+ }
100
+ },
101
+ "sharpness": {
102
+ "weight": 1.0,
103
+ "type": "SharpnessJitter",
104
+ "kwargs": {
105
+ "sharpness": [
106
+ 0.5,
107
+ 1.5
108
+ ]
109
+ }
110
+ },
111
+ "affine": {
112
+ "weight": 1.0,
113
+ "type": "RandomAffine",
114
+ "kwargs": {
115
+ "degrees": [
116
+ -5.0,
117
+ 5.0
118
+ ],
119
+ "translate": [
120
+ 0.05,
121
+ 0.05
122
+ ]
123
+ }
124
+ }
125
+ }
126
+ },
127
+ "revision": null,
128
+ "use_imagenet_stats": true,
129
+ "video_backend": "torchcodec",
130
+ "streaming": false
131
+ },
132
+ "env": null,
133
+ "policy": {
134
+ "type": "pi05",
135
+ "n_obs_steps": 1,
136
+ "input_features": {
137
+ "observation.images.image": {
138
+ "type": "VISUAL",
139
+ "shape": [
140
+ 3,
141
+ 256,
142
+ 256
143
+ ]
144
+ },
145
+ "observation.images.image2": {
146
+ "type": "VISUAL",
147
+ "shape": [
148
+ 3,
149
+ 256,
150
+ 256
151
+ ]
152
+ },
153
+ "observation.state": {
154
+ "type": "STATE",
155
+ "shape": [
156
+ 8
157
+ ]
158
+ }
159
+ },
160
+ "output_features": {
161
+ "action": {
162
+ "type": "ACTION",
163
+ "shape": [
164
+ 7
165
+ ]
166
+ }
167
+ },
168
+ "device": "cuda",
169
+ "use_amp": false,
170
+ "use_peft": true,
171
+ "push_to_hub": true,
172
+ "repo_id": "Gavin1411/task31_train",
173
+ "private": null,
174
+ "tags": null,
175
+ "license": null,
176
+ "pretrained_path": "/data/taojiachen/Continuous_VLA/exp/er/spatial/seed42/task30/train/checkpoints/last/pretrained_model",
177
+ "paligemma_variant": "gemma_2b",
178
+ "action_expert_variant": "gemma_300m",
179
+ "dtype": "bfloat16",
180
+ "chunk_size": 50,
181
+ "n_action_steps": 50,
182
+ "max_state_dim": 32,
183
+ "max_action_dim": 32,
184
+ "num_inference_steps": 10,
185
+ "time_sampling_beta_alpha": 1.5,
186
+ "time_sampling_beta_beta": 1.0,
187
+ "time_sampling_scale": 0.999,
188
+ "time_sampling_offset": 0.001,
189
+ "min_period": 0.004,
190
+ "max_period": 4.0,
191
+ "rtc_config": null,
192
+ "image_resolution": [
193
+ 224,
194
+ 224
195
+ ],
196
+ "empty_cameras": 0,
197
+ "tokenizer_max_length": 200,
198
+ "normalization_mapping": {
199
+ "VISUAL": "IDENTITY",
200
+ "STATE": "QUANTILES",
201
+ "ACTION": "QUANTILES"
202
+ },
203
+ "gradient_checkpointing": true,
204
+ "compile_model": false,
205
+ "compile_mode": "max-autotune",
206
+ "freeze_vision_encoder": false,
207
+ "train_expert_only": false,
208
+ "optimizer_lr": 2.5e-05,
209
+ "optimizer_betas": [
210
+ 0.9,
211
+ 0.95
212
+ ],
213
+ "optimizer_eps": 1e-08,
214
+ "optimizer_weight_decay": 0.01,
215
+ "optimizer_grad_clip_norm": 1.0,
216
+ "scheduler_warmup_steps": 1000,
217
+ "scheduler_decay_steps": 30000,
218
+ "scheduler_decay_lr": 2.5e-06
219
+ },
220
+ "output_dir": "/data/taojiachen/Continuous_VLA/exp/er/spatial/seed42/task31/train",
221
+ "job_name": "pi05",
222
+ "resume": false,
223
+ "seed": 42,
224
+ "cudnn_deterministic": false,
225
+ "num_workers": 4,
226
+ "batch_size": 8,
227
+ "steps": 10000,
228
+ "eval_freq": 20000,
229
+ "log_freq": 100,
230
+ "tolerance_s": 0.0001,
231
+ "save_checkpoint": true,
232
+ "save_freq": 5000,
233
+ "use_policy_training_preset": true,
234
+ "optimizer": {
235
+ "type": "adamw",
236
+ "lr": 2.5e-05,
237
+ "weight_decay": 0.01,
238
+ "grad_clip_norm": 1.0,
239
+ "betas": [
240
+ 0.9,
241
+ 0.95
242
+ ],
243
+ "eps": 1e-08
244
+ },
245
+ "scheduler": {
246
+ "type": "cosine_decay_with_warmup",
247
+ "num_warmup_steps": 1000,
248
+ "num_decay_steps": 30000,
249
+ "peak_lr": 2.5e-05,
250
+ "decay_lr": 2.5e-06
251
+ },
252
+ "eval": {
253
+ "n_episodes": 50,
254
+ "batch_size": 50,
255
+ "use_async_envs": false
256
+ },
257
+ "wandb": {
258
+ "enable": false,
259
+ "disable_artifact": false,
260
+ "project": "lerobot",
261
+ "entity": null,
262
+ "notes": null,
263
+ "run_id": null,
264
+ "mode": null
265
+ },
266
+ "peft": {
267
+ "target_modules": null,
268
+ "full_training_modules": null,
269
+ "method_type": "LORA",
270
+ "init_type": null,
271
+ "r": 16
272
+ },
273
+ "use_rabc": false,
274
+ "rabc_progress_path": null,
275
+ "rabc_kappa": 0.01,
276
+ "rabc_epsilon": 1e-06,
277
+ "rabc_head_mode": "sparse",
278
+ "rename_map": {},
279
+ "checkpoint_path": null
280
+ }