Robotics
LeRobot
Safetensors
smolvla
MoAIBo commited on
Commit
79839fe
·
verified ·
1 Parent(s): b1e4060

Upload policy weights, train config and readme

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