jorgemunozl commited on
Commit
fa81654
·
verified ·
1 Parent(s): f84cd6d

Upload policy weights, train config and readme

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