Robotics
LeRobot
Safetensors
smolvla
samithva commited on
Commit
a7eecb5
·
verified ·
1 Parent(s): 270051c

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 +250 -0
README.md ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets: samithva/bimanual_stack_cup_bowl
4
+ library_name: lerobot
5
+ license: apache-2.0
6
+ model_name: smolvla
7
+ pipeline_tag: robotics
8
+ tags:
9
+ - lerobot
10
+ - robotics
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
+
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:** `bi_piper_follower`
47
+ - **Cameras:** `l_wrist`, `top`, `r_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.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 | `(14,)` |
68
+
69
+
70
+ ## Training Dataset
71
+
72
+ - **Repository:** [samithva/bimanual_stack_cup_bowl](https://huggingface.co/datasets/samithva/bimanual_stack_cup_bowl)
73
+ - **Episodes:** 100
74
+ - **Frames:** 44065
75
+ - **Frame rate:** 30 FPS
76
+ - **Task(s):** "Stack the cup on top of the bowl.", "Stack the cup on the bowl"
77
+
78
+ <a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=samithva/bimanual_stack_cup_bowl">
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 | 20000 |
89
+ | Batch size | 64 |
90
+ | Optimizer | adamw |
91
+ | Learning rate | 0.0001 |
92
+ | Seed | 1000 |
93
+ | LeRobot version | 0.5.2 |
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=bi_piper_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=samithva/smolvla_bimanual_stack_cup_bowl \
117
+ --task="Stack the cup on top of the bowl." \
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
+ 14
41
+ ]
42
+ }
43
+ },
44
+ "device": "cuda",
45
+ "use_amp": false,
46
+ "use_peft": false,
47
+ "push_to_hub": true,
48
+ "repo_id": "samithva/smolvla_bimanual_stack_cup_bowl",
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": true,
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": 30000,
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:d311893aeaf0368753e1b451c2d7a3612f6a5e929165ab2b4c7e5ca2e1dbd1f6
3
+ size 906712520
train_config.json ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "samithva/bimanual_stack_cup_bowl",
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
+ "streaming": false,
82
+ "eval_split": 0.0
83
+ },
84
+ "env": null,
85
+ "policy": {
86
+ "type": "smolvla",
87
+ "n_obs_steps": 1,
88
+ "input_features": {
89
+ "observation.state": {
90
+ "type": "STATE",
91
+ "shape": [
92
+ 6
93
+ ]
94
+ },
95
+ "observation.images.camera1": {
96
+ "type": "VISUAL",
97
+ "shape": [
98
+ 3,
99
+ 256,
100
+ 256
101
+ ]
102
+ },
103
+ "observation.images.camera2": {
104
+ "type": "VISUAL",
105
+ "shape": [
106
+ 3,
107
+ 256,
108
+ 256
109
+ ]
110
+ },
111
+ "observation.images.camera3": {
112
+ "type": "VISUAL",
113
+ "shape": [
114
+ 3,
115
+ 256,
116
+ 256
117
+ ]
118
+ }
119
+ },
120
+ "output_features": {
121
+ "action": {
122
+ "type": "ACTION",
123
+ "shape": [
124
+ 14
125
+ ]
126
+ }
127
+ },
128
+ "device": "cuda",
129
+ "use_amp": false,
130
+ "use_peft": false,
131
+ "push_to_hub": true,
132
+ "repo_id": "samithva/smolvla_bimanual_stack_cup_bowl",
133
+ "private": null,
134
+ "tags": null,
135
+ "license": null,
136
+ "pretrained_path": "lerobot/smolvla_base",
137
+ "pretrained_revision": null,
138
+ "chunk_size": 50,
139
+ "n_action_steps": 50,
140
+ "normalization_mapping": {
141
+ "VISUAL": "IDENTITY",
142
+ "STATE": "MEAN_STD",
143
+ "ACTION": "MEAN_STD"
144
+ },
145
+ "max_state_dim": 32,
146
+ "max_action_dim": 32,
147
+ "resize_imgs_with_padding": [
148
+ 512,
149
+ 512
150
+ ],
151
+ "empty_cameras": 0,
152
+ "adapt_to_pi_aloha": false,
153
+ "use_delta_joint_actions_aloha": false,
154
+ "tokenizer_max_length": 48,
155
+ "num_steps": 10,
156
+ "use_cache": true,
157
+ "freeze_vision_encoder": true,
158
+ "train_expert_only": true,
159
+ "train_state_proj": true,
160
+ "optimizer_lr": 0.0001,
161
+ "optimizer_betas": [
162
+ 0.9,
163
+ 0.95
164
+ ],
165
+ "optimizer_eps": 1e-08,
166
+ "optimizer_weight_decay": 1e-10,
167
+ "optimizer_grad_clip_norm": 10.0,
168
+ "scheduler_warmup_steps": 1000,
169
+ "scheduler_decay_steps": 30000,
170
+ "scheduler_decay_lr": 2.5e-06,
171
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
172
+ "load_vlm_weights": true,
173
+ "add_image_special_tokens": false,
174
+ "attention_mode": "cross_attn",
175
+ "prefix_length": 0,
176
+ "pad_language_to": "max_length",
177
+ "num_expert_layers": 0,
178
+ "num_vlm_layers": 16,
179
+ "self_attn_every_n_layers": 2,
180
+ "expert_width_multiplier": 0.75,
181
+ "min_period": 0.004,
182
+ "max_period": 4.0,
183
+ "rtc_config": null,
184
+ "compile_model": false,
185
+ "compile_mode": "max-autotune"
186
+ },
187
+ "reward_model": null,
188
+ "output_dir": "/data/wanshan/VLAs/piper_lerobot/outputs/train/smolvla_bimanual_stack_cup_bowl",
189
+ "job_name": "smolvla_bimanual_stack_cup_bowl",
190
+ "resume": false,
191
+ "seed": 1000,
192
+ "cudnn_deterministic": false,
193
+ "num_workers": 16,
194
+ "batch_size": 64,
195
+ "prefetch_factor": 4,
196
+ "persistent_workers": true,
197
+ "steps": 20000,
198
+ "env_eval_freq": 20000,
199
+ "log_freq": 50,
200
+ "eval_steps": 0,
201
+ "max_eval_samples": 0,
202
+ "tolerance_s": 0.0001,
203
+ "save_checkpoint": true,
204
+ "save_freq": 5000,
205
+ "use_policy_training_preset": true,
206
+ "optimizer": {
207
+ "type": "adamw",
208
+ "lr": 0.0001,
209
+ "weight_decay": 1e-10,
210
+ "grad_clip_norm": 10.0,
211
+ "betas": [
212
+ 0.9,
213
+ 0.95
214
+ ],
215
+ "eps": 1e-08
216
+ },
217
+ "scheduler": {
218
+ "type": "cosine_decay_with_warmup",
219
+ "num_warmup_steps": 1000,
220
+ "num_decay_steps": 30000,
221
+ "peak_lr": 0.0001,
222
+ "decay_lr": 2.5e-06
223
+ },
224
+ "eval": {
225
+ "n_episodes": 50,
226
+ "batch_size": 14,
227
+ "use_async_envs": true,
228
+ "recording": false,
229
+ "recording_repo_id": null,
230
+ "recording_private": false
231
+ },
232
+ "wandb": {
233
+ "enable": true,
234
+ "disable_artifact": false,
235
+ "project": "lerobot",
236
+ "entity": null,
237
+ "notes": null,
238
+ "run_id": "2qj9nvps",
239
+ "mode": null,
240
+ "add_tags": true
241
+ },
242
+ "peft": null,
243
+ "sample_weighting": null,
244
+ "rename_map": {
245
+ "observation.images.top": "observation.images.camera1",
246
+ "observation.images.l_wrist": "observation.images.camera2",
247
+ "observation.images.r_wrist": "observation.images.camera3"
248
+ },
249
+ "checkpoint_path": null
250
+ }