Robotics
LeRobot
Safetensors
pi0_fast
globcy commited on
Commit
056d4eb
·
verified ·
1 Parent(s): e01d20e

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 +97 -0
  5. train_config.json +243 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: globcy/libero_subtask_custom_slow
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:e05a500e64ad07f717080c9095ed565c2f84d9e9550bbeb0388c7fe115b0531a
3
+ size 1183430312
config.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 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
+ "observation.images.empty_camera_0": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 224,
32
+ 224
33
+ ]
34
+ }
35
+ },
36
+ "output_features": {
37
+ "action": {
38
+ "type": "ACTION",
39
+ "shape": [
40
+ 7
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "use_peft": true,
47
+ "push_to_hub": true,
48
+ "repo_id": "globcy/pi0_fast_high_level_custom_subtask",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": "/pfss/mlde/workspaces/mlde_wsp_Rohrbach/users/cb14syta/p05_base",
53
+ "paligemma_variant": "gemma_2b",
54
+ "dtype": "bfloat16",
55
+ "max_state_dim": 32,
56
+ "max_action_dim": 32,
57
+ "max_action_tokens": 32,
58
+ "hierarchical": true,
59
+ "use_relative_actions": false,
60
+ "relative_exclude_joints": [
61
+ "gripper"
62
+ ],
63
+ "action_feature_names": [
64
+ "actions"
65
+ ],
66
+ "rtc_config": null,
67
+ "image_resolution": [
68
+ 224,
69
+ 224
70
+ ],
71
+ "empty_cameras": 1,
72
+ "tokenizer_max_length": 200,
73
+ "text_tokenizer_name": "google/paligemma-3b-pt-224",
74
+ "action_tokenizer_name": "lerobot/fast-action-tokenizer",
75
+ "temperature": 0.0,
76
+ "max_decoding_steps": 32,
77
+ "use_kv_cache": true,
78
+ "normalization_mapping": {
79
+ "VISUAL": "IDENTITY",
80
+ "STATE": "MEAN_STD",
81
+ "ACTION": "MEAN_STD"
82
+ },
83
+ "gradient_checkpointing": true,
84
+ "compile_model": false,
85
+ "compile_mode": "max-autotune",
86
+ "optimizer_lr": 0.00025,
87
+ "optimizer_betas": [
88
+ 0.9,
89
+ 0.95
90
+ ],
91
+ "optimizer_eps": 1e-08,
92
+ "optimizer_weight_decay": 0.01,
93
+ "optimizer_grad_clip_norm": 1.0,
94
+ "scheduler_warmup_steps": 1000,
95
+ "scheduler_decay_steps": 30000,
96
+ "scheduler_decay_lr": 2.5e-05
97
+ }
train_config.json ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "globcy/libero_subtask_custom_slow",
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": "pi0_fast",
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
+ "observation.images.empty_camera_0": {
110
+ "type": "VISUAL",
111
+ "shape": [
112
+ 3,
113
+ 224,
114
+ 224
115
+ ]
116
+ }
117
+ },
118
+ "output_features": {
119
+ "action": {
120
+ "type": "ACTION",
121
+ "shape": [
122
+ 7
123
+ ]
124
+ }
125
+ },
126
+ "device": "cuda",
127
+ "use_amp": false,
128
+ "use_peft": true,
129
+ "push_to_hub": true,
130
+ "repo_id": "globcy/pi0_fast_high_level_custom_subtask",
131
+ "private": null,
132
+ "tags": null,
133
+ "license": null,
134
+ "pretrained_path": "/pfss/mlde/workspaces/mlde_wsp_Rohrbach/users/cb14syta/p05_base",
135
+ "paligemma_variant": "gemma_2b",
136
+ "dtype": "bfloat16",
137
+ "max_state_dim": 32,
138
+ "max_action_dim": 32,
139
+ "max_action_tokens": 32,
140
+ "hierarchical": true,
141
+ "use_relative_actions": false,
142
+ "relative_exclude_joints": [
143
+ "gripper"
144
+ ],
145
+ "action_feature_names": [
146
+ "actions"
147
+ ],
148
+ "rtc_config": null,
149
+ "image_resolution": [
150
+ 224,
151
+ 224
152
+ ],
153
+ "empty_cameras": 1,
154
+ "tokenizer_max_length": 200,
155
+ "text_tokenizer_name": "google/paligemma-3b-pt-224",
156
+ "action_tokenizer_name": "lerobot/fast-action-tokenizer",
157
+ "temperature": 0.0,
158
+ "max_decoding_steps": 32,
159
+ "use_kv_cache": true,
160
+ "normalization_mapping": {
161
+ "VISUAL": "IDENTITY",
162
+ "STATE": "MEAN_STD",
163
+ "ACTION": "MEAN_STD"
164
+ },
165
+ "gradient_checkpointing": true,
166
+ "compile_model": false,
167
+ "compile_mode": "max-autotune",
168
+ "optimizer_lr": 0.00025,
169
+ "optimizer_betas": [
170
+ 0.9,
171
+ 0.95
172
+ ],
173
+ "optimizer_eps": 1e-08,
174
+ "optimizer_weight_decay": 0.01,
175
+ "optimizer_grad_clip_norm": 1.0,
176
+ "scheduler_warmup_steps": 1000,
177
+ "scheduler_decay_steps": 30000,
178
+ "scheduler_decay_lr": 2.5e-05
179
+ },
180
+ "output_dir": "outputs/pi0_fast_high_level_custom_subtask",
181
+ "job_name": "pi0_fast_high_level_custom_subtask",
182
+ "resume": false,
183
+ "seed": 1000,
184
+ "cudnn_deterministic": false,
185
+ "num_workers": 4,
186
+ "batch_size": 32,
187
+ "steps": 30000,
188
+ "eval_freq": 20000,
189
+ "log_freq": 200,
190
+ "tolerance_s": 0.0001,
191
+ "save_checkpoint": true,
192
+ "save_freq": 5000,
193
+ "use_policy_training_preset": true,
194
+ "optimizer": {
195
+ "type": "adamw",
196
+ "lr": 0.00025,
197
+ "weight_decay": 0.01,
198
+ "grad_clip_norm": 1.0,
199
+ "betas": [
200
+ 0.9,
201
+ 0.95
202
+ ],
203
+ "eps": 1e-08
204
+ },
205
+ "scheduler": {
206
+ "type": "cosine_decay_with_warmup",
207
+ "num_warmup_steps": 1000,
208
+ "num_decay_steps": 30000,
209
+ "peak_lr": 0.00025,
210
+ "decay_lr": 2.5e-05
211
+ },
212
+ "eval": {
213
+ "n_episodes": 50,
214
+ "batch_size": 22,
215
+ "use_async_envs": true
216
+ },
217
+ "wandb": {
218
+ "enable": true,
219
+ "disable_artifact": false,
220
+ "project": "lerobot",
221
+ "entity": null,
222
+ "notes": null,
223
+ "run_id": "x1xskda4",
224
+ "mode": null,
225
+ "add_tags": true
226
+ },
227
+ "peft": {
228
+ "target_modules": null,
229
+ "full_training_modules": null,
230
+ "method_type": "LORA",
231
+ "init_type": null,
232
+ "r": 16,
233
+ "lora_alpha": 32,
234
+ "lora_dropout": 0.1
235
+ },
236
+ "use_rabc": false,
237
+ "rabc_progress_path": null,
238
+ "rabc_kappa": 0.01,
239
+ "rabc_epsilon": 1e-06,
240
+ "rabc_head_mode": "sparse",
241
+ "rename_map": {},
242
+ "checkpoint_path": null
243
+ }