Robotics
LeRobot
Safetensors
pi0fast
antwoor commited on
Commit
76ab448
·
verified ·
1 Parent(s): 9cc8166

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +83 -0
  3. model.safetensors +3 -0
  4. train_config.json +268 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: antwoor/collect_with_dif_tsks_degrees
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi0fast
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - pi0fast
10
+ - robotics
11
+ ---
12
+
13
+ # Model Card for pi0fast
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ [Pi0-Fast](https://huggingface.co/papers/2501.09747) is a variant of Pi0 that uses a new tokenization method called FAST, which enables training of an autoregressive vision-language-action policy for high-frequency robotic tasks with improved performance and reduced training time.
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
config.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi0fast",
3
+ "n_obs_steps": 1,
4
+ "normalization_mapping": {
5
+ "VISUAL": "IDENTITY",
6
+ "STATE": "MEAN_STD",
7
+ "ACTION": "MEAN_STD"
8
+ },
9
+ "input_features": {
10
+ "observation.state": {
11
+ "type": "STATE",
12
+ "shape": [
13
+ 7
14
+ ]
15
+ },
16
+ "observation.images.camera_1": {
17
+ "type": "VISUAL",
18
+ "shape": [
19
+ 3,
20
+ 480,
21
+ 640
22
+ ]
23
+ },
24
+ "observation.images.camera_2": {
25
+ "type": "VISUAL",
26
+ "shape": [
27
+ 3,
28
+ 480,
29
+ 640
30
+ ]
31
+ }
32
+ },
33
+ "output_features": {
34
+ "action": {
35
+ "type": "ACTION",
36
+ "shape": [
37
+ 7
38
+ ]
39
+ }
40
+ },
41
+ "device": "cuda",
42
+ "use_amp": false,
43
+ "push_to_hub": true,
44
+ "repo_id": "antwoor/based_pi0_diff",
45
+ "private": null,
46
+ "tags": null,
47
+ "license": null,
48
+ "chunk_size": 10,
49
+ "n_action_steps": 5,
50
+ "max_state_dim": 32,
51
+ "max_action_dim": 32,
52
+ "resize_imgs_with_padding": [
53
+ 224,
54
+ 224
55
+ ],
56
+ "interpolate_like_pi": false,
57
+ "empty_cameras": 0,
58
+ "adapt_to_pi_aloha": false,
59
+ "use_delta_joint_actions_aloha": false,
60
+ "tokenizer_max_length": 48,
61
+ "proj_width": 1024,
62
+ "max_decoding_steps": 256,
63
+ "fast_skip_tokens": 128,
64
+ "max_input_seq_len": 256,
65
+ "use_cache": true,
66
+ "freeze_vision_encoder": true,
67
+ "freeze_lm_head": true,
68
+ "optimizer_lr": 0.0001,
69
+ "optimizer_betas": [
70
+ 0.9,
71
+ 0.95
72
+ ],
73
+ "optimizer_eps": 1e-08,
74
+ "optimizer_weight_decay": 1e-05,
75
+ "scheduler_warmup_steps": 1000,
76
+ "scheduler_decay_steps": 30000,
77
+ "scheduler_decay_lr": 2.5e-06,
78
+ "checkpoint_path": null,
79
+ "padding_side": "right",
80
+ "precision": "bfloat16",
81
+ "grad_clip_norm": 1,
82
+ "relaxed_action_decoding": true
83
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b387c535a79f85cb78fe70627e0759520a09f3d45d7d1b89b8491e36cd1889a0
3
+ size 5846765784
train_config.json ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "antwoor/collect_with_dif_tsks_degrees",
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
+ }
62
+ },
63
+ "revision": null,
64
+ "use_imagenet_stats": true,
65
+ "video_backend": "torchcodec"
66
+ },
67
+ "env": {
68
+ "type": "mcx",
69
+ "task": "pick all objects and place it in the box",
70
+ "fps": 30,
71
+ "features": {
72
+ "action": {
73
+ "type": "ACTION",
74
+ "shape": [
75
+ 7
76
+ ]
77
+ },
78
+ "pixels": {
79
+ "type": "VISUAL",
80
+ "shape": [
81
+ 480,
82
+ 640,
83
+ 3
84
+ ]
85
+ },
86
+ "agent_pos": {
87
+ "type": "STATE",
88
+ "shape": [
89
+ 7
90
+ ]
91
+ }
92
+ },
93
+ "features_map": {
94
+ "action": "action",
95
+ "agent_pos": "observation.state",
96
+ "pixels": "observation.image"
97
+ },
98
+ "ip": "192.168.56.101",
99
+ "obs_type": "pixels_agent_pos",
100
+ "action_mean": [
101
+ 0.0,
102
+ 0.0,
103
+ 0.0,
104
+ 0.0,
105
+ 0.0,
106
+ 0.0,
107
+ 0.0
108
+ ],
109
+ "action_std": [
110
+ 1.0,
111
+ 1.0,
112
+ 1.0,
113
+ 1.0,
114
+ 1.0,
115
+ 1.0,
116
+ 1.0
117
+ ],
118
+ "agent_pos_mean": [
119
+ 0.0,
120
+ 0.0,
121
+ 0.0,
122
+ 0.0,
123
+ 0.0,
124
+ 0.0,
125
+ 0.0
126
+ ],
127
+ "agent_pos_std": [
128
+ 1.0,
129
+ 1.0,
130
+ 1.0,
131
+ 1.0,
132
+ 1.0,
133
+ 1.0,
134
+ 1.0
135
+ ],
136
+ "episode_length": 30,
137
+ "render_mode": "rgb_array",
138
+ "visualization_width": 480,
139
+ "visualization_height": 640
140
+ },
141
+ "policy": {
142
+ "type": "pi0fast",
143
+ "n_obs_steps": 1,
144
+ "normalization_mapping": {
145
+ "VISUAL": "IDENTITY",
146
+ "STATE": "MEAN_STD",
147
+ "ACTION": "MEAN_STD"
148
+ },
149
+ "input_features": {
150
+ "observation.state": {
151
+ "type": "STATE",
152
+ "shape": [
153
+ 7
154
+ ]
155
+ },
156
+ "observation.images.camera_1": {
157
+ "type": "VISUAL",
158
+ "shape": [
159
+ 3,
160
+ 480,
161
+ 640
162
+ ]
163
+ },
164
+ "observation.images.camera_2": {
165
+ "type": "VISUAL",
166
+ "shape": [
167
+ 3,
168
+ 480,
169
+ 640
170
+ ]
171
+ }
172
+ },
173
+ "output_features": {
174
+ "action": {
175
+ "type": "ACTION",
176
+ "shape": [
177
+ 7
178
+ ]
179
+ }
180
+ },
181
+ "device": "cuda",
182
+ "use_amp": false,
183
+ "push_to_hub": true,
184
+ "repo_id": "antwoor/based_pi0_diff",
185
+ "private": null,
186
+ "tags": null,
187
+ "license": null,
188
+ "chunk_size": 10,
189
+ "n_action_steps": 5,
190
+ "max_state_dim": 32,
191
+ "max_action_dim": 32,
192
+ "resize_imgs_with_padding": [
193
+ 224,
194
+ 224
195
+ ],
196
+ "interpolate_like_pi": false,
197
+ "empty_cameras": 0,
198
+ "adapt_to_pi_aloha": false,
199
+ "use_delta_joint_actions_aloha": false,
200
+ "tokenizer_max_length": 48,
201
+ "proj_width": 1024,
202
+ "max_decoding_steps": 256,
203
+ "fast_skip_tokens": 128,
204
+ "max_input_seq_len": 256,
205
+ "use_cache": true,
206
+ "freeze_vision_encoder": true,
207
+ "freeze_lm_head": true,
208
+ "optimizer_lr": 0.0001,
209
+ "optimizer_betas": [
210
+ 0.9,
211
+ 0.95
212
+ ],
213
+ "optimizer_eps": 1e-08,
214
+ "optimizer_weight_decay": 1e-05,
215
+ "scheduler_warmup_steps": 1000,
216
+ "scheduler_decay_steps": 30000,
217
+ "scheduler_decay_lr": 2.5e-06,
218
+ "checkpoint_path": null,
219
+ "padding_side": "right",
220
+ "precision": "bfloat16",
221
+ "grad_clip_norm": 1,
222
+ "relaxed_action_decoding": true
223
+ },
224
+ "output_dir": "outputs/train/2025-10-07/21-36-43_mcx_pi0fast",
225
+ "job_name": "mcx_pi0fast",
226
+ "resume": false,
227
+ "seed": 1000,
228
+ "num_workers": 4,
229
+ "batch_size": 8,
230
+ "steps": 1000,
231
+ "eval_freq": -1,
232
+ "log_freq": 25,
233
+ "save_checkpoint": true,
234
+ "save_freq": 20000,
235
+ "use_policy_training_preset": true,
236
+ "optimizer": {
237
+ "type": "adamw",
238
+ "lr": 0.0001,
239
+ "weight_decay": 1e-05,
240
+ "grad_clip_norm": 1,
241
+ "betas": [
242
+ 0.9,
243
+ 0.95
244
+ ],
245
+ "eps": 1e-08
246
+ },
247
+ "scheduler": {
248
+ "type": "cosine_decay_with_warmup",
249
+ "num_warmup_steps": 1000,
250
+ "num_decay_steps": 30000,
251
+ "peak_lr": 0.0001,
252
+ "decay_lr": 2.5e-06
253
+ },
254
+ "eval": {
255
+ "n_episodes": 50,
256
+ "batch_size": 50,
257
+ "use_async_envs": false
258
+ },
259
+ "wandb": {
260
+ "enable": false,
261
+ "disable_artifact": false,
262
+ "project": "lerobot",
263
+ "entity": null,
264
+ "notes": null,
265
+ "run_id": null,
266
+ "mode": null
267
+ }
268
+ }