Robotics
LeRobot
Safetensors
smolvla
godnpeter commited on
Commit
28ba284
·
verified ·
1 Parent(s): 1d13475

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +63 -0
  2. config.json +94 -0
  3. model.safetensors +3 -0
  4. train_config.json +231 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets: aopolin-lv/libero_10_no_noops_lerobot_v21
4
+ library_name: lerobot
5
+ license: apache-2.0
6
+ model_name: smolvla
7
+ pipeline_tag: robotics
8
+ tags:
9
+ - lerobot
10
+ - smolvla
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,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "use_peft": false,
44
+ "push_to_hub": true,
45
+ "repo_id": "lora_r64_alpha128_fp32_long_0928",
46
+ "private": null,
47
+ "tags": null,
48
+ "license": null,
49
+ "use_proprio": true,
50
+ "chunk_size": 8,
51
+ "n_action_steps": 8,
52
+ "normalize_visual": "identity",
53
+ "normalize_state": "mean_std",
54
+ "normalize_action": "mean_std",
55
+ "max_state_dim": 32,
56
+ "max_action_dim": 32,
57
+ "resize_imgs_with_padding": [
58
+ 512,
59
+ 512
60
+ ],
61
+ "empty_cameras": 0,
62
+ "adapt_to_pi_aloha": false,
63
+ "use_delta_joint_actions_aloha": false,
64
+ "tokenizer_max_length": 48,
65
+ "num_steps": 10,
66
+ "use_cache": true,
67
+ "freeze_vision_encoder": false,
68
+ "train_expert_only": false,
69
+ "train_state_proj": true,
70
+ "optimizer_lr": 0.0001,
71
+ "optimizer_betas": [
72
+ 0.9,
73
+ 0.95
74
+ ],
75
+ "optimizer_eps": 1e-08,
76
+ "optimizer_weight_decay": 1e-10,
77
+ "optimizer_grad_clip_norm": 10,
78
+ "scheduler_warmup_steps": 1000,
79
+ "scheduler_decay_steps": 30000,
80
+ "scheduler_decay_lr": 2.5e-06,
81
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
82
+ "load_vlm_weights": true,
83
+ "vlm_model_dtype": "bfloat16",
84
+ "add_image_special_tokens": false,
85
+ "attention_mode": "cross_attn",
86
+ "prefix_length": -1,
87
+ "pad_language_to": "longest",
88
+ "num_expert_layers": -1,
89
+ "num_vlm_layers": 16,
90
+ "self_attn_every_n_layers": 2,
91
+ "expert_width_multiplier": 0.75,
92
+ "min_period": 0.004,
93
+ "max_period": 4.0
94
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67f98a89cb122af6266fd75eafc1a96fe6ba6cd546791a1f7bf2c07648a6878e
3
+ size 906713328
train_config.json ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "aopolin-lv/libero_10_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
+ "use_peft": false,
121
+ "push_to_hub": true,
122
+ "repo_id": "lora_r64_alpha128_fp32_long_0928",
123
+ "private": null,
124
+ "tags": null,
125
+ "license": null,
126
+ "use_proprio": true,
127
+ "chunk_size": 8,
128
+ "n_action_steps": 8,
129
+ "normalize_visual": "identity",
130
+ "normalize_state": "mean_std",
131
+ "normalize_action": "mean_std",
132
+ "max_state_dim": 32,
133
+ "max_action_dim": 32,
134
+ "resize_imgs_with_padding": [
135
+ 512,
136
+ 512
137
+ ],
138
+ "empty_cameras": 0,
139
+ "adapt_to_pi_aloha": false,
140
+ "use_delta_joint_actions_aloha": false,
141
+ "tokenizer_max_length": 48,
142
+ "num_steps": 10,
143
+ "use_cache": true,
144
+ "freeze_vision_encoder": false,
145
+ "train_expert_only": false,
146
+ "train_state_proj": true,
147
+ "optimizer_lr": 0.0001,
148
+ "optimizer_betas": [
149
+ 0.9,
150
+ 0.95
151
+ ],
152
+ "optimizer_eps": 1e-08,
153
+ "optimizer_weight_decay": 1e-10,
154
+ "optimizer_grad_clip_norm": 10,
155
+ "scheduler_warmup_steps": 1000,
156
+ "scheduler_decay_steps": 30000,
157
+ "scheduler_decay_lr": 2.5e-06,
158
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
159
+ "load_vlm_weights": true,
160
+ "vlm_model_dtype": "bfloat16",
161
+ "add_image_special_tokens": false,
162
+ "attention_mode": "cross_attn",
163
+ "prefix_length": -1,
164
+ "pad_language_to": "longest",
165
+ "num_expert_layers": -1,
166
+ "num_vlm_layers": 16,
167
+ "self_attn_every_n_layers": 2,
168
+ "expert_width_multiplier": 0.75,
169
+ "min_period": 0.004,
170
+ "max_period": 4.0
171
+ },
172
+ "output_dir": "outputs/lora_single_dataset_0928/lora_r64_alpha128_fp32_long/2025-09-29/01-17-05",
173
+ "exp_name": "lora_r64_alpha128_fp32_long/2025-09-29/01-17-05",
174
+ "group_name": "lora_single_dataset_0928",
175
+ "resume": false,
176
+ "seed": 1000,
177
+ "num_workers": 8,
178
+ "batch_size": 64,
179
+ "update_steps": 100000,
180
+ "eval_freq": 20000,
181
+ "log_freq": 200,
182
+ "save_checkpoint": true,
183
+ "save_freq": 100000,
184
+ "use_policy_training_preset": true,
185
+ "optimizer": {
186
+ "type": "adamw",
187
+ "lr": 0.0001,
188
+ "weight_decay": 1e-10,
189
+ "grad_clip_norm": 10,
190
+ "betas": [
191
+ 0.9,
192
+ 0.95
193
+ ],
194
+ "eps": 1e-08
195
+ },
196
+ "scheduler": {
197
+ "type": "cosine_decay_with_warmup",
198
+ "num_warmup_steps": 1000,
199
+ "num_decay_steps": 30000,
200
+ "peak_lr": 0.0001,
201
+ "decay_lr": 2.5e-06
202
+ },
203
+ "eval": {
204
+ "n_episodes": 50,
205
+ "batch_size": 50,
206
+ "use_async_envs": false
207
+ },
208
+ "log_with": "wandb",
209
+ "wandb": {
210
+ "enable": false,
211
+ "disable_artifact": false,
212
+ "project": "lerobot",
213
+ "entity": null,
214
+ "notes": null,
215
+ "run_id": "6hul7geb",
216
+ "mode": null
217
+ },
218
+ "gradient_accumulation_steps": 1,
219
+ "use_peft": true,
220
+ "autocast_adapter_dtype": true,
221
+ "peft": {
222
+ "target_modules": "all-linear",
223
+ "modules_to_save": null,
224
+ "method_type": "LORA",
225
+ "init_type": "gaussian",
226
+ "r": 64,
227
+ "lora_alpha": 128,
228
+ "fullfinetune_vlm_patch_embeddings": false,
229
+ "fullfinetune_vlm_vision_model": false
230
+ }
231
+ }