Robotics
LeRobot
Safetensors
pi05_custom
kowyo commited on
Commit
bb369ae
·
verified ·
1 Parent(s): 9da1a68

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +95 -0
  3. model.safetensors +3 -0
  4. train_config.json +232 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: kowyo/plugin
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: pi05_custom
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - pi05_custom
9
+ - robotics
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for pi05_custom
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
config.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi05_custom",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 224,
10
+ 224
11
+ ]
12
+ },
13
+ "observation.images.wrist_image": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 224,
18
+ 224
19
+ ]
20
+ },
21
+ "observation.images.left_image": {
22
+ "type": "VISUAL",
23
+ "shape": [
24
+ 3,
25
+ 224,
26
+ 224
27
+ ]
28
+ },
29
+ "observation.state": {
30
+ "type": "STATE",
31
+ "shape": [
32
+ 8
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": false,
47
+ "push_to_hub": true,
48
+ "repo_id": "kowyo/pi05-custom",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": "lerobot/pi05_base",
53
+ "paligemma_variant": "gemma_2b",
54
+ "action_expert_variant": "gemma_300m",
55
+ "dtype": "bfloat16",
56
+ "chunk_size": 50,
57
+ "n_action_steps": 50,
58
+ "max_state_dim": 32,
59
+ "max_action_dim": 32,
60
+ "num_inference_steps": 10,
61
+ "time_sampling_beta_alpha": 1.5,
62
+ "time_sampling_beta_beta": 1.0,
63
+ "time_sampling_scale": 0.999,
64
+ "time_sampling_offset": 0.001,
65
+ "min_period": 0.004,
66
+ "max_period": 4.0,
67
+ "rtc_config": null,
68
+ "image_resolution": [
69
+ 224,
70
+ 224
71
+ ],
72
+ "empty_cameras": 0,
73
+ "tokenizer_max_length": 200,
74
+ "normalization_mapping": {
75
+ "VISUAL": "IDENTITY",
76
+ "STATE": "QUANTILES",
77
+ "ACTION": "QUANTILES"
78
+ },
79
+ "gradient_checkpointing": true,
80
+ "compile_model": true,
81
+ "compile_mode": "max-autotune",
82
+ "freeze_vision_encoder": false,
83
+ "train_expert_only": true,
84
+ "optimizer_lr": 2.5e-05,
85
+ "optimizer_betas": [
86
+ 0.9,
87
+ 0.95
88
+ ],
89
+ "optimizer_eps": 1e-08,
90
+ "optimizer_weight_decay": 0.01,
91
+ "optimizer_grad_clip_norm": 1.0,
92
+ "scheduler_warmup_steps": 1000,
93
+ "scheduler_decay_steps": 30000,
94
+ "scheduler_decay_lr": 2.5e-06
95
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e30c62203b9424d4c90f49755bf4213b015dcd19195c8d154053dc5f5c56f9a8
3
+ size 9354050752
train_config.json ADDED
@@ -0,0 +1,232 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "kowyo/plugin",
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": "main",
78
+ "use_imagenet_stats": true,
79
+ "video_backend": "torchcodec",
80
+ "streaming": false
81
+ },
82
+ "env": null,
83
+ "policy": {
84
+ "type": "pi05_custom",
85
+ "n_obs_steps": 1,
86
+ "input_features": {
87
+ "observation.images.image": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 3,
91
+ 224,
92
+ 224
93
+ ]
94
+ },
95
+ "observation.images.wrist_image": {
96
+ "type": "VISUAL",
97
+ "shape": [
98
+ 3,
99
+ 224,
100
+ 224
101
+ ]
102
+ },
103
+ "observation.images.left_image": {
104
+ "type": "VISUAL",
105
+ "shape": [
106
+ 3,
107
+ 224,
108
+ 224
109
+ ]
110
+ },
111
+ "observation.state": {
112
+ "type": "STATE",
113
+ "shape": [
114
+ 8
115
+ ]
116
+ }
117
+ },
118
+ "output_features": {
119
+ "action": {
120
+ "type": "ACTION",
121
+ "shape": [
122
+ 7
123
+ ]
124
+ }
125
+ },
126
+ "device": "cuda",
127
+ "use_amp": false,
128
+ "use_peft": false,
129
+ "push_to_hub": true,
130
+ "repo_id": "kowyo/pi05-custom",
131
+ "private": null,
132
+ "tags": null,
133
+ "license": null,
134
+ "pretrained_path": "lerobot/pi05_base",
135
+ "paligemma_variant": "gemma_2b",
136
+ "action_expert_variant": "gemma_300m",
137
+ "dtype": "bfloat16",
138
+ "chunk_size": 50,
139
+ "n_action_steps": 50,
140
+ "max_state_dim": 32,
141
+ "max_action_dim": 32,
142
+ "num_inference_steps": 10,
143
+ "time_sampling_beta_alpha": 1.5,
144
+ "time_sampling_beta_beta": 1.0,
145
+ "time_sampling_scale": 0.999,
146
+ "time_sampling_offset": 0.001,
147
+ "min_period": 0.004,
148
+ "max_period": 4.0,
149
+ "rtc_config": null,
150
+ "image_resolution": [
151
+ 224,
152
+ 224
153
+ ],
154
+ "empty_cameras": 0,
155
+ "tokenizer_max_length": 200,
156
+ "normalization_mapping": {
157
+ "VISUAL": "IDENTITY",
158
+ "STATE": "QUANTILES",
159
+ "ACTION": "QUANTILES"
160
+ },
161
+ "gradient_checkpointing": true,
162
+ "compile_model": true,
163
+ "compile_mode": "max-autotune",
164
+ "freeze_vision_encoder": false,
165
+ "train_expert_only": true,
166
+ "optimizer_lr": 2.5e-05,
167
+ "optimizer_betas": [
168
+ 0.9,
169
+ 0.95
170
+ ],
171
+ "optimizer_eps": 1e-08,
172
+ "optimizer_weight_decay": 0.01,
173
+ "optimizer_grad_clip_norm": 1.0,
174
+ "scheduler_warmup_steps": 1000,
175
+ "scheduler_decay_steps": 30000,
176
+ "scheduler_decay_lr": 2.5e-06
177
+ },
178
+ "output_dir": "outputs/pi05_training",
179
+ "job_name": "pi05_training",
180
+ "resume": false,
181
+ "seed": 1000,
182
+ "cudnn_deterministic": false,
183
+ "num_workers": 4,
184
+ "batch_size": 16,
185
+ "steps": 20000,
186
+ "eval_freq": 20000,
187
+ "log_freq": 200,
188
+ "tolerance_s": 0.0001,
189
+ "save_checkpoint": true,
190
+ "save_freq": 20000,
191
+ "use_policy_training_preset": true,
192
+ "optimizer": {
193
+ "type": "adamw",
194
+ "lr": 2.5e-05,
195
+ "weight_decay": 0.01,
196
+ "grad_clip_norm": 1.0,
197
+ "betas": [
198
+ 0.9,
199
+ 0.95
200
+ ],
201
+ "eps": 1e-08
202
+ },
203
+ "scheduler": {
204
+ "type": "cosine_decay_with_warmup",
205
+ "num_warmup_steps": 1000,
206
+ "num_decay_steps": 30000,
207
+ "peak_lr": 2.5e-05,
208
+ "decay_lr": 2.5e-06
209
+ },
210
+ "eval": {
211
+ "n_episodes": 50,
212
+ "batch_size": 50,
213
+ "use_async_envs": false
214
+ },
215
+ "wandb": {
216
+ "enable": true,
217
+ "disable_artifact": false,
218
+ "project": "lerobot",
219
+ "entity": null,
220
+ "notes": null,
221
+ "run_id": "wrd63dnc",
222
+ "mode": null
223
+ },
224
+ "peft": null,
225
+ "use_rabc": false,
226
+ "rabc_progress_path": null,
227
+ "rabc_kappa": 0.01,
228
+ "rabc_epsilon": 1e-06,
229
+ "rabc_head_mode": "sparse",
230
+ "rename_map": {},
231
+ "checkpoint_path": null
232
+ }