SoSolaris commited on
Commit
42e5149
·
verified ·
1 Parent(s): a0cb7fe

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +222 -0
  3. model.safetensors +3 -0
  4. train_config.json +363 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: SoSolaris/socks_clean
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: xvla
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - xvla
11
+ ---
12
+
13
+ # Model Card for xvla
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,222 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "xvla",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 256,
10
+ 256
11
+ ]
12
+ },
13
+ "observation.images.image2": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 256,
18
+ 256
19
+ ]
20
+ },
21
+ "observation.state": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 8
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
+ 6
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "use_peft": false,
47
+ "push_to_hub": true,
48
+ "repo_id": "SoSolaris/xvla-your-robot",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": "lerobot/xvla-base",
53
+ "chunk_size": 30,
54
+ "n_action_steps": 30,
55
+ "dtype": "bfloat16",
56
+ "normalization_mapping": {
57
+ "STATE": "IDENTITY",
58
+ "ACTION": "MEAN_STD",
59
+ "VISUAL": "IDENTITY"
60
+ },
61
+ "florence_config": {
62
+ "model_type": "florence2",
63
+ "bos_token_id": 0,
64
+ "eos_token_id": 2,
65
+ "ignore_index": -100,
66
+ "pad_token_id": 1,
67
+ "projection_dim": 1024,
68
+ "text_config": {
69
+ "vocab_size": 51289,
70
+ "activation_dropout": 0.1,
71
+ "activation_function": "gelu",
72
+ "add_bias_logits": false,
73
+ "add_final_layer_norm": false,
74
+ "attention_dropout": 0.1,
75
+ "bos_token_id": 0,
76
+ "classif_dropout": 0.1,
77
+ "classifier_dropout": 0.0,
78
+ "d_model": 1024,
79
+ "decoder_attention_heads": 16,
80
+ "decoder_ffn_dim": 4096,
81
+ "decoder_layerdrop": 0.0,
82
+ "decoder_layers": 12,
83
+ "decoder_start_token_id": 2,
84
+ "dropout": 0.1,
85
+ "early_stopping": true,
86
+ "encoder_attention_heads": 16,
87
+ "encoder_ffn_dim": 4096,
88
+ "encoder_layerdrop": 0.0,
89
+ "encoder_layers": 12,
90
+ "eos_token_id": 2,
91
+ "forced_eos_token_id": 2,
92
+ "forced_bos_token_id": 0,
93
+ "gradient_checkpointing": false,
94
+ "init_std": 0.02,
95
+ "is_encoder_decoder": true,
96
+ "label2id": {
97
+ "LABEL_0": 0,
98
+ "LABEL_1": 1,
99
+ "LABEL_2": 2
100
+ },
101
+ "max_position_embeddings": 4096,
102
+ "no_repeat_ngram_size": 3,
103
+ "normalize_before": false,
104
+ "num_hidden_layers": 12,
105
+ "pad_token_id": 1,
106
+ "scale_embedding": false,
107
+ "num_beams": 3
108
+ },
109
+ "vision_config": {
110
+ "model_type": "davit",
111
+ "drop_path_rate": 0.1,
112
+ "patch_size": [
113
+ 7,
114
+ 3,
115
+ 3,
116
+ 3
117
+ ],
118
+ "patch_stride": [
119
+ 4,
120
+ 2,
121
+ 2,
122
+ 2
123
+ ],
124
+ "patch_padding": [
125
+ 3,
126
+ 1,
127
+ 1,
128
+ 1
129
+ ],
130
+ "patch_prenorm": [
131
+ false,
132
+ true,
133
+ true,
134
+ true
135
+ ],
136
+ "enable_checkpoint": false,
137
+ "dim_embed": [
138
+ 256,
139
+ 512,
140
+ 1024,
141
+ 2048
142
+ ],
143
+ "num_heads": [
144
+ 8,
145
+ 16,
146
+ 32,
147
+ 64
148
+ ],
149
+ "num_groups": [
150
+ 8,
151
+ 16,
152
+ 32,
153
+ 64
154
+ ],
155
+ "depths": [
156
+ 1,
157
+ 1,
158
+ 9,
159
+ 1
160
+ ],
161
+ "window_size": 12,
162
+ "projection_dim": 1024,
163
+ "visual_temporal_embedding": {
164
+ "type": "COSINE",
165
+ "max_temporal_embeddings": 100
166
+ },
167
+ "image_pos_embed": {
168
+ "type": "learned_abs_2d",
169
+ "max_pos_embeddings": 50
170
+ },
171
+ "image_feature_source": [
172
+ "spatial_avg_pool",
173
+ "temporal_avg_pool"
174
+ ]
175
+ },
176
+ "vocab_size": 51289,
177
+ "torch_dtype": "float32",
178
+ "is_encoder_decoder": true
179
+ },
180
+ "tokenizer_name": "facebook/bart-large",
181
+ "tokenizer_max_length": 1024,
182
+ "tokenizer_padding_side": "right",
183
+ "pad_language_to": "max_length",
184
+ "hidden_size": 1024,
185
+ "depth": 24,
186
+ "num_heads": 16,
187
+ "mlp_ratio": 4.0,
188
+ "num_domains": 30,
189
+ "len_soft_prompts": 32,
190
+ "dim_time": 32,
191
+ "max_len_seq": 512,
192
+ "use_hetero_proj": false,
193
+ "action_mode": "auto",
194
+ "num_denoising_steps": 10,
195
+ "use_proprio": true,
196
+ "max_state_dim": 20,
197
+ "max_action_dim": 20,
198
+ "domain_feature_key": null,
199
+ "resize_imgs_with_padding": [
200
+ 224,
201
+ 224
202
+ ],
203
+ "num_image_views": 4,
204
+ "empty_cameras": 1,
205
+ "freeze_vision_encoder": false,
206
+ "freeze_language_encoder": false,
207
+ "train_policy_transformer": true,
208
+ "train_soft_prompts": true,
209
+ "optimizer_lr": 0.0001,
210
+ "optimizer_betas": [
211
+ 0.9,
212
+ 0.95
213
+ ],
214
+ "optimizer_eps": 1e-08,
215
+ "optimizer_weight_decay": 0.0001,
216
+ "optimizer_grad_clip_norm": 10.0,
217
+ "optimizer_soft_prompt_lr_scale": 1.0,
218
+ "optimizer_soft_prompt_warmup_lr_scale": null,
219
+ "scheduler_warmup_steps": 1000,
220
+ "scheduler_decay_steps": 30000,
221
+ "scheduler_decay_lr": 2.5e-06
222
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfad267c6ce46987f934023f1fc1c3d17e1b21ba0cb92cb4095cf7a3dd7dbda6
3
+ size 1759596986
train_config.json ADDED
@@ -0,0 +1,363 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "SoSolaris/socks_clean",
4
+ "root": null,
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": "xvla",
85
+ "n_obs_steps": 1,
86
+ "input_features": {
87
+ "observation.images.image": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 3,
91
+ 256,
92
+ 256
93
+ ]
94
+ },
95
+ "observation.images.image2": {
96
+ "type": "VISUAL",
97
+ "shape": [
98
+ 3,
99
+ 256,
100
+ 256
101
+ ]
102
+ },
103
+ "observation.state": {
104
+ "type": "STATE",
105
+ "shape": [
106
+ 8
107
+ ]
108
+ },
109
+ "observation.images.empty_camera_0": {
110
+ "type": "VISUAL",
111
+ "shape": [
112
+ 3,
113
+ 224,
114
+ 224
115
+ ]
116
+ }
117
+ },
118
+ "output_features": {
119
+ "action": {
120
+ "type": "ACTION",
121
+ "shape": [
122
+ 6
123
+ ]
124
+ }
125
+ },
126
+ "device": "cuda",
127
+ "use_amp": false,
128
+ "use_peft": false,
129
+ "push_to_hub": true,
130
+ "repo_id": "SoSolaris/xvla-your-robot",
131
+ "private": null,
132
+ "tags": null,
133
+ "license": null,
134
+ "pretrained_path": "lerobot/xvla-base",
135
+ "chunk_size": 30,
136
+ "n_action_steps": 30,
137
+ "dtype": "bfloat16",
138
+ "normalization_mapping": {
139
+ "STATE": "IDENTITY",
140
+ "ACTION": "MEAN_STD",
141
+ "VISUAL": "IDENTITY"
142
+ },
143
+ "florence_config": {
144
+ "model_type": "florence2",
145
+ "bos_token_id": 0,
146
+ "eos_token_id": 2,
147
+ "ignore_index": -100,
148
+ "pad_token_id": 1,
149
+ "projection_dim": 1024,
150
+ "text_config": {
151
+ "vocab_size": 51289,
152
+ "activation_dropout": 0.1,
153
+ "activation_function": "gelu",
154
+ "add_bias_logits": false,
155
+ "add_final_layer_norm": false,
156
+ "attention_dropout": 0.1,
157
+ "bos_token_id": 0,
158
+ "classif_dropout": 0.1,
159
+ "classifier_dropout": 0.0,
160
+ "d_model": 1024,
161
+ "decoder_attention_heads": 16,
162
+ "decoder_ffn_dim": 4096,
163
+ "decoder_layerdrop": 0.0,
164
+ "decoder_layers": 12,
165
+ "decoder_start_token_id": 2,
166
+ "dropout": 0.1,
167
+ "early_stopping": true,
168
+ "encoder_attention_heads": 16,
169
+ "encoder_ffn_dim": 4096,
170
+ "encoder_layerdrop": 0.0,
171
+ "encoder_layers": 12,
172
+ "eos_token_id": 2,
173
+ "forced_eos_token_id": 2,
174
+ "forced_bos_token_id": 0,
175
+ "gradient_checkpointing": false,
176
+ "init_std": 0.02,
177
+ "is_encoder_decoder": true,
178
+ "label2id": {
179
+ "LABEL_0": 0,
180
+ "LABEL_1": 1,
181
+ "LABEL_2": 2
182
+ },
183
+ "max_position_embeddings": 4096,
184
+ "no_repeat_ngram_size": 3,
185
+ "normalize_before": false,
186
+ "num_hidden_layers": 12,
187
+ "pad_token_id": 1,
188
+ "scale_embedding": false,
189
+ "num_beams": 3
190
+ },
191
+ "vision_config": {
192
+ "model_type": "davit",
193
+ "drop_path_rate": 0.1,
194
+ "patch_size": [
195
+ 7,
196
+ 3,
197
+ 3,
198
+ 3
199
+ ],
200
+ "patch_stride": [
201
+ 4,
202
+ 2,
203
+ 2,
204
+ 2
205
+ ],
206
+ "patch_padding": [
207
+ 3,
208
+ 1,
209
+ 1,
210
+ 1
211
+ ],
212
+ "patch_prenorm": [
213
+ false,
214
+ true,
215
+ true,
216
+ true
217
+ ],
218
+ "enable_checkpoint": false,
219
+ "dim_embed": [
220
+ 256,
221
+ 512,
222
+ 1024,
223
+ 2048
224
+ ],
225
+ "num_heads": [
226
+ 8,
227
+ 16,
228
+ 32,
229
+ 64
230
+ ],
231
+ "num_groups": [
232
+ 8,
233
+ 16,
234
+ 32,
235
+ 64
236
+ ],
237
+ "depths": [
238
+ 1,
239
+ 1,
240
+ 9,
241
+ 1
242
+ ],
243
+ "window_size": 12,
244
+ "projection_dim": 1024,
245
+ "visual_temporal_embedding": {
246
+ "type": "COSINE",
247
+ "max_temporal_embeddings": 100
248
+ },
249
+ "image_pos_embed": {
250
+ "type": "learned_abs_2d",
251
+ "max_pos_embeddings": 50
252
+ },
253
+ "image_feature_source": [
254
+ "spatial_avg_pool",
255
+ "temporal_avg_pool"
256
+ ]
257
+ },
258
+ "vocab_size": 51289,
259
+ "torch_dtype": "float32",
260
+ "is_encoder_decoder": true
261
+ },
262
+ "tokenizer_name": "facebook/bart-large",
263
+ "tokenizer_max_length": 1024,
264
+ "tokenizer_padding_side": "right",
265
+ "pad_language_to": "max_length",
266
+ "hidden_size": 1024,
267
+ "depth": 24,
268
+ "num_heads": 16,
269
+ "mlp_ratio": 4.0,
270
+ "num_domains": 30,
271
+ "len_soft_prompts": 32,
272
+ "dim_time": 32,
273
+ "max_len_seq": 512,
274
+ "use_hetero_proj": false,
275
+ "action_mode": "auto",
276
+ "num_denoising_steps": 10,
277
+ "use_proprio": true,
278
+ "max_state_dim": 20,
279
+ "max_action_dim": 20,
280
+ "domain_feature_key": null,
281
+ "resize_imgs_with_padding": [
282
+ 224,
283
+ 224
284
+ ],
285
+ "num_image_views": 4,
286
+ "empty_cameras": 1,
287
+ "freeze_vision_encoder": false,
288
+ "freeze_language_encoder": false,
289
+ "train_policy_transformer": true,
290
+ "train_soft_prompts": true,
291
+ "optimizer_lr": 0.0001,
292
+ "optimizer_betas": [
293
+ 0.9,
294
+ 0.95
295
+ ],
296
+ "optimizer_eps": 1e-08,
297
+ "optimizer_weight_decay": 0.0001,
298
+ "optimizer_grad_clip_norm": 10.0,
299
+ "optimizer_soft_prompt_lr_scale": 1.0,
300
+ "optimizer_soft_prompt_warmup_lr_scale": null,
301
+ "scheduler_warmup_steps": 1000,
302
+ "scheduler_decay_steps": 30000,
303
+ "scheduler_decay_lr": 2.5e-06
304
+ },
305
+ "output_dir": "outputs/xvla_training",
306
+ "job_name": "xvla_training",
307
+ "resume": false,
308
+ "seed": 1000,
309
+ "num_workers": 4,
310
+ "batch_size": 8,
311
+ "steps": 20000,
312
+ "eval_freq": 20000,
313
+ "log_freq": 200,
314
+ "tolerance_s": 0.0001,
315
+ "save_checkpoint": true,
316
+ "save_freq": 20000,
317
+ "use_policy_training_preset": true,
318
+ "optimizer": {
319
+ "type": "xvla-adamw",
320
+ "lr": 0.0001,
321
+ "weight_decay": 0.0001,
322
+ "grad_clip_norm": 10.0,
323
+ "betas": [
324
+ 0.9,
325
+ 0.95
326
+ ],
327
+ "eps": 1e-08,
328
+ "soft_prompt_lr_scale": 1.0,
329
+ "soft_prompt_warmup_lr_scale": null
330
+ },
331
+ "scheduler": {
332
+ "type": "cosine_decay_with_warmup",
333
+ "num_warmup_steps": 1000,
334
+ "num_decay_steps": 30000,
335
+ "peak_lr": 0.0001,
336
+ "decay_lr": 2.5e-06
337
+ },
338
+ "eval": {
339
+ "n_episodes": 50,
340
+ "batch_size": 50,
341
+ "use_async_envs": false
342
+ },
343
+ "wandb": {
344
+ "enable": false,
345
+ "disable_artifact": false,
346
+ "project": "lerobot",
347
+ "entity": null,
348
+ "notes": null,
349
+ "run_id": null,
350
+ "mode": null
351
+ },
352
+ "peft": null,
353
+ "use_rabc": false,
354
+ "rabc_progress_path": null,
355
+ "rabc_kappa": 0.01,
356
+ "rabc_epsilon": 1e-06,
357
+ "rabc_head_mode": "sparse",
358
+ "rename_map": {
359
+ "observation.images.front": "observation.images.image",
360
+ "observation.images.up": "observation.images.image2"
361
+ },
362
+ "checkpoint_path": null
363
+ }