Robotics
LeRobot
Safetensors
smolvla
godnpeter commited on
Commit
a3f2743
·
verified ·
1 Parent(s): 7b6af65

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +63 -0
  2. config.json +92 -0
  3. model.safetensors +3 -0
  4. train_config.json +217 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets: aopolin-lv/libero_spatial_no_noops_lerobot_v21
4
+ library_name: lerobot
5
+ license: apache-2.0
6
+ model_name: smolvla
7
+ pipeline_tag: robotics
8
+ tags:
9
+ - robotics
10
+ - smolvla
11
+ - lerobot
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,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "smolvla",
3
+ "n_obs_steps": 1,
4
+ "normalization_mapping": {
5
+ "VISUAL": "IDENTITY",
6
+ "STATE": "MEAN_STD",
7
+ "ACTION": "MEAN_STD"
8
+ },
9
+ "input_features": {
10
+ "observation.images.wrist_image": {
11
+ "type": "VISUAL",
12
+ "shape": [
13
+ 256,
14
+ 256,
15
+ 3
16
+ ]
17
+ },
18
+ "observation.images.image": {
19
+ "type": "VISUAL",
20
+ "shape": [
21
+ 256,
22
+ 256,
23
+ 3
24
+ ]
25
+ },
26
+ "observation.state": {
27
+ "type": "STATE",
28
+ "shape": [
29
+ 8
30
+ ]
31
+ }
32
+ },
33
+ "output_features": {
34
+ "action": {
35
+ "type": "ACTION",
36
+ "shape": [
37
+ 7
38
+ ]
39
+ }
40
+ },
41
+ "device": "cuda",
42
+ "use_amp": false,
43
+ "push_to_hub": true,
44
+ "repo_id": "debug_slurm",
45
+ "private": null,
46
+ "tags": null,
47
+ "license": null,
48
+ "use_proprio": true,
49
+ "chunk_size": 8,
50
+ "n_action_steps": 8,
51
+ "normalize_visual": "identity",
52
+ "normalize_state": "mean_std",
53
+ "normalize_action": "mean_std",
54
+ "max_state_dim": 32,
55
+ "max_action_dim": 32,
56
+ "resize_imgs_with_padding": [
57
+ 512,
58
+ 512
59
+ ],
60
+ "empty_cameras": 0,
61
+ "adapt_to_pi_aloha": false,
62
+ "use_delta_joint_actions_aloha": false,
63
+ "tokenizer_max_length": 48,
64
+ "num_steps": 10,
65
+ "use_cache": true,
66
+ "freeze_vision_encoder": true,
67
+ "train_expert_only": true,
68
+ "train_state_proj": true,
69
+ "optimizer_lr": 0.0001,
70
+ "optimizer_betas": [
71
+ 0.9,
72
+ 0.95
73
+ ],
74
+ "optimizer_eps": 1e-08,
75
+ "optimizer_weight_decay": 1e-10,
76
+ "optimizer_grad_clip_norm": 10,
77
+ "scheduler_warmup_steps": 1000,
78
+ "scheduler_decay_steps": 30000,
79
+ "scheduler_decay_lr": 2.5e-06,
80
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
81
+ "load_vlm_weights": true,
82
+ "add_image_special_tokens": false,
83
+ "attention_mode": "cross_attn",
84
+ "prefix_length": -1,
85
+ "pad_language_to": "longest",
86
+ "num_expert_layers": -1,
87
+ "num_vlm_layers": 16,
88
+ "self_attn_every_n_layers": 2,
89
+ "expert_width_multiplier": 0.75,
90
+ "min_period": 0.004,
91
+ "max_period": 4.0
92
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2f567a138f8eb43de34a98a6e00239091e356b2e949617abf13192848cca6ea
3
+ size 906713328
train_config.json ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "aopolin-lv/libero_spatial_no_noops_lerobot_v21",
4
+ "use_all_local_repos": false,
5
+ "root": null,
6
+ "episodes": null,
7
+ "image_transforms": {
8
+ "enable": false,
9
+ "max_num_transforms": 3,
10
+ "random_order": false,
11
+ "tfs": {
12
+ "brightness": {
13
+ "weight": 1.0,
14
+ "type": "ColorJitter",
15
+ "kwargs": {
16
+ "brightness": [
17
+ 0.8,
18
+ 1.2
19
+ ]
20
+ }
21
+ },
22
+ "contrast": {
23
+ "weight": 1.0,
24
+ "type": "ColorJitter",
25
+ "kwargs": {
26
+ "contrast": [
27
+ 0.8,
28
+ 1.2
29
+ ]
30
+ }
31
+ },
32
+ "saturation": {
33
+ "weight": 1.0,
34
+ "type": "ColorJitter",
35
+ "kwargs": {
36
+ "saturation": [
37
+ 0.5,
38
+ 1.5
39
+ ]
40
+ }
41
+ },
42
+ "hue": {
43
+ "weight": 1.0,
44
+ "type": "ColorJitter",
45
+ "kwargs": {
46
+ "hue": [
47
+ -0.05,
48
+ 0.05
49
+ ]
50
+ }
51
+ },
52
+ "sharpness": {
53
+ "weight": 1.0,
54
+ "type": "SharpnessJitter",
55
+ "kwargs": {
56
+ "sharpness": [
57
+ 0.5,
58
+ 1.5
59
+ ]
60
+ }
61
+ },
62
+ "shift": {
63
+ "weight": 0.0,
64
+ "type": "RandomShift",
65
+ "kwargs": {
66
+ "max_shift": 8,
67
+ "padding_mode": "edge"
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "revision": null,
73
+ "use_imagenet_stats": true,
74
+ "video_backend": "torchcodec",
75
+ "only_robot_type": "so100"
76
+ },
77
+ "env": null,
78
+ "policy": {
79
+ "type": "smolvla",
80
+ "n_obs_steps": 1,
81
+ "normalization_mapping": {
82
+ "VISUAL": "IDENTITY",
83
+ "STATE": "MEAN_STD",
84
+ "ACTION": "MEAN_STD"
85
+ },
86
+ "input_features": {
87
+ "observation.images.wrist_image": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 256,
91
+ 256,
92
+ 3
93
+ ]
94
+ },
95
+ "observation.images.image": {
96
+ "type": "VISUAL",
97
+ "shape": [
98
+ 256,
99
+ 256,
100
+ 3
101
+ ]
102
+ },
103
+ "observation.state": {
104
+ "type": "STATE",
105
+ "shape": [
106
+ 8
107
+ ]
108
+ }
109
+ },
110
+ "output_features": {
111
+ "action": {
112
+ "type": "ACTION",
113
+ "shape": [
114
+ 7
115
+ ]
116
+ }
117
+ },
118
+ "device": "cuda",
119
+ "use_amp": false,
120
+ "push_to_hub": true,
121
+ "repo_id": "debug_slurm",
122
+ "private": null,
123
+ "tags": null,
124
+ "license": null,
125
+ "use_proprio": true,
126
+ "chunk_size": 8,
127
+ "n_action_steps": 8,
128
+ "normalize_visual": "identity",
129
+ "normalize_state": "mean_std",
130
+ "normalize_action": "mean_std",
131
+ "max_state_dim": 32,
132
+ "max_action_dim": 32,
133
+ "resize_imgs_with_padding": [
134
+ 512,
135
+ 512
136
+ ],
137
+ "empty_cameras": 0,
138
+ "adapt_to_pi_aloha": false,
139
+ "use_delta_joint_actions_aloha": false,
140
+ "tokenizer_max_length": 48,
141
+ "num_steps": 10,
142
+ "use_cache": true,
143
+ "freeze_vision_encoder": true,
144
+ "train_expert_only": true,
145
+ "train_state_proj": true,
146
+ "optimizer_lr": 0.0001,
147
+ "optimizer_betas": [
148
+ 0.9,
149
+ 0.95
150
+ ],
151
+ "optimizer_eps": 1e-08,
152
+ "optimizer_weight_decay": 1e-10,
153
+ "optimizer_grad_clip_norm": 10,
154
+ "scheduler_warmup_steps": 1000,
155
+ "scheduler_decay_steps": 30000,
156
+ "scheduler_decay_lr": 2.5e-06,
157
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
158
+ "load_vlm_weights": true,
159
+ "add_image_special_tokens": false,
160
+ "attention_mode": "cross_attn",
161
+ "prefix_length": -1,
162
+ "pad_language_to": "longest",
163
+ "num_expert_layers": -1,
164
+ "num_vlm_layers": 16,
165
+ "self_attn_every_n_layers": 2,
166
+ "expert_width_multiplier": 0.75,
167
+ "min_period": 0.004,
168
+ "max_period": 4.0
169
+ },
170
+ "output_dir": "outputs/debug/debug/2025-09-23/21-17-15",
171
+ "exp_name": "debug/2025-09-23/21-17-15",
172
+ "group_name": "debug",
173
+ "resume": false,
174
+ "seed": 1000,
175
+ "num_workers": 8,
176
+ "batch_size": 32,
177
+ "update_steps": 100,
178
+ "eval_freq": 20000,
179
+ "log_freq": 1,
180
+ "save_checkpoint": true,
181
+ "save_freq": 200,
182
+ "use_policy_training_preset": true,
183
+ "optimizer": {
184
+ "type": "adamw",
185
+ "lr": 0.0001,
186
+ "weight_decay": 1e-10,
187
+ "grad_clip_norm": 10,
188
+ "betas": [
189
+ 0.9,
190
+ 0.95
191
+ ],
192
+ "eps": 1e-08
193
+ },
194
+ "scheduler": {
195
+ "type": "cosine_decay_with_warmup",
196
+ "num_warmup_steps": 1000,
197
+ "num_decay_steps": 30000,
198
+ "peak_lr": 0.0001,
199
+ "decay_lr": 2.5e-06
200
+ },
201
+ "eval": {
202
+ "n_episodes": 50,
203
+ "batch_size": 50,
204
+ "use_async_envs": false
205
+ },
206
+ "log_with": "wandb",
207
+ "wandb": {
208
+ "enable": false,
209
+ "disable_artifact": false,
210
+ "project": "lerobot",
211
+ "entity": null,
212
+ "notes": null,
213
+ "run_id": "d2s4kjcq",
214
+ "mode": null
215
+ },
216
+ "gradient_accumulation_steps": 1
217
+ }