prateeks-iu commited on
Commit
f40bcce
·
verified ·
1 Parent(s): 401126d

Pi0.5 sugar-cube policy at 40K steps

Browse files
config.json ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi05",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 7
9
+ ]
10
+ },
11
+ "observation.images.scene": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.wrist": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ },
27
+ "observation.images.empty_camera_0": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 224,
32
+ 224
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": false,
48
+ "repo_id": null,
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": "lerobot/pi05_base",
53
+ "pretrained_revision": null,
54
+ "paligemma_variant": "gemma_2b",
55
+ "action_expert_variant": "gemma_300m",
56
+ "dtype": "bfloat16",
57
+ "chunk_size": 50,
58
+ "n_action_steps": 20,
59
+ "max_state_dim": 32,
60
+ "max_action_dim": 32,
61
+ "num_inference_steps": 10,
62
+ "time_sampling_beta_alpha": 1.5,
63
+ "time_sampling_beta_beta": 1.0,
64
+ "time_sampling_scale": 0.999,
65
+ "time_sampling_offset": 0.001,
66
+ "min_period": 0.004,
67
+ "max_period": 4.0,
68
+ "use_relative_actions": false,
69
+ "relative_exclude_joints": [
70
+ "gripper"
71
+ ],
72
+ "action_feature_names": [
73
+ "shoulder_pan.pos",
74
+ "shoulder_lift.pos",
75
+ "elbow_flex.pos",
76
+ "wrist_flex.pos",
77
+ "wrist_yaw.pos",
78
+ "wrist_roll.pos",
79
+ "gripper.pos"
80
+ ],
81
+ "rtc_config": null,
82
+ "image_resolution": [
83
+ 224,
84
+ 224
85
+ ],
86
+ "empty_cameras": 1,
87
+ "tokenizer_max_length": 200,
88
+ "normalization_mapping": {
89
+ "VISUAL": "IDENTITY",
90
+ "STATE": "QUANTILES",
91
+ "ACTION": "QUANTILES"
92
+ },
93
+ "gradient_checkpointing": true,
94
+ "compile_model": true,
95
+ "compile_mode": "max-autotune",
96
+ "freeze_vision_encoder": false,
97
+ "train_expert_only": false,
98
+ "optimizer_lr": 2.5e-05,
99
+ "optimizer_betas": [
100
+ 0.9,
101
+ 0.95
102
+ ],
103
+ "optimizer_eps": 1e-08,
104
+ "optimizer_weight_decay": 0.01,
105
+ "optimizer_grad_clip_norm": 1.0,
106
+ "scheduler_warmup_steps": 1000,
107
+ "scheduler_decay_steps": 50000,
108
+ "scheduler_decay_lr": 2.5e-06
109
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b9c804a73ad175dd32b640d992b1c39c11a70e124c5314be28db457ad7dd4fa
3
+ size 9354050752
policy_postprocessor.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_postprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "unnormalizer_processor",
6
+ "config": {
7
+ "eps": 1e-08,
8
+ "features": {
9
+ "action": {
10
+ "type": "ACTION",
11
+ "shape": [
12
+ 7
13
+ ]
14
+ }
15
+ },
16
+ "norm_map": {
17
+ "VISUAL": "IDENTITY",
18
+ "STATE": "QUANTILES",
19
+ "ACTION": "QUANTILES"
20
+ }
21
+ },
22
+ "state_file": "policy_postprocessor_step_0_unnormalizer_processor.safetensors"
23
+ },
24
+ {
25
+ "registry_name": "absolute_actions_processor",
26
+ "config": {
27
+ "enabled": false
28
+ }
29
+ },
30
+ {
31
+ "registry_name": "device_processor",
32
+ "config": {
33
+ "device": "cpu",
34
+ "float_dtype": null
35
+ }
36
+ }
37
+ ]
38
+ }
policy_postprocessor_step_0_unnormalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fec4f2593e147ff7ec905dd5ed22086952b8b1348886c5d186e347d825cdbd2c
3
+ size 7624
policy_preprocessor.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_preprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "rename_observations_processor",
6
+ "config": {
7
+ "rename_map": {}
8
+ }
9
+ },
10
+ {
11
+ "registry_name": "to_batch_processor",
12
+ "config": {}
13
+ },
14
+ {
15
+ "registry_name": "relative_actions_processor",
16
+ "config": {
17
+ "enabled": false,
18
+ "exclude_joints": [
19
+ "gripper"
20
+ ],
21
+ "action_names": null
22
+ }
23
+ },
24
+ {
25
+ "registry_name": "normalizer_processor",
26
+ "config": {
27
+ "eps": 1e-08,
28
+ "features": {
29
+ "observation.state": {
30
+ "type": "STATE",
31
+ "shape": [
32
+ 7
33
+ ]
34
+ },
35
+ "observation.images.scene": {
36
+ "type": "VISUAL",
37
+ "shape": [
38
+ 3,
39
+ 480,
40
+ 640
41
+ ]
42
+ },
43
+ "observation.images.wrist": {
44
+ "type": "VISUAL",
45
+ "shape": [
46
+ 3,
47
+ 480,
48
+ 640
49
+ ]
50
+ },
51
+ "observation.images.empty_camera_0": {
52
+ "type": "VISUAL",
53
+ "shape": [
54
+ 3,
55
+ 224,
56
+ 224
57
+ ]
58
+ },
59
+ "action": {
60
+ "type": "ACTION",
61
+ "shape": [
62
+ 7
63
+ ]
64
+ }
65
+ },
66
+ "norm_map": {
67
+ "VISUAL": "IDENTITY",
68
+ "STATE": "QUANTILES",
69
+ "ACTION": "QUANTILES"
70
+ }
71
+ },
72
+ "state_file": "policy_preprocessor_step_3_normalizer_processor.safetensors"
73
+ },
74
+ {
75
+ "registry_name": "pi05_prepare_state_tokenizer_processor_step",
76
+ "config": {}
77
+ },
78
+ {
79
+ "registry_name": "tokenizer_processor",
80
+ "config": {
81
+ "max_length": 200,
82
+ "task_key": "task",
83
+ "padding_side": "right",
84
+ "padding": "max_length",
85
+ "truncation": true,
86
+ "tokenizer_name": "google/paligemma-3b-pt-224"
87
+ }
88
+ },
89
+ {
90
+ "registry_name": "device_processor",
91
+ "config": {
92
+ "device": "cuda",
93
+ "float_dtype": null
94
+ }
95
+ }
96
+ ]
97
+ }
policy_preprocessor_step_3_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d16fb1bf1b44bc007a8dc124510b8f079973ba3e137c956bd35501f184db1f1b
3
+ size 7632
train_config.json ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "prateeks-iu/rebot_b601_rs_sugar",
4
+ "root": "/home/prateek/Documents/sugar_pi/rebot_b601_rs_sugar_rgb",
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
+ "return_uint8": false,
81
+ "depth_output_unit": "mm",
82
+ "streaming": false,
83
+ "eval_split": 0.0
84
+ },
85
+ "env": null,
86
+ "policy": {
87
+ "type": "pi05",
88
+ "n_obs_steps": 1,
89
+ "input_features": {
90
+ "observation.state": {
91
+ "type": "STATE",
92
+ "shape": [
93
+ 7
94
+ ]
95
+ },
96
+ "observation.images.scene": {
97
+ "type": "VISUAL",
98
+ "shape": [
99
+ 3,
100
+ 480,
101
+ 640
102
+ ]
103
+ },
104
+ "observation.images.wrist": {
105
+ "type": "VISUAL",
106
+ "shape": [
107
+ 3,
108
+ 480,
109
+ 640
110
+ ]
111
+ },
112
+ "observation.images.empty_camera_0": {
113
+ "type": "VISUAL",
114
+ "shape": [
115
+ 3,
116
+ 224,
117
+ 224
118
+ ]
119
+ }
120
+ },
121
+ "output_features": {
122
+ "action": {
123
+ "type": "ACTION",
124
+ "shape": [
125
+ 7
126
+ ]
127
+ }
128
+ },
129
+ "device": "cuda",
130
+ "use_amp": false,
131
+ "use_peft": false,
132
+ "push_to_hub": false,
133
+ "repo_id": null,
134
+ "private": null,
135
+ "tags": null,
136
+ "license": null,
137
+ "pretrained_path": "lerobot/pi05_base",
138
+ "pretrained_revision": null,
139
+ "paligemma_variant": "gemma_2b",
140
+ "action_expert_variant": "gemma_300m",
141
+ "dtype": "bfloat16",
142
+ "chunk_size": 50,
143
+ "n_action_steps": 20,
144
+ "max_state_dim": 32,
145
+ "max_action_dim": 32,
146
+ "num_inference_steps": 10,
147
+ "time_sampling_beta_alpha": 1.5,
148
+ "time_sampling_beta_beta": 1.0,
149
+ "time_sampling_scale": 0.999,
150
+ "time_sampling_offset": 0.001,
151
+ "min_period": 0.004,
152
+ "max_period": 4.0,
153
+ "use_relative_actions": false,
154
+ "relative_exclude_joints": [
155
+ "gripper"
156
+ ],
157
+ "action_feature_names": [
158
+ "shoulder_pan.pos",
159
+ "shoulder_lift.pos",
160
+ "elbow_flex.pos",
161
+ "wrist_flex.pos",
162
+ "wrist_yaw.pos",
163
+ "wrist_roll.pos",
164
+ "gripper.pos"
165
+ ],
166
+ "rtc_config": null,
167
+ "image_resolution": [
168
+ 224,
169
+ 224
170
+ ],
171
+ "empty_cameras": 1,
172
+ "tokenizer_max_length": 200,
173
+ "normalization_mapping": {
174
+ "VISUAL": "IDENTITY",
175
+ "STATE": "QUANTILES",
176
+ "ACTION": "QUANTILES"
177
+ },
178
+ "gradient_checkpointing": true,
179
+ "compile_model": true,
180
+ "compile_mode": "max-autotune",
181
+ "freeze_vision_encoder": false,
182
+ "train_expert_only": false,
183
+ "optimizer_lr": 2.5e-05,
184
+ "optimizer_betas": [
185
+ 0.9,
186
+ 0.95
187
+ ],
188
+ "optimizer_eps": 1e-08,
189
+ "optimizer_weight_decay": 0.01,
190
+ "optimizer_grad_clip_norm": 1.0,
191
+ "scheduler_warmup_steps": 1000,
192
+ "scheduler_decay_steps": 50000,
193
+ "scheduler_decay_lr": 2.5e-06
194
+ },
195
+ "reward_model": null,
196
+ "output_dir": "/home/prateek/Documents/sugar_pi/outputs/pi05_sugar_rgb_60hz_h50",
197
+ "job_name": "pi05_sugar_rgb_60hz_h50",
198
+ "resume": false,
199
+ "seed": 1000,
200
+ "cudnn_deterministic": false,
201
+ "num_workers": 4,
202
+ "batch_size": 4,
203
+ "prefetch_factor": 4,
204
+ "persistent_workers": true,
205
+ "dataloader_multiprocessing_context": "spawn",
206
+ "steps": 50000,
207
+ "env_eval_freq": 20000,
208
+ "log_freq": 100,
209
+ "eval_steps": 0,
210
+ "max_eval_samples": 0,
211
+ "tolerance_s": 0.0001,
212
+ "save_checkpoint": true,
213
+ "save_freq": 5000,
214
+ "use_policy_training_preset": true,
215
+ "optimizer": {
216
+ "type": "adamw",
217
+ "lr": 2.5e-05,
218
+ "weight_decay": 0.01,
219
+ "grad_clip_norm": 1.0,
220
+ "betas": [
221
+ 0.9,
222
+ 0.95
223
+ ],
224
+ "eps": 1e-08
225
+ },
226
+ "scheduler": {
227
+ "type": "cosine_decay_with_warmup",
228
+ "num_warmup_steps": 1000,
229
+ "num_decay_steps": 50000,
230
+ "peak_lr": 2.5e-05,
231
+ "decay_lr": 2.5e-06
232
+ },
233
+ "eval": {
234
+ "n_episodes": 50,
235
+ "batch_size": 44,
236
+ "use_async_envs": true,
237
+ "recording": false,
238
+ "recording_repo_id": null,
239
+ "recording_private": false
240
+ },
241
+ "wandb": {
242
+ "enable": false,
243
+ "disable_artifact": false,
244
+ "project": "lerobot",
245
+ "entity": null,
246
+ "notes": null,
247
+ "run_id": null,
248
+ "mode": null,
249
+ "add_tags": true
250
+ },
251
+ "peft": null,
252
+ "job": {
253
+ "target": null,
254
+ "image": "huggingface/lerobot-gpu:latest",
255
+ "timeout": "2d",
256
+ "detach": false,
257
+ "tags": []
258
+ },
259
+ "save_checkpoint_to_hub": false,
260
+ "sample_weighting": null,
261
+ "rename_map": {},
262
+ "checkpoint_path": null
263
+ }