Robotics
LeRobot
Safetensors
smolvla
jolch commited on
Commit
c37db06
·
verified ·
1 Parent(s): ec466f3

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +63 -0
  2. config.json +91 -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: jolch/piper_pnp_20260111_1538
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,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "smolvla",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.top_cam": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 480,
10
+ 640
11
+ ]
12
+ },
13
+ "observation.images.gripper_cam": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 480,
18
+ 640
19
+ ]
20
+ },
21
+ "observation.state": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 7
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": false,
39
+ "push_to_hub": true,
40
+ "repo_id": "jolch/piper_smolvla_0111",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": "lerobot/smolvla_base",
45
+ "chunk_size": 50,
46
+ "n_action_steps": 50,
47
+ "normalization_mapping": {
48
+ "VISUAL": "IDENTITY",
49
+ "STATE": "MEAN_STD",
50
+ "ACTION": "MEAN_STD"
51
+ },
52
+ "max_state_dim": 32,
53
+ "max_action_dim": 32,
54
+ "resize_imgs_with_padding": [
55
+ 512,
56
+ 512
57
+ ],
58
+ "empty_cameras": 0,
59
+ "adapt_to_pi_aloha": false,
60
+ "use_delta_joint_actions_aloha": false,
61
+ "tokenizer_max_length": 48,
62
+ "num_steps": 10,
63
+ "use_cache": true,
64
+ "freeze_vision_encoder": true,
65
+ "train_expert_only": true,
66
+ "train_state_proj": true,
67
+ "optimizer_lr": 0.0001,
68
+ "optimizer_betas": [
69
+ 0.9,
70
+ 0.95
71
+ ],
72
+ "optimizer_eps": 1e-08,
73
+ "optimizer_weight_decay": 1e-10,
74
+ "optimizer_grad_clip_norm": 10,
75
+ "scheduler_warmup_steps": 1000,
76
+ "scheduler_decay_steps": 30000,
77
+ "scheduler_decay_lr": 2.5e-06,
78
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
79
+ "load_vlm_weights": false,
80
+ "add_image_special_tokens": false,
81
+ "attention_mode": "cross_attn",
82
+ "prefix_length": -1,
83
+ "pad_language_to": "longest",
84
+ "num_expert_layers": -1,
85
+ "num_vlm_layers": 16,
86
+ "self_attn_every_n_layers": 2,
87
+ "expert_width_multiplier": 0.75,
88
+ "min_period": 0.004,
89
+ "max_period": 4.0,
90
+ "rtc_config": null
91
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5898030084969e520e058b41d5168279bea017f3a4485dcb98a2bd96a18abda
3
+ size 1197789224
train_config.json ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "jolch/piper_pnp_20260111_1538",
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": "pyav",
80
+ "streaming": false
81
+ },
82
+ "env": {
83
+ "type": "piper",
84
+ "task": "PiperEnv-v0",
85
+ "fps": 30,
86
+ "features": {
87
+ "action": {
88
+ "type": "ACTION",
89
+ "shape": [
90
+ 7
91
+ ]
92
+ },
93
+ "agent_pos": {
94
+ "type": "STATE",
95
+ "shape": [
96
+ 7
97
+ ]
98
+ },
99
+ "pixels/top": {
100
+ "type": "VISUAL",
101
+ "shape": [
102
+ 480,
103
+ 640,
104
+ 3
105
+ ]
106
+ }
107
+ },
108
+ "features_map": {
109
+ "action": "action",
110
+ "agent_pos": "observation.state",
111
+ "top": "observation.image.top",
112
+ "pixels/top": "observation.images.top"
113
+ },
114
+ "max_parallel_tasks": 1,
115
+ "disable_env_checker": true,
116
+ "episode_length": 1000,
117
+ "obs_type": "pixels_agent_pos",
118
+ "observation_height": 480,
119
+ "observation_width": 640,
120
+ "render_mode": "rgb_array",
121
+ "package_name": "piper_lerobot"
122
+ },
123
+ "policy": {
124
+ "type": "smolvla",
125
+ "n_obs_steps": 1,
126
+ "input_features": {
127
+ "observation.images.top_cam": {
128
+ "type": "VISUAL",
129
+ "shape": [
130
+ 3,
131
+ 480,
132
+ 640
133
+ ]
134
+ },
135
+ "observation.images.gripper_cam": {
136
+ "type": "VISUAL",
137
+ "shape": [
138
+ 3,
139
+ 480,
140
+ 640
141
+ ]
142
+ },
143
+ "observation.state": {
144
+ "type": "STATE",
145
+ "shape": [
146
+ 7
147
+ ]
148
+ }
149
+ },
150
+ "output_features": {
151
+ "action": {
152
+ "type": "ACTION",
153
+ "shape": [
154
+ 7
155
+ ]
156
+ }
157
+ },
158
+ "device": "cuda",
159
+ "use_amp": false,
160
+ "use_peft": false,
161
+ "push_to_hub": true,
162
+ "repo_id": "jolch/piper_smolvla_0111",
163
+ "private": null,
164
+ "tags": null,
165
+ "license": null,
166
+ "pretrained_path": "lerobot/smolvla_base",
167
+ "chunk_size": 50,
168
+ "n_action_steps": 50,
169
+ "normalization_mapping": {
170
+ "VISUAL": "IDENTITY",
171
+ "STATE": "MEAN_STD",
172
+ "ACTION": "MEAN_STD"
173
+ },
174
+ "max_state_dim": 32,
175
+ "max_action_dim": 32,
176
+ "resize_imgs_with_padding": [
177
+ 512,
178
+ 512
179
+ ],
180
+ "empty_cameras": 0,
181
+ "adapt_to_pi_aloha": false,
182
+ "use_delta_joint_actions_aloha": false,
183
+ "tokenizer_max_length": 48,
184
+ "num_steps": 10,
185
+ "use_cache": true,
186
+ "freeze_vision_encoder": true,
187
+ "train_expert_only": true,
188
+ "train_state_proj": true,
189
+ "optimizer_lr": 0.0001,
190
+ "optimizer_betas": [
191
+ 0.9,
192
+ 0.95
193
+ ],
194
+ "optimizer_eps": 1e-08,
195
+ "optimizer_weight_decay": 1e-10,
196
+ "optimizer_grad_clip_norm": 10,
197
+ "scheduler_warmup_steps": 1000,
198
+ "scheduler_decay_steps": 30000,
199
+ "scheduler_decay_lr": 2.5e-06,
200
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
201
+ "load_vlm_weights": false,
202
+ "add_image_special_tokens": false,
203
+ "attention_mode": "cross_attn",
204
+ "prefix_length": -1,
205
+ "pad_language_to": "longest",
206
+ "num_expert_layers": -1,
207
+ "num_vlm_layers": 16,
208
+ "self_attn_every_n_layers": 2,
209
+ "expert_width_multiplier": 0.75,
210
+ "min_period": 0.004,
211
+ "max_period": 4.0,
212
+ "rtc_config": null
213
+ },
214
+ "output_dir": "/DATA/disk0/junxi/model/piper_smolvla_20260111_1606",
215
+ "job_name": "piper_smolvla",
216
+ "resume": false,
217
+ "seed": 1000,
218
+ "num_workers": 8,
219
+ "batch_size": 64,
220
+ "steps": 5000,
221
+ "eval_freq": -1,
222
+ "log_freq": 100,
223
+ "tolerance_s": 0.0001,
224
+ "save_checkpoint": true,
225
+ "save_freq": 1000,
226
+ "use_policy_training_preset": true,
227
+ "optimizer": {
228
+ "type": "adamw",
229
+ "lr": 0.0001,
230
+ "weight_decay": 1e-10,
231
+ "grad_clip_norm": 10,
232
+ "betas": [
233
+ 0.9,
234
+ 0.95
235
+ ],
236
+ "eps": 1e-08
237
+ },
238
+ "scheduler": {
239
+ "type": "cosine_decay_with_warmup",
240
+ "num_warmup_steps": 1000,
241
+ "num_decay_steps": 30000,
242
+ "peak_lr": 0.0001,
243
+ "decay_lr": 2.5e-06
244
+ },
245
+ "eval": {
246
+ "n_episodes": 50,
247
+ "batch_size": 50,
248
+ "use_async_envs": false
249
+ },
250
+ "wandb": {
251
+ "enable": true,
252
+ "disable_artifact": false,
253
+ "project": "piper_training",
254
+ "entity": null,
255
+ "notes": null,
256
+ "run_id": "piper_smolvla_20260111_1606",
257
+ "mode": null
258
+ },
259
+ "peft": null,
260
+ "use_rabc": false,
261
+ "rabc_progress_path": null,
262
+ "rabc_kappa": 0.01,
263
+ "rabc_epsilon": 1e-06,
264
+ "rabc_head_mode": "sparse",
265
+ "rename_map": {},
266
+ "checkpoint_path": null
267
+ }