pumpkin601 commited on
Commit
a118e28
·
verified ·
1 Parent(s): 03efd28

Back up exact final dependency: xvla_libero

Browse files
xvla_libero/.gitattributes ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
xvla_libero/BACKUP_PROVENANCE.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_repo": "lerobot/xvla-libero",
3
+ "source_revision": "12e8783e996944f5c97e490d37d4c145484ed70a",
4
+ "method": "server-side copy after fresh on-server file hashing",
5
+ "verified_source_files": [
6
+ {
7
+ "path": "xvla_libero/.gitattributes",
8
+ "bytes": 1519,
9
+ "sha256": "11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361",
10
+ "source_repo": "lerobot/xvla-libero",
11
+ "source_revision": "12e8783e996944f5c97e490d37d4c145484ed70a"
12
+ },
13
+ {
14
+ "path": "xvla_libero/README.md",
15
+ "bytes": 3951,
16
+ "sha256": "236c6b453d8c54c12ab3ae1ed7dfe4bec98b0e69891b36e120cf3084d9b31fda",
17
+ "source_repo": "lerobot/xvla-libero",
18
+ "source_revision": "12e8783e996944f5c97e490d37d4c145484ed70a"
19
+ },
20
+ {
21
+ "path": "xvla_libero/config.json",
22
+ "bytes": 9307,
23
+ "sha256": "db9ff1de61760910dcc5d355528346144d6a80687212c8600cf31207f0f5e010",
24
+ "source_repo": "lerobot/xvla-libero",
25
+ "source_revision": "12e8783e996944f5c97e490d37d4c145484ed70a"
26
+ },
27
+ {
28
+ "path": "xvla_libero/model.safetensors",
29
+ "bytes": 3519073692,
30
+ "sha256": "2a0e29448111df56b9485cb1f964db799205794c49baeda48ef960589ce649ab",
31
+ "source_repo": "lerobot/xvla-libero",
32
+ "source_revision": "12e8783e996944f5c97e490d37d4c145484ed70a"
33
+ },
34
+ {
35
+ "path": "xvla_libero/policy_postprocessor.json",
36
+ "bytes": 575,
37
+ "sha256": "d1d73a18f14aca0e9db7cdbb3eb536adadf4960947347cb1645c9a246ea0acb4",
38
+ "source_repo": "lerobot/xvla-libero",
39
+ "source_revision": "12e8783e996944f5c97e490d37d4c145484ed70a"
40
+ },
41
+ {
42
+ "path": "xvla_libero/policy_preprocessor.json",
43
+ "bytes": 1635,
44
+ "sha256": "b416b9d27ff58eada06d0d01d92291aa09161ba7eff5b84279e50f4a647cd37d",
45
+ "source_repo": "lerobot/xvla-libero",
46
+ "source_revision": "12e8783e996944f5c97e490d37d4c145484ed70a"
47
+ }
48
+ ],
49
+ "historical_provenance": {
50
+ "model": "xvla_libero",
51
+ "manifest_sha256": "63f49030df571872ea781edc9c55325324f2e62bcd74ce251af92e669918d23d",
52
+ "source": "huggingface_official_metadata_mirror_payload",
53
+ "repo": "lerobot/xvla-libero",
54
+ "revision": "12e8783e996944f5c97e490d37d4c145484ed70a",
55
+ "files_total": 6,
56
+ "files_complete": 6,
57
+ "state": "complete",
58
+ "started_unix": 1790349929.1644478,
59
+ "files": [
60
+ {
61
+ "path": ".gitattributes",
62
+ "size": 1519,
63
+ "generation": null,
64
+ "sha256": null,
65
+ "md5_base64": null,
66
+ "git_blob_sha1": "a6344aac8c09253b3b630fb776ae94478aa0275b"
67
+ },
68
+ {
69
+ "path": "README.md",
70
+ "size": 3951,
71
+ "generation": null,
72
+ "sha256": null,
73
+ "md5_base64": null,
74
+ "git_blob_sha1": "6201d03949f13e29b13e89a50c1bc5ba70c4b17f"
75
+ },
76
+ {
77
+ "path": "config.json",
78
+ "size": 9307,
79
+ "generation": null,
80
+ "sha256": null,
81
+ "md5_base64": null,
82
+ "git_blob_sha1": "e0adaf281e0ff3ec92b9dce300266485101f08b3"
83
+ },
84
+ {
85
+ "path": "model.safetensors",
86
+ "size": 3519073692,
87
+ "generation": null,
88
+ "sha256": "2a0e29448111df56b9485cb1f964db799205794c49baeda48ef960589ce649ab",
89
+ "md5_base64": null,
90
+ "git_blob_sha1": null
91
+ },
92
+ {
93
+ "path": "policy_postprocessor.json",
94
+ "size": 575,
95
+ "generation": null,
96
+ "sha256": null,
97
+ "md5_base64": null,
98
+ "git_blob_sha1": "9eac32b83fe981091f302bc7f03ba863e163390d"
99
+ },
100
+ {
101
+ "path": "policy_preprocessor.json",
102
+ "size": 1635,
103
+ "generation": null,
104
+ "sha256": null,
105
+ "md5_base64": null,
106
+ "git_blob_sha1": "1d0a0fd8b6382b6930c91219e1a21afe65b7889a"
107
+ }
108
+ ],
109
+ "ended_unix": 1790351134.0775633
110
+ }
111
+ }
xvla_libero/README.md ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ library_name: lerobot
5
+ pipeline_tag: robotics
6
+ tags:
7
+ - vision-language-action
8
+ - imitation-learning
9
+ - lerobot
10
+ inference: false
11
+ license: apache-2.0
12
+ datasets:
13
+ - HuggingFaceVLA/libero
14
+ ---
15
+
16
+ # X-VLA (LeRobot)
17
+
18
+ X-VLA is a Vision-Language-Action foundation model that uses soft prompts to handle cross-embodiment and cross-domain robot control within a unified Transformer architecture.
19
+
20
+ Checkpoint trained and evaluated on LIBERO tasks.
21
+
22
+ **Original paper:** [X-VLA: Soft-Prompted Transformer as Scalable Cross-Embodiment Vision-Language-Action Model](https://arxiv.org/abs/2510.10274)
23
+ **Reference implementation:** https://github.com/2toinf/X-VLA
24
+ **LeRobot implementation:** Follows the original reference code for compatibility.
25
+
26
+
27
+ ## Model description
28
+
29
+ - **Inputs:** images (multi-view), proprio/state, optional language instruction
30
+ - **Outputs:** continuous actions
31
+ - **Training objective:** flow matching
32
+ - **Action representation:** continuous
33
+ - **Intended use:** Base model to fine tune on your specific use case
34
+
35
+
36
+ ## Quick start (inference on a real batch)
37
+
38
+ ### Installation
39
+
40
+ ```bash
41
+ pip install "lerobot[xvla]"
42
+ ```
43
+ For full installation details (including optional video dependencies such as ffmpeg for torchcodec), see the official documentation: https://huggingface.co/docs/lerobot/installation
44
+
45
+ ### Load model + dataset, run `select_action`
46
+
47
+ ```python
48
+ import torch
49
+ from lerobot.datasets.lerobot_dataset import LeRobotDataset
50
+ from lerobot.policies.factory import make_pre_post_processors
51
+
52
+ # Swap this import per-policy
53
+ from lerobot.policies.xvla.modeling_xvla import XVLAPolicy
54
+
55
+ # load a policy
56
+ model_id = "lerobot/xvla-libero" # <- swap checkpoint
57
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
58
+
59
+ policy = XVLAPolicy.from_pretrained(model_id).to(device).eval()
60
+
61
+ preprocess, postprocess = make_pre_post_processors(
62
+ policy.config,
63
+ model_id,
64
+ preprocessor_overrides={"device_processor": {"device": str(device)}},
65
+ )
66
+ # load a lerobotdataset (we will replace with a simpler dataset)
67
+ dataset = LeRobotDataset("lerobot/libero")
68
+
69
+ # pick an episode
70
+ episode_index = 0
71
+
72
+ # each episode corresponds to a contiguous range of frame indices
73
+ from_idx = dataset.meta.episodes["dataset_from_index"][episode_index]
74
+ to_idx = dataset.meta.episodes["dataset_to_index"][episode_index]
75
+
76
+ # get a single frame from that episode (e.g. the first frame)
77
+ frame_index = from_idx
78
+ frame = dict(dataset[frame_index])
79
+
80
+ batch = preprocess(frame)
81
+ with torch.inference_mode():
82
+ pred_action = policy.select_action(batch)
83
+ # use your policy postprocess, this post process the action
84
+ # for instance unnormalize the actions, detokenize it etc..
85
+ pred_action = postprocess(pred_action)
86
+ ```
87
+
88
+
89
+ ## Training step (loss + backward)
90
+
91
+ If you’re training / fine-tuning, you typically call `forward(...)` to get a loss and then:
92
+
93
+ ```python
94
+ policy.train()
95
+ batch = dict(dataset[0])
96
+ batch = preprocess(batch)
97
+
98
+ loss, outputs = policy.forward(batch)
99
+ loss.backward()
100
+
101
+ ```
102
+
103
+ > Notes:
104
+ >
105
+ > - Some policies expose `policy(**batch)` or return a dict; keep this snippet aligned with the policy API.
106
+ > - Use your trainer script (`lerobot-train`) for full training loops.
107
+
108
+
109
+ ## How to train / fine-tune
110
+
111
+ ```bash
112
+ lerobot-train \
113
+ --dataset.repo_id=${HF_USER}/<dataset> \
114
+ --output_dir=./outputs/[RUN_NAME] \
115
+ --job_name=[RUN_NAME] \
116
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id> \
117
+ --policy.path=lerobot/[BASE_CHECKPOINT] \
118
+ --policy.dtype=bfloat16 \
119
+ --policy.device=cuda \
120
+ --steps=100000 \
121
+ --batch_size=4
122
+ ```
123
+
124
+ Add policy-specific flags below:
125
+
126
+ - `-policy.chunk_size=...`
127
+ - `-policy.n_action_steps=...`
128
+ - `-policy.max_action_tokens=...`
129
+ - `-policy.gradient_checkpointing=true`
130
+
131
+
132
+ ## Evaluate in Simulation (LIBERO)
133
+
134
+ You can evaluate the model in Libero environment.
135
+
136
+ ```bash
137
+ lerobot-eval \
138
+ --policy.path=lerobot/xvla-libero \
139
+ --env.type=libero \
140
+ --env.task=libero_object \
141
+ --eval.batch_size=1 \
142
+ --eval.n_episodes=20
143
+ ```
xvla_libero/config.json ADDED
@@ -0,0 +1,320 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 20
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "push_to_hub": true,
47
+ "repo_id": null,
48
+ "private": null,
49
+ "tags": null,
50
+ "license": null,
51
+ "pretrained_path": null,
52
+ "chunk_size": 30,
53
+ "n_action_steps": 30,
54
+ "normalization_mapping": {
55
+ "STATE": "IDENTITY",
56
+ "ACTION": "IDENTITY",
57
+ "VISUAL": "IDENTITY"
58
+ },
59
+ "florence_config": {
60
+ "_attn_implementation_autoset": true,
61
+ "bos_token_id": 0,
62
+ "eos_token_id": 2,
63
+ "ignore_index": -100,
64
+ "is_encoder_decoder": true,
65
+ "model_type": "florence2",
66
+ "pad_token_id": 1,
67
+ "projection_dim": 1024,
68
+ "text_config": {
69
+ "_attn_implementation_autoset": true,
70
+ "_name_or_path": "",
71
+ "activation_dropout": 0.1,
72
+ "activation_function": "gelu",
73
+ "add_cross_attention": false,
74
+ "architectures": null,
75
+ "attention_dropout": 0.1,
76
+ "bad_words_ids": null,
77
+ "begin_suppress_tokens": null,
78
+ "bos_token_id": 0,
79
+ "chunk_size_feed_forward": 0,
80
+ "classifier_dropout": 0.0,
81
+ "cross_attention_hidden_size": null,
82
+ "d_model": 1024,
83
+ "decoder_attention_heads": 16,
84
+ "decoder_ffn_dim": 4096,
85
+ "decoder_layerdrop": 0.0,
86
+ "decoder_layers": 12,
87
+ "decoder_start_token_id": 2,
88
+ "diversity_penalty": 0.0,
89
+ "do_sample": false,
90
+ "dropout": 0.1,
91
+ "early_stopping": false,
92
+ "encoder_attention_heads": 16,
93
+ "encoder_ffn_dim": 4096,
94
+ "encoder_layerdrop": 0.0,
95
+ "encoder_layers": 12,
96
+ "encoder_no_repeat_ngram_size": 0,
97
+ "eos_token_id": 2,
98
+ "exponential_decay_length_penalty": null,
99
+ "finetuning_task": null,
100
+ "forced_bos_token_id": null,
101
+ "forced_eos_token_id": 2,
102
+ "id2label": {
103
+ "0": "LABEL_0",
104
+ "1": "LABEL_1",
105
+ "2": "LABEL_2"
106
+ },
107
+ "init_std": 0.02,
108
+ "is_decoder": false,
109
+ "is_encoder_decoder": true,
110
+ "label2id": {
111
+ "LABEL_0": 0,
112
+ "LABEL_1": 1,
113
+ "LABEL_2": 2
114
+ },
115
+ "length_penalty": 1.0,
116
+ "max_length": 20,
117
+ "max_position_embeddings": 4096,
118
+ "min_length": 0,
119
+ "model_type": "florence2_language",
120
+ "no_repeat_ngram_size": 0,
121
+ "num_beam_groups": 1,
122
+ "num_beams": 3,
123
+ "num_hidden_layers": 12,
124
+ "num_return_sequences": 1,
125
+ "output_attentions": false,
126
+ "output_hidden_states": false,
127
+ "output_scores": false,
128
+ "pad_token_id": 1,
129
+ "prefix": null,
130
+ "problem_type": null,
131
+ "pruned_heads": {},
132
+ "remove_invalid_values": false,
133
+ "repetition_penalty": 1.0,
134
+ "return_dict": true,
135
+ "return_dict_in_generate": false,
136
+ "scale_embedding": false,
137
+ "sep_token_id": null,
138
+ "suppress_tokens": null,
139
+ "task_specific_params": null,
140
+ "temperature": 1.0,
141
+ "tf_legacy_loss": false,
142
+ "tie_encoder_decoder": false,
143
+ "tie_word_embeddings": true,
144
+ "tokenizer_class": null,
145
+ "top_k": 50,
146
+ "top_p": 1.0,
147
+ "torch_dtype": null,
148
+ "torchscript": false,
149
+ "typical_p": 1.0,
150
+ "use_bfloat16": false,
151
+ "use_cache": true,
152
+ "vocab_size": 51289
153
+ },
154
+ "torch_dtype": "float32",
155
+ "vision_config": {
156
+ "_attn_implementation_autoset": false,
157
+ "_name_or_path": "",
158
+ "add_cross_attention": false,
159
+ "architectures": null,
160
+ "bad_words_ids": null,
161
+ "begin_suppress_tokens": null,
162
+ "bos_token_id": null,
163
+ "chunk_size_feed_forward": 0,
164
+ "cross_attention_hidden_size": null,
165
+ "decoder_start_token_id": null,
166
+ "depths": [
167
+ 1,
168
+ 1,
169
+ 9,
170
+ 1
171
+ ],
172
+ "dim_embed": [
173
+ 256,
174
+ 512,
175
+ 1024,
176
+ 2048
177
+ ],
178
+ "diversity_penalty": 0.0,
179
+ "do_sample": false,
180
+ "drop_path_rate": 0.1,
181
+ "early_stopping": false,
182
+ "enable_checkpoint": false,
183
+ "encoder_no_repeat_ngram_size": 0,
184
+ "eos_token_id": null,
185
+ "exponential_decay_length_penalty": null,
186
+ "finetuning_task": null,
187
+ "forced_bos_token_id": null,
188
+ "forced_eos_token_id": null,
189
+ "id2label": {
190
+ "0": "LABEL_0",
191
+ "1": "LABEL_1"
192
+ },
193
+ "image_feature_source": [
194
+ "spatial_avg_pool",
195
+ "temporal_avg_pool"
196
+ ],
197
+ "image_pos_embed": {
198
+ "max_pos_embeddings": 50,
199
+ "type": "learned_abs_2d"
200
+ },
201
+ "is_decoder": false,
202
+ "is_encoder_decoder": false,
203
+ "label2id": {
204
+ "LABEL_0": 0,
205
+ "LABEL_1": 1
206
+ },
207
+ "length_penalty": 1.0,
208
+ "max_length": 20,
209
+ "min_length": 0,
210
+ "model_type": "davit",
211
+ "no_repeat_ngram_size": 0,
212
+ "num_beam_groups": 1,
213
+ "num_beams": 1,
214
+ "num_groups": [
215
+ 8,
216
+ 16,
217
+ 32,
218
+ 64
219
+ ],
220
+ "num_heads": [
221
+ 8,
222
+ 16,
223
+ 32,
224
+ 64
225
+ ],
226
+ "num_return_sequences": 1,
227
+ "output_attentions": false,
228
+ "output_hidden_states": false,
229
+ "output_scores": false,
230
+ "pad_token_id": null,
231
+ "patch_padding": [
232
+ 3,
233
+ 1,
234
+ 1,
235
+ 1
236
+ ],
237
+ "patch_prenorm": [
238
+ false,
239
+ true,
240
+ true,
241
+ true
242
+ ],
243
+ "patch_size": [
244
+ 7,
245
+ 3,
246
+ 3,
247
+ 3
248
+ ],
249
+ "patch_stride": [
250
+ 4,
251
+ 2,
252
+ 2,
253
+ 2
254
+ ],
255
+ "prefix": null,
256
+ "problem_type": null,
257
+ "projection_dim": 1024,
258
+ "pruned_heads": {},
259
+ "remove_invalid_values": false,
260
+ "repetition_penalty": 1.0,
261
+ "return_dict": true,
262
+ "return_dict_in_generate": false,
263
+ "sep_token_id": null,
264
+ "suppress_tokens": null,
265
+ "task_specific_params": null,
266
+ "temperature": 1.0,
267
+ "tf_legacy_loss": false,
268
+ "tie_encoder_decoder": false,
269
+ "tie_word_embeddings": true,
270
+ "tokenizer_class": null,
271
+ "top_k": 50,
272
+ "top_p": 1.0,
273
+ "torch_dtype": null,
274
+ "torchscript": false,
275
+ "typical_p": 1.0,
276
+ "use_bfloat16": false,
277
+ "visual_temporal_embedding": {
278
+ "max_temporal_embeddings": 100,
279
+ "type": "COSINE"
280
+ },
281
+ "window_size": 12
282
+ },
283
+ "vocab_size": 51289
284
+ },
285
+ "tokenizer_name": "facebook/bart-large",
286
+ "tokenizer_max_length": 1024,
287
+ "tokenizer_padding_side": "right",
288
+ "pad_language_to": "max_length",
289
+ "hidden_size": 1024,
290
+ "depth": 24,
291
+ "num_heads": 16,
292
+ "mlp_ratio": 4.0,
293
+ "num_domains": 30,
294
+ "len_soft_prompts": 32,
295
+ "dim_time": 32,
296
+ "max_len_seq": 512,
297
+ "use_hetero_proj": false,
298
+ "action_mode": "ee6d",
299
+ "num_denoising_steps": 10,
300
+ "use_proprio": true,
301
+ "max_state_dim": 20,
302
+ "domain_feature_key": null,
303
+ "resize_imgs_with_padding": [
304
+ 224,
305
+ 224
306
+ ],
307
+ "num_image_views": 3,
308
+ "empty_cameras": 1,
309
+ "optimizer_lr": 0.0001,
310
+ "optimizer_betas": [
311
+ 0.9,
312
+ 0.95
313
+ ],
314
+ "optimizer_eps": 1e-08,
315
+ "optimizer_weight_decay": 0.0001,
316
+ "optimizer_grad_clip_norm": 10.0,
317
+ "scheduler_warmup_steps": 1000,
318
+ "scheduler_decay_steps": 30000,
319
+ "scheduler_decay_lr": 2.5e-06
320
+ }
xvla_libero/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a0e29448111df56b9485cb1f964db799205794c49baeda48ef960589ce649ab
3
+ size 3519073692
xvla_libero/policy_postprocessor.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ 20
13
+ ]
14
+ }
15
+ },
16
+ "norm_map": {
17
+ "VISUAL": "MEAN_STD",
18
+ "STATE": "IDENTITY",
19
+ "ACTION": "IDENTITY"
20
+ }
21
+ }
22
+ },
23
+ {
24
+ "registry_name": "device_processor",
25
+ "config": {
26
+ "device": "cpu",
27
+ "float_dtype": null
28
+ }
29
+ }
30
+ ]
31
+ }
xvla_libero/policy_preprocessor.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 50,
18
+ "task_key": "task",
19
+ "padding_side": "right",
20
+ "padding": "max_length",
21
+ "truncation": true,
22
+ "tokenizer_name": "facebook/bart-large"
23
+ }
24
+ },
25
+ {
26
+ "registry_name": "xvla_add_domain_id",
27
+ "config": {
28
+ "domain_id": 3
29
+ }
30
+ },
31
+ {
32
+ "registry_name": "device_processor",
33
+ "config": {
34
+ "device": "cuda",
35
+ "float_dtype": null
36
+ }
37
+ },
38
+ {
39
+ "registry_name": "normalizer_processor",
40
+ "config": {
41
+ "eps": 1e-08,
42
+ "features": {
43
+ "observation.images.image": {
44
+ "type": "VISUAL",
45
+ "shape": [
46
+ 3,
47
+ 224,
48
+ 224
49
+ ]
50
+ },
51
+ "observation.images.image2": {
52
+ "type": "VISUAL",
53
+ "shape": [
54
+ 3,
55
+ 224,
56
+ 224
57
+ ]
58
+ },
59
+ "observation.state": {
60
+ "type": "STATE",
61
+ "shape": [
62
+ 8
63
+ ]
64
+ },
65
+ "action": {
66
+ "type": "ACTION",
67
+ "shape": [
68
+ 20
69
+ ]
70
+ }
71
+ },
72
+ "norm_map": {
73
+ "VISUAL": "IDENTITY",
74
+ "STATE": "IDENTITY",
75
+ "ACTION": "IDENTITY"
76
+ }
77
+ }
78
+ }
79
+ ]
80
+ }