AriRyo commited on
Commit
c86b2c2
·
verified ·
1 Parent(s): 6c40c6b

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +63 -0
  2. config.json +99 -0
  3. model.safetensors +3 -0
  4. train_config.json +252 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets: AriRyo/blockpick_gray_03
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
+ 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,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
46
+ "use_peft": false,
47
+ "push_to_hub": true,
48
+ "repo_id": "AriRyo/blockpick_gray_smolvla_12",
49
+ "private": null,
50
+ "tags": null,
51
+ "license": null,
52
+ "pretrained_path": "lerobot/smolvla_base",
53
+ "chunk_size": 50,
54
+ "n_action_steps": 50,
55
+ "normalization_mapping": {
56
+ "VISUAL": "IDENTITY",
57
+ "STATE": "MEAN_STD",
58
+ "ACTION": "MEAN_STD"
59
+ },
60
+ "max_state_dim": 32,
61
+ "max_action_dim": 32,
62
+ "resize_imgs_with_padding": [
63
+ 512,
64
+ 512
65
+ ],
66
+ "empty_cameras": 0,
67
+ "adapt_to_pi_aloha": false,
68
+ "use_delta_joint_actions_aloha": false,
69
+ "tokenizer_max_length": 48,
70
+ "num_steps": 10,
71
+ "use_cache": true,
72
+ "freeze_vision_encoder": true,
73
+ "train_expert_only": true,
74
+ "train_state_proj": true,
75
+ "optimizer_lr": 0.0001,
76
+ "optimizer_betas": [
77
+ 0.9,
78
+ 0.95
79
+ ],
80
+ "optimizer_eps": 1e-08,
81
+ "optimizer_weight_decay": 1e-10,
82
+ "optimizer_grad_clip_norm": 10.0,
83
+ "scheduler_warmup_steps": 1000,
84
+ "scheduler_decay_steps": 30000,
85
+ "scheduler_decay_lr": 2.5e-06,
86
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
87
+ "load_vlm_weights": true,
88
+ "add_image_special_tokens": false,
89
+ "attention_mode": "cross_attn",
90
+ "prefix_length": 0,
91
+ "pad_language_to": "max_length",
92
+ "num_expert_layers": 0,
93
+ "num_vlm_layers": 16,
94
+ "self_attn_every_n_layers": 2,
95
+ "expert_width_multiplier": 0.75,
96
+ "min_period": 0.004,
97
+ "max_period": 4.0,
98
+ "rtc_config": null
99
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:245028ecfd173ee255989bbd317de088180f9121d10fec8ec124d01c4d42cda1
3
+ size 906712520
train_config.json ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "AriRyo/blockpick_gray_03",
4
+ "root": null,
5
+ "episodes": [
6
+ 0,
7
+ 1,
8
+ 2,
9
+ 3,
10
+ 4,
11
+ 5,
12
+ 6,
13
+ 7,
14
+ 8,
15
+ 9,
16
+ 10,
17
+ 11,
18
+ 12
19
+ ],
20
+ "image_transforms": {
21
+ "enable": false,
22
+ "max_num_transforms": 3,
23
+ "random_order": false,
24
+ "tfs": {
25
+ "brightness": {
26
+ "weight": 1.0,
27
+ "type": "ColorJitter",
28
+ "kwargs": {
29
+ "brightness": [
30
+ 0.8,
31
+ 1.2
32
+ ]
33
+ }
34
+ },
35
+ "contrast": {
36
+ "weight": 1.0,
37
+ "type": "ColorJitter",
38
+ "kwargs": {
39
+ "contrast": [
40
+ 0.8,
41
+ 1.2
42
+ ]
43
+ }
44
+ },
45
+ "saturation": {
46
+ "weight": 1.0,
47
+ "type": "ColorJitter",
48
+ "kwargs": {
49
+ "saturation": [
50
+ 0.5,
51
+ 1.5
52
+ ]
53
+ }
54
+ },
55
+ "hue": {
56
+ "weight": 1.0,
57
+ "type": "ColorJitter",
58
+ "kwargs": {
59
+ "hue": [
60
+ -0.05,
61
+ 0.05
62
+ ]
63
+ }
64
+ },
65
+ "sharpness": {
66
+ "weight": 1.0,
67
+ "type": "SharpnessJitter",
68
+ "kwargs": {
69
+ "sharpness": [
70
+ 0.5,
71
+ 1.5
72
+ ]
73
+ }
74
+ },
75
+ "affine": {
76
+ "weight": 1.0,
77
+ "type": "RandomAffine",
78
+ "kwargs": {
79
+ "degrees": [
80
+ -5.0,
81
+ 5.0
82
+ ],
83
+ "translate": [
84
+ 0.05,
85
+ 0.05
86
+ ]
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "revision": null,
92
+ "use_imagenet_stats": true,
93
+ "video_backend": "torchcodec",
94
+ "streaming": false
95
+ },
96
+ "env": null,
97
+ "policy": {
98
+ "type": "smolvla",
99
+ "n_obs_steps": 1,
100
+ "input_features": {
101
+ "observation.state": {
102
+ "type": "STATE",
103
+ "shape": [
104
+ 6
105
+ ]
106
+ },
107
+ "observation.images.camera1": {
108
+ "type": "VISUAL",
109
+ "shape": [
110
+ 3,
111
+ 256,
112
+ 256
113
+ ]
114
+ },
115
+ "observation.images.camera2": {
116
+ "type": "VISUAL",
117
+ "shape": [
118
+ 3,
119
+ 256,
120
+ 256
121
+ ]
122
+ },
123
+ "observation.images.camera3": {
124
+ "type": "VISUAL",
125
+ "shape": [
126
+ 3,
127
+ 256,
128
+ 256
129
+ ]
130
+ }
131
+ },
132
+ "output_features": {
133
+ "action": {
134
+ "type": "ACTION",
135
+ "shape": [
136
+ 6
137
+ ]
138
+ }
139
+ },
140
+ "device": "cuda",
141
+ "use_amp": false,
142
+ "use_peft": false,
143
+ "push_to_hub": true,
144
+ "repo_id": "AriRyo/blockpick_gray_smolvla_12",
145
+ "private": null,
146
+ "tags": null,
147
+ "license": null,
148
+ "pretrained_path": "lerobot/smolvla_base",
149
+ "chunk_size": 50,
150
+ "n_action_steps": 50,
151
+ "normalization_mapping": {
152
+ "VISUAL": "IDENTITY",
153
+ "STATE": "MEAN_STD",
154
+ "ACTION": "MEAN_STD"
155
+ },
156
+ "max_state_dim": 32,
157
+ "max_action_dim": 32,
158
+ "resize_imgs_with_padding": [
159
+ 512,
160
+ 512
161
+ ],
162
+ "empty_cameras": 0,
163
+ "adapt_to_pi_aloha": false,
164
+ "use_delta_joint_actions_aloha": false,
165
+ "tokenizer_max_length": 48,
166
+ "num_steps": 10,
167
+ "use_cache": true,
168
+ "freeze_vision_encoder": true,
169
+ "train_expert_only": true,
170
+ "train_state_proj": true,
171
+ "optimizer_lr": 0.0001,
172
+ "optimizer_betas": [
173
+ 0.9,
174
+ 0.95
175
+ ],
176
+ "optimizer_eps": 1e-08,
177
+ "optimizer_weight_decay": 1e-10,
178
+ "optimizer_grad_clip_norm": 10.0,
179
+ "scheduler_warmup_steps": 1000,
180
+ "scheduler_decay_steps": 30000,
181
+ "scheduler_decay_lr": 2.5e-06,
182
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
183
+ "load_vlm_weights": true,
184
+ "add_image_special_tokens": false,
185
+ "attention_mode": "cross_attn",
186
+ "prefix_length": 0,
187
+ "pad_language_to": "max_length",
188
+ "num_expert_layers": 0,
189
+ "num_vlm_layers": 16,
190
+ "self_attn_every_n_layers": 2,
191
+ "expert_width_multiplier": 0.75,
192
+ "min_period": 0.004,
193
+ "max_period": 4.0,
194
+ "rtc_config": null
195
+ },
196
+ "output_dir": "outputs/train/blockpick_gray_smolvla_12",
197
+ "job_name": "blockpick_gray_smolvla_12",
198
+ "resume": false,
199
+ "seed": 1000,
200
+ "num_workers": 4,
201
+ "batch_size": 64,
202
+ "steps": 20000,
203
+ "eval_freq": 20000,
204
+ "log_freq": 200,
205
+ "tolerance_s": 0.0001,
206
+ "save_checkpoint": true,
207
+ "save_freq": 4000,
208
+ "use_policy_training_preset": true,
209
+ "optimizer": {
210
+ "type": "adamw",
211
+ "lr": 0.0001,
212
+ "weight_decay": 1e-10,
213
+ "grad_clip_norm": 10.0,
214
+ "betas": [
215
+ 0.9,
216
+ 0.95
217
+ ],
218
+ "eps": 1e-08
219
+ },
220
+ "scheduler": {
221
+ "type": "cosine_decay_with_warmup",
222
+ "num_warmup_steps": 1000,
223
+ "num_decay_steps": 30000,
224
+ "peak_lr": 0.0001,
225
+ "decay_lr": 2.5e-06
226
+ },
227
+ "eval": {
228
+ "n_episodes": 50,
229
+ "batch_size": 50,
230
+ "use_async_envs": false
231
+ },
232
+ "wandb": {
233
+ "enable": true,
234
+ "disable_artifact": true,
235
+ "project": "lerobot",
236
+ "entity": null,
237
+ "notes": null,
238
+ "run_id": "j48hslej",
239
+ "mode": null
240
+ },
241
+ "peft": null,
242
+ "use_rabc": false,
243
+ "rabc_progress_path": null,
244
+ "rabc_kappa": 0.01,
245
+ "rabc_epsilon": 1e-06,
246
+ "rabc_head_mode": "sparse",
247
+ "rename_map": {
248
+ "observation.images.above": "observation.images.camera1",
249
+ "observation.images.side": "observation.images.camera2"
250
+ },
251
+ "checkpoint_path": null
252
+ }