Robotics
LeRobot
Safetensors
pi05
samithva commited on
Commit
e2db41a
·
verified ·
1 Parent(s): dafa39b

Upload policy weights, train config and readme

Browse files
Files changed (5) hide show
  1. README.md +111 -147
  2. adapter_config.json +2 -2
  3. adapter_model.safetensors +2 -2
  4. config.json +1 -1
  5. train_config.json +8 -8
README.md CHANGED
@@ -1,204 +1,168 @@
1
  ---
2
- library_name: peft
 
 
 
 
 
3
  tags:
4
- - base_model:adapter:/data/wanshan/workspace/VLA/lerobot/checkpoints/lerobot--pi05-base
5
- - lora
 
6
  ---
7
 
8
- # Model Card for Model ID
9
 
10
  <!-- Provide a quick summary of what the model is/does. -->
11
 
12
 
 
13
 
14
- ## Model Details
15
-
16
- ### Model Description
17
 
18
- <!-- Provide a longer summary of what this model is. -->
19
 
20
 
 
 
 
 
 
 
21
 
22
- - **Developed by:** [More Information Needed]
23
- - **Funded by [optional]:** [More Information Needed]
24
- - **Shared by [optional]:** [More Information Needed]
25
- - **Model type:** [More Information Needed]
26
- - **Language(s) (NLP):** [More Information Needed]
27
- - **License:** [More Information Needed]
28
- - **Finetuned from model [optional]:** [More Information Needed]
29
 
30
- ### Model Sources [optional]
31
 
32
- <!-- Provide the basic links for the model. -->
33
 
34
- - **Repository:** [More Information Needed]
35
- - **Paper [optional]:** [More Information Needed]
36
- - **Demo [optional]:** [More Information Needed]
37
 
38
- ## Uses
39
 
40
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
 
 
 
41
 
42
- ### Direct Use
43
 
44
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
45
 
46
- [More Information Needed]
47
 
48
- ### Downstream Use [optional]
49
 
50
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
 
 
 
 
 
51
 
52
- [More Information Needed]
53
 
54
- ### Out-of-Scope Use
 
 
55
 
56
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
57
 
58
- [More Information Needed]
59
 
60
- ## Bias, Risks, and Limitations
 
 
 
 
61
 
62
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
 
 
 
63
 
64
- [More Information Needed]
65
 
66
- ### Recommendations
67
 
68
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
 
 
 
 
 
 
 
69
 
70
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
71
 
72
  ## How to Get Started with the Model
73
 
74
- Use the code below to get started with the model.
75
-
76
- [More Information Needed]
77
-
78
- ## Training Details
79
 
80
- ### Training Data
 
 
 
81
 
82
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
83
 
84
- [More Information Needed]
85
 
86
- ### Training Procedure
 
 
 
 
 
 
 
 
 
87
 
88
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
89
 
90
- #### Preprocessing [optional]
91
 
92
- [More Information Needed]
93
 
 
94
 
95
- #### Training Hyperparameters
 
 
 
 
 
 
 
 
 
96
 
97
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
98
 
99
- #### Speeds, Sizes, Times [optional]
100
-
101
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
102
-
103
- [More Information Needed]
104
 
105
  ## Evaluation
106
 
107
- <!-- This section describes the evaluation protocols and provides the results. -->
108
-
109
- ### Testing Data, Factors & Metrics
110
-
111
- #### Testing Data
112
-
113
- <!-- This should link to a Dataset Card if possible. -->
114
-
115
- [More Information Needed]
116
-
117
- #### Factors
118
-
119
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
120
-
121
- [More Information Needed]
122
-
123
- #### Metrics
124
-
125
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
126
-
127
- [More Information Needed]
128
-
129
- ### Results
130
-
131
- [More Information Needed]
132
-
133
- #### Summary
134
-
135
-
136
-
137
- ## Model Examination [optional]
138
 
