shuohsuan commited on
Commit
befe154
·
verified ·
1 Parent(s): 88c7f95

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +64 -0
  2. config.json +88 -0
  3. model.safetensors +3 -0
  4. train_config.json +203 -0
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: lerobot/smolvla_base
3
+ datasets:
4
+ - shuohsuan/tri_test
5
+ library_name: lerobot
6
+ license: apache-2.0
7
+ model_name: smolvla
8
+ pipeline_tag: robotics
9
+ tags:
10
+ - robotics
11
+ - lerobot
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,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
33
+ "output_features": {
34
+ "action": {
35
+ "type": "ACTION",
36
+ "shape": [
37
+ 6
38
+ ]
39
+ }
40
+ },
41
+ "device": "cuda",
42
+ "use_amp": false,
43
+ "push_to_hub": true,
44
+ "repo_id": "shuohsuan/svlam_red_green_none",
45
+ "private": null,
46
+ "tags": null,
47
+ "license": null,
48
+ "chunk_size": 50,
49
+ "n_action_steps": 50,
50
+ "max_state_dim": 32,
51
+ "max_action_dim": 32,
52
+ "resize_imgs_with_padding": [
53
+ 512,
54
+ 512
55
+ ],
56
+ "empty_cameras": 0,
57
+ "adapt_to_pi_aloha": false,
58
+ "use_delta_joint_actions_aloha": false,
59
+ "tokenizer_max_length": 48,
60
+ "num_steps": 10,
61
+ "use_cache": true,
62
+ "freeze_vision_encoder": true,
63
+ "train_expert_only": true,
64
+ "train_state_proj": true,
65
+ "optimizer_lr": 0.0001,
66
+ "optimizer_betas": [
67
+ 0.9,
68
+ 0.95
69
+ ],
70
+ "optimizer_eps": 1e-08,
71
+ "optimizer_weight_decay": 1e-10,
72
+ "optimizer_grad_clip_norm": 10.0,
73
+ "scheduler_warmup_steps": 1000,
74
+ "scheduler_decay_steps": 30000,
75
+ "scheduler_decay_lr": 2.5e-06,
76
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
77
+ "load_vlm_weights": true,
78
+ "add_image_special_tokens": false,
79
+ "attention_mode": "cross_attn",
80
+ "prefix_length": 0,
81
+ "pad_language_to": "max_length",
82
+ "num_expert_layers": 0,
83
+ "num_vlm_layers": 16,
84
+ "self_attn_every_n_layers": 2,
85
+ "expert_width_multiplier": 0.75,
86
+ "min_period": 0.004,
87
+ "max_period": 4.0
88
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22361993a2a7d0cefb28ab19670f0a2ec3ea2570f120d0b44c2b9986f8678193
3
+ size 906713296
train_config.json ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": [
4
+ "shuohsuan/tri_test"
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
+ },
103
+ "output_features": {
104
+ "action": {
105
+ "type": "ACTION",
106
+ "shape": [
107
+ 6
108
+ ]
109
+ }
110
+ },
111
+ "device": "cuda",
112
+ "use_amp": false,
113
+ "push_to_hub": true,
114
+ "repo_id": "shuohsuan/svlam_red_green_none",
115
+ "private": null,
116
+ "tags": null,
117
+ "license": null,
118
+ "chunk_size": 50,
119
+ "n_action_steps": 50,
120
+ "max_state_dim": 32,
121
+ "max_action_dim": 32,
122
+ "resize_imgs_with_padding": [
123
+ 512,
124
+ 512
125
+ ],
126
+ "empty_cameras": 0,
127
+ "adapt_to_pi_aloha": false,
128
+ "use_delta_joint_actions_aloha": false,
129
+ "tokenizer_max_length": 48,
130
+ "num_steps": 10,
131
+ "use_cache": true,
132
+ "freeze_vision_encoder": true,
133
+ "train_expert_only": true,
134
+ "train_state_proj": true,
135
+ "optimizer_lr": 0.0001,
136
+ "optimizer_betas": [
137
+ 0.9,
138
+ 0.95
139
+ ],
140
+ "optimizer_eps": 1e-08,
141
+ "optimizer_weight_decay": 1e-10,
142
+ "optimizer_grad_clip_norm": 10.0,
143
+ "scheduler_warmup_steps": 1000,
144
+ "scheduler_decay_steps": 30000,
145
+ "scheduler_decay_lr": 2.5e-06,
146
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
147
+ "load_vlm_weights": true,
148
+ "add_image_special_tokens": false,
149
+ "attention_mode": "cross_attn",
150
+ "prefix_length": 0,
151
+ "pad_language_to": "max_length",
152
+ "num_expert_layers": 0,
153
+ "num_vlm_layers": 16,
154
+ "self_attn_every_n_layers": 2,
155
+ "expert_width_multiplier": 0.75,
156
+ "min_period": 0.004,
157
+ "max_period": 4.0
158
+ },
159
+ "output_dir": "/mnt/storage/shuohsuan/train/lerobot/svlam_red_green_none",
160
+ "job_name": "red_and_green_and_none",
161
+ "resume": false,
162
+ "seed": 1000,
163
+ "num_workers": 4,
164
+ "batch_size": 64,
165
+ "steps": 100000,
166
+ "eval_freq": 20000,
167
+ "log_freq": 200,
168
+ "save_checkpoint": true,
169
+ "save_freq": 20000,
170
+ "use_policy_training_preset": true,
171
+ "optimizer": {
172
+ "type": "adamw",
173
+ "lr": 0.0001,
174
+ "weight_decay": 1e-10,
175
+ "grad_clip_norm": 10.0,
176
+ "betas": [
177
+ 0.9,
178
+ 0.95
179
+ ],
180
+ "eps": 1e-08
181
+ },
182
+ "scheduler": {
183
+ "type": "cosine_decay_with_warmup",
184
+ "num_warmup_steps": 1000,
185
+ "num_decay_steps": 30000,
186
+ "peak_lr": 0.0001,
187
+ "decay_lr": 2.5e-06
188
+ },
189
+ "eval": {
190
+ "n_episodes": 50,
191
+ "batch_size": 50,
192
+ "use_async_envs": false
193
+ },
194
+ "wandb": {
195
+ "enable": false,
196
+ "disable_artifact": false,
197
+ "project": "lerobot",
198
+ "entity": null,
199
+ "notes": null,
200
+ "run_id": null,
201
+ "mode": null
202
+ }
203
+ }