Robotics
LeRobot
Safetensors
pi0_fast
globcy commited on
Commit
21012d8
·
verified ·
1 Parent(s): e734866

Upload policy weights, train config and readme

Browse files
Files changed (5) hide show
  1. README.md +62 -0
  2. adapter_config.json +54 -0
  3. adapter_model.safetensors +3 -0
  4. config.json +90 -0
  5. train_config.json +244 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: globcy/libero_dir_trace_90
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi0_fast
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - pi0_fast
9
+ - robotics
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for pi0_fast
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ _Model type not recognized — please update this template._
19
+
20
+
21
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
22
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
23
+
24
+ ---
25
+
26
+ ## How to Get Started with the Model
27
+
28
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
29
+ Below is the short version on how to train and run inference/eval:
30
+
31
+ ### Train from scratch
32
+
33
+ ```bash
34
+ lerobot-train \
35
+ --dataset.repo_id=${HF_USER}/<dataset> \
36
+ --policy.type=act \
37
+ --output_dir=outputs/train/<desired_policy_repo_id> \
38
+ --job_name=lerobot_training \
39
+ --policy.device=cuda \
40
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
41
+ --wandb.enable=true
42
+ ```
43
+
44
+ _Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
45
+
46
+ ### Evaluate the policy/run inference
47
+
48
+ ```bash
49
+ lerobot-record \
50
+ --robot.type=so100_follower \
51
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
52
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
53
+ --episodes=10
54
+ ```
55
+
56
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
57
+
58
+ ---
59
+
60
+ ## Model Details
61
+
62
+ - **License:** apache-2.0
adapter_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "PI0FastPolicy",
7
+ "parent_library": "lerobot.policies.pi0_fast.modeling_pi0_fast"
8
+ },
9
+ "base_model_name_or_path": "/pfss/mlde/workspaces/mlde_wsp_Rohrbach/users/cb14syta/p05_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": 32,
23
+ "lora_bias": false,
24
+ "lora_dropout": 0.1,
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": [
35
+ "gate_proj",
36
+ "v_proj",
37
+ "o_proj",
38
+ "k_proj",
39
+ "linear",
40
+ "fc2",
41
+ "up_proj",
42
+ "fc1",
43
+ "lm_head",
44
+ "out_proj",
45
+ "down_proj",
46
+ "q_proj"
47
+ ],
48
+ "target_parameters": null,
49
+ "task_type": null,
50
+ "trainable_token_indices": null,
51
+ "use_dora": false,
52
+ "use_qalora": false,
53
+ "use_rslora": false
54
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:740428141dbb6c2afc8c460ea711138abb112ed3d11f3cf690d4abde60564b90
3
+ size 1183430312
config.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi0_fast",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 224,
10
+ 224
11
+ ]
12
+ },
13
+ "observation.images.image2": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 224,
18
+ 224
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": "globcy/pi0fast_planner_dir_only_90_bottom_up",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": "/pfss/mlde/workspaces/mlde_wsp_Rohrbach/users/cb14syta/p05_base",
45
+ "paligemma_variant": "gemma_2b",
46
+ "dtype": "bfloat16",
47
+ "max_state_dim": 32,
48
+ "max_action_dim": 32,
49
+ "max_action_tokens": 32,
50
+ "hierarchical": true,
51
+ "dynamic_action_chunking": "move",
52
+ "use_relative_actions": false,
53
+ "relative_exclude_joints": [
54
+ "gripper"
55
+ ],
56
+ "action_feature_names": [
57
+ "actions"
58
+ ],
59
+ "rtc_config": null,
60
+ "image_resolution": [
61
+ 224,
62
+ 224
63
+ ],
64
+ "empty_cameras": 0,
65
+ "tokenizer_max_length": 200,
66
+ "text_tokenizer_name": "google/paligemma-3b-pt-224",
67
+ "action_tokenizer_name": "lerobot/fast-action-tokenizer",
68
+ "temperature": 0.0,
69
+ "max_decoding_steps": 64,
70
+ "use_kv_cache": true,
71
+ "normalization_mapping": {
72
+ "VISUAL": "IDENTITY",
73
+ "STATE": "MEAN_STD",
74
+ "ACTION": "MEAN_STD"
75
+ },
76
+ "gradient_checkpointing": true,
77
+ "compile_model": false,
78
+ "compile_mode": "max-autotune",
79
+ "optimizer_lr": 0.00025,
80
+ "optimizer_betas": [
81
+ 0.9,
82
+ 0.95
83
+ ],
84
+ "optimizer_eps": 1e-08,
85
+ "optimizer_weight_decay": 0.01,
86
+ "optimizer_grad_clip_norm": 1.0,
87
+ "scheduler_warmup_steps": 1000,
88
+ "scheduler_decay_steps": 30000,
89
+ "scheduler_decay_lr": 2.5e-06
90
+ }
train_config.json ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "globcy/libero_dir_trace_90",
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
+ "return_uint8": false,
81
+ "streaming": false
82
+ },
83
+ "env": null,
84
+ "policy": {
85
+ "type": "pi0_fast",
86
+ "n_obs_steps": 1,
87
+ "input_features": {
88
+ "observation.images.image": {
89
+ "type": "VISUAL",
90
+ "shape": [
91
+ 3,
92
+ 224,
93
+ 224
94
+ ]
95
+ },
96
+ "observation.images.image2": {
97
+ "type": "VISUAL",
98
+ "shape": [
99
+ 3,
100
+ 224,
101
+ 224
102
+ ]
103
+ },
104
+ "observation.state": {
105
+ "type": "STATE",
106
+ "shape": [
107
+ 8
108
+ ]
109
+ }
110
+ },
111
+ "output_features": {
112
+ "action": {
113
+ "type": "ACTION",
114
+ "shape": [
115
+ 7
116
+ ]
117
+ }
118
+ },
119
+ "device": "cuda",
120
+ "use_amp": false,
121
+ "use_peft": true,
122
+ "push_to_hub": true,
123
+ "repo_id": "globcy/pi0fast_planner_dir_only_90_bottom_up",
124
+ "private": null,
125
+ "tags": null,
126
+ "license": null,
127
+ "pretrained_path": "/pfss/mlde/workspaces/mlde_wsp_Rohrbach/users/cb14syta/p05_base",
128
+ "paligemma_variant": "gemma_2b",
129
+ "dtype": "bfloat16",
130
+ "max_state_dim": 32,
131
+ "max_action_dim": 32,
132
+ "max_action_tokens": 32,
133
+ "hierarchical": true,
134
+ "dynamic_action_chunking": "move",
135
+ "use_relative_actions": false,
136
+ "relative_exclude_joints": [
137
+ "gripper"
138
+ ],
139
+ "action_feature_names": [
140
+ "actions"
141
+ ],
142
+ "rtc_config": null,
143
+ "image_resolution": [
144
+ 224,
145
+ 224
146
+ ],
147
+ "empty_cameras": 0,
148
+ "tokenizer_max_length": 200,
149
+ "text_tokenizer_name": "google/paligemma-3b-pt-224",
150
+ "action_tokenizer_name": "lerobot/fast-action-tokenizer",
151
+ "temperature": 0.0,
152
+ "max_decoding_steps": 64,
153
+ "use_kv_cache": true,
154
+ "normalization_mapping": {
155
+ "VISUAL": "IDENTITY",
156
+ "STATE": "MEAN_STD",
157
+ "ACTION": "MEAN_STD"
158
+ },
159
+ "gradient_checkpointing": true,
160
+ "compile_model": false,
161
+ "compile_mode": "max-autotune",
162
+ "optimizer_lr": 0.00025,
163
+ "optimizer_betas": [
164
+ 0.9,
165
+ 0.95
166
+ ],
167
+ "optimizer_eps": 1e-08,
168
+ "optimizer_weight_decay": 0.01,
169
+ "optimizer_grad_clip_norm": 1.0,
170
+ "scheduler_warmup_steps": 1000,
171
+ "scheduler_decay_steps": 30000,
172
+ "scheduler_decay_lr": 2.5e-06
173
+ },
174
+ "output_dir": "outputs_new/pi0fast_planner_dir_only_90_bottom_up",
175
+ "job_name": "pi0fast_planner_dir_only_90_bottom_up",
176
+ "resume": false,
177
+ "seed": 1000,
178
+ "cudnn_deterministic": false,
179
+ "num_workers": 4,
180
+ "batch_size": 16,
181
+ "prefetch_factor": 4,
182
+ "persistent_workers": true,
183
+ "steps": 30000,
184
+ "eval_freq": 20000,
185
+ "log_freq": 200,
186
+ "tolerance_s": 0.0001,
187
+ "save_checkpoint": true,
188
+ "save_freq": 10000,
189
+ "use_policy_training_preset": true,
190
+ "optimizer": {
191
+ "type": "adamw",
192
+ "lr": 0.00025,
193
+ "weight_decay": 0.01,
194
+ "grad_clip_norm": 1.0,
195
+ "betas": [
196
+ 0.9,
197
+ 0.95
198
+ ],
199
+ "eps": 1e-08
200
+ },
201
+ "scheduler": {
202
+ "type": "cosine_decay_with_warmup",
203
+ "num_warmup_steps": 1000,
204
+ "num_decay_steps": 30000,
205
+ "peak_lr": 0.00025,
206
+ "decay_lr": 2.5e-06
207
+ },
208
+ "eval": {
209
+ "n_episodes": 50,
210
+ "batch_size": 22,
211
+ "use_async_envs": true
212
+ },
213
+ "wandb": {
214
+ "enable": false,
215
+ "disable_artifact": false,
216
+ "project": "lerobot",
217
+ "entity": null,
218
+ "notes": null,
219
+ "run_id": null,
220
+ "mode": null,
221
+ "add_tags": true
222
+ },
223
+ "peft": {
224
+ "target_modules": null,
225
+ "full_training_modules": null,
226
+ "method_type": "LORA",
227
+ "init_type": null,
228
+ "r": 16,
229
+ "lora_alpha": 32,
230
+ "lora_dropout": 0.1
231
+ },
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
+ "bottom_up": true,
240
+ "bottom_up_chunk_size": 25,
241
+ "reader_chain_close": 0,
242
+ "reader_chain_dir": false,
243
+ "is_planner": true
244
+ }