139
- <!-- Relevant interpretability work for the model goes here -->
 
 
140
 
141
- [More Information Needed]
 
 
142
 
143
- ## Environmental Impact
144
 
145
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
146
-
147
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
148
-
149
- - **Hardware Type:** [More Information Needed]
150
- - **Hours used:** [More Information Needed]
151
- - **Cloud Provider:** [More Information Needed]
152
- - **Compute Region:** [More Information Needed]
153
- - **Carbon Emitted:** [More Information Needed]
154
-
155
- ## Technical Specifications [optional]
156
-
157
- ### Model Architecture and Objective
158
-
159
- [More Information Needed]
160
-
161
- ### Compute Infrastructure
162
-
163
- [More Information Needed]
164
-
165
- #### Hardware
166
-
167
- [More Information Needed]
168
-
169
- #### Software
170
-
171
- [More Information Needed]
172
-
173
- ## Citation [optional]
174
-
175
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
176
-
177
- **BibTeX:**
178
-
179
- [More Information Needed]
180
-
181
- **APA:**
182
-
183
- [More Information Needed]
184
-
185
- ## Glossary [optional]
186
-
187
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
188
-
189
- [More Information Needed]
190
-
191
- ## More Information [optional]
192
-
193
- [More Information Needed]
194
-
195
- ## Model Card Authors [optional]
196
-
197
- [More Information Needed]
198
 
199
- ## Model Card Contact
200
 
201
- [More Information Needed]
202
- ### Framework versions
203
 
204
- - PEFT 0.20.0
 
 
 
 
 
 
 
 
1
  ---
2
+ base_model: lerobot/pi05_base
3
+ datasets: fruits_orange
4
+ library_name: lerobot
5
+ license: apache-2.0
6
+ model_name: pi05
7
+ pipeline_tag: robotics
8
  tags:
9
+ - robotics
10
+ - pi05
11
+ - lerobot
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:** `piper_follower`
43
+ - **Cameras:** `r_wrist`, `top`, `realsense`
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 | `(7,)` |
55
+ | `observation.images.r_wrist` | VISUAL | `(3, 640, 480)` |
56
+ | `observation.images.top` | VISUAL | `(3, 480, 640)` |
57
+ | `observation.images.realsense` | VISUAL | `(3, 480, 640)` |
58
 
59
+ **Outputs**
60
 
61
+ | Feature | Type | Shape |
62
+ | --- | --- | --- |
63
+ | `action` | ACTION | `(7,)` |
64
 
 
65
 
66
+ ## Training Dataset
67
 
