shuohsuan commited on
Commit
77c0142
·
verified ·
1 Parent(s): 3e2475d

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +64 -0
  2. config.json +100 -0
  3. model.safetensors +3 -0
  4. train_config.json +215 -0
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets:
4
+ - shuohsuan/test1
5
+ library_name: lerobot
6
+ license: apache-2.0
7
+ model_name: smolvla
8
+ pipeline_tag: robotics
9
+ tags:
10
+ - lerobot
11
+ - robotics
12
+ - smolvla
13
+ ---
14
+
15
+ # Model Card for smolvla
16
+
17
+ <!-- Provide a quick summary of what the model is/does. -->
18
+
19
+
20
+ [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.
21
+
22
+
23
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
24
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
25
+
26
+ ---
27
+
28
+ ## How to Get Started with the Model
29
+
30
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
31
+ Below is the short version on how to train and run inference/eval:
32
+
33
+ ### Train from scratch
34
+
35
+ ```bash
36
+ python -m lerobot.scripts.train \
37
+ --dataset.repo_id=${HF_USER}/<dataset> \
38
+ --policy.type=act \
39
+ --output_dir=outputs/train/<desired_policy_repo_id> \
40
+ --job_name=lerobot_training \
41
+ --policy.device=cuda \
42
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
43
+ --wandb.enable=true
44
+ ```
45
+
46
+ *Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`.*
47
+
48
+ ### Evaluate the policy/run inference
49
+
50
+ ```bash
51
+ python -m lerobot.record \
52
+ --robot.type=so100_follower \
53
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
54
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
55
+ --episodes=10
56
+ ```
57
+
58
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
59
+
60
+ ---
61
+
62
+ ## Model Details
63
+
64
+ * **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "smolvla",
3
+ "n_obs_steps": 1,
4
+ "normalization_mapping": {
5
+ "VISUAL": "IDENTITY",
6
+ "STATE": "MEAN_STD",
7
+ "ACTION": "MEAN_STD"
8
+ },
9
+ "input_features": {
10
+ "observation.state": {
11
+ "type": "STATE",
12
+ "shape": [
13
+ 6
14
+ ]
15
+ },
16
+ "observation.images.side": {
17
+ "type": "VISUAL",
18
+ "shape": [
19
+ 3,
20
+ 480,
21
+ 640
22
+ ]
23
+ },
24
+ "observation.images.wrist": {
25
+ "type": "VISUAL",
26
+ "shape": [
27
+ 3,
28
+ 480,
29
+ 640
30
+ ]
31
+ },
32
+ "observation.val": {
33
+ "type": "STATE",
34
+ "shape": [
35
+ 1
36
+ ]
37
+ }
38
+ },
39
+ "output_features": {
40
+ "action": {
41
+ "type": "ACTION",
42
+ "shape": [
43
+ 6
44
+ ]
45
+ },
46
+ "action.complete": {
47
+ "type": "ACTION",
48
+ "shape": [
49
+ 1
50
+ ]
51
+ }
52
+ },
53
+ "device": "cuda",
54
+ "use_amp": false,
55
+ "push_to_hub": true,
56
+ "repo_id": "shuohsuan/svla_test1",
57
+ "private": null,
58
+ "tags": null,
59
+ "license": null,
60
+ "chunk_size": 50,
61
+ "n_action_steps": 50,
62
+ "max_state_dim": 32,
63
+ "max_action_dim": 32,
64
+ "resize_imgs_with_padding": [
65
+ 512,
66
+ 512
67
+ ],
68
+ "empty_cameras": 0,
69
+ "adapt_to_pi_aloha": false,
70
+ "use_delta_joint_actions_aloha": false,
71
+ "tokenizer_max_length": 48,
72
+ "num_steps": 10,
73
+ "use_cache": true,
74
+ "freeze_vision_encoder": true,
75
+ "train_expert_only": true,
76
+ "train_state_proj": true,
77
+ "optimizer_lr": 0.0001,
78
+ "optimizer_betas": [
79
+ 0.9,
80
+ 0.95
81
+ ],
82
+ "optimizer_eps": 1e-08,
83
+ "optimizer_weight_decay": 1e-10,
84
+ "optimizer_grad_clip_norm": 10.0,
85
+ "scheduler_warmup_steps": 1000,
86
+ "scheduler_decay_steps": 30000,
87
+ "scheduler_decay_lr": 2.5e-06,
88
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
89
+ "load_vlm_weights": true,
90
+ "add_image_special_tokens": false,
91
+ "attention_mode": "cross_attn",
92
+ "prefix_length": 0,
93
+ "pad_language_to": "max_length",
94
+ "num_expert_layers": 0,
95
+ "num_vlm_layers": 16,
96
+ "self_attn_every_n_layers": 2,
97
+ "expert_width_multiplier": 0.75,
98
+ "min_period": 0.004,
99
+ "max_period": 4.0
100
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da82b0e4d1bbf7942d6b86f0d45a523aa54ff4a8bc0da01ee139c46553aa48e0
3
+ size 906713984
train_config.json ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": [
4
+ "shuohsuan/test1"
5
+ ],
6
+ "repo_idx": 0,
7
+ "root": null,
8
+ "episodes": null,
9
+ "image_transforms": {
10
+ "enable": false,
11
+ "max_num_transforms": 3,
12
+ "random_order": false,
13
+ "tfs": {
14
+ "brightness": {
15
+ "weight": 1.0,
16
+ "type": "ColorJitter",
17
+ "kwargs": {
18
+ "brightness": [
19
+ 0.8,
20
+ 1.2
21
+ ]
22
+ }
23
+ },
24
+ "contrast": {
25
+ "weight": 1.0,
26
+ "type": "ColorJitter",
27
+ "kwargs": {
28
+ "contrast": [
29
+ 0.8,
30
+ 1.2
31
+ ]
32
+ }
33
+ },
34
+ "saturation": {
35
+ "weight": 1.0,
36
+ "type": "ColorJitter",
37
+ "kwargs": {
38
+ "saturation": [
39
+ 0.5,
40
+ 1.5
41
+ ]
42
+ }
43
+ },
44
+ "hue": {
45
+ "weight": 1.0,
46
+ "type": "ColorJitter",
47
+ "kwargs": {
48
+ "hue": [
49
+ -0.05,
50
+ 0.05
51
+ ]
52
+ }
53
+ },
54
+ "sharpness": {
55
+ "weight": 1.0,
56
+ "type": "SharpnessJitter",
57
+ "kwargs": {
58
+ "sharpness": [
59
+ 0.5,
60
+ 1.5
61
+ ]
62
+ }
63
+ }
64
+ }
65
+ },
66
+ "revision": null,
67
+ "use_imagenet_stats": true,
68
+ "video_backend": "torchcodec"
69
+ },
70
+ "env": null,
71
+ "policy": {
72
+ "type": "smolvla",
73
+ "n_obs_steps": 1,
74
+ "normalization_mapping": {
75
+ "VISUAL": "IDENTITY",
76
+ "STATE": "MEAN_STD",
77
+ "ACTION": "MEAN_STD"
78
+ },
79
+ "input_features": {
80
+ "observation.state": {
81
+ "type": "STATE",
82
+ "shape": [
83
+ 6
84
+ ]
85
+ },
86
+ "observation.images.side": {
87
+ "type": "VISUAL",
88
+ "shape": [
89
+ 3,
90
+ 480,
91
+ 640
92
+ ]
93
+ },
94
+ "observation.images.wrist": {
95
+ "type": "VISUAL",
96
+ "shape": [
97
+ 3,
98
+ 480,
99
+ 640
100
+ ]
101
+ },
102
+ "observation.val": {
103
+ "type": "STATE",
104
+ "shape": [
105
+ 1
106
+ ]
107
+ }
108
+ },
109
+ "output_features": {
110
+ "action": {
111
+ "type": "ACTION",
112
+ "shape": [
113
+ 6
114
+ ]
115
+ },
116
+ "action.complete": {
117
+ "type": "ACTION",
118
+ "shape": [
119
+ 1
120
+ ]
121
+ }
122
+ },
123
+ "device": "cuda",
124
+ "use_amp": false,
125
+ "push_to_hub": true,
126
+ "repo_id": "shuohsuan/svla_test1",
127
+ "private": null,
128
+ "tags": null,
129
+ "license": null,
130
+ "chunk_size": 50,
131
+ "n_action_steps": 50,
132
+ "max_state_dim": 32,
133
+ "max_action_dim": 32,
134
+ "resize_imgs_with_padding": [
135
+ 512,
136
+ 512
137
+ ],
138
+ "empty_cameras": 0,
139
+ "adapt_to_pi_aloha": false,
140
+ "use_delta_joint_actions_aloha": false,
141
+ "tokenizer_max_length": 48,
142
+ "num_steps": 10,
143
+ "use_cache": true,
144
+ "freeze_vision_encoder": true,
145
+ "train_expert_only": true,
146
+ "train_state_proj": true,
147
+ "optimizer_lr": 0.0001,
148
+ "optimizer_betas": [
149
+ 0.9,
150
+ 0.95
151
+ ],
152
+ "optimizer_eps": 1e-08,
153
+ "optimizer_weight_decay": 1e-10,
154
+ "optimizer_grad_clip_norm": 10.0,
155
+ "scheduler_warmup_steps": 1000,
156
+ "scheduler_decay_steps": 30000,
157
+ "scheduler_decay_lr": 2.5e-06,
158
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
159
+ "load_vlm_weights": true,
160
+ "add_image_special_tokens": false,
161
+ "attention_mode": "cross_attn",
162
+ "prefix_length": 0,
163
+ "pad_language_to": "max_length",
164
+ "num_expert_layers": 0,
165
+ "num_vlm_layers": 16,
166
+ "self_attn_every_n_layers": 2,
167
+ "expert_width_multiplier": 0.75,
168
+ "min_period": 0.004,
169
+ "max_period": 4.0
170
+ },
171
+ "output_dir": "/mnt/storage/shuohsuan/train/lerobot/svla_test1",
172
+ "job_name": "base",
173
+ "resume": false,
174
+ "seed": 1000,
175
+ "num_workers": 4,
176
+ "batch_size": 64,
177
+ "steps": 20000,
178
+ "eval_freq": 20000,
179
+ "log_freq": 200,
180
+ "save_checkpoint": true,
181
+ "save_freq": 20000,
182
+ "use_policy_training_preset": true,
183
+ "optimizer": {
184
+ "type": "adamw",
185
+ "lr": 0.0001,
186
+ "weight_decay": 1e-10,
187
+ "grad_clip_norm": 10.0,
188
+ "betas": [
189
+ 0.9,
190
+ 0.95
191
+ ],
192
+ "eps": 1e-08
193
+ },
194
+ "scheduler": {
195
+ "type": "cosine_decay_with_warmup",
196
+ "num_warmup_steps": 1000,
197
+ "num_decay_steps": 30000,
198
+ "peak_lr": 0.0001,
199
+ "decay_lr": 2.5e-06
200
+ },
201
+ "eval": {
202
+ "n_episodes": 50,
203
+ "batch_size": 50,
204
+ "use_async_envs": false
205
+ },
206
+ "wandb": {
207
+ "enable": false,
208
+ "disable_artifact": false,
209
+ "project": "lerobot",
210
+ "entity": null,
211
+ "notes": null,
212
+ "run_id": null,
213
+ "mode": null
214
+ }
215
+ }