Robotics
LeRobot
Safetensors
smolvla
nkim7 commited on
Commit
c9c1ddc
·
verified ·
1 Parent(s): 6f8b5ee

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 +242 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets: robot-learning-group47/eval2_180_posegated_position_uniform_clean256_v1
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,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.empty_camera_0": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ },
27
+ "observation.images.empty_camera_1": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 480,
32
+ 640
33
+ ]
34
+ }
35
+ },
36
+ "output_features": {
37
+ "action": {
38
+ "type": "ACTION",
39
+ "shape": [
40
+ 6
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": true,
46
+ "use_peft": false,
47
+ "push_to_hub": true,
48
+ "repo_id": "robot-learning-group47/eval2_180_posegated_position_uniform_smolvla_v1",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": "/data/lerobot_outputs/train/eval2_180_posegated_position_uniform_smolvla_v1/checkpoints/010000/pretrained_model",
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
+ 256,
64
+ 256
65
+ ],
66
+ "empty_cameras": 2,
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": -1,
91
+ "pad_language_to": "longest",
92
+ "num_expert_layers": -1,
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:1f0913769d159b32445d1b810338bd7659d5531124183c45a85ed5a991f6fd82
3
+ size 906712520
train_config.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "robot-learning-group47/eval2_180_posegated_position_uniform_clean256_v1",
4
+ "root": "/data/lerobot_cache/robot-learning-group47/eval2_180_posegated_position_uniform_clean256_v1",
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": true,
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": "main",
78
+ "use_imagenet_stats": true,
79
+ "video_backend": "torchcodec",
80
+ "return_uint8": false,
81
+ "streaming": false
82
+ },
83
+ "env": null,
84
+ "policy": {
85
+ "type": "smolvla",
86
+ "n_obs_steps": 1,
87
+ "input_features": {
88
+ "observation.state": {
89
+ "type": "STATE",
90
+ "shape": [
91
+ 6
92
+ ]
93
+ },
94
+ "observation.images.camera1": {
95
+ "type": "VISUAL",
96
+ "shape": [
97
+ 3,
98
+ 256,
99
+ 256
100
+ ]
101
+ },
102
+ "observation.images.empty_camera_0": {
103
+ "type": "VISUAL",
104
+ "shape": [
105
+ 3,
106
+ 480,
107
+ 640
108
+ ]
109
+ },
110
+ "observation.images.empty_camera_1": {
111
+ "type": "VISUAL",
112
+ "shape": [
113
+ 3,
114
+ 480,
115
+ 640
116
+ ]
117
+ }
118
+ },
119
+ "output_features": {
120
+ "action": {
121
+ "type": "ACTION",
122
+ "shape": [
123
+ 6
124
+ ]
125
+ }
126
+ },
127
+ "device": "cuda",
128
+ "use_amp": true,
129
+ "use_peft": false,
130
+ "push_to_hub": true,
131
+ "repo_id": "robot-learning-group47/eval2_180_posegated_position_uniform_smolvla_v1",
132
+ "private": null,
133
+ "tags": null,
134
+ "license": null,
135
+ "pretrained_path": "/data/lerobot_outputs/train/eval2_180_posegated_position_uniform_smolvla_v1/checkpoints/010000/pretrained_model",
136
+ "chunk_size": 50,
137
+ "n_action_steps": 50,
138
+ "normalization_mapping": {
139
+ "VISUAL": "IDENTITY",
140
+ "STATE": "MEAN_STD",
141
+ "ACTION": "MEAN_STD"
142
+ },
143
+ "max_state_dim": 32,
144
+ "max_action_dim": 32,
145
+ "resize_imgs_with_padding": [
146
+ 256,
147
+ 256
148
+ ],
149
+ "empty_cameras": 2,
150
+ "adapt_to_pi_aloha": false,
151
+ "use_delta_joint_actions_aloha": false,
152
+ "tokenizer_max_length": 48,
153
+ "num_steps": 10,
154
+ "use_cache": true,
155
+ "freeze_vision_encoder": true,
156
+ "train_expert_only": true,
157
+ "train_state_proj": true,
158
+ "optimizer_lr": 0.0001,
159
+ "optimizer_betas": [
160
+ 0.9,
161
+ 0.95
162
+ ],
163
+ "optimizer_eps": 1e-08,
164
+ "optimizer_weight_decay": 1e-10,
165
+ "optimizer_grad_clip_norm": 10.0,
166
+ "scheduler_warmup_steps": 1000,
167
+ "scheduler_decay_steps": 30000,
168
+ "scheduler_decay_lr": 2.5e-06,
169
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
170
+ "load_vlm_weights": true,
171
+ "add_image_special_tokens": false,
172
+ "attention_mode": "cross_attn",
173
+ "prefix_length": -1,
174
+ "pad_language_to": "longest",
175
+ "num_expert_layers": -1,
176
+ "num_vlm_layers": 16,
177
+ "self_attn_every_n_layers": 2,
178
+ "expert_width_multiplier": 0.75,
179
+ "min_period": 0.004,
180
+ "max_period": 4.0,
181
+ "rtc_config": null,
182
+ "compile_model": false,
183
+ "compile_mode": "max-autotune"
184
+ },
185
+ "reward_model": null,
186
+ "output_dir": "/data/lerobot_outputs/train/eval2_180_posegated_position_uniform_smolvla_v1",
187
+ "job_name": "eval2_180_posegated_position_uniform_smolvla_v1",
188
+ "resume": true,
189
+ "seed": 1000,
190
+ "cudnn_deterministic": false,
191
+ "num_workers": 12,
192
+ "batch_size": 64,
193
+ "prefetch_factor": 4,
194
+ "persistent_workers": true,
195
+ "steps": 30000,
196
+ "eval_freq": 30000,
197
+ "log_freq": 200,
198
+ "tolerance_s": 0.0001,
199
+ "save_checkpoint": true,
200
+ "save_freq": 2500,
201
+ "use_policy_training_preset": false,
202
+ "optimizer": {
203
+ "type": "adamw",
204
+ "lr": 0.0001,
205
+ "weight_decay": 1e-10,
206
+ "grad_clip_norm": 10.0,
207
+ "betas": [
208
+ 0.9,
209
+ 0.95
210
+ ],
211
+ "eps": 1e-08
212
+ },
213
+ "scheduler": {
214
+ "type": "cosine_decay_with_warmup",
215
+ "num_warmup_steps": 1000,
216
+ "num_decay_steps": 30000,
217
+ "peak_lr": 0.0001,
218
+ "decay_lr": 2.5e-06
219
+ },
220
+ "eval": {
221
+ "n_episodes": 50,
222
+ "batch_size": 11,
223
+ "use_async_envs": true
224
+ },
225
+ "wandb": {
226
+ "enable": true,
227
+ "disable_artifact": false,
228
+ "project": "lerobot",
229
+ "entity": null,
230
+ "notes": null,
231
+ "run_id": "lqw4z499",
232
+ "mode": null,
233
+ "add_tags": true
234
+ },
235
+ "peft": null,
236
+ "sample_weighting": null,
237
+ "rename_map": {
238
+ "observation.images.camera1": "observation.images.camera1",
239
+ "observation.images.front": "observation.images.camera1"
240
+ },
241
+ "checkpoint_path": "/data/lerobot_outputs/train/eval2_180_posegated_position_uniform_smolvla_v1/checkpoints/010000"
242
+ }