radiuson commited on
Commit
d9900aa
·
verified ·
1 Parent(s): 9fc58fa

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +94 -0
  3. model.safetensors +3 -0
  4. train_config.json +255 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: HuggingFaceVLA/libero
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: dic_vla
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - dic_vla
9
+ - robotics
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for dic_vla
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,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "dic_vla",
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
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 7
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "push_to_hub": true,
39
+ "repo_id": "radiuson/Dic-libero-test",
40
+ "private": null,
41
+ "tags": null,
42
+ "license": null,
43
+ "pretrained_path": null,
44
+ "chunk_size": 64,
45
+ "n_action_steps": 64,
46
+ "normalization_mapping": {
47
+ "VISUAL": "IDENTITY",
48
+ "STATE": "MEAN_STD",
49
+ "ACTION": "MEAN_STD"
50
+ },
51
+ "max_state_dim": 14,
52
+ "max_action_dim": 14,
53
+ "resize_imgs_with_padding": [
54
+ 512,
55
+ 512
56
+ ],
57
+ "empty_cameras": 0,
58
+ "vlm_model_name": "HuggingFaceTB/SmolVLM-256M-Instruct",
59
+ "load_vlm_weights": false,
60
+ "num_vlm_layers": 16,
61
+ "freeze_vision_encoder": true,
62
+ "train_state_proj": true,
63
+ "dic_config": "dic-tiny",
64
+ "dic_base_channels": null,
65
+ "dic_num_groups": null,
66
+ "dic_encoder_blocks": null,
67
+ "dic_bottleneck_blocks": null,
68
+ "dic_decoder_blocks": null,
69
+ "dic_dropout": 0.2,
70
+ "dic_sparse_skip_stride": 1,
71
+ "num_inference_steps": 4,
72
+ "min_period": 1.0,
73
+ "max_period": 10000.0,
74
+ "condition_pooling": "mean",
75
+ "condition_dim": null,
76
+ "optimizer_lr": 0.0001,
77
+ "optimizer_betas": [
78
+ 0.9,
79
+ 0.95
80
+ ],
81
+ "optimizer_eps": 1e-08,
82
+ "optimizer_weight_decay": 1e-06,
83
+ "optimizer_grad_clip_norm": 1.0,
84
+ "scheduler_warmup_steps": 1000,
85
+ "scheduler_decay_steps": 30000,
86
+ "scheduler_decay_lr": 1e-06,
87
+ "tokenizer_max_length": 48,
88
+ "add_image_special_tokens": false,
89
+ "prefix_length": -1,
90
+ "use_cache": true,
91
+ "pad_language_to": "longest",
92
+ "adapt_to_pi_aloha": false,
93
+ "use_delta_joint_actions_aloha": false
94
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1237820a91d5daf2937d4b01b2772ccf8ecd4950a04e44c778721a6a88af3513
3
+ size 714395872
train_config.json ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "HuggingFaceVLA/libero",
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
+ }
62
+ },
63
+ "revision": null,
64
+ "use_imagenet_stats": true,
65
+ "video_backend": "torchcodec",
66
+ "streaming": false
67
+ },
68
+ "env": {
69
+ "type": "libero",
70
+ "task": "libero_10",
71
+ "fps": 30,
72
+ "features": {
73
+ "action": {
74
+ "type": "ACTION",
75
+ "shape": [
76
+ 7
77
+ ]
78
+ },
79
+ "agent_pos": {
80
+ "type": "STATE",
81
+ "shape": [
82
+ 8
83
+ ]
84
+ },
85
+ "pixels/agentview_image": {
86
+ "type": "VISUAL",
87
+ "shape": [
88
+ 360,
89
+ 360,
90
+ 3
91
+ ]
92
+ },
93
+ "pixels/robot0_eye_in_hand_image": {
94
+ "type": "VISUAL",
95
+ "shape": [
96
+ 360,
97
+ 360,
98
+ 3
99
+ ]
100
+ }
101
+ },
102
+ "features_map": {
103
+ "action": "action",
104
+ "agent_pos": "observation.state",
105
+ "pixels/agentview_image": "observation.images.image",
106
+ "pixels/robot0_eye_in_hand_image": "observation.images.image2"
107
+ },
108
+ "max_parallel_tasks": 1,
109
+ "disable_env_checker": true,
110
+ "episode_length": 520,
111
+ "obs_type": "pixels_agent_pos",
112
+ "render_mode": "rgb_array",
113
+ "camera_name": "agentview_image,robot0_eye_in_hand_image",
114
+ "init_states": true,
115
+ "camera_name_mapping": null
116
+ },
117
+ "policy": {
118
+ "type": "dic_vla",
119
+ "n_obs_steps": 1,
120
+ "input_features": {
121
+ "observation.images.image": {
122
+ "type": "VISUAL",
123
+ "shape": [
124
+ 3,
125
+ 256,
126
+ 256
127
+ ]
128
+ },
129
+ "observation.images.image2": {
130
+ "type": "VISUAL",
131
+ "shape": [
132
+ 3,
133
+ 256,
134
+ 256
135
+ ]
136
+ },
137
+ "observation.state": {
138
+ "type": "STATE",
139
+ "shape": [
140
+ 8
141
+ ]
142
+ }
143
+ },
144
+ "output_features": {
145
+ "action": {
146
+ "type": "ACTION",
147
+ "shape": [
148
+ 7
149
+ ]
150
+ }
151
+ },
152
+ "device": "cuda",
153
+ "use_amp": false,
154
+ "push_to_hub": true,
155
+ "repo_id": "radiuson/Dic-libero-test",
156
+ "private": null,
157
+ "tags": null,
158
+ "license": null,
159
+ "pretrained_path": null,
160
+ "chunk_size": 64,
161
+ "n_action_steps": 64,
162
+ "normalization_mapping": {
163
+ "VISUAL": "IDENTITY",
164
+ "STATE": "MEAN_STD",
165
+ "ACTION": "MEAN_STD"
166
+ },
167
+ "max_state_dim": 14,
168
+ "max_action_dim": 14,
169
+ "resize_imgs_with_padding": [
170
+ 512,
171
+ 512
172
+ ],
173
+ "empty_cameras": 0,
174
+ "vlm_model_name": "HuggingFaceTB/SmolVLM-256M-Instruct",
175
+ "load_vlm_weights": false,
176
+ "num_vlm_layers": 16,
177
+ "freeze_vision_encoder": true,
178
+ "train_state_proj": true,
179
+ "dic_config": "dic-tiny",
180
+ "dic_base_channels": null,
181
+ "dic_num_groups": null,
182
+ "dic_encoder_blocks": null,
183
+ "dic_bottleneck_blocks": null,
184
+ "dic_decoder_blocks": null,
185
+ "dic_dropout": 0.2,
186
+ "dic_sparse_skip_stride": 1,
187
+ "num_inference_steps": 4,
188
+ "min_period": 1.0,
189
+ "max_period": 10000.0,
190
+ "condition_pooling": "mean",
191
+ "condition_dim": null,
192
+ "optimizer_lr": 0.0001,
193
+ "optimizer_betas": [
194
+ 0.9,
195
+ 0.95
196
+ ],
197
+ "optimizer_eps": 1e-08,
198
+ "optimizer_weight_decay": 1e-06,
199
+ "optimizer_grad_clip_norm": 1.0,
200
+ "scheduler_warmup_steps": 1000,
201
+ "scheduler_decay_steps": 30000,
202
+ "scheduler_decay_lr": 1e-06,
203
+ "tokenizer_max_length": 48,
204
+ "add_image_special_tokens": false,
205
+ "prefix_length": -1,
206
+ "use_cache": true,
207
+ "pad_language_to": "longest",
208
+ "adapt_to_pi_aloha": false,
209
+ "use_delta_joint_actions_aloha": false
210
+ },
211
+ "output_dir": "test_outputs",
212
+ "job_name": "libero_dic_vla",
213
+ "resume": false,
214
+ "seed": 1000,
215
+ "num_workers": 4,
216
+ "batch_size": 1,
217
+ "steps": 10,
218
+ "eval_freq": 100000,
219
+ "log_freq": 200,
220
+ "save_checkpoint": true,
221
+ "save_freq": 20000,
222
+ "use_policy_training_preset": true,
223
+ "optimizer": {
224
+ "type": "adamw",
225
+ "lr": 0.0001,
226
+ "weight_decay": 1e-06,
227
+ "grad_clip_norm": 1.0,
228
+ "betas": [
229
+ 0.9,
230
+ 0.95
231
+ ],
232
+ "eps": 1e-08
233
+ },
234
+ "scheduler": {
235
+ "type": "cosine_decay_with_warmup",
236
+ "num_warmup_steps": 1000,
237
+ "num_decay_steps": 30000,
238
+ "peak_lr": 0.0001,
239
+ "decay_lr": 1e-06
240
+ },
241
+ "eval": {
242
+ "n_episodes": 1,
243
+ "batch_size": 1,
244
+ "use_async_envs": false
245
+ },
246
+ "wandb": {
247
+ "enable": false,
248
+ "disable_artifact": false,
249
+ "project": "lerobot",
250
+ "entity": null,
251
+ "notes": null,
252
+ "run_id": null,
253
+ "mode": null
254
+ }
255
+ }