Gavin1411 commited on
Commit
15d1a32
·
verified ·
1 Parent(s): 29bd606

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 +273 -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
+ - 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
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": "lerobot/pi05_base",
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:12eb3b98c04791dfde7b6b4df727958df15b1be762658b52181eeaeab6de76e0
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/task30_train",
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
+ }
train_config.json ADDED
@@ -0,0 +1,273 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "HuggingFaceVLA/libero",
4
+ "root": null,
5
+ "episodes": [
6
+ 30,
7
+ 70,
8
+ 110,
9
+ 150,
10
+ 190,
11
+ 230,
12
+ 270,
13
+ 310,
14
+ 350,
15
+ 390,
16
+ 430,
17
+ 470,
18
+ 510,
19
+ 550,
20
+ 590,
21
+ 630,
22
+ 670,
23
+ 710,
24
+ 750,
25
+ 790,
26
+ 830,
27
+ 870,
28
+ 910,
29
+ 950,
30
+ 990,
31
+ 1030,
32
+ 1070,
33
+ 1110,
34
+ 1150,
35
+ 1190,
36
+ 1230,
37
+ 1270,
38
+ 1310,
39
+ 1350,
40
+ 1390,
41
+ 1430,
42
+ 1470,
43
+ 1510,
44
+ 1550,
45
+ 1590,
46
+ 1630,
47
+ 1670
48
+ ],
49
+ "image_transforms": {
50
+ "enable": false,
51
+ "max_num_transforms": 3,
52
+ "random_order": false,
53
+ "tfs": {
54
+ "brightness": {
55
+ "weight": 1.0,
56
+ "type": "ColorJitter",
57
+ "kwargs": {
58
+ "brightness": [
59
+ 0.8,
60
+ 1.2
61
+ ]
62
+ }
63
+ },
64
+ "contrast": {
65
+ "weight": 1.0,
66
+ "type": "ColorJitter",
67
+ "kwargs": {
68
+ "contrast": [
69
+ 0.8,
70
+ 1.2
71
+ ]
72
+ }
73
+ },
74
+ "saturation": {
75
+ "weight": 1.0,
76
+ "type": "ColorJitter",
77
+ "kwargs": {
78
+ "saturation": [
79
+ 0.5,
80
+ 1.5
81
+ ]
82
+ }
83
+ },
84
+ "hue": {
85
+ "weight": 1.0,
86
+ "type": "ColorJitter",
87
+ "kwargs": {
88
+ "hue": [
89
+ -0.05,
90
+ 0.05
91
+ ]
92
+ }
93
+ },
94
+ "sharpness": {
95
+ "weight": 1.0,
96
+ "type": "SharpnessJitter",
97
+ "kwargs": {
98
+ "sharpness": [
99
+ 0.5,
100
+ 1.5
101
+ ]
102
+ }
103
+ },
104
+ "affine": {
105
+ "weight": 1.0,
106
+ "type": "RandomAffine",
107
+ "kwargs": {
108
+ "degrees": [
109
+ -5.0,
110
+ 5.0
111
+ ],
112
+ "translate": [
113
+ 0.05,
114
+ 0.05
115
+ ]
116
+ }
117
+ }
118
+ }
119
+ },
120
+ "revision": null,
121
+ "use_imagenet_stats": true,
122
+ "video_backend": "torchcodec",
123
+ "streaming": false
124
+ },
125
+ "env": null,
126
+ "policy": {
127
+ "type": "pi05",
128
+ "n_obs_steps": 1,
129
+ "input_features": {
130
+ "observation.images.image": {
131
+ "type": "VISUAL",
132
+ "shape": [
133
+ 3,
134
+ 256,
135
+ 256
136
+ ]
137
+ },
138
+ "observation.images.image2": {
139
+ "type": "VISUAL",
140
+ "shape": [
141
+ 3,
142
+ 256,
143
+ 256
144
+ ]
145
+ },
146
+ "observation.state": {
147
+ "type": "STATE",
148
+ "shape": [
149
+ 8
150
+ ]
151
+ }
152
+ },
153
+ "output_features": {
154
+ "action": {
155
+ "type": "ACTION",
156
+ "shape": [
157
+ 7
158
+ ]
159
+ }
160
+ },
161
+ "device": "cuda",
162
+ "use_amp": false,
163
+ "use_peft": true,
164
+ "push_to_hub": true,
165
+ "repo_id": "Gavin1411/task30_train",
166
+ "private": null,
167
+ "tags": null,
168
+ "license": null,
169
+ "pretrained_path": "lerobot/pi05_base",
170
+ "paligemma_variant": "gemma_2b",
171
+ "action_expert_variant": "gemma_300m",
172
+ "dtype": "bfloat16",
173
+ "chunk_size": 50,
174
+ "n_action_steps": 50,
175
+ "max_state_dim": 32,
176
+ "max_action_dim": 32,
177
+ "num_inference_steps": 10,
178
+ "time_sampling_beta_alpha": 1.5,
179
+ "time_sampling_beta_beta": 1.0,
180
+ "time_sampling_scale": 0.999,
181
+ "time_sampling_offset": 0.001,
182
+ "min_period": 0.004,
183
+ "max_period": 4.0,
184
+ "rtc_config": null,
185
+ "image_resolution": [
186
+ 224,
187
+ 224
188
+ ],
189
+ "empty_cameras": 0,
190
+ "tokenizer_max_length": 200,
191
+ "normalization_mapping": {
192
+ "VISUAL": "IDENTITY",
193
+ "STATE": "QUANTILES",
194
+ "ACTION": "QUANTILES"
195
+ },
196
+ "gradient_checkpointing": true,
197
+ "compile_model": false,
198
+ "compile_mode": "max-autotune",
199
+ "freeze_vision_encoder": false,
200
+ "train_expert_only": false,
201
+ "optimizer_lr": 2.5e-05,
202
+ "optimizer_betas": [
203
+ 0.9,
204
+ 0.95
205
+ ],
206
+ "optimizer_eps": 1e-08,
207
+ "optimizer_weight_decay": 0.01,
208
+ "optimizer_grad_clip_norm": 1.0,
209
+ "scheduler_warmup_steps": 1000,
210
+ "scheduler_decay_steps": 30000,
211
+ "scheduler_decay_lr": 2.5e-06
212
+ },
213
+ "output_dir": "/data/taojiachen/Continuous_VLA/exp/er/spatial/seed42/task30/train",
214
+ "job_name": "pi05",
215
+ "resume": false,
216
+ "seed": 42,
217
+ "cudnn_deterministic": false,
218
+ "num_workers": 4,
219
+ "batch_size": 8,
220
+ "steps": 10000,
221
+ "eval_freq": 20000,
222
+ "log_freq": 100,
223
+ "tolerance_s": 0.0001,
224
+ "save_checkpoint": true,
225
+ "save_freq": 5000,
226
+ "use_policy_training_preset": true,
227
+ "optimizer": {
228
+ "type": "adamw",
229
+ "lr": 2.5e-05,
230
+ "weight_decay": 0.01,
231
+ "grad_clip_norm": 1.0,
232
+ "betas": [
233
+ 0.9,
234
+ 0.95
235
+ ],
236
+ "eps": 1e-08
237
+ },
238
+ "scheduler": {
239
+ "type": "cosine_decay_with_warmup",
240
+ "num_warmup_steps": 1000,
241
+ "num_decay_steps": 30000,
242
+ "peak_lr": 2.5e-05,
243
+ "decay_lr": 2.5e-06
244
+ },
245
+ "eval": {
246
+ "n_episodes": 50,
247
+ "batch_size": 50,
248
+ "use_async_envs": false
249
+ },
250
+ "wandb": {
251
+ "enable": false,
252
+ "disable_artifact": false,
253
+ "project": "lerobot",
254
+ "entity": null,
255
+ "notes": null,
256
+ "run_id": null,
257
+ "mode": null
258
+ },
259
+ "peft": {
260
+ "target_modules": null,
261
+ "full_training_modules": null,
262
+ "method_type": "LORA",
263
+ "init_type": null,
264
+ "r": 16
265
+ },
266
+ "use_rabc": false,
267
+ "rabc_progress_path": null,
268
+ "rabc_kappa": 0.01,
269
+ "rabc_epsilon": 1e-06,
270
+ "rabc_head_mode": "sparse",
271
+ "rename_map": {},
272
+ "checkpoint_path": null
273
+ }