Robotics
LeRobot
Safetensors
smolvla
ElvinLiSTFT commited on
Commit
9d61533
·
verified ·
1 Parent(s): 8702789

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +170 -0
  2. config.json +86 -0
  3. model.safetensors +3 -0
  4. train_config.json +239 -0
README.md ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets: SuperTechFT/record-high
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
+
23
+ <p align="center">
24
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/640e21ef3c82bd463ee5a76d/aooU0a3DMtYmy_1IWMaIM.png" alt="smolvla architecture" width="85%"/>
25
+ </p>
26
+
27
+
28
+ <!-- A short demo is worth more than any description! Record a GIF/video of the policy
29
+ running on your robot, upload it to this repo, and embed it here:
30
+ <p align="center">
31
+ <img src="https://huggingface.co/<hf_user>/<policy_repo_id>/resolve/main/demo.gif" width="60%"/>
32
+ </p>
33
+ -->
34
+
35
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
36
+
37
+ Learn how to train and run it in the [LeRobot smolvla guide](https://huggingface.co/docs/lerobot/main/en/smolvla), or browse the [full documentation](https://huggingface.co/docs/lerobot/index).
38
+
39
+
40
+ ---
41
+
42
+ ## Model Details
43
+
44
+ - **License:** apache-2.0
45
+ - **Fine-tuned from:** [lerobot/smolvla_base](https://huggingface.co/lerobot/smolvla_base)
46
+ - **Robot type:** `so101_follower`
47
+ - **Cameras:** `wrist`
48
+
49
+
50
+ ## Inputs & Outputs
51
+
52
+ The policy consumes these observation features and produces these action features.
53
+
54
+ **Inputs**
55
+
56
+ | Feature | Type | Shape |
57
+ | --- | --- | --- |
58
+ | `observation.state` | STATE | `(6,)` |
59
+ | `observation.images.wrist` | VISUAL | `(3, 480, 640)` |
60
+
61
+ **Outputs**
62
+
63
+ | Feature | Type | Shape |
64
+ | --- | --- | --- |
65
+ | `action` | ACTION | `(6,)` |
66
+
67
+
68
+ ## Training Dataset
69
+
70
+ - **Repository:** [SuperTechFT/record-high](https://huggingface.co/datasets/SuperTechFT/record-high)
71
+ - **Episodes:** 51
72
+ - **Frames:** 20145
73
+ - **Frame rate:** 30 FPS
74
+ - **Task(s):** "Grab a blue block and put it in the cup"
75
+
76
+ <a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=SuperTechFT/record-high">
77
+ <img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl.svg"/>
78
+ <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl-dark.svg"/>
79
+ </a>
80
+
81
+
82
+ ## Training Configuration
83
+
84
+ | Setting | Value |
85
+ | --- | --- |
86
+ | Training steps | 1000 |
87
+ | Batch size | 64 |
88
+ | Optimizer | adamw |
89
+ | Learning rate | 0.0001 |
90
+ | Seed | 1000 |
91
+ | LeRobot version | 0.5.2 |
92
+
93
+ ---
94
+
95
+ ## How to Get Started with the Model
96
+
97
+ New to LeRobot? These guides cover the full workflow:
98
+
99
+ - **[Install LeRobot](https://huggingface.co/docs/lerobot/main/en/installation)** — set up the `lerobot` package.
100
+ - **[Hardware setup](https://huggingface.co/docs/lerobot/main/en/hardware_guide)** — assemble, wire, and calibrate your robot and cameras.
101
+ - **[Record data & train a policy](https://huggingface.co/docs/lerobot/en/il_robots)** — the end-to-end imitation-learning walkthrough.
102
+ - **[CLI cheat-sheet](https://huggingface.co/docs/lerobot/main/en/cheat-sheet)** — quick reference for the `lerobot-*` commands.
103
+
104
+ The short version to run and train this policy:
105
+
106
+ ### Run the policy on your robot
107
+
108
+ ```bash
109
+ lerobot-rollout \
110
+ --strategy.type=base \
111
+ --robot.type=so101_follower \
112
+ --robot.port=<your_robot_port> \
113
+ --robot.cameras="{ <camera_1>: {type: opencv, index_or_path: <index_or_path>, width: 640, height: 480, fps: 30}, <camera_2>: {type: opencv, index_or_path: <index_or_path>, width: 640, height: 480, fps: 30}}" \
114
+ --policy.path=SuperTechFT/smolvla-high3 \
115
+ --task="Grab a blue block and put it in the cup" \
116
+ --duration=60
117
+ ```
118
+
119
+ Replace the remaining `<...>` placeholders with your own values: `--robot.port` and the camera names/indices are specific to your machine, and the camera names must match the observation keys this policy was trained on.
120
+
121
+ When `--strategy.type=base` is used the script doesn't record the episodes. Skipping duration will make the policy run indefinitely. For more information look at [rollout documentation](https://huggingface.co/docs/lerobot/main/en/inference).
122
+
123
+ ### Train your own policy
124
+
125
+ This policy type is usually fine-tuned from the pretrained base model [lerobot/smolvla_base](https://huggingface.co/lerobot/smolvla_base):
126
+
127
+ ```bash
128
+ lerobot-train \
129
+ --dataset.repo_id=${HF_USER}/<dataset> \
130
+ --policy.path=lerobot/smolvla_base \
131
+ --output_dir=outputs/train/<policy_repo_id> \
132
+ --job_name=lerobot_training \
133
+ --policy.device=cuda \
134
+ --policy.repo_id=${HF_USER}/<policy_repo_id> \
135
+ --wandb.enable=true
136
+ ```
137
+
138
+ _Writes checkpoints to `outputs/train/<policy_repo_id>/checkpoints/`._
139
+
140
+ ---
141
+
142
+ ## Evaluation
143
+
144
+ <!-- Report real-robot results here: run the policy several times per task and count the
145
+ successes. Delete the "No evaluation results" line and fill in this table instead:
146
+
147
+ | Task | Trials | Successes | Success rate |
148
+ | ---- | ------ | --------- | ------------ |
149
+ | pick the lego brick | 10 | 8 | 80% |
150
+
151
+ Also worth noting: anything that affects difficulty (new object positions, lighting,
152
+ distractors, a different robot of the same type, ...).
153
+ -->
154
+
155
+ _No evaluation results have been provided for this policy yet._
156
+
157
+ ---
158
+
159
+ ## Citation
160
+
161
+ If you use this policy, please cite the method linked in the description above, along with LeRobot:
162
+
163
+ ```bibtex
164
+ @misc{cadene2024lerobot,
165
+ author = {Cadene, Remi and Alibert, Simon and Soare, Alexander and Gallouedec, Quentin and Zouitine, Adil and Palma, Steven and Kooijmans, Pepijn and Aractingi, Michel and Shukor, Mustafa and Aubakirova, Dana and Russi, Martino and Capuano, Francesco and Pascal, Caroline and Choghari, Jade and Moss, Jess and Wolf, Thomas},
166
+ title = {LeRobot: State-of-the-art Machine Learning for Real-World Robotics in Pytorch},
167
+ howpublished = "\url{https://github.com/huggingface/lerobot}",
168
+ year = {2024}
169
+ }
170
+ ```
config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.wrist": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ }
19
+ },
20
+ "output_features": {
21
+ "action": {
22
+ "type": "ACTION",
23
+ "shape": [
24
+ 6
25
+ ]
26
+ }
27
+ },
28
+ "device": "cuda",
29
+ "use_amp": false,
30
+ "use_peft": false,
31
+ "push_to_hub": true,
32
+ "repo_id": "SuperTechFT/smolvla-high3",
33
+ "private": null,
34
+ "tags": null,
35
+ "license": null,
36
+ "pretrained_path": null,
37
+ "pretrained_revision": null,
38
+ "chunk_size": 50,
39
+ "n_action_steps": 50,
40
+ "normalization_mapping": {
41
+ "VISUAL": "IDENTITY",
42
+ "STATE": "MEAN_STD",
43
+ "ACTION": "MEAN_STD"
44
+ },
45
+ "max_state_dim": 32,
46
+ "max_action_dim": 32,
47
+ "resize_imgs_with_padding": [
48
+ 512,
49
+ 512
50
+ ],
51
+ "empty_cameras": 0,
52
+ "adapt_to_pi_aloha": false,
53
+ "use_delta_joint_actions_aloha": false,
54
+ "tokenizer_max_length": 48,
55
+ "num_steps": 10,
56
+ "use_cache": true,
57
+ "freeze_vision_encoder": true,
58
+ "train_expert_only": true,
59
+ "train_state_proj": true,
60
+ "optimizer_lr": 0.0001,
61
+ "optimizer_betas": [
62
+ 0.9,
63
+ 0.95
64
+ ],
65
+ "optimizer_eps": 1e-08,
66
+ "optimizer_weight_decay": 1e-10,
67
+ "optimizer_grad_clip_norm": 10,
68
+ "scheduler_warmup_steps": 1000,
69
+ "scheduler_decay_steps": 30000,
70
+ "scheduler_decay_lr": 2.5e-06,
71
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
72
+ "load_vlm_weights": false,
73
+ "add_image_special_tokens": false,
74
+ "attention_mode": "cross_attn",
75
+ "prefix_length": -1,
76
+ "pad_language_to": "longest",
77
+ "num_expert_layers": -1,
78
+ "num_vlm_layers": 16,
79
+ "self_attn_every_n_layers": 2,
80
+ "expert_width_multiplier": 0.75,
81
+ "min_period": 0.004,
82
+ "max_period": 4.0,
83
+ "rtc_config": null,
84
+ "compile_model": false,
85
+ "compile_mode": "max-autotune"
86
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5faa7edb0c220ddc59242d552257be8e0e5ca41f862db7d7ad27b31264a54a7
3
+ size 1197789224
train_config.json ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "SuperTechFT/record-high",
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
+ "return_uint8": false,
81
+ "depth_output_unit": "mm",
82
+ "streaming": false,
83
+ "eval_split": 0.0
84
+ },
85
+ "env": null,
86
+ "policy": {
87
+ "type": "smolvla",
88
+ "n_obs_steps": 1,
89
+ "input_features": {
90
+ "observation.state": {
91
+ "type": "STATE",
92
+ "shape": [
93
+ 6
94
+ ]
95
+ },
96
+ "observation.images.wrist": {
97
+ "type": "VISUAL",
98
+ "shape": [
99
+ 3,
100
+ 480,
101
+ 640
102
+ ]
103
+ }
104
+ },
105
+ "output_features": {
106
+ "action": {
107
+ "type": "ACTION",
108
+ "shape": [
109
+ 6
110
+ ]
111
+ }
112
+ },
113
+ "device": "cuda",
114
+ "use_amp": false,
115
+ "use_peft": false,
116
+ "push_to_hub": true,
117
+ "repo_id": "SuperTechFT/smolvla-high3",
118
+ "private": null,
119
+ "tags": null,
120
+ "license": null,
121
+ "pretrained_path": null,
122
+ "pretrained_revision": null,
123
+ "chunk_size": 50,
124
+ "n_action_steps": 50,
125
+ "normalization_mapping": {
126
+ "VISUAL": "IDENTITY",
127
+ "STATE": "MEAN_STD",
128
+ "ACTION": "MEAN_STD"
129
+ },
130
+ "max_state_dim": 32,
131
+ "max_action_dim": 32,
132
+ "resize_imgs_with_padding": [
133
+ 512,
134
+ 512
135
+ ],
136
+ "empty_cameras": 0,
137
+ "adapt_to_pi_aloha": false,
138
+ "use_delta_joint_actions_aloha": false,
139
+ "tokenizer_max_length": 48,
140
+ "num_steps": 10,
141
+ "use_cache": true,
142
+ "freeze_vision_encoder": true,
143
+ "train_expert_only": true,
144
+ "train_state_proj": true,
145
+ "optimizer_lr": 0.0001,
146
+ "optimizer_betas": [
147
+ 0.9,
148
+ 0.95
149
+ ],
150
+ "optimizer_eps": 1e-08,
151
+ "optimizer_weight_decay": 1e-10,
152
+ "optimizer_grad_clip_norm": 10,
153
+ "scheduler_warmup_steps": 1000,
154
+ "scheduler_decay_steps": 30000,
155
+ "scheduler_decay_lr": 2.5e-06,
156
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
157
+ "load_vlm_weights": false,
158
+ "add_image_special_tokens": false,
159
+ "attention_mode": "cross_attn",
160
+ "prefix_length": -1,
161
+ "pad_language_to": "longest",
162
+ "num_expert_layers": -1,
163
+ "num_vlm_layers": 16,
164
+ "self_attn_every_n_layers": 2,
165
+ "expert_width_multiplier": 0.75,
166
+ "min_period": 0.004,
167
+ "max_period": 4.0,
168
+ "rtc_config": null,
169
+ "compile_model": false,
170
+ "compile_mode": "max-autotune"
171
+ },
172
+ "reward_model": null,
173
+ "output_dir": "outputs/train/smolvla-high3",
174
+ "job_name": "my_smolvla_training",
175
+ "resume": false,
176
+ "seed": 1000,
177
+ "cudnn_deterministic": false,
178
+ "num_workers": 4,
179
+ "batch_size": 64,
180
+ "prefetch_factor": 4,
181
+ "persistent_workers": true,
182
+ "steps": 1000,
183
+ "env_eval_freq": 20000,
184
+ "log_freq": 200,
185
+ "eval_steps": 0,
186
+ "max_eval_samples": 0,
187
+ "tolerance_s": 0.0001,
188
+ "save_checkpoint": true,
189
+ "save_freq": 20000,
190
+ "use_policy_training_preset": true,
191
+ "optimizer": {
192
+ "type": "adamw",
193
+ "lr": 0.0001,
194
+ "weight_decay": 1e-10,
195
+ "grad_clip_norm": 10,
196
+ "betas": [
197
+ 0.9,
198
+ 0.95
199
+ ],
200
+ "eps": 1e-08
201
+ },
202
+ "scheduler": {
203
+ "type": "cosine_decay_with_warmup",
204
+ "num_warmup_steps": 1000,
205
+ "num_decay_steps": 30000,
206
+ "peak_lr": 0.0001,
207
+ "decay_lr": 2.5e-06
208
+ },
209
+ "eval": {
210
+ "n_episodes": 50,
211
+ "batch_size": 8,
212
+ "use_async_envs": true,
213
+ "recording": false,
214
+ "recording_repo_id": null,
215
+ "recording_private": false
216
+ },
217
+ "wandb": {
218
+ "enable": false,
219
+ "disable_artifact": false,
220
+ "project": "lerobot",
221
+ "entity": null,
222
+ "notes": null,
223
+ "run_id": null,
224
+ "mode": null,
225
+ "add_tags": true
226
+ },
227
+ "peft": null,
228
+ "job": {
229
+ "target": null,
230
+ "image": "huggingface/lerobot-gpu:latest",
231
+ "timeout": "2d",
232
+ "detach": false,
233
+ "tags": []
234
+ },
235
+ "save_checkpoint_to_hub": false,
236
+ "sample_weighting": null,
237
+ "rename_map": {},
238
+ "checkpoint_path": null
239
+ }