hochanb commited on
Commit
98405c4
·
verified ·
1 Parent(s): efd90ac

100k-step checkpoint

Browse files
config.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "lang_diffusion",
3
+ "language_model_name": "google-bert/bert-base-uncased",
4
+ "tokenizer_max_length": 48,
5
+ "language_pooling": "mean",
6
+ "n_obs_steps": 2,
7
+ "input_features": {
8
+ "observation.state": {
9
+ "type": "STATE",
10
+ "shape": [
11
+ 7
12
+ ]
13
+ },
14
+ "observation.images.camera_0": {
15
+ "type": "VISUAL",
16
+ "shape": [
17
+ 3,
18
+ 480,
19
+ 640
20
+ ]
21
+ },
22
+ "observation.images.camera_1": {
23
+ "type": "VISUAL",
24
+ "shape": [
25
+ 3,
26
+ 480,
27
+ 640
28
+ ]
29
+ }
30
+ },
31
+ "output_features": {
32
+ "action": {
33
+ "type": "ACTION",
34
+ "shape": [
35
+ 7
36
+ ]
37
+ }
38
+ },
39
+ "device": "cuda",
40
+ "dtype": null,
41
+ "use_amp": false,
42
+ "use_peft": false,
43
+ "push_to_hub": false,
44
+ "repo_id": null,
45
+ "private": null,
46
+ "tags": null,
47
+ "license": null,
48
+ "pretrained_path": null,
49
+ "pretrained_revision": null,
50
+ "horizon": 32,
51
+ "n_action_steps": 16,
52
+ "normalization_mapping": {
53
+ "VISUAL": "MEAN_STD",
54
+ "STATE": "MIN_MAX",
55
+ "ACTION": "MIN_MAX"
56
+ },
57
+ "drop_n_last_frames": 15,
58
+ "vision_backbone": "resnet18",
59
+ "resize_shape": [
60
+ 240,
61
+ 320
62
+ ],
63
+ "crop_ratio": 0.9,
64
+ "crop_shape": [
65
+ 216,
66
+ 288
67
+ ],
68
+ "crop_is_random": true,
69
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
70
+ "use_group_norm": false,
71
+ "spatial_softmax_num_keypoints": 32,
72
+ "use_separate_rgb_encoder_per_camera": true,
73
+ "down_dims": [
74
+ 512,
75
+ 1024,
76
+ 2048
77
+ ],
78
+ "kernel_size": 5,
79
+ "n_groups": 8,
80
+ "diffusion_step_embed_dim": 128,
81
+ "use_film_scale_modulation": true,
82
+ "gradient_checkpointing": false,
83
+ "noise_scheduler_type": "DDIM",
84
+ "num_train_timesteps": 100,
85
+ "beta_schedule": "squaredcos_cap_v2",
86
+ "beta_start": 0.0001,
87
+ "beta_end": 0.02,
88
+ "prediction_type": "epsilon",
89
+ "clip_sample": true,
90
+ "clip_sample_range": 1.0,
91
+ "num_inference_steps": 10,
92
+ "compile_model": false,
93
+ "compile_mode": "reduce-overhead",
94
+ "do_mask_loss_for_padding": false,
95
+ "optimizer_lr": 0.0001,
96
+ "optimizer_betas": [
97
+ 0.95,
98
+ 0.999
99
+ ],
100
+ "optimizer_eps": 1e-08,
101
+ "optimizer_weight_decay": 1e-06,
102
+ "scheduler_name": "cosine",
103
+ "scheduler_warmup_steps": 500,
104
+ "language_embed_dim": 128
105
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3af2663f6f2bf99535bc2e2d573ed592a69f862b2b9398adc68bfb346b5913f8
3
+ size 1126722588
policy_postprocessor.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "MEAN_STD",
18
+ "STATE": "MIN_MAX",
19
+ "ACTION": "MIN_MAX"
20
+ }
21
+ },
22
+ "state_file": "policy_postprocessor_step_0_unnormalizer_processor.safetensors"
23
+ },
24
+ {
25
+ "registry_name": "device_processor",
26
+ "config": {
27
+ "device": "cpu",
28
+ "float_dtype": null
29
+ }
30
+ }
31
+ ]
32
+ }
policy_postprocessor_step_0_unnormalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8fff2de914a3cd0ca811ab6b6dac30bbbaee27d4038fe1cb49e896e58144bdf
3
+ size 7688
policy_preprocessor.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "tokenizer_processor",
16
+ "config": {
17
+ "max_length": 48,
18
+ "task_key": "task",
19
+ "padding_side": "right",
20
+ "padding": "max_length",
21
+ "truncation": true,
22
+ "tokenizer_name": "tokenizer"
23
+ },
24
+ "artifacts": {
25
+ "tokenizer_name": "tokenizer"
26
+ }
27
+ },
28
+ {
29
+ "registry_name": "device_processor",
30
+ "config": {
31
+ "device": "cuda",
32
+ "float_dtype": null
33
+ }
34
+ },
35
+ {
36
+ "registry_name": "normalizer_processor",
37
+ "config": {
38
+ "eps": 1e-08,
39
+ "features": {
40
+ "observation.state": {
41
+ "type": "STATE",
42
+ "shape": [
43
+ 7
44
+ ]
45
+ },
46
+ "observation.images.camera_0": {
47
+ "type": "VISUAL",
48
+ "shape": [
49
+ 3,
50
+ 480,
51
+ 640
52
+ ]
53
+ },
54
+ "observation.images.camera_1": {
55
+ "type": "VISUAL",
56
+ "shape": [
57
+ 3,
58
+ 480,
59
+ 640
60
+ ]
61
+ },
62
+ "action": {
63
+ "type": "ACTION",
64
+ "shape": [
65
+ 7
66
+ ]
67
+ }
68
+ },
69
+ "norm_map": {
70
+ "VISUAL": "MEAN_STD",
71
+ "STATE": "MIN_MAX",
72
+ "ACTION": "MIN_MAX"
73
+ }
74
+ },
75
+ "state_file": "policy_preprocessor_step_4_normalizer_processor.safetensors"
76
+ }
77
+ ]
78
+ }
policy_preprocessor_step_4_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b44fbdc7465117ebfd8944c848a845fcc6c1eb96c2729f578f787621cc10eb0
3
+ size 7696
tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "is_local": false,
6
+ "mask_token": "[MASK]",
7
+ "model_max_length": 512,
8
+ "pad_token": "[PAD]",
9
+ "sep_token": "[SEP]",
10
+ "strip_accents": null,
11
+ "tokenize_chinese_chars": true,
12
+ "tokenizer_class": "BertTokenizer",
13
+ "unk_token": "[UNK]"
14
+ }
train_config.json ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "local/ur5_maniunicon",
4
+ "repo_type": "dataset",
5
+ "root": "data/ur5_maniunicon",
6
+ "episodes": null,
7
+ "exclude_episodes": null,
8
+ "image_transforms": {
9
+ "enable": false,
10
+ "max_num_transforms": 3,
11
+ "random_order": false,
12
+ "tfs": {
13
+ "brightness": {
14
+ "weight": 1.0,
15
+ "type": "ColorJitter",
16
+ "kwargs": {
17
+ "brightness": [
18
+ 0.8,
19
+ 1.2
20
+ ]
21
+ }
22
+ },
23
+ "contrast": {
24
+ "weight": 1.0,
25
+ "type": "ColorJitter",
26
+ "kwargs": {
27
+ "contrast": [
28
+ 0.8,
29
+ 1.2
30
+ ]
31
+ }
32
+ },
33
+ "saturation": {
34
+ "weight": 1.0,
35
+ "type": "ColorJitter",
36
+ "kwargs": {
37
+ "saturation": [
38
+ 0.5,
39
+ 1.5
40
+ ]
41
+ }
42
+ },
43
+ "hue": {
44
+ "weight": 1.0,
45
+ "type": "ColorJitter",
46
+ "kwargs": {
47
+ "hue": [
48
+ -0.05,
49
+ 0.05
50
+ ]
51
+ }
52
+ },
53
+ "sharpness": {
54
+ "weight": 1.0,
55
+ "type": "SharpnessJitter",
56
+ "kwargs": {
57
+ "sharpness": [
58
+ 0.5,
59
+ 1.5
60
+ ]
61
+ }
62
+ },
63
+ "affine": {
64
+ "weight": 1.0,
65
+ "type": "RandomAffine",
66
+ "kwargs": {
67
+ "degrees": [
68
+ -5.0,
69
+ 5.0
70
+ ],
71
+ "translate": [
72
+ 0.05,
73
+ 0.05
74
+ ]
75
+ }
76
+ }
77
+ }
78
+ },
79
+ "revision": null,
80
+ "use_imagenet_stats": true,
81
+ "video_backend": "torchcodec",
82
+ "return_uint8": false,
83
+ "depth_output_unit": "mm",
84
+ "streaming": false,
85
+ "streaming_episode_pool_size": 32,
86
+ "streaming_sampling_strategy": "remaining",
87
+ "streaming_prefetch_episodes": 8,
88
+ "streaming_byte_budget_gb": 8.0,
89
+ "streaming_decode_threads": 2,
90
+ "streaming_decoded_queue_size": 8,
91
+ "streaming_native_http_connections": null,
92
+ "streaming_native_http_subranges": 1,
93
+ "video_decoder_cache_size": null,
94
+ "eval_split": 0.0
95
+ },
96
+ "env": null,
97
+ "policy": {
98
+ "type": "lang_diffusion",
99
+ "language_model_name": "google-bert/bert-base-uncased",
100
+ "tokenizer_max_length": 48,
101
+ "language_pooling": "mean",
102
+ "n_obs_steps": 2,
103
+ "input_features": {
104
+ "observation.state": {
105
+ "type": "STATE",
106
+ "shape": [
107
+ 7
108
+ ]
109
+ },
110
+ "observation.images.camera_0": {
111
+ "type": "VISUAL",
112
+ "shape": [
113
+ 3,
114
+ 480,
115
+ 640
116
+ ]
117
+ },
118
+ "observation.images.camera_1": {
119
+ "type": "VISUAL",
120
+ "shape": [
121
+ 3,
122
+ 480,
123
+ 640
124
+ ]
125
+ }
126
+ },
127
+ "output_features": {
128
+ "action": {
129
+ "type": "ACTION",
130
+ "shape": [
131
+ 7
132
+ ]
133
+ }
134
+ },
135
+ "device": "cuda",
136
+ "dtype": null,
137
+ "use_amp": false,
138
+ "use_peft": false,
139
+ "push_to_hub": false,
140
+ "repo_id": null,
141
+ "private": null,
142
+ "tags": null,
143
+ "license": null,
144
+ "pretrained_path": null,
145
+ "pretrained_revision": null,
146
+ "horizon": 32,
147
+ "n_action_steps": 16,
148
+ "normalization_mapping": {
149
+ "VISUAL": "MEAN_STD",
150
+ "STATE": "MIN_MAX",
151
+ "ACTION": "MIN_MAX"
152
+ },
153
+ "drop_n_last_frames": 15,
154
+ "vision_backbone": "resnet18",
155
+ "resize_shape": [
156
+ 240,
157
+ 320
158
+ ],
159
+ "crop_ratio": 0.9,
160
+ "crop_shape": [
161
+ 216,
162
+ 288
163
+ ],
164
+ "crop_is_random": true,
165
+ "pretrained_backbone_weights": "ResNet18_Weights.IMAGENET1K_V1",
166
+ "use_group_norm": false,
167
+ "spatial_softmax_num_keypoints": 32,
168
+ "use_separate_rgb_encoder_per_camera": true,
169
+ "down_dims": [
170
+ 512,
171
+ 1024,
172
+ 2048
173
+ ],
174
+ "kernel_size": 5,
175
+ "n_groups": 8,
176
+ "diffusion_step_embed_dim": 128,
177
+ "use_film_scale_modulation": true,
178
+ "gradient_checkpointing": false,
179
+ "noise_scheduler_type": "DDIM",
180
+ "num_train_timesteps": 100,
181
+ "beta_schedule": "squaredcos_cap_v2",
182
+ "beta_start": 0.0001,
183
+ "beta_end": 0.02,
184
+ "prediction_type": "epsilon",
185
+ "clip_sample": true,
186
+ "clip_sample_range": 1.0,
187
+ "num_inference_steps": 10,
188
+ "compile_model": false,
189
+ "compile_mode": "reduce-overhead",
190
+ "do_mask_loss_for_padding": false,
191
+ "optimizer_lr": 0.0001,
192
+ "optimizer_betas": [
193
+ 0.95,
194
+ 0.999
195
+ ],
196
+ "optimizer_eps": 1e-08,
197
+ "optimizer_weight_decay": 1e-06,
198
+ "scheduler_name": "cosine",
199
+ "scheduler_warmup_steps": 500,
200
+ "language_embed_dim": 128
201
+ },
202
+ "reward_model": null,
203
+ "output_dir": "outputs/train/lang_diffusion_ur5",
204
+ "job_name": "lang_diffusion_ur5",
205
+ "resume": false,
206
+ "seed": 1000,
207
+ "cudnn_deterministic": false,
208
+ "num_workers": 12,
209
+ "batch_size": 64,
210
+ "prefetch_factor": 4,
211
+ "persistent_workers": true,
212
+ "dataloader_multiprocessing_context": "spawn",
213
+ "steps": 100000,
214
+ "env_eval_freq": 20000,
215
+ "log_freq": 100,
216
+ "eval_steps": 0,
217
+ "max_eval_samples": 0,
218
+ "tolerance_s": 0.0001,
219
+ "save_checkpoint": true,
220
+ "save_freq": 5000,
221
+ "checkpoint_format": "safetensors",
222
+ "use_policy_training_preset": true,
223
+ "optimizer": {
224
+ "type": "adam",
225
+ "lr": 0.0001,
226
+ "weight_decay": 1e-06,
227
+ "grad_clip_norm": 10.0,
228
+ "betas": [
229
+ 0.95,
230
+ 0.999
231
+ ],
232
+ "eps": 1e-08
233
+ },
234
+ "scheduler": {
235
+ "type": "diffuser",
236
+ "num_warmup_steps": 500,
237
+ "name": "cosine"
238
+ },
239
+ "parallelism": {
240
+ "dp_replicate": 1,
241
+ "dp_shard": 1,
242
+ "context_parallel": {
243
+ "ring_degree": 1,
244
+ "ulysses_degree": 1
245
+ },
246
+ "cfg_parallel": 1
247
+ },
248
+ "accelerator": {
249
+ "mixed_precision": "no",
250
+ "gradient_accumulation": {
251
+ "steps": 1
252
+ },
253
+ "grad_scaler": {
254
+ "init_scale": 65536.0,
255
+ "growth_factor": 2.0,
256
+ "backoff_factor": 0.5,
257
+ "growth_interval": 2000
258
+ },
259
+ "fsdp": {
260
+ "reshard_after_forward": true,
261
+ "wrap_modules": null,
262
+ "min_num_params": null,
263
+ "cpu_offload": false,
264
+ "ignored_modules": null
265
+ },
266
+ "ddp": {
267
+ "find_unused_parameters": true,
268
+ "gradient_as_bucket_view": false,
269
+ "static_graph": false
270
+ },
271
+ "compile": {
272
+ "enabled": false,
273
+ "backend": "inductor",
274
+ "mode": null,
275
+ "regional": true
276
+ },
277
+ "activation_checkpointing": {
278
+ "mode": "none"
279
+ }
280
+ },
281
+ "eval": {
282
+ "n_episodes": 50,
283
+ "batch_size": 33,
284
+ "use_async_envs": true,
285
+ "recording": false,
286
+ "recording_repo_id": null,
287
+ "recording_private": false
288
+ },
289
+ "ema": {
290
+ "enable": false,
291
+ "decay": null,
292
+ "update_after_step": 0,
293
+ "inv_gamma": 1.0,
294
+ "power": 0.75,
295
+ "min_decay": 0.0,
296
+ "max_decay": 0.9999,
297
+ "use_for_eval": true
298
+ },
299
+ "wandb": {
300
+ "enable": false,
301
+ "disable_artifact": false,
302
+ "project": "lerobot",
303
+ "entity": null,
304
+ "notes": null,
305
+ "run_id": null,
306
+ "resume": null,
307
+ "mode": null,
308
+ "console": "wrap",
309
+ "console_multipart": false,
310
+ "console_chunk_max_seconds": 0,
311
+ "add_tags": true
312
+ },
313
+ "peft": null,
314
+ "job": {
315
+ "target": null,
316
+ "image": "huggingface/lerobot-gpu:latest",
317
+ "timeout": "2d",
318
+ "detach": false,
319
+ "tags": []
320
+ },
321
+ "save_checkpoint_to_hub": false,
322
+ "sample_weighting": null,
323
+ "rename_map": {},
324
+ "checkpoint_path": null
325
+ }