Robotics
LeRobot
Safetensors
pi0_fast
globcy commited on
Commit
cd4af70
·
verified ·
1 Parent(s): 5ab0a91

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