jadechoghari commited on
Commit
99cea13
·
verified ·
1 Parent(s): 20385e0

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "pi05",
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.empty_camera_0": {
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
+ },
36
+ "output_features": {
37
+ "action": {
38
+ "type": "ACTION",
39
+ "shape": [
40
+ 7
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "push_to_hub": true,
47
+ "repo_id": "jade_choghari/pi05-fast-libero",
48
+ "private": null,
49
+ "tags": null,
50
+ "license": null,
51
+ "pretrained_path": "/fsx/jade_choghari/models/pi05-base",
52
+ "paligemma_variant": "gemma_2b",
53
+ "action_expert_variant": "gemma_300m",
54
+ "dtype": "bfloat16",
55
+ "chunk_size": 10,
56
+ "n_action_steps": 10,
57
+ "max_state_dim": 32,
58
+ "max_action_dim": 32,
59
+ "max_action_tokens": 256,
60
+ "fast_vocab_size": 2048,
61
+ "fast_only": true,
62
+ "num_inference_steps": 10,
63
+ "time_sampling_beta_alpha": 1.5,
64
+ "time_sampling_beta_beta": 1.0,
65
+ "time_sampling_scale": 0.999,
66
+ "time_sampling_offset": 0.001,
67
+ "min_period": 0.004,
68
+ "max_period": 4.0,
69
+ "rtc_config": null,
70
+ "image_resolution": [
71
+ 224,
72
+ 224
73
+ ],
74
+ "empty_cameras": 1,
75
+ "tokenizer_max_length": 200,
76
+ "normalization_mapping": {
77
+ "VISUAL": "IDENTITY",
78
+ "STATE": "MEAN_STD",
79
+ "ACTION": "MEAN_STD"
80
+ },
81
+ "gradient_checkpointing": true,
82
+ "compile_model": false,
83
+ "compile_mode": "max-autotune",
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": 4000,
93
+ "scheduler_decay_steps": 100000,
94
+ "scheduler_decay_lr": 1e-05
95
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3eb2deab8467d613d9249e644b14ae68a6e52ee581a316a8b3a20fde6c05bacc
3
+ size 7473096344
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": "IDENTITY",
18
+ "STATE": "MEAN_STD",
19
+ "ACTION": "MEAN_STD"
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:a002c0df7f79c5b169c5a899ad151d4ea1bed246c7d82bd93ed1556558d517a9
3
+ size 7668
policy_preprocessor.json ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_preprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "rename_observations_processor",
6
+ "config": {
7
+ "rename_map": {
8
+ "observation.images.image": "observation.images.base_0_rgb",
9
+ "observation.images.image2": "observation.images.left_wrist_0_rgb"
10
+ }
11
+ }
12
+ },
13
+ {
14
+ "registry_name": "to_batch_processor",
15
+ "config": {}
16
+ },
17
+ {
18
+ "registry_name": "normalizer_processor",
19
+ "config": {
20
+ "eps": 1e-08,
21
+ "features": {
22
+ "observation.images.base_0_rgb": {
23
+ "type": "VISUAL",
24
+ "shape": [
25
+ 3,
26
+ 224,
27
+ 224
28
+ ]
29
+ },
30
+ "observation.images.left_wrist_0_rgb": {
31
+ "type": "VISUAL",
32
+ "shape": [
33
+ 3,
34
+ 224,
35
+ 224
36
+ ]
37
+ },
38
+ "observation.images.empty_camera_0": {
39
+ "type": "VISUAL",
40
+ "shape": [
41
+ 3,
42
+ 224,
43
+ 224
44
+ ]
45
+ },
46
+ "observation.state": {
47
+ "type": "STATE",
48
+ "shape": [
49
+ 32
50
+ ]
51
+ },
52
+ "action": {
53
+ "type": "ACTION",
54
+ "shape": [
55
+ 7
56
+ ]
57
+ }
58
+ },
59
+ "norm_map": {
60
+ "VISUAL": "IDENTITY",
61
+ "STATE": "MEAN_STD",
62
+ "ACTION": "MEAN_STD"
63
+ }
64
+ },
65
+ "state_file": "policy_preprocessor_step_2_normalizer_processor.safetensors"
66
+ },
67
+ {
68
+ "registry_name": "pi05_prepare_state_tokenizer_processor_step",
69
+ "config": {}
70
+ },
71
+ {
72
+ "registry_name": "tokenizer_processor",
73
+ "config": {
74
+ "max_length": 200,
75
+ "task_key": "task",
76
+ "high_level_task_key": "user_prompt",
77
+ "padding_side": "right",
78
+ "padding": "max_length",
79
+ "truncation": true,
80
+ "tokenizer_name": "google/paligemma-3b-pt-224"
81
+ }
82
+ },
83
+ {
84
+ "registry_name": "action_tokenizer_processor",
85
+ "config": {
86
+ "trust_remote_code": true,
87
+ "max_action_tokens": 256,
88
+ "tokenizer_name": "jadechoghari/fast-libero-tokenizer-mean-std"
89
+ }
90
+ },
91
+ {
92
+ "registry_name": "device_processor",
93
+ "config": {
94
+ "device": "cuda",
95
+ "float_dtype": null
96
+ }
97
+ }
98
+ ]
99
+ }
policy_preprocessor_step_2_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a002c0df7f79c5b169c5a899ad151d4ea1bed246c7d82bd93ed1556558d517a9
3
+ size 7668
train_config.json ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "local",
4
+ "root": "/fsx/jade_choghari/data/libero",
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",
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.empty_camera_0": {
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
+ },
118
+ "output_features": {
119
+ "action": {
120
+ "type": "ACTION",
121
+ "shape": [
122
+ 7
123
+ ]
124
+ }
125
+ },
126
+ "device": "cuda",
127
+ "use_amp": false,
128
+ "push_to_hub": true,
129
+ "repo_id": "jade_choghari/pi05-fast-libero",
130
+ "private": null,
131
+ "tags": null,
132
+ "license": null,
133
+ "pretrained_path": "/fsx/jade_choghari/models/pi05-base",
134
+ "paligemma_variant": "gemma_2b",
135
+ "action_expert_variant": "gemma_300m",
136
+ "dtype": "bfloat16",
137
+ "chunk_size": 10,
138
+ "n_action_steps": 10,
139
+ "max_state_dim": 32,
140
+ "max_action_dim": 32,
141
+ "max_action_tokens": 256,
142
+ "fast_vocab_size": 2048,
143
+ "fast_only": true,
144
+ "num_inference_steps": 10,
145
+ "time_sampling_beta_alpha": 1.5,
146
+ "time_sampling_beta_beta": 1.0,
147
+ "time_sampling_scale": 0.999,
148
+ "time_sampling_offset": 0.001,
149
+ "min_period": 0.004,
150
+ "max_period": 4.0,
151
+ "rtc_config": null,
152
+ "image_resolution": [
153
+ 224,
154
+ 224
155
+ ],
156
+ "empty_cameras": 1,
157
+ "tokenizer_max_length": 200,
158
+ "normalization_mapping": {
159
+ "VISUAL": "IDENTITY",
160
+ "STATE": "MEAN_STD",
161
+ "ACTION": "MEAN_STD"
162
+ },
163
+ "gradient_checkpointing": true,
164
+ "compile_model": false,
165
+ "compile_mode": "max-autotune",
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": 4000,
175
+ "scheduler_decay_steps": 100000,
176
+ "scheduler_decay_lr": 1e-05
177
+ },
178
+ "output_dir": "/fsx/jade_choghari/outputs/libero_training_fast_mean_2",
179
+ "job_name": "libero_training_fast",
180
+ "resume": false,
181
+ "seed": 1000,
182
+ "num_workers": 4,
183
+ "batch_size": 4,
184
+ "steps": 100000,
185
+ "eval_freq": 20000,
186
+ "log_freq": 200,
187
+ "save_checkpoint": true,
188
+ "save_freq": 20000,
189
+ "use_policy_training_preset": true,
190
+ "optimizer": {
191
+ "type": "adamw",
192
+ "lr": 2.5e-05,
193
+ "weight_decay": 0.01,
194
+ "grad_clip_norm": 1.0,
195
+ "betas": [
196
+ 0.9,
197
+ 0.95
198
+ ],
199
+ "eps": 1e-08
200
+ },
201
+ "scheduler": {
202
+ "type": "cosine_decay_with_warmup",
203
+ "num_warmup_steps": 4000,
204
+ "num_decay_steps": 100000,
205
+ "peak_lr": 2.5e-05,
206
+ "decay_lr": 1e-05
207
+ },
208
+ "eval": {
209
+ "n_episodes": 50,
210
+ "batch_size": 50,
211
+ "use_async_envs": false
212
+ },
213
+ "wandb": {
214
+ "enable": true,
215
+ "disable_artifact": true,
216
+ "project": "pi05-libero-training",
217
+ "entity": null,
218
+ "notes": null,
219
+ "run_id": "ctz7gqj9",
220
+ "mode": null
221
+ },
222
+ "checkpoint_path": null,
223
+ "rename_map": {
224
+ "observation.images.image": "observation.images.base_0_rgb",
225
+ "observation.images.image2": "observation.images.left_wrist_0_rgb"
226
+ }
227
+ }