jadechoghari HF Staff commited on
Commit
446837f
·
verified ·
1 Parent(s): e4120c2

Upload policy weights, train config and readme

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