Robotics
LeRobot
Safetensors
pi05
gabe-puppet commited on
Commit
f00cf3f
·
verified ·
1 Parent(s): 0b84500

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +167 -0
  2. config.json +101 -0
  3. model.safetensors +3 -0
  4. train_config.json +239 -0
README.md ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/pi05_base
3
+ datasets: puppet-robotics/golf
4
+ library_name: lerobot
5
+ license: apache-2.0
6
+ model_name: pi05
7
+ pipeline_tag: robotics
8
+ tags:
9
+ - robotics
10
+ - lerobot
11
+ - pi05
12
+ ---
13
+
14
+ # Model Card for pi05
15
+
16
+ <!-- Provide a quick summary of what the model is/does. -->
17
+
18
+
19
+ [π₀.₅ (Pi05)](https://www.physicalintelligence.company/blog/pi05) is a Vision-Language-Action model from Physical Intelligence designed for open-world generalization: it evolves π₀ to generalize to entirely new environments and situations that were never seen during training. The LeRobot implementation is adapted from their open-source OpenPI repository.
20
+
21
+
22
+
23
+
24
+ <!-- A short demo is worth more than any description! Record a GIF/video of the policy
25
+ running on your robot, upload it to this repo, and embed it here:
26
+ <p align="center">
27
+ <img src="https://huggingface.co/<hf_user>/<policy_repo_id>/resolve/main/demo.gif" width="60%"/>
28
+ </p>
29
+ -->
30
+
31
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
32
+
33
+ Learn how to train and run it in the [LeRobot pi05 guide](https://huggingface.co/docs/lerobot/main/en/pi05), or browse the [full documentation](https://huggingface.co/docs/lerobot/index).
34
+
35
+
36
+ ---
37
+
38
+ ## Model Details
39
+
40
+ - **License:** apache-2.0
41
+ - **Fine-tuned from:** [lerobot/pi05_base](https://huggingface.co/lerobot/pi05_base)
42
+ - **Robot type:** `openarm-right-only`
43
+ - **Cameras:** `wrist`, `ego`
44
+
45
+
46
+ ## Inputs & Outputs
47
+
48
+ The policy consumes these observation features and produces these action features.
49
+
50
+ **Inputs**
51
+
52
+ | Feature | Type | Shape |
53
+ | --- | --- | --- |
54
+ | `observation.state` | STATE | `(8,)` |
55
+ | `observation.images.wrist` | VISUAL | `(3, 480, 640)` |
56
+ | `observation.images.ego` | VISUAL | `(3, 720, 1280)` |
57
+
58
+ **Outputs**
59
+
60
+ | Feature | Type | Shape |
61
+ | --- | --- | --- |
62
+ | `action` | ACTION | `(8,)` |
63
+
64
+
65
+ ## Training Dataset
66
+
67
+ - **Repository:** [puppet-robotics/golf](https://huggingface.co/datasets/puppet-robotics/golf)
68
+ - **Episodes:** 5
69
+ - **Frames:** 944
70
+ - **Frame rate:** 20 FPS
71
+ - **Task(s):** "play golf"
72
+
73
+ <a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=puppet-robotics/golf">
74
+ <img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl.svg"/>
75
+ <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl-dark.svg"/>
76
+ </a>
77
+
78
+
79
+ ## Training Configuration
80
+
81
+ | Setting | Value |
82
+ | --- | --- |
83
+ | Training steps | 3000 |
84
+ | Batch size | 32 |
85
+ | Optimizer | adamw |
86
+ | Learning rate | 2.5e-05 |
87
+ | Seed | 1000 |
88
+ | LeRobot version | 0.5.2 |
89
+
90
+ ---
91
+
92
+ ## How to Get Started with the Model
93
+
94
+ New to LeRobot? These guides cover the full workflow:
95
+
96
+ - **[Install LeRobot](https://huggingface.co/docs/lerobot/main/en/installation)** — set up the `lerobot` package.
97
+ - **[Hardware setup](https://huggingface.co/docs/lerobot/main/en/hardware_guide)** — assemble, wire, and calibrate your robot and cameras.
98
+ - **[Record data & train a policy](https://huggingface.co/docs/lerobot/en/il_robots)** — the end-to-end imitation-learning walkthrough.
99
+ - **[CLI cheat-sheet](https://huggingface.co/docs/lerobot/main/en/cheat-sheet)** — quick reference for the `lerobot-*` commands.
100
+
101
+ The short version to run and train this policy:
102
+
103
+ ### Run the policy on your robot
104
+
105
+ ```bash
106
+ lerobot-rollout \
107
+ --strategy.type=base \
108
+ --robot.type=openarm-right-only \
109
+ --robot.port=<your_robot_port> \
110
+ --robot.cameras="{ <camera_1>: {type: opencv, index_or_path: <index_or_path>, width: 640, height: 480, fps: 30}, <camera_2>: {type: opencv, index_or_path: <index_or_path>, width: 640, height: 480, fps: 30}}" \
111
+ --policy.path=puppet-robotics/golf-model \
112
+ --task="play golf" \
113
+ --duration=60
114
+ ```
115
+
116
+ Replace the remaining `<...>` placeholders with your own values: `--robot.port` and the camera names/indices are specific to your machine, and the camera names must match the observation keys this policy was trained on.
117
+
118
+ When `--strategy.type=base` is used the script doesn't record the episodes. Skipping duration will make the policy run indefinitely. For more information look at [rollout documentation](https://huggingface.co/docs/lerobot/main/en/inference).
119
+
120
+ ### Train your own policy
121
+
122
+ This policy type is usually fine-tuned from the pretrained base model [lerobot/pi05_base](https://huggingface.co/lerobot/pi05_base):
123
+
124
+ ```bash
125
+ lerobot-train \
126
+ --dataset.repo_id=${HF_USER}/<dataset> \
127
+ --policy.path=lerobot/pi05_base \
128
+ --output_dir=outputs/train/<policy_repo_id> \
129
+ --job_name=lerobot_training \
130
+ --policy.device=cuda \
131
+ --policy.repo_id=${HF_USER}/<policy_repo_id> \
132
+ --wandb.enable=true
133
+ ```
134
+
135
+ _Writes checkpoints to `outputs/train/<policy_repo_id>/checkpoints/`._
136
+
137
+ ---
138
+
139
+ ## Evaluation
140
+
141
+ <!-- Report real-robot results here: run the policy several times per task and count the
142
+ successes. Delete the "No evaluation results" line and fill in this table instead:
143
+
144
+ | Task | Trials | Successes | Success rate |
145
+ | ---- | ------ | --------- | ------------ |
146
+ | pick the lego brick | 10 | 8 | 80% |
147
+
148
+ Also worth noting: anything that affects difficulty (new object positions, lighting,
149
+ distractors, a different robot of the same type, ...).
150
+ -->
151
+
152
+ _No evaluation results have been provided for this policy yet._
153
+
154
+ ---
155
+
156
+ ## Citation
157
+
158
+ If you use this policy, please cite the method linked in the description above, along with LeRobot:
159
+
160
+ ```bibtex
161
+ @misc{cadene2024lerobot,
162
+ author = {Cadene, Remi and Alibert, Simon and Soare, Alexander and Gallouedec, Quentin and Zouitine, Adil and Palma, Steven and Kooijmans, Pepijn and Aractingi, Michel and Shukor, Mustafa and Aubakirova, Dana and Russi, Martino and Capuano, Francesco and Pascal, Caroline and Choghari, Jade and Moss, Jess and Wolf, Thomas},
163
+ title = {LeRobot: State-of-the-art Machine Learning for Real-World Robotics in Pytorch},
164
+ howpublished = "\url{https://github.com/huggingface/lerobot}",
165
+ year = {2024}
166
+ }
167
+ ```
config.json ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi05",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 8
9
+ ]
10
+ },
11
+ "observation.images.wrist": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.ego": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 720,
24
+ 1280
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 8
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "use_peft": false,
39
+ "push_to_hub": true,
40
+ "repo_id": "puppet-robotics/golf-model",
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
+ "use_relative_actions": false,
60
+ "relative_exclude_joints": [
61
+ "gripper"
62
+ ],
63
+ "action_feature_names": [
64
+ "arm_right_joint_1",
65
+ "arm_right_joint_2",
66
+ "arm_right_joint_3",
67
+ "arm_right_joint_4",
68
+ "arm_right_joint_5",
69
+ "arm_right_joint_6",
70
+ "arm_right_joint_7",
71
+ "arm_right_joint_8"
72
+ ],
73
+ "rtc_config": null,
74
+ "image_resolution": [
75
+ 224,
76
+ 224
77
+ ],
78
+ "empty_cameras": 0,
79
+ "tokenizer_max_length": 200,
80
+ "normalization_mapping": {
81
+ "VISUAL": "IDENTITY",
82
+ "STATE": "QUANTILES",
83
+ "ACTION": "QUANTILES"
84
+ },
85
+ "gradient_checkpointing": true,
86
+ "compile_model": true,
87
+ "compile_mode": "max-autotune",
88
+ "freeze_vision_encoder": false,
89
+ "train_expert_only": false,
90
+ "optimizer_lr": 2.5e-05,
91
+ "optimizer_betas": [
92
+ 0.9,
93
+ 0.95
94
+ ],
95
+ "optimizer_eps": 1e-08,
96
+ "optimizer_weight_decay": 0.01,
97
+ "optimizer_grad_clip_norm": 1.0,
98
+ "scheduler_warmup_steps": 1000,
99
+ "scheduler_decay_steps": 1000,
100
+ "scheduler_decay_lr": 2.5e-06
101
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:905c7f46fd15de59541fcd07c8651ad3d38fec249f90a96edcd0b290775c68ee
3
+ size 9354050752
train_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "puppet-robotics/golf",
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": "pi05",
86
+ "n_obs_steps": 1,
87
+ "input_features": {
88
+ "observation.state": {
89
+ "type": "STATE",
90
+ "shape": [
91
+ 8
92
+ ]
93
+ },
94
+ "observation.images.wrist": {
95
+ "type": "VISUAL",
96
+ "shape": [
97
+ 3,
98
+ 480,
99
+ 640
100
+ ]
101
+ },
102
+ "observation.images.ego": {
103
+ "type": "VISUAL",
104
+ "shape": [
105
+ 3,
106
+ 720,
107
+ 1280
108
+ ]
109
+ }
110
+ },
111
+ "output_features": {
112
+ "action": {
113
+ "type": "ACTION",
114
+ "shape": [
115
+ 8
116
+ ]
117
+ }
118
+ },
119
+ "device": "cuda",
120
+ "use_amp": false,
121
+ "use_peft": false,
122
+ "push_to_hub": true,
123
+ "repo_id": "puppet-robotics/golf-model",
124
+ "private": null,
125
+ "tags": null,
126
+ "license": null,
127
+ "pretrained_path": "lerobot/pi05_base",
128
+ "paligemma_variant": "gemma_2b",
129
+ "action_expert_variant": "gemma_300m",
130
+ "dtype": "bfloat16",
131
+ "chunk_size": 50,
132
+ "n_action_steps": 50,
133
+ "max_state_dim": 32,
134
+ "max_action_dim": 32,
135
+ "num_inference_steps": 10,
136
+ "time_sampling_beta_alpha": 1.5,
137
+ "time_sampling_beta_beta": 1.0,
138
+ "time_sampling_scale": 0.999,
139
+ "time_sampling_offset": 0.001,
140
+ "min_period": 0.004,
141
+ "max_period": 4.0,
142
+ "use_relative_actions": false,
143
+ "relative_exclude_joints": [
144
+ "gripper"
145
+ ],
146
+ "action_feature_names": [
147
+ "arm_right_joint_1",
148
+ "arm_right_joint_2",
149
+ "arm_right_joint_3",
150
+ "arm_right_joint_4",
151
+ "arm_right_joint_5",
152
+ "arm_right_joint_6",
153
+ "arm_right_joint_7",
154
+ "arm_right_joint_8"
155
+ ],
156
+ "rtc_config": null,
157
+ "image_resolution": [
158
+ 224,
159
+ 224
160
+ ],
161
+ "empty_cameras": 0,
162
+ "tokenizer_max_length": 200,
163
+ "normalization_mapping": {
164
+ "VISUAL": "IDENTITY",
165
+ "STATE": "QUANTILES",
166
+ "ACTION": "QUANTILES"
167
+ },
168
+ "gradient_checkpointing": true,
169
+ "compile_model": true,
170
+ "compile_mode": "max-autotune",
171
+ "freeze_vision_encoder": false,
172
+ "train_expert_only": false,
173
+ "optimizer_lr": 2.5e-05,
174
+ "optimizer_betas": [
175
+ 0.9,
176
+ 0.95
177
+ ],
178
+ "optimizer_eps": 1e-08,
179
+ "optimizer_weight_decay": 0.01,
180
+ "optimizer_grad_clip_norm": 1.0,
181
+ "scheduler_warmup_steps": 1000,
182
+ "scheduler_decay_steps": 1000,
183
+ "scheduler_decay_lr": 2.5e-06
184
+ },
185
+ "reward_model": null,
186
+ "output_dir": "output_bs_32_G4",
187
+ "job_name": "golf-model",
188
+ "resume": false,
189
+ "seed": 1000,
190
+ "cudnn_deterministic": false,
191
+ "num_workers": 16,
192
+ "batch_size": 32,
193
+ "prefetch_factor": 4,
194
+ "persistent_workers": true,
195
+ "steps": 3000,
196
+ "eval_freq": 500,
197
+ "log_freq": 200,
198
+ "tolerance_s": 0.0001,
199
+ "save_checkpoint": true,
200
+ "save_freq": 1000,
201
+ "use_policy_training_preset": true,
202
+ "optimizer": {
203
+ "type": "adamw",
204
+ "lr": 2.5e-05,
205
+ "weight_decay": 0.01,
206
+ "grad_clip_norm": 1.0,
207
+ "betas": [
208
+ 0.9,
209
+ 0.95
210
+ ],
211
+ "eps": 1e-08
212
+ },
213
+ "scheduler": {
214
+ "type": "cosine_decay_with_warmup",
215
+ "num_warmup_steps": 1000,
216
+ "num_decay_steps": 1000,
217
+ "peak_lr": 2.5e-05,
218
+ "decay_lr": 2.5e-06
219
+ },
220
+ "eval": {
221
+ "n_episodes": 50,
222
+ "batch_size": 33,
223
+ "use_async_envs": true
224
+ },
225
+ "wandb": {
226
+ "enable": true,
227
+ "disable_artifact": false,
228
+ "project": "lerobot",
229
+ "entity": null,
230
+ "notes": null,
231
+ "run_id": "s4eyczuv",
232
+ "mode": null,
233
+ "add_tags": true
234
+ },
235
+ "peft": null,
236
+ "sample_weighting": null,
237
+ "rename_map": {},
238
+ "checkpoint_path": null
239
+ }