Grigorij commited on
Commit
28cfcc2
·
verified ·
1 Parent(s): f258219

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +70 -0
  2. config.json +75 -0
  3. model.safetensors +3 -0
  4. train_config.json +188 -0
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: Grigorij/shooting_watermelon_v3.0
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi05
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - pi05
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for pi05
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ **π₀.₅ (Pi05) Policy**
19
+
20
+ π₀.₅ is a Vision-Language-Action model with open-world generalization, from Physical Intelligence. The LeRobot implementation is adapted from their open source OpenPI repository.
21
+
22
+ **Model Overview**
23
+
24
+ π₀.₅ represents a significant evolution from π₀, developed by Physical Intelligence to address a big challenge in robotics: open-world generalization. While robots can perform impressive tasks in controlled environments, π₀.₅ is designed to generalize to entirely new environments and situations that were never seen during training.
25
+
26
+ For more details, see the [Physical Intelligence π₀.₅ blog post](https://www.physicalintelligence.company/blog/pi05).
27
+
28
+
29
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
30
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
31
+
32
+ ---
33
+
34
+ ## How to Get Started with the Model
35
+
36
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
37
+ Below is the short version on how to train and run inference/eval:
38
+
39
+ ### Train from scratch
40
+
41
+ ```bash
42
+ lerobot-train \
43
+ --dataset.repo_id=${HF_USER}/<dataset> \
44
+ --policy.type=act \
45
+ --output_dir=outputs/train/<desired_policy_repo_id> \
46
+ --job_name=lerobot_training \
47
+ --policy.device=cuda \
48
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
49
+ --wandb.enable=true
50
+ ```
51
+
52
+ _Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
53
+
54
+ ### Evaluate the policy/run inference
55
+
56
+ ```bash
57
+ lerobot-record \
58
+ --robot.type=so100_follower \
59
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
60
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
61
+ --episodes=10
62
+ ```
63
+
64
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
65
+
66
+ ---
67
+
68
+ ## Model Details
69
+
70
+ - **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi05",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 3
9
+ ]
10
+ },
11
+ "observation.images.main": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ }
19
+ },
20
+ "output_features": {
21
+ "action": {
22
+ "type": "ACTION",
23
+ "shape": [
24
+ 4
25
+ ]
26
+ }
27
+ },
28
+ "device": "cuda",
29
+ "use_amp": false,
30
+ "push_to_hub": true,
31
+ "repo_id": "Pi05_shoot_watermelon",
32
+ "private": null,
33
+ "tags": null,
34
+ "license": null,
35
+ "pretrained_path": "lerobot/pi05_base",
36
+ "paligemma_variant": "gemma_2b",
37
+ "action_expert_variant": "gemma_300m",
38
+ "dtype": "bfloat16",
39
+ "chunk_size": 50,
40
+ "n_action_steps": 50,
41
+ "max_state_dim": 32,
42
+ "max_action_dim": 32,
43
+ "num_inference_steps": 10,
44
+ "time_sampling_beta_alpha": 1.5,
45
+ "time_sampling_beta_beta": 1.0,
46
+ "time_sampling_scale": 0.999,
47
+ "time_sampling_offset": 0.001,
48
+ "min_period": 0.004,
49
+ "max_period": 4.0,
50
+ "image_resolution": [
51
+ 224,
52
+ 224
53
+ ],
54
+ "empty_cameras": 0,
55
+ "tokenizer_max_length": 200,
56
+ "normalization_mapping": {
57
+ "VISUAL": "IDENTITY",
58
+ "STATE": "QUANTILES",
59
+ "ACTION": "QUANTILES"
60
+ },
61
+ "gradient_checkpointing": true,
62
+ "compile_model": true,
63
+ "compile_mode": "max-autotune",
64
+ "optimizer_lr": 2.5e-05,
65
+ "optimizer_betas": [
66
+ 0.9,
67
+ 0.95
68
+ ],
69
+ "optimizer_eps": 1e-08,
70
+ "optimizer_weight_decay": 0.01,
71
+ "optimizer_grad_clip_norm": 1.0,
72
+ "scheduler_warmup_steps": 1000,
73
+ "scheduler_decay_steps": 30000,
74
+ "scheduler_decay_lr": 2.5e-06
75
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9e1da4d7c1bf3ea54174c307e192f5f9319afa4be937789d5beb7087ec62d5a
3
+ size 7473096344
train_config.json ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "Grigorij/shooting_watermelon_v3.0",
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
+ "streaming": false
67
+ },
68
+ "env": null,
69
+ "policy": {
70
+ "type": "pi05",
71
+ "n_obs_steps": 1,
72
+ "input_features": {
73
+ "observation.state": {
74
+ "type": "STATE",
75
+ "shape": [
76
+ 3
77
+ ]
78
+ },
79
+ "observation.images.main": {
80
+ "type": "VISUAL",
81
+ "shape": [
82
+ 3,
83
+ 480,
84
+ 640
85
+ ]
86
+ }
87
+ },
88
+ "output_features": {
89
+ "action": {
90
+ "type": "ACTION",
91
+ "shape": [
92
+ 4
93
+ ]
94
+ }
95
+ },
96
+ "device": "cuda",
97
+ "use_amp": false,
98
+ "push_to_hub": true,
99
+ "repo_id": "Pi05_shoot_watermelon",
100
+ "private": null,
101
+ "tags": null,
102
+ "license": null,
103
+ "pretrained_path": "lerobot/pi05_base",
104
+ "paligemma_variant": "gemma_2b",
105
+ "action_expert_variant": "gemma_300m",
106
+ "dtype": "bfloat16",
107
+ "chunk_size": 50,
108
+ "n_action_steps": 50,
109
+ "max_state_dim": 32,
110
+ "max_action_dim": 32,
111
+ "num_inference_steps": 10,
112
+ "time_sampling_beta_alpha": 1.5,
113
+ "time_sampling_beta_beta": 1.0,
114
+ "time_sampling_scale": 0.999,
115
+ "time_sampling_offset": 0.001,
116
+ "min_period": 0.004,
117
+ "max_period": 4.0,
118
+ "image_resolution": [
119
+ 224,
120
+ 224
121
+ ],
122
+ "empty_cameras": 0,
123
+ "tokenizer_max_length": 200,
124
+ "normalization_mapping": {
125
+ "VISUAL": "IDENTITY",
126
+ "STATE": "QUANTILES",
127
+ "ACTION": "QUANTILES"
128
+ },
129
+ "gradient_checkpointing": true,
130
+ "compile_model": true,
131
+ "compile_mode": "max-autotune",
132
+ "optimizer_lr": 2.5e-05,
133
+ "optimizer_betas": [
134
+ 0.9,
135
+ 0.95
136
+ ],
137
+ "optimizer_eps": 1e-08,
138
+ "optimizer_weight_decay": 0.01,
139
+ "optimizer_grad_clip_norm": 1.0,
140
+ "scheduler_warmup_steps": 1000,
141
+ "scheduler_decay_steps": 30000,
142
+ "scheduler_decay_lr": 2.5e-06
143
+ },
144
+ "output_dir": "outputs/train/2025-10-19/05-51-05_pi05_training",
145
+ "job_name": "pi05_training",
146
+ "resume": false,
147
+ "seed": 1000,
148
+ "num_workers": 4,
149
+ "batch_size": 32,
150
+ "steps": 4000,
151
+ "eval_freq": 20000,
152
+ "log_freq": 200,
153
+ "save_checkpoint": true,
154
+ "save_freq": 20000,
155
+ "use_policy_training_preset": true,
156
+ "optimizer": {
157
+ "type": "adamw",
158
+ "lr": 2.5e-05,
159
+ "weight_decay": 0.01,
160
+ "grad_clip_norm": 1.0,
161
+ "betas": [
162
+ 0.9,
163
+ 0.95
164
+ ],
165
+ "eps": 1e-08
166
+ },
167
+ "scheduler": {
168
+ "type": "cosine_decay_with_warmup",
169
+ "num_warmup_steps": 1000,
170
+ "num_decay_steps": 30000,
171
+ "peak_lr": 2.5e-05,
172
+ "decay_lr": 2.5e-06
173
+ },
174
+ "eval": {
175
+ "n_episodes": 50,
176
+ "batch_size": 50,
177
+ "use_async_envs": false
178
+ },
179
+ "wandb": {
180
+ "enable": false,
181
+ "disable_artifact": false,
182
+ "project": "lerobot",
183
+ "entity": null,
184
+ "notes": null,
185
+ "run_id": null,
186
+ "mode": null
187
+ }
188
+ }