Robotics
LeRobot
Safetensors
smolvla
shuohsuan commited on
Commit
b7d6acb
·
verified ·
1 Parent(s): ab17b3f

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +65 -0
  2. config.json +88 -0
  3. model.safetensors +3 -0
  4. train_config.json +204 -0
README.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets:
4
+ - shuohsuan/start1
5
+ - shuohsuan/end1
6
+ library_name: lerobot
7
+ license: apache-2.0
8
+ model_name: smolvla
9
+ pipeline_tag: robotics
10
+ tags:
11
+ - lerobot
12
+ - smolvla
13
+ - robotics
14
+ ---
15
+
16
+ # Model Card for smolvla
17
+
18
+ <!-- Provide a quick summary of what the model is/does. -->
19
+
20
+
21
+ [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.
22
+
23
+
24
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
25
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
26
+
27
+ ---
28
+
29
+ ## How to Get Started with the Model
30
+
31
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
32
+ Below is the short version on how to train and run inference/eval:
33
+
34
+ ### Train from scratch
35
+
36
+ ```bash
37
+ python -m lerobot.scripts.train \
38
+ --dataset.repo_id=${HF_USER}/<dataset> \
39
+ --policy.type=act \
40
+ --output_dir=outputs/train/<desired_policy_repo_id> \
41
+ --job_name=lerobot_training \
42
+ --policy.device=cuda \
43
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
44
+ --wandb.enable=true
45
+ ```
46
+
47
+ *Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`.*
48
+
49
+ ### Evaluate the policy/run inference
50
+
51
+ ```bash
52
+ python -m lerobot.record \
53
+ --robot.type=so100_follower \
54
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
55
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
56
+ --episodes=10
57
+ ```
58
+
59
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
60
+
61
+ ---
62
+
63
+ ## Model Details
64
+
65
+ * **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.state": {
11
+ "type": "STATE",
12
+ "shape": [
13
+ 6
14
+ ]
15
+ },
16
+ "observation.images.side": {
17
+ "type": "VISUAL",
18
+ "shape": [
19
+ 3,
20
+ 480,
21
+ 640
22
+ ]
23
+ },
24
+ "observation.images.wrist": {
25
+ "type": "VISUAL",
26
+ "shape": [
27
+ 3,
28
+ 480,
29
+ 640
30
+ ]
31
+ }
32
+ },
33
+ "output_features": {
34
+ "action": {
35
+ "type": "ACTION",
36
+ "shape": [
37
+ 6
38
+ ]
39
+ }
40
+ },
41
+ "device": "cuda",
42
+ "use_amp": false,
43
+ "push_to_hub": true,
44
+ "repo_id": "shuohsuan/svla_send1",
45
+ "private": null,
46
+ "tags": null,
47
+ "license": null,
48
+ "chunk_size": 50,
49
+ "n_action_steps": 50,
50
+ "max_state_dim": 32,
51
+ "max_action_dim": 32,
52
+ "resize_imgs_with_padding": [
53
+ 512,
54
+ 512
55
+ ],
56
+ "empty_cameras": 0,
57
+ "adapt_to_pi_aloha": false,
58
+ "use_delta_joint_actions_aloha": false,
59
+ "tokenizer_max_length": 48,
60
+ "num_steps": 10,
61
+ "use_cache": true,
62
+ "freeze_vision_encoder": true,
63
+ "train_expert_only": true,
64
+ "train_state_proj": true,
65
+ "optimizer_lr": 0.0001,
66
+ "optimizer_betas": [
67
+ 0.9,
68
+ 0.95
69
+ ],
70
+ "optimizer_eps": 1e-08,
71
+ "optimizer_weight_decay": 1e-10,
72
+ "optimizer_grad_clip_norm": 10.0,
73
+ "scheduler_warmup_steps": 1000,
74
+ "scheduler_decay_steps": 30000,
75
+ "scheduler_decay_lr": 2.5e-06,
76
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
77
+ "load_vlm_weights": true,
78
+ "add_image_special_tokens": false,
79
+ "attention_mode": "cross_attn",
80
+ "prefix_length": 0,
81
+ "pad_language_to": "max_length",
82
+ "num_expert_layers": 0,
83
+ "num_vlm_layers": 16,
84
+ "self_attn_every_n_layers": 2,
85
+ "expert_width_multiplier": 0.75,
86
+ "min_period": 0.004,
87
+ "max_period": 4.0
88
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e650045832ebae5358458135e1461f84dd81c4bd125d9cb5e57b99fa92acd496
3
+ size 906713296
train_config.json ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": [
4
+ "shuohsuan/start1",
5
+ "shuohsuan/end1"
6
+ ],
7
+ "repo_idx": 0,
8
+ "root": null,
9
+ "episodes": null,
10
+ "image_transforms": {
11
+ "enable": false,
12
+ "max_num_transforms": 3,
13
+ "random_order": false,
14
+ "tfs": {
15
+ "brightness": {
16
+ "weight": 1.0,
17
+ "type": "ColorJitter",
18
+ "kwargs": {
19
+ "brightness": [
20
+ 0.8,
21
+ 1.2
22
+ ]
23
+ }
24
+ },
25
+ "contrast": {
26
+ "weight": 1.0,
27
+ "type": "ColorJitter",
28
+ "kwargs": {
29
+ "contrast": [
30
+ 0.8,
31
+ 1.2
32
+ ]
33
+ }
34
+ },
35
+ "saturation": {
36
+ "weight": 1.0,
37
+ "type": "ColorJitter",
38
+ "kwargs": {
39
+ "saturation": [
40
+ 0.5,
41
+ 1.5
42
+ ]
43
+ }
44
+ },
45
+ "hue": {
46
+ "weight": 1.0,
47
+ "type": "ColorJitter",
48
+ "kwargs": {
49
+ "hue": [
50
+ -0.05,
51
+ 0.05
52
+ ]
53
+ }
54
+ },
55
+ "sharpness": {
56
+ "weight": 1.0,
57
+ "type": "SharpnessJitter",
58
+ "kwargs": {
59
+ "sharpness": [
60
+ 0.5,
61
+ 1.5
62
+ ]
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "revision": null,
68
+ "use_imagenet_stats": true,
69
+ "video_backend": "torchcodec"
70
+ },
71
+ "env": null,
72
+ "policy": {
73
+ "type": "smolvla",
74
+ "n_obs_steps": 1,
75
+ "normalization_mapping": {
76
+ "VISUAL": "IDENTITY",
77
+ "STATE": "MEAN_STD",
78
+ "ACTION": "MEAN_STD"
79
+ },
80
+ "input_features": {
81
+ "observation.state": {
82
+ "type": "STATE",
83
+ "shape": [
84
+ 6
85
+ ]
86
+ },
87
+ "observation.images.side": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 3,
91
+ 480,
92
+ 640
93
+ ]
94
+ },
95
+ "observation.images.wrist": {
96
+ "type": "VISUAL",
97
+ "shape": [
98
+ 3,
99
+ 480,
100
+ 640
101
+ ]
102
+ }
103
+ },
104
+ "output_features": {
105
+ "action": {
106
+ "type": "ACTION",
107
+ "shape": [
108
+ 6
109
+ ]
110
+ }
111
+ },
112
+ "device": "cuda",
113
+ "use_amp": false,
114
+ "push_to_hub": true,
115
+ "repo_id": "shuohsuan/svla_send1",
116
+ "private": null,
117
+ "tags": null,
118
+ "license": null,
119
+ "chunk_size": 50,
120
+ "n_action_steps": 50,
121
+ "max_state_dim": 32,
122
+ "max_action_dim": 32,
123
+ "resize_imgs_with_padding": [
124
+ 512,
125
+ 512
126
+ ],
127
+ "empty_cameras": 0,
128
+ "adapt_to_pi_aloha": false,
129
+ "use_delta_joint_actions_aloha": false,
130
+ "tokenizer_max_length": 48,
131
+ "num_steps": 10,
132
+ "use_cache": true,
133
+ "freeze_vision_encoder": true,
134
+ "train_expert_only": true,
135
+ "train_state_proj": true,
136
+ "optimizer_lr": 0.0001,
137
+ "optimizer_betas": [
138
+ 0.9,
139
+ 0.95
140
+ ],
141
+ "optimizer_eps": 1e-08,
142
+ "optimizer_weight_decay": 1e-10,
143
+ "optimizer_grad_clip_norm": 10.0,
144
+ "scheduler_warmup_steps": 1000,
145
+ "scheduler_decay_steps": 30000,
146
+ "scheduler_decay_lr": 2.5e-06,
147
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
148
+ "load_vlm_weights": true,
149
+ "add_image_special_tokens": false,
150
+ "attention_mode": "cross_attn",
151
+ "prefix_length": 0,
152
+ "pad_language_to": "max_length",
153
+ "num_expert_layers": 0,
154
+ "num_vlm_layers": 16,
155
+ "self_attn_every_n_layers": 2,
156
+ "expert_width_multiplier": 0.75,
157
+ "min_period": 0.004,
158
+ "max_period": 4.0
159
+ },
160
+ "output_dir": "/mnt/storage/shuohsuan/train/lerobot/svla_send1",
161
+ "job_name": "base",
162
+ "resume": false,
163
+ "seed": 1000,
164
+ "num_workers": 4,
165
+ "batch_size": 64,
166
+ "steps": 100000,
167
+ "eval_freq": 20000,
168
+ "log_freq": 200,
169
+ "save_checkpoint": true,
170
+ "save_freq": 20000,
171
+ "use_policy_training_preset": true,
172
+ "optimizer": {
173
+ "type": "adamw",
174
+ "lr": 0.0001,
175
+ "weight_decay": 1e-10,
176
+ "grad_clip_norm": 10.0,
177
+ "betas": [
178
+ 0.9,
179
+ 0.95
180
+ ],
181
+ "eps": 1e-08
182
+ },
183
+ "scheduler": {
184
+ "type": "cosine_decay_with_warmup",
185
+ "num_warmup_steps": 1000,
186
+ "num_decay_steps": 30000,
187
+ "peak_lr": 0.0001,
188
+ "decay_lr": 2.5e-06
189
+ },
190
+ "eval": {
191
+ "n_episodes": 50,
192
+ "batch_size": 50,
193
+ "use_async_envs": false
194
+ },
195
+ "wandb": {
196
+ "enable": false,
197
+ "disable_artifact": false,
198
+ "project": "lerobot",
199
+ "entity": null,
200
+ "notes": null,
201
+ "run_id": null,
202
+ "mode": null
203
+ }
204
+ }