AriRyo commited on
Commit
379a74d
·
verified ·
1 Parent(s): 1cea29b

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +63 -0
  2. config.json +101 -0
  3. model.safetensors +3 -0
  4. train_config.json +267 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets: AriRyo/blockpick_gray_03
4
+ library_name: lerobot
5
+ license: apache-2.0
6
+ model_name: smolvla
7
+ pipeline_tag: robotics
8
+ tags:
9
+ - smolvla
10
+ - lerobot
11
+ - robotics
12
+ ---
13
+
14
+ # Model Card for smolvla
15
+
16
+ <!-- Provide a quick summary of what the model is/does. -->
17
+
18
+
19
+ [SmolVLA](https://huggingface.co/papers/2506.01844) is a compact, efficient vision-language-action model that achieves competitive performance at reduced computational costs and can be deployed on consumer-grade hardware.
20
+
21
+
22
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
23
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
24
+
25
+ ---
26
+
27
+ ## How to Get Started with the Model
28
+
29
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
30
+ Below is the short version on how to train and run inference/eval:
31
+
32
+ ### Train from scratch
33
+
34
+ ```bash
35
+ lerobot-train \
36
+ --dataset.repo_id=${HF_USER}/<dataset> \
37
+ --policy.type=act \
38
+ --output_dir=outputs/train/<desired_policy_repo_id> \
39
+ --job_name=lerobot_training \
40
+ --policy.device=cuda \
41
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
42
+ --wandb.enable=true
43
+ ```
44
+
45
+ _Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
46
+
47
+ ### Evaluate the policy/run inference
48
+
49
+ ```bash
50
+ lerobot-record \
51
+ --robot.type=so100_follower \
52
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
53
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
54
+ --episodes=10
55
+ ```
56
+
57
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
58
+
59
+ ---
60
+
61
+ ## Model Details
62
+
63
+ - **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "smolvla",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 6
9
+ ]
10
+ },
11
+ "observation.images.camera1": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 256,
16
+ 256
17
+ ]
18
+ },
19
+ "observation.images.camera2": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 256,
24
+ 256
25
+ ]
26
+ },
27
+ "observation.images.camera3": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 256,
32
+ 256
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": "AriRyo/blockpick_gray_smolvla_24",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": "lerobot/smolvla_base",
53
+ "chunk_size": 50,
54
+ "n_action_steps": 50,
55
+ "normalization_mapping": {
56
+ "VISUAL": "IDENTITY",
57
+ "STATE": "MEAN_STD",
58
+ "ACTION": "MEAN_STD"
59
+ },
60
+ "max_state_dim": 32,
61
+ "max_action_dim": 32,
62
+ "resize_imgs_with_padding": [
63
+ 512,
64
+ 512
65
+ ],
66
+ "empty_cameras": 0,
67
+ "adapt_to_pi_aloha": false,
68
+ "use_delta_joint_actions_aloha": false,
69
+ "tokenizer_max_length": 48,
70
+ "num_steps": 10,
71
+ "use_cache": true,
72
+ "freeze_vision_encoder": true,
73
+ "train_expert_only": true,
74
+ "train_state_proj": true,
75
+ "optimizer_lr": 0.0001,
76
+ "optimizer_betas": [
77
+ 0.9,
78
+ 0.95
79
+ ],
80
+ "optimizer_eps": 1e-08,
81
+ "optimizer_weight_decay": 1e-10,
82
+ "optimizer_grad_clip_norm": 10.0,
83
+ "scheduler_warmup_steps": 1000,
84
+ "scheduler_decay_steps": 30000,
85
+ "scheduler_decay_lr": 2.5e-06,
86
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
87
+ "load_vlm_weights": true,
88
+ "add_image_special_tokens": false,
89
+ "attention_mode": "cross_attn",
90
+ "prefix_length": 0,
91
+ "pad_language_to": "max_length",
92
+ "num_expert_layers": 0,
93
+ "num_vlm_layers": 16,
94
+ "self_attn_every_n_layers": 2,
95
+ "expert_width_multiplier": 0.75,
96
+ "min_period": 0.004,
97
+ "max_period": 4.0,
98
+ "rtc_config": null,
99
+ "compile_model": false,
100
+ "compile_mode": "max-autotune"
101
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1afd01983678caea76e9af8a1dee434ce1d4bc5c3cc7f1869c5e76cb26d98a4
3
+ size 906712520
train_config.json ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "AriRyo/blockpick_gray_03",
4
+ "root": null,
5
+ "episodes": [
6
+ 0,
7
+ 1,
8
+ 2,
9
+ 3,
10
+ 4,
11
+ 5,
12
+ 6,
13
+ 7,
14
+ 8,
15
+ 9,
16
+ 10,
17
+ 11,
18
+ 12,
19
+ 13,
20
+ 14,
21
+ 15,
22
+ 16,
23
+ 17,
24
+ 18,
25
+ 19,
26
+ 20,
27
+ 21,
28
+ 22,
29
+ 23
30
+ ],
31
+ "image_transforms": {
32
+ "enable": false,
33
+ "max_num_transforms": 3,
34
+ "random_order": false,
35
+ "tfs": {
36
+ "brightness": {
37
+ "weight": 1.0,
38
+ "type": "ColorJitter",
39
+ "kwargs": {
40
+ "brightness": [
41
+ 0.8,
42
+ 1.2
43
+ ]
44
+ }
45
+ },
46
+ "contrast": {
47
+ "weight": 1.0,
48
+ "type": "ColorJitter",
49
+ "kwargs": {
50
+ "contrast": [
51
+ 0.8,
52
+ 1.2
53
+ ]
54
+ }
55
+ },
56
+ "saturation": {
57
+ "weight": 1.0,
58
+ "type": "ColorJitter",
59
+ "kwargs": {
60
+ "saturation": [
61
+ 0.5,
62
+ 1.5
63
+ ]
64
+ }
65
+ },
66
+ "hue": {
67
+ "weight": 1.0,
68
+ "type": "ColorJitter",
69
+ "kwargs": {
70
+ "hue": [
71
+ -0.05,
72
+ 0.05
73
+ ]
74
+ }
75
+ },
76
+ "sharpness": {
77
+ "weight": 1.0,
78
+ "type": "SharpnessJitter",
79
+ "kwargs": {
80
+ "sharpness": [
81
+ 0.5,
82
+ 1.5
83
+ ]
84
+ }
85
+ },
86
+ "affine": {
87
+ "weight": 1.0,
88
+ "type": "RandomAffine",
89
+ "kwargs": {
90
+ "degrees": [
91
+ -5.0,
92
+ 5.0
93
+ ],
94
+ "translate": [
95
+ 0.05,
96
+ 0.05
97
+ ]
98
+ }
99
+ }
100
+ }
101
+ },
102
+ "revision": null,
103
+ "use_imagenet_stats": true,
104
+ "video_backend": "torchcodec",
105
+ "streaming": false
106
+ },
107
+ "env": null,
108
+ "policy": {
109
+ "type": "smolvla",
110
+ "n_obs_steps": 1,
111
+ "input_features": {
112
+ "observation.state": {
113
+ "type": "STATE",
114
+ "shape": [
115
+ 6
116
+ ]
117
+ },
118
+ "observation.images.camera1": {
119
+ "type": "VISUAL",
120
+ "shape": [
121
+ 3,
122
+ 256,
123
+ 256
124
+ ]
125
+ },
126
+ "observation.images.camera2": {
127
+ "type": "VISUAL",
128
+ "shape": [
129
+ 3,
130
+ 256,
131
+ 256
132
+ ]
133
+ },
134
+ "observation.images.camera3": {
135
+ "type": "VISUAL",
136
+ "shape": [
137
+ 3,
138
+ 256,
139
+ 256
140
+ ]
141
+ }
142
+ },
143
+ "output_features": {
144
+ "action": {
145
+ "type": "ACTION",
146
+ "shape": [
147
+ 6
148
+ ]
149
+ }
150
+ },
151
+ "device": "cuda",
152
+ "use_amp": false,
153
+ "use_peft": false,
154
+ "push_to_hub": true,
155
+ "repo_id": "AriRyo/blockpick_gray_smolvla_24",
156
+ "private": null,
157
+ "tags": null,
158
+ "license": null,
159
+ "pretrained_path": "lerobot/smolvla_base",
160
+ "chunk_size": 50,
161
+ "n_action_steps": 50,
162
+ "normalization_mapping": {
163
+ "VISUAL": "IDENTITY",
164
+ "STATE": "MEAN_STD",
165
+ "ACTION": "MEAN_STD"
166
+ },
167
+ "max_state_dim": 32,
168
+ "max_action_dim": 32,
169
+ "resize_imgs_with_padding": [
170
+ 512,
171
+ 512
172
+ ],
173
+ "empty_cameras": 0,
174
+ "adapt_to_pi_aloha": false,
175
+ "use_delta_joint_actions_aloha": false,
176
+ "tokenizer_max_length": 48,
177
+ "num_steps": 10,
178
+ "use_cache": true,
179
+ "freeze_vision_encoder": true,
180
+ "train_expert_only": true,
181
+ "train_state_proj": true,
182
+ "optimizer_lr": 0.0001,
183
+ "optimizer_betas": [
184
+ 0.9,
185
+ 0.95
186
+ ],
187
+ "optimizer_eps": 1e-08,
188
+ "optimizer_weight_decay": 1e-10,
189
+ "optimizer_grad_clip_norm": 10.0,
190
+ "scheduler_warmup_steps": 1000,
191
+ "scheduler_decay_steps": 30000,
192
+ "scheduler_decay_lr": 2.5e-06,
193
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
194
+ "load_vlm_weights": true,
195
+ "add_image_special_tokens": false,
196
+ "attention_mode": "cross_attn",
197
+ "prefix_length": 0,
198
+ "pad_language_to": "max_length",
199
+ "num_expert_layers": 0,
200
+ "num_vlm_layers": 16,
201
+ "self_attn_every_n_layers": 2,
202
+ "expert_width_multiplier": 0.75,
203
+ "min_period": 0.004,
204
+ "max_period": 4.0,
205
+ "rtc_config": null,
206
+ "compile_model": false,
207
+ "compile_mode": "max-autotune"
208
+ },
209
+ "output_dir": "outputs/train/blockpick_gray_smolvla_24",
210
+ "job_name": "blockpick_gray_smolvla_24",
211
+ "resume": false,
212
+ "seed": 1000,
213
+ "cudnn_deterministic": false,
214
+ "num_workers": 4,
215
+ "batch_size": 64,
216
+ "steps": 20000,
217
+ "eval_freq": 20000,
218
+ "log_freq": 200,
219
+ "tolerance_s": 0.0001,
220
+ "save_checkpoint": true,
221
+ "save_freq": 4000,
222
+ "use_policy_training_preset": true,
223
+ "optimizer": {
224
+ "type": "adamw",
225
+ "lr": 0.0001,
226
+ "weight_decay": 1e-10,
227
+ "grad_clip_norm": 10.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": 2.5e-06
240
+ },
241
+ "eval": {
242
+ "n_episodes": 50,
243
+ "batch_size": 50,
244
+ "use_async_envs": false
245
+ },
246
+ "wandb": {
247
+ "enable": true,
248
+ "disable_artifact": true,
249
+ "project": "lerobot",
250
+ "entity": null,
251
+ "notes": null,
252
+ "run_id": "8lnfscig",
253
+ "mode": null,
254
+ "add_tags": true
255
+ },
256
+ "peft": null,
257
+ "use_rabc": false,
258
+ "rabc_progress_path": null,
259
+ "rabc_kappa": 0.01,
260
+ "rabc_epsilon": 1e-06,
261
+ "rabc_head_mode": "sparse",
262
+ "rename_map": {
263
+ "observation.images.above": "observation.images.camera1",
264
+ "observation.images.side": "observation.images.camera2"
265
+ },
266
+ "checkpoint_path": null
267
+ }