Robotics
LeRobot
Safetensors
smolvla
SJun99 commited on
Commit
bf1cc1b
·
verified ·
1 Parent(s): 5dc07f8

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +172 -0
  2. config.json +102 -0
  3. model.safetensors +3 -0
  4. train_config.json +257 -0
README.md ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets: SJun99/HD_task
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
+
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:** `so_follower`
47
+ - **Cameras:** `top`
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.camera1` | VISUAL | `(3, 256, 256)` |
60
+ | `observation.images.camera2` | VISUAL | `(3, 256, 256)` |
61
+ | `observation.images.camera3` | VISUAL | `(3, 256, 256)` |
62
+
63
+ **Outputs**
64
+
65
+ | Feature | Type | Shape |
66
+ | --- | --- | --- |
67
+ | `action` | ACTION | `(6,)` |
68
+
69
+
70
+ ## Training Dataset
71
+
72
+ - **Repository:** [SJun99/HD_task](https://huggingface.co/datasets/SJun99/HD_task)
73
+ - **Episodes:** 384
74
+ - **Frames:** 208311
75
+ - **Frame rate:** 30 FPS
76
+ - **Task(s):** "Pick up the green eraser and place it in the brown basket", "Pick up the green eraser and place it in the gray basket", "Pick up the yellow eraser and place it in the brown basket", "Pick up the yellow eraser and place it in the gray basket"
77
+
78
+ <a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=SJun99/HD_task">
79
+ <img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl.svg"/>
80
+ <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl-dark.svg"/>
81
+ </a>
82
+
83
+
84
+ ## Training Configuration
85
+
86
+ | Setting | Value |
87
+ | --- | --- |
88
+ | Training steps | 150000 |
89
+ | Batch size | 16 |
90
+ | Optimizer | adamw |
91
+ | Learning rate | 0.0001 |
92
+ | Seed | 1000 |
93
+ | LeRobot version | 0.6.0 |
94
+
95
+ ---
96
+
97
+ ## How to Get Started with the Model
98
+
99
+ New to LeRobot? These guides cover the full workflow:
100
+
101
+ - **[Install LeRobot](https://huggingface.co/docs/lerobot/main/en/installation)** — set up the `lerobot` package.
102
+ - **[Hardware setup](https://huggingface.co/docs/lerobot/main/en/hardware_guide)** — assemble, wire, and calibrate your robot and cameras.
103
+ - **[Record data & train a policy](https://huggingface.co/docs/lerobot/en/il_robots)** — the end-to-end imitation-learning walkthrough.
104
+ - **[CLI cheat-sheet](https://huggingface.co/docs/lerobot/main/en/cheat-sheet)** — quick reference for the `lerobot-*` commands.
105
+
106
+ The short version to run and train this policy:
107
+
108
+ ### Run the policy on your robot
109
+
110
+ ```bash
111
+ lerobot-rollout \
112
+ --strategy.type=base \
113
+ --robot.type=so_follower \
114
+ --robot.port=<your_robot_port> \
115
+ --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}}" \
116
+ --policy.path=SJun99/HD_task_smolvla \
117
+ --task="Pick up the green eraser and place it in the brown basket" \
118
+ --duration=60
119
+ ```
120
+
121
+ 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.
122
+
123
+ 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).
124
+
125
+ ### Train your own policy
126
+
127
+ This policy type is usually fine-tuned from the pretrained base model [lerobot/smolvla_base](https://huggingface.co/lerobot/smolvla_base):
128
+
129
+ ```bash
130
+ lerobot-train \
131
+ --dataset.repo_id=${HF_USER}/<dataset> \
132
+ --policy.path=lerobot/smolvla_base \
133
+ --output_dir=outputs/train/<policy_repo_id> \
134
+ --job_name=lerobot_training \
135
+ --policy.device=cuda \
136
+ --policy.repo_id=${HF_USER}/<policy_repo_id> \
137
+ --wandb.enable=true
138
+ ```
139
+
140
+ _Writes checkpoints to `outputs/train/<policy_repo_id>/checkpoints/`._
141
+
142
+ ---
143
+
144
+ ## Evaluation
145
+
146
+ <!-- Report real-robot results here: run the policy several times per task and count the
147
+ successes. Delete the "No evaluation results" line and fill in this table instead:
148
+
149
+ | Task | Trials | Successes | Success rate |
150
+ | ---- | ------ | --------- | ------------ |
151
+ | pick the lego brick | 10 | 8 | 80% |
152
+
153
+ Also worth noting: anything that affects difficulty (new object positions, lighting,
154
+ distractors, a different robot of the same type, ...).
155
+ -->
156
+
157
+ _No evaluation results have been provided for this policy yet._
158
+
159
+ ---
160
+
161
+ ## Citation
162
+
163
+ If you use this policy, please cite the method linked in the description above, along with LeRobot:
164
+
165
+ ```bibtex
166
+ @misc{cadene2024lerobot,
167
+ 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},
168
+ title = {LeRobot: State-of-the-art Machine Learning for Real-World Robotics in Pytorch},
169
+ howpublished = "\url{https://github.com/huggingface/lerobot}",
170
+ year = {2024}
171
+ }
172
+ ```
config.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.camera2": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 256,
24
+ 256
25
+ ]
26
+ },
27
+ "observation.images.camera3": {
28
+ "type": "VISUAL",
29
+ "shape": [
30
+ 3,
31
+ 256,
32
+ 256
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": "SJun99/HD_task_smolvla",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": "lerobot/smolvla_base",
53
+ "pretrained_revision": null,
54
+ "chunk_size": 50,
55
+ "n_action_steps": 50,
56
+ "normalization_mapping": {
57
+ "VISUAL": "IDENTITY",
58
+ "STATE": "MEAN_STD",
59
+ "ACTION": "MEAN_STD"
60
+ },
61
+ "max_state_dim": 32,
62
+ "max_action_dim": 32,
63
+ "resize_imgs_with_padding": [
64
+ 512,
65
+ 512
66
+ ],
67
+ "empty_cameras": 0,
68
+ "adapt_to_pi_aloha": false,
69
+ "use_delta_joint_actions_aloha": false,
70
+ "tokenizer_max_length": 48,
71
+ "num_steps": 10,
72
+ "use_cache": true,
73
+ "freeze_vision_encoder": false,
74
+ "train_expert_only": true,
75
+ "train_state_proj": true,
76
+ "optimizer_lr": 0.0001,
77
+ "optimizer_betas": [
78
+ 0.9,
79
+ 0.95
80
+ ],
81
+ "optimizer_eps": 1e-08,
82
+ "optimizer_weight_decay": 1e-10,
83
+ "optimizer_grad_clip_norm": 10.0,
84
+ "scheduler_warmup_steps": 1000,
85
+ "scheduler_decay_steps": 150000,
86
+ "scheduler_decay_lr": 2.5e-06,
87
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
88
+ "load_vlm_weights": true,
89
+ "add_image_special_tokens": false,
90
+ "attention_mode": "cross_attn",
91
+ "prefix_length": 0,
92
+ "pad_language_to": "max_length",
93
+ "num_expert_layers": 0,
94
+ "num_vlm_layers": 16,
95
+ "self_attn_every_n_layers": 2,
96
+ "expert_width_multiplier": 0.75,
97
+ "min_period": 0.004,
98
+ "max_period": 4.0,
99
+ "rtc_config": null,
100
+ "compile_model": false,
101
+ "compile_mode": "max-autotune"
102
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48b42910a5216c2347253d58c07c951dae2cfb4f06bcb397c07ad9046b77c32e
3
+ size 906712520
train_config.json ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "SJun99/HD_task",
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.camera1": {
97
+ "type": "VISUAL",
98
+ "shape": [
99
+ 3,
100
+ 256,
101
+ 256
102
+ ]
103
+ },
104
+ "observation.images.camera2": {
105
+ "type": "VISUAL",
106
+ "shape": [
107
+ 3,
108
+ 256,
109
+ 256
110
+ ]
111
+ },
112
+ "observation.images.camera3": {
113
+ "type": "VISUAL",
114
+ "shape": [
115
+ 3,
116
+ 256,
117
+ 256
118
+ ]
119
+ }
120
+ },
121
+ "output_features": {
122
+ "action": {
123
+ "type": "ACTION",
124
+ "shape": [
125
+ 6
126
+ ]
127
+ }
128
+ },
129
+ "device": "cuda",
130
+ "use_amp": true,
131
+ "use_peft": false,
132
+ "push_to_hub": true,
133
+ "repo_id": "SJun99/HD_task_smolvla",
134
+ "private": null,
135
+ "tags": null,
136
+ "license": null,
137
+ "pretrained_path": "lerobot/smolvla_base",
138
+ "pretrained_revision": null,
139
+ "chunk_size": 50,
140
+ "n_action_steps": 50,
141
+ "normalization_mapping": {
142
+ "VISUAL": "IDENTITY",
143
+ "STATE": "MEAN_STD",
144
+ "ACTION": "MEAN_STD"
145
+ },
146
+ "max_state_dim": 32,
147
+ "max_action_dim": 32,
148
+ "resize_imgs_with_padding": [
149
+ 512,
150
+ 512
151
+ ],
152
+ "empty_cameras": 0,
153
+ "adapt_to_pi_aloha": false,
154
+ "use_delta_joint_actions_aloha": false,
155
+ "tokenizer_max_length": 48,
156
+ "num_steps": 10,
157
+ "use_cache": true,
158
+ "freeze_vision_encoder": false,
159
+ "train_expert_only": true,
160
+ "train_state_proj": true,
161
+ "optimizer_lr": 0.0001,
162
+ "optimizer_betas": [
163
+ 0.9,
164
+ 0.95
165
+ ],
166
+ "optimizer_eps": 1e-08,
167
+ "optimizer_weight_decay": 1e-10,
168
+ "optimizer_grad_clip_norm": 10.0,
169
+ "scheduler_warmup_steps": 1000,
170
+ "scheduler_decay_steps": 150000,
171
+ "scheduler_decay_lr": 2.5e-06,
172
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
173
+ "load_vlm_weights": true,
174
+ "add_image_special_tokens": false,
175
+ "attention_mode": "cross_attn",
176
+ "prefix_length": 0,
177
+ "pad_language_to": "max_length",
178
+ "num_expert_layers": 0,
179
+ "num_vlm_layers": 16,
180
+ "self_attn_every_n_layers": 2,
181
+ "expert_width_multiplier": 0.75,
182
+ "min_period": 0.004,
183
+ "max_period": 4.0,
184
+ "rtc_config": null,
185
+ "compile_model": false,
186
+ "compile_mode": "max-autotune"
187
+ },
188
+ "reward_model": null,
189
+ "output_dir": "outputs/train/smolvla_so101/HD_task_smolvla",
190
+ "job_name": "HD_task_smolvla",
191
+ "resume": false,
192
+ "seed": 1000,
193
+ "cudnn_deterministic": false,
194
+ "num_workers": 8,
195
+ "batch_size": 16,
196
+ "prefetch_factor": 4,
197
+ "persistent_workers": true,
198
+ "steps": 150000,
199
+ "env_eval_freq": 20000,
200
+ "log_freq": 200,
201
+ "eval_steps": 0,
202
+ "max_eval_samples": 0,
203
+ "tolerance_s": 0.05,
204
+ "save_checkpoint": true,
205
+ "save_freq": 30000,
206
+ "use_policy_training_preset": true,
207
+ "optimizer": {
208
+ "type": "adamw",
209
+ "lr": 0.0001,
210
+ "weight_decay": 1e-10,
211
+ "grad_clip_norm": 10.0,
212
+ "betas": [
213
+ 0.9,
214
+ 0.95
215
+ ],
216
+ "eps": 1e-08
217
+ },
218
+ "scheduler": {
219
+ "type": "cosine_decay_with_warmup",
220
+ "num_warmup_steps": 1000,
221
+ "num_decay_steps": 150000,
222
+ "peak_lr": 0.0001,
223
+ "decay_lr": 2.5e-06
224
+ },
225
+ "eval": {
226
+ "n_episodes": 50,
227
+ "batch_size": 16,
228
+ "use_async_envs": true,
229
+ "recording": false,
230
+ "recording_repo_id": null,
231
+ "recording_private": false
232
+ },
233
+ "wandb": {
234
+ "enable": false,
235
+ "disable_artifact": false,
236
+ "project": "lerobot",
237
+ "entity": null,
238
+ "notes": null,
239
+ "run_id": null,
240
+ "mode": null,
241
+ "add_tags": true
242
+ },
243
+ "peft": null,
244
+ "job": {
245
+ "target": null,
246
+ "image": "huggingface/lerobot-gpu:latest",
247
+ "timeout": "2d",
248
+ "detach": false,
249
+ "tags": []
250
+ },
251
+ "save_checkpoint_to_hub": false,
252
+ "sample_weighting": null,
253
+ "rename_map": {
254
+ "observation.images.top": "observation.images.camera1"
255
+ },
256
+ "checkpoint_path": null
257
+ }