Robotics
LeRobot
Safetensors
smolvla
Faless commited on
Commit
f5ed934
·
verified ·
1 Parent(s): 825c57f

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +63 -0
  2. config.json +93 -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: Faless/harvest_apples_with_agilex_piper_real
4
+ library_name: lerobot
5
+ license: apache-2.0
6
+ model_name: smolvla
7
+ pipeline_tag: robotics
8
+ tags:
9
+ - robotics
10
+ - lerobot
11
+ - smolvla
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,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "smolvla",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 256,
10
+ 256
11
+ ]
12
+ },
13
+ "observation.images.image2": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 256,
18
+ 256
19
+ ]
20
+ },
21
+ "observation.state": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 8
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": "None",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": "Faless/smolvla_buono",
45
+ "chunk_size": 43,
46
+ "n_action_steps": 43,
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": false,
65
+ "train_expert_only": false,
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.0,
75
+ "scheduler_warmup_steps": 500,
76
+ "scheduler_decay_steps": 5000,
77
+ "scheduler_decay_lr": 2.5e-06,
78
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Instruct",
79
+ "load_vlm_weights": true,
80
+ "add_image_special_tokens": false,
81
+ "attention_mode": "cross_attn",
82
+ "prefix_length": 0,
83
+ "pad_language_to": "longest",
84
+ "num_expert_layers": -1,
85
+ "num_vlm_layers": 0,
86
+ "self_attn_every_n_layers": 2,
87
+ "expert_width_multiplier": 0.5,
88
+ "min_period": 0.004,
89
+ "max_period": 4.0,
90
+ "rtc_config": null,
91
+ "compile_model": false,
92
+ "compile_mode": "max-autotune"
93
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:70141c9a0f04184e920d81e5b57bf8a232c9a73d30fe57640406e284cc663a51
3
+ size 1218047032
train_config.json ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "Faless/harvest_apples_with_agilex_piper_real",
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": "torchcodec",
80
+ "streaming": false
81
+ },
82
+ "env": null,
83
+ "policy": {
84
+ "type": "smolvla",
85
+ "n_obs_steps": 1,
86
+ "input_features": {
87
+ "observation.images.image": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 3,
91
+ 256,
92
+ 256
93
+ ]
94
+ },
95
+ "observation.images.image2": {
96
+ "type": "VISUAL",
97
+ "shape": [
98
+ 3,
99
+ 256,
100
+ 256
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": "None",
123
+ "private": null,
124
+ "tags": null,
125
+ "license": null,
126
+ "pretrained_path": "Faless/smolvla_buono",
127
+ "chunk_size": 43,
128
+ "n_action_steps": 43,
129
+ "normalization_mapping": {
130
+ "VISUAL": "IDENTITY",
131
+ "STATE": "MEAN_STD",
132
+ "ACTION": "MEAN_STD"
133
+ },
134
+ "max_state_dim": 32,
135
+ "max_action_dim": 32,
136
+ "resize_imgs_with_padding": [
137
+ 512,
138
+ 512
139
+ ],
140
+ "empty_cameras": 0,
141
+ "adapt_to_pi_aloha": false,
142
+ "use_delta_joint_actions_aloha": false,
143
+ "tokenizer_max_length": 48,
144
+ "num_steps": 10,
145
+ "use_cache": true,
146
+ "freeze_vision_encoder": false,
147
+ "train_expert_only": false,
148
+ "train_state_proj": true,
149
+ "optimizer_lr": 0.0001,
150
+ "optimizer_betas": [
151
+ 0.9,
152
+ 0.95
153
+ ],
154
+ "optimizer_eps": 1e-08,
155
+ "optimizer_weight_decay": 1e-10,
156
+ "optimizer_grad_clip_norm": 10.0,
157
+ "scheduler_warmup_steps": 500,
158
+ "scheduler_decay_steps": 5000,
159
+ "scheduler_decay_lr": 2.5e-06,
160
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Instruct",
161
+ "load_vlm_weights": true,
162
+ "add_image_special_tokens": false,
163
+ "attention_mode": "cross_attn",
164
+ "prefix_length": 0,
165
+ "pad_language_to": "longest",
166
+ "num_expert_layers": -1,
167
+ "num_vlm_layers": 0,
168
+ "self_attn_every_n_layers": 2,
169
+ "expert_width_multiplier": 0.5,
170
+ "min_period": 0.004,
171
+ "max_period": 4.0,
172
+ "rtc_config": null,
173
+ "compile_model": false,
174
+ "compile_mode": "max-autotune"
175
+ },
176
+ "output_dir": "/content/drive/MyDrive/lerobot_training/harvest_apples_smolvla_v2_real",
177
+ "job_name": "harvest_apples_smolvla_v2_real1",
178
+ "resume": false,
179
+ "seed": 1000,
180
+ "cudnn_deterministic": false,
181
+ "num_workers": 4,
182
+ "batch_size": 32,
183
+ "steps": 5000,
184
+ "eval_freq": 20000,
185
+ "log_freq": 200,
186
+ "tolerance_s": 0.0005,
187
+ "save_checkpoint": true,
188
+ "save_freq": 5000,
189
+ "use_policy_training_preset": true,
190
+ "optimizer": {
191
+ "type": "adamw",
192
+ "lr": 0.0001,
193
+ "weight_decay": 1e-10,
194
+ "grad_clip_norm": 10.0,
195
+ "betas": [
196
+ 0.9,
197
+ 0.95
198
+ ],
199
+ "eps": 1e-08
200
+ },
201
+ "scheduler": {
202
+ "type": "cosine_decay_with_warmup",
203
+ "num_warmup_steps": 500,
204
+ "num_decay_steps": 5000,
205
+ "peak_lr": 0.0001,
206
+ "decay_lr": 2.5e-06
207
+ },
208
+ "eval": {
209
+ "n_episodes": 50,
210
+ "batch_size": 50,
211
+ "use_async_envs": false
212
+ },
213
+ "wandb": {
214
+ "enable": true,
215
+ "disable_artifact": true,
216
+ "project": "lerobot",
217
+ "entity": null,
218
+ "notes": null,
219
+ "run_id": "777jc9db",
220
+ "mode": null,
221
+ "add_tags": true
222
+ },
223
+ "peft": null,
224
+ "use_rabc": false,
225
+ "rabc_progress_path": null,
226
+ "rabc_kappa": 0.01,
227
+ "rabc_epsilon": 1e-06,
228
+ "rabc_head_mode": "sparse",
229
+ "rename_map": {},
230
+ "checkpoint_path": null
231
+ }