68
+ - **Repository:** [fruits_orange](https://huggingface.co/datasets/fruits_orange)
69
+ - **Episodes:** 110
70
+ - **Frames:** 57380
71
+ - **Frame rate:** 30 FPS
72
+ - **Task(s):** "Pick up the orange into the plate.", "Pick up the lemon into the plate.", "Pick up the kiwifruit into the plate."
73
 
74
+ <a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=fruits_orange">
75
+ <img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl.svg"/>
76
+ <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl-dark.svg"/>
77
+ </a>
78
 
 
79
 
80
+ ## Training Configuration
81
 
82
+ | Setting | Value |
83
+ | --- | --- |
84
+ | Training steps | 20000 |
85
+ | Batch size | 10 |
86
+ | Optimizer | adamw |
87
+ | Learning rate | 2.5e-05 |
88
+ | Seed | 1000 |
89
+ | LeRobot version | 0.6.1 |
90
 
91
+ ---
92
 
93
  ## How to Get Started with the Model
94
 
95
+ New to LeRobot? These guides cover the full workflow:
 
 
 
 
96
 
97
+ - **[Install LeRobot](https://huggingface.co/docs/lerobot/main/en/installation)** �� set up the `lerobot` package.
98
+ - **[Hardware setup](https://huggingface.co/docs/lerobot/main/en/hardware_guide)** — assemble, wire, and calibrate your robot and cameras.
99
+ - **[Record data & train a policy](https://huggingface.co/docs/lerobot/en/il_robots)** — the end-to-end imitation-learning walkthrough.
100
+ - **[CLI cheat-sheet](https://huggingface.co/docs/lerobot/main/en/cheat-sheet)** — quick reference for the `lerobot-*` commands.
101
 
102
+ The short version to run and train this policy:
103
 
104
+ ### Run the policy on your robot
105
 
106
+ ```bash
107
+ lerobot-rollout \
108
+ --strategy.type=base \
109
+ --robot.type=piper_follower \
110
+ --robot.port=<your_robot_port> \
111
+ --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}}" \
112
+ --policy.path=samithva/pi05_fruits_orange \
113
+ --task="Pick up the orange into the plate." \
114
+ --duration=60
115
+ ```
116
 
117
+ 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.
118
 
119
+ 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).
120
 
121
+ ### Train your own policy
122
 
123
+ This policy type is usually fine-tuned from the pretrained base model [lerobot/pi05_base](https://huggingface.co/lerobot/pi05_base):
124
 
125
+ ```bash
126
+ lerobot-train \
127
+ --dataset.repo_id=${HF_USER}/<dataset> \
128
+ --policy.path=lerobot/pi05_base \
129
+ --output_dir=outputs/train/<policy_repo_id> \
130
+ --job_name=lerobot_training \
131
+ --policy.device=cuda \
132
+ --policy.repo_id=${HF_USER}/<policy_repo_id> \
133
+ --wandb.enable=true
134
+ ```
135
 
136
+ _Writes checkpoints to `outputs/train/<policy_repo_id>/checkpoints/`._
137
 
138
+ ---
 
 
 
 
139
 
140
  ## Evaluation
141
 
142
+ <!-- Report real-robot results here: run the policy several times per task and count the
143
+ successes. Delete the "No evaluation results" line and fill in this table instead:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
 
145
+ | Task | Trials | Successes | Success rate |
146
+ | ---- | ------ | --------- | ------------ |
147
+ | pick the lego brick | 10 | 8 | 80% |
148
 
149
+ Also worth noting: anything that affects difficulty (new object positions, lighting,
150
+ distractors, a different robot of the same type, ...).
151
+ -->
152
 
153
+ _No evaluation results have been provided for this policy yet._
154
 
155
+ ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
 
157
+ ## Citation
158
 
159
+ If you use this policy, please cite the method linked in the description above, along with LeRobot:
 
160
 
161
+ ```bibtex
162
+ @misc{cadene2024lerobot,
163
+ 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},
164
+ title = {LeRobot: State-of-the-art Machine Learning for Real-World Robotics in Pytorch},
165
+ howpublished = "\url{https://github.com/huggingface/lerobot}",
166
+ year = {2024}
167
+ }
168
+ ```
adapter_config.json CHANGED
@@ -19,7 +19,7 @@
19
  "layers_pattern": null,
20
  "layers_to_transform": null,
21
  "loftq_config": {},
22
- "lora_alpha": 32,
23
  "lora_bias": false,
24
  "lora_dropout": 0.0,
25
  "lora_ga_config": null,
@@ -30,7 +30,7 @@
30
  "peft_type": "LORA",
31
  "peft_version": "0.20.0",
32
  "qalora_group_size": 16,
33
- "r": 16,
34
  "rank_pattern": {},
35
  "revision": null,
36
  "target_modules": "(.*\\.gemma_expert\\..*\\.self_attn\\.(q|v)_proj|model\\.(state_proj|action_in_proj|action_out_proj|action_time_mlp_in|action_time_mlp_out))",
 
19
  "layers_pattern": null,
20
  "layers_to_transform": null,
21
  "loftq_config": {},
22
+ "lora_alpha": 128,
23
  "lora_bias": false,
24
  "lora_dropout": 0.0,
25
  "lora_ga_config": null,
 
30
  "peft_type": "LORA",
31
  "peft_version": "0.20.0",
32
  "qalora_group_size": 16,
33
+ "r": 64,
34
  "rank_pattern": {},
35
  "revision": null,
36
  "target_modules": "(.*\\.gemma_expert\\..*\\.self_attn\\.(q|v)_proj|model\\.(state_proj|action_in_proj|action_out_proj|action_time_mlp_in|action_time_mlp_out))",
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f00b16a85e089d7b25de74f5f59b88a0bad849b144d4a626c1544fc435b2b1c1
3
- size 5161624
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2d767c17e7fedb01fca58ed004192c4288b2add4df1cf88f320a3cb399e3fad
3
+ size 20607744
config.json CHANGED
@@ -91,7 +91,7 @@
91
  "ACTION": "QUANTILES"
92
  },
93
  "gradient_checkpointing": false,
94
- "compile_model": true,
95
  "compile_mode": "max-autotune",
96
  "freeze_vision_encoder": false,
97
  "train_expert_only": false,
 
91
  "ACTION": "QUANTILES"
92
  },
93
  "gradient_checkpointing": false,
94
+ "compile_model": false,
95
  "compile_mode": "max-autotune",
96
  "freeze_vision_encoder": false,
97
  "train_expert_only": false,
train_config.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "dataset": {
3
- "repo_id": "sigs-eilab/fruits_orange",
4
  "repo_type": "dataset",
5
- "root": "datasets/fruits_orange",
6
  "episodes": null,
7
  "image_transforms": {
8
  "enable": false,
@@ -177,7 +177,7 @@
177
  "ACTION": "QUANTILES"
178
  },
179
  "gradient_checkpointing": false,
180
- "compile_model": true,
181
  "compile_mode": "max-autotune",
182
  "freeze_vision_encoder": false,
183
  "train_expert_only": false,
@@ -199,8 +199,8 @@
199
  "resume": false,
200
  "seed": 1000,
201
  "cudnn_deterministic": false,
202
- "num_workers": 8,
203
- "batch_size": 8,
204
  "prefetch_factor": 4,
205
  "persistent_workers": true,
206
  "dataloader_multiprocessing_context": "spawn",
@@ -245,7 +245,7 @@
245
  "project": "lerobot",
246
  "entity": null,
247
  "notes": null,
248
- "run_id": "jcys2pi0",
249
  "mode": null,
250
  "add_tags": true
251
  },
@@ -254,8 +254,8 @@
254
  "full_training_modules": null,
255
  "method_type": "LORA",
256
  "init_type": null,
257
- "r": 16,
258
- "lora_alpha": 32
259
  },
260
  "job": {
261
  "target": null,
 
1
  {
2
  "dataset": {
3
+ "repo_id": "fruits_orange",
4
  "repo_type": "dataset",
5
+ "root": "./datasets/fruits_orange",
6
  "episodes": null,
7
  "image_transforms": {
8
  "enable": false,
 
177
  "ACTION": "QUANTILES"
178
  },
179
  "gradient_checkpointing": false,
180
+ "compile_model": false,
181
  "compile_mode": "max-autotune",
182
  "freeze_vision_encoder": false,
183
  "train_expert_only": false,
 
199
  "resume": false,
200
  "seed": 1000,
201
  "cudnn_deterministic": false,
202
+ "num_workers": 5,
203
+ "batch_size": 10,
204
  "prefetch_factor": 4,
205
  "persistent_workers": true,
206
  "dataloader_multiprocessing_context": "spawn",
 
245
  "project": "lerobot",
246
  "entity": null,
247
  "notes": null,
248
+ "run_id": "5oephurk",
249
  "mode": null,
250
  "add_tags": true
251
  },
 
254
  "full_training_modules": null,
255
  "method_type": "LORA",
256
  "init_type": null,
257
+ "r": 64,
258
+ "lora_alpha": 128
259
  },
260
  "job": {
261
  "target": null,