Robotics
LeRobot
Safetensors
openvla
globcy commited on
Commit
3a1bb2c
·
verified ·
1 Parent(s): 4e41d3c

Upload policy weights, train config and readme

Browse files
Files changed (5) hide show
  1. README.md +62 -0
  2. adapter_config.json +60 -0
  3. adapter_model.safetensors +3 -0
  4. config.json +67 -0
  5. train_config.json +215 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: globcy/libero_dir_trace_90
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: openvla
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - openvla
9
+ - robotics
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for openvla
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
adapter_config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": {
6
+ "base_model_class": "OpenVLAPolicy",
7
+ "parent_library": "lerobot.policies.openvla.modeling_openvla"
8
+ },
9
+ "base_model_name_or_path": null,
10
+ "bias": "none",
11
+ "corda_config": null,
12
+ "ensure_weight_tying": false,
13
+ "eva_config": null,
14
+ "exclude_modules": null,
15
+ "fan_in_fan_out": false,
16
+ "inference_mode": true,
17
+ "init_lora_weights": true,
18
+ "layer_replication": null,
19
+ "layers_pattern": null,
20
+ "layers_to_transform": null,
21
+ "loftq_config": {},
22
+ "lora_alpha": 32,
23
+ "lora_bias": false,
24
+ "lora_dropout": 0.1,
25
+ "megatron_config": null,
26
+ "megatron_core": "megatron.core",
27
+ "modules_to_save": [],
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.18.1",
30
+ "qalora_group_size": 16,
31
+ "r": 16,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "gate_proj",
36
+ "attn.proj",
37
+ "q",
38
+ "o_proj",
39
+ "k_proj",
40
+ "v_proj",
41
+ "fc2",
42
+ "up_proj",
43
+ "projector.0",
44
+ "projector.4",
45
+ "attn_pool.proj",
46
+ "projector.2",
47
+ "fc1",
48
+ "lm_head",
49
+ "kv",
50
+ "down_proj",
51
+ "qkv",
52
+ "q_proj"
53
+ ],
54
+ "target_parameters": null,
55
+ "task_type": null,
56
+ "trainable_token_indices": null,
57
+ "use_dora": false,
58
+ "use_qalora": false,
59
+ "use_rslora": false
60
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9faebdb716a6a8c40ec031d648cfb7ab78f5a40be0dfccd0da3147611f1e981
3
+ size 221580936
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "openvla",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 224,
10
+ 224
11
+ ]
12
+ },
13
+ "observation.images.image2": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 224,
18
+ 224
19
+ ]
20
+ },
21
+ "observation.state": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 8
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 7
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "use_peft": true,
39
+ "push_to_hub": true,
40
+ "repo_id": "globcy/openvla_high_level_dir_only_90_bottom_up",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": null,
45
+ "pretrained_checkpoint": "/pfss/mlde/workspaces/mlde_wsp_Rohrbach/users/cb14syta/Embodied-CoT/steerable-policy-embodied-reasoner-7b",
46
+ "text_tokenizer_name": "meta-llama/Llama-2-7b-hf",
47
+ "tokenizer_max_length": 2048,
48
+ "dtype": "bfloat16",
49
+ "reason": false,
50
+ "chunk_size": 25,
51
+ "image_resolution": [
52
+ 224,
53
+ 224
54
+ ],
55
+ "hierarchical": true,
56
+ "dynamic_action_chunking": "move",
57
+ "gradient_checkpointing": true,
58
+ "compile_model": false,
59
+ "normalization_mapping": {
60
+ "VISUAL": "IDENTITY",
61
+ "STATE": "MEAN_STD",
62
+ "ACTION": "MEAN_STD"
63
+ },
64
+ "optimizer_lr": 0.00025,
65
+ "optimizer_weight_decay": 0.0,
66
+ "optimizer_grad_clip_norm": 1.0
67
+ }
train_config.json ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "globcy/libero_dir_trace_90",
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
+ "return_uint8": false,
81
+ "streaming": false
82
+ },
83
+ "env": null,
84
+ "policy": {
85
+ "type": "openvla",
86
+ "n_obs_steps": 1,
87
+ "input_features": {
88
+ "observation.images.image": {
89
+ "type": "VISUAL",
90
+ "shape": [
91
+ 3,
92
+ 224,
93
+ 224
94
+ ]
95
+ },
96
+ "observation.images.image2": {
97
+ "type": "VISUAL",
98
+ "shape": [
99
+ 3,
100
+ 224,
101
+ 224
102
+ ]
103
+ },
104
+ "observation.state": {
105
+ "type": "STATE",
106
+ "shape": [
107
+ 8
108
+ ]
109
+ }
110
+ },
111
+ "output_features": {
112
+ "action": {
113
+ "type": "ACTION",
114
+ "shape": [
115
+ 7
116
+ ]
117
+ }
118
+ },
119
+ "device": "cuda",
120
+ "use_amp": false,
121
+ "use_peft": true,
122
+ "push_to_hub": true,
123
+ "repo_id": "globcy/openvla_high_level_dir_only_90_bottom_up",
124
+ "private": null,
125
+ "tags": null,
126
+ "license": null,
127
+ "pretrained_path": null,
128
+ "pretrained_checkpoint": "/pfss/mlde/workspaces/mlde_wsp_Rohrbach/users/cb14syta/Embodied-CoT/steerable-policy-embodied-reasoner-7b",
129
+ "text_tokenizer_name": "meta-llama/Llama-2-7b-hf",
130
+ "tokenizer_max_length": 2048,
131
+ "dtype": "bfloat16",
132
+ "reason": false,
133
+ "chunk_size": 25,
134
+ "image_resolution": [
135
+ 224,
136
+ 224
137
+ ],
138
+ "hierarchical": true,
139
+ "dynamic_action_chunking": "move",
140
+ "gradient_checkpointing": true,
141
+ "compile_model": false,
142
+ "normalization_mapping": {
143
+ "VISUAL": "IDENTITY",
144
+ "STATE": "MEAN_STD",
145
+ "ACTION": "MEAN_STD"
146
+ },
147
+ "optimizer_lr": 0.00025,
148
+ "optimizer_weight_decay": 0.0,
149
+ "optimizer_grad_clip_norm": 1.0
150
+ },
151
+ "output_dir": "outputs/openvla_high_level_dir_only_90_bottom_up",
152
+ "job_name": "openvla_high_level_dir_only_90_bottom_up",
153
+ "resume": false,
154
+ "seed": 1000,
155
+ "cudnn_deterministic": false,
156
+ "num_workers": 4,
157
+ "batch_size": 16,
158
+ "prefetch_factor": 4,
159
+ "persistent_workers": true,
160
+ "steps": 30000,
161
+ "eval_freq": 20000,
162
+ "log_freq": 200,
163
+ "tolerance_s": 0.0001,
164
+ "save_checkpoint": true,
165
+ "save_freq": 10000,
166
+ "use_policy_training_preset": true,
167
+ "optimizer": {
168
+ "type": "adamw",
169
+ "lr": 0.00025,
170
+ "weight_decay": 0.0,
171
+ "grad_clip_norm": 10.0,
172
+ "betas": [
173
+ 0.9,
174
+ 0.999
175
+ ],
176
+ "eps": 1e-08
177
+ },
178
+ "scheduler": null,
179
+ "eval": {
180
+ "n_episodes": 50,
181
+ "batch_size": 22,
182
+ "use_async_envs": true
183
+ },
184
+ "wandb": {
185
+ "enable": false,
186
+ "disable_artifact": false,
187
+ "project": "lerobot",
188
+ "entity": null,
189
+ "notes": null,
190
+ "run_id": null,
191
+ "mode": null,
192
+ "add_tags": true
193
+ },
194
+ "peft": {
195
+ "target_modules": null,
196
+ "full_training_modules": null,
197
+ "method_type": "LORA",
198
+ "init_type": null,
199
+ "r": 16,
200
+ "lora_alpha": 32,
201
+ "lora_dropout": 0.1
202
+ },
203
+ "use_rabc": false,
204
+ "rabc_progress_path": null,
205
+ "rabc_kappa": 0.01,
206
+ "rabc_epsilon": 1e-06,
207
+ "rabc_head_mode": "sparse",
208
+ "rename_map": {},
209
+ "checkpoint_path": null,
210
+ "bottom_up": true,
211
+ "bottom_up_chunk_size": 25,
212
+ "reader_chain_close": 0,
213
+ "reader_chain_dir": false,
214
+ "is_planner": true
215
+ }