godnpeter commited on
Commit
0002bd5
·
verified ·
1 Parent(s): 0709f1a

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +94 -0
  3. model.safetensors +3 -0
  4. train_config.json +241 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: HuggingFaceVLA/libero
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: smolvlafast
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - smolvlafast
10
+ - robotics
11
+ ---
12
+
13
+ # Model Card for smolvlafast
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ _Model type not recognized — please update this template._
19
+
20
+
21
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
22
+ See the full documentation at [LeRobot Docs](https://huggingface.co/docs/lerobot/index).
23
+
24
+ ---
25
+
26
+ ## How to Get Started with the Model
27
+
28
+ For a complete walkthrough, see the [training guide](https://huggingface.co/docs/lerobot/il_robots#train-a-policy).
29
+ Below is the short version on how to train and run inference/eval:
30
+
31
+ ### Train from scratch
32
+
33
+ ```bash
34
+ lerobot-train \
35
+ --dataset.repo_id=${HF_USER}/<dataset> \
36
+ --policy.type=act \
37
+ --output_dir=outputs/train/<desired_policy_repo_id> \
38
+ --job_name=lerobot_training \
39
+ --policy.device=cuda \
40
+ --policy.repo_id=${HF_USER}/<desired_policy_repo_id>
41
+ --wandb.enable=true
42
+ ```
43
+
44
+ _Writes checkpoints to `outputs/train/<desired_policy_repo_id>/checkpoints/`._
45
+
46
+ ### Evaluate the policy/run inference
47
+
48
+ ```bash
49
+ lerobot-record \
50
+ --robot.type=so100_follower \
51
+ --dataset.repo_id=<hf_user>/eval_<dataset> \
52
+ --policy.path=<hf_user>/<desired_policy_repo_id> \
53
+ --episodes=10
54
+ ```
55
+
56
+ Prefix the dataset repo with **eval\_** and supply `--policy.path` pointing to a local or hub checkpoint.
57
+
58
+ ---
59
+
60
+ ## Model Details
61
+
62
+ - **License:** apache-2.0
config.json ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "smolvlafast",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.images.image": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 3,
9
+ 256,
10
+ 256
11
+ ]
12
+ },
13
+ "observation.images.image2": {
14
+ "type": "VISUAL",
15
+ "shape": [
16
+ 3,
17
+ 256,
18
+ 256
19
+ ]
20
+ },
21
+ "observation.state": {
22
+ "type": "STATE",
23
+ "shape": [
24
+ 8
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 7
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "use_peft": false,
39
+ "push_to_hub": true,
40
+ "repo_id": "smolvla_fast_lr_1e-4_chunk1_max_act_dim7",
41
+ "private": null,
42
+ "tags": null,
43
+ "license": null,
44
+ "pretrained_path": null,
45
+ "use_proprio": true,
46
+ "chunk_size": 1,
47
+ "n_action_steps": 1,
48
+ "normalization_mapping": {
49
+ "VISUAL": "IDENTITY",
50
+ "STATE": "MEAN_STD",
51
+ "ACTION": "MEAN_STD"
52
+ },
53
+ "max_state_dim": 32,
54
+ "max_action_dim": 7,
55
+ "resize_imgs_with_padding": [
56
+ 512,
57
+ 512
58
+ ],
59
+ "empty_cameras": 0,
60
+ "adapt_to_pi_aloha": false,
61
+ "use_delta_joint_actions_aloha": false,
62
+ "tokenizer_max_length": 128,
63
+ "num_steps": 10,
64
+ "use_cache": true,
65
+ "freeze_vision_encoder": true,
66
+ "train_expert_only": true,
67
+ "train_state_proj": true,
68
+ "optimizer_lr": 0.0001,
69
+ "optimizer_betas": [
70
+ 0.9,
71
+ 0.95
72
+ ],
73
+ "optimizer_eps": 1e-08,
74
+ "optimizer_weight_decay": 1e-10,
75
+ "optimizer_grad_clip_norm": 10,
76
+ "scheduler_warmup_steps": 1000,
77
+ "scheduler_decay_steps": 100000,
78
+ "scheduler_decay_lr": 2.5e-06,
79
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
80
+ "load_vlm_weights": true,
81
+ "vlm_model_dtype": "bfloat16",
82
+ "add_image_special_tokens": false,
83
+ "attention_mode": "cross_attn",
84
+ "prefix_length": -1,
85
+ "pad_language_to": "longest",
86
+ "num_vlm_layers": -1,
87
+ "min_period": 0.004,
88
+ "max_period": 4.0,
89
+ "fast_skip_tokens": 128,
90
+ "padding_side": "right",
91
+ "max_input_seq_len": 512,
92
+ "max_decoding_steps": 128,
93
+ "relaxed_action_decoding": true
94
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20273169325d4e230815d7aa5f022bd7c56ba62a246075f2cdd13eb31e35f30a
3
+ size 1015030688
train_config.json ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "HuggingFaceVLA/libero",
4
+ "use_all_local_repos": false,
5
+ "root": null,
6
+ "episodes": null,
7
+ "image_transforms": {
8
+ "enable": false,
9
+ "max_num_transforms": 3,
10
+ "random_order": false,
11
+ "tfs": {
12
+ "brightness": {
13
+ "weight": 1.0,
14
+ "type": "ColorJitter",
15
+ "kwargs": {
16
+ "brightness": [
17
+ 0.8,
18
+ 1.2
19
+ ]
20
+ }
21
+ },
22
+ "contrast": {
23
+ "weight": 1.0,
24
+ "type": "ColorJitter",
25
+ "kwargs": {
26
+ "contrast": [
27
+ 0.8,
28
+ 1.2
29
+ ]
30
+ }
31
+ },
32
+ "saturation": {
33
+ "weight": 1.0,
34
+ "type": "ColorJitter",
35
+ "kwargs": {
36
+ "saturation": [
37
+ 0.5,
38
+ 1.5
39
+ ]
40
+ }
41
+ },
42
+ "hue": {
43
+ "weight": 1.0,
44
+ "type": "ColorJitter",
45
+ "kwargs": {
46
+ "hue": [
47
+ -0.05,
48
+ 0.05
49
+ ]
50
+ }
51
+ },
52
+ "sharpness": {
53
+ "weight": 1.0,
54
+ "type": "SharpnessJitter",
55
+ "kwargs": {
56
+ "sharpness": [
57
+ 0.5,
58
+ 1.5
59
+ ]
60
+ }
61
+ },
62
+ "shift": {
63
+ "weight": 0.0,
64
+ "type": "RandomShift",
65
+ "kwargs": {
66
+ "max_shift": 8,
67
+ "padding_mode": "edge"
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "text_transform": {
73
+ "enable": false,
74
+ "rewrite_map_path": null,
75
+ "case_insensitive": true,
76
+ "random_choice": true,
77
+ "rewrite_map": null
78
+ },
79
+ "revision": null,
80
+ "use_imagenet_stats": true,
81
+ "video_backend": "torchcodec",
82
+ "only_robot_type": "so100",
83
+ "exclude_tasks": null,
84
+ "report_task_stats": true,
85
+ "streaming": false
86
+ },
87
+ "env": null,
88
+ "policy": {
89
+ "type": "smolvlafast",
90
+ "n_obs_steps": 1,
91
+ "input_features": {
92
+ "observation.images.image": {
93
+ "type": "VISUAL",
94
+ "shape": [
95
+ 3,
96
+ 256,
97
+ 256
98
+ ]
99
+ },
100
+ "observation.images.image2": {
101
+ "type": "VISUAL",
102
+ "shape": [
103
+ 3,
104
+ 256,
105
+ 256
106
+ ]
107
+ },
108
+ "observation.state": {
109
+ "type": "STATE",
110
+ "shape": [
111
+ 8
112
+ ]
113
+ }
114
+ },
115
+ "output_features": {
116
+ "action": {
117
+ "type": "ACTION",
118
+ "shape": [
119
+ 7
120
+ ]
121
+ }
122
+ },
123
+ "device": "cuda",
124
+ "use_amp": false,
125
+ "use_peft": false,
126
+ "push_to_hub": true,
127
+ "repo_id": "smolvla_fast_lr_1e-4_chunk1_max_act_dim7",
128
+ "private": null,
129
+ "tags": null,
130
+ "license": null,
131
+ "pretrained_path": null,
132
+ "use_proprio": true,
133
+ "chunk_size": 1,
134
+ "n_action_steps": 1,
135
+ "normalization_mapping": {
136
+ "VISUAL": "IDENTITY",
137
+ "STATE": "MEAN_STD",
138
+ "ACTION": "MEAN_STD"
139
+ },
140
+ "max_state_dim": 32,
141
+ "max_action_dim": 7,
142
+ "resize_imgs_with_padding": [
143
+ 512,
144
+ 512
145
+ ],
146
+ "empty_cameras": 0,
147
+ "adapt_to_pi_aloha": false,
148
+ "use_delta_joint_actions_aloha": false,
149
+ "tokenizer_max_length": 128,
150
+ "num_steps": 10,
151
+ "use_cache": true,
152
+ "freeze_vision_encoder": true,
153
+ "train_expert_only": true,
154
+ "train_state_proj": true,
155
+ "optimizer_lr": 0.0001,
156
+ "optimizer_betas": [
157
+ 0.9,
158
+ 0.95
159
+ ],
160
+ "optimizer_eps": 1e-08,
161
+ "optimizer_weight_decay": 1e-10,
162
+ "optimizer_grad_clip_norm": 10,
163
+ "scheduler_warmup_steps": 1000,
164
+ "scheduler_decay_steps": 100000,
165
+ "scheduler_decay_lr": 2.5e-06,
166
+ "vlm_model_name": "HuggingFaceTB/SmolVLM2-500M-Video-Instruct",
167
+ "load_vlm_weights": true,
168
+ "vlm_model_dtype": "bfloat16",
169
+ "add_image_special_tokens": false,
170
+ "attention_mode": "cross_attn",
171
+ "prefix_length": -1,
172
+ "pad_language_to": "longest",
173
+ "num_vlm_layers": -1,
174
+ "min_period": 0.004,
175
+ "max_period": 4.0,
176
+ "fast_skip_tokens": 128,
177
+ "padding_side": "right",
178
+ "max_input_seq_len": 512,
179
+ "max_decoding_steps": 128,
180
+ "relaxed_action_decoding": true
181
+ },
182
+ "output_dir": "outputs/smolvla_fast_action_chunk_max_act_dim/lr_1e-4_chunk1_max_act_dim7/2025-10-20/23-16-28",
183
+ "exp_name": "lr_1e-4_chunk1_max_act_dim7/2025-10-20/23-16-28",
184
+ "group_name": "smolvla_fast_action_chunk_max_act_dim",
185
+ "resume": false,
186
+ "seed": 1000,
187
+ "num_workers": 16,
188
+ "batch_size": 32,
189
+ "update_steps": 100000,
190
+ "eval_freq": 20000,
191
+ "log_freq": 100,
192
+ "save_checkpoint": true,
193
+ "save_freq": 10000,
194
+ "use_policy_training_preset": true,
195
+ "optimizer": {
196
+ "type": "adamw",
197
+ "lr": 0.0001,
198
+ "weight_decay": 1e-10,
199
+ "grad_clip_norm": 10,
200
+ "betas": [
201
+ 0.9,
202
+ 0.95
203
+ ],
204
+ "eps": 1e-08
205
+ },
206
+ "scheduler": {
207
+ "type": "cosine_decay_with_warmup",
208
+ "num_warmup_steps": 1000,
209
+ "num_decay_steps": 100000,
210
+ "peak_lr": 0.0001,
211
+ "decay_lr": 2.5e-06
212
+ },
213
+ "eval": {
214
+ "n_episodes": 50,
215
+ "batch_size": 50,
216
+ "use_async_envs": false
217
+ },
218
+ "log_with": "wandb",
219
+ "wandb": {
220
+ "enable": false,
221
+ "disable_artifact": false,
222
+ "project": "lerobot",
223
+ "entity": null,
224
+ "notes": null,
225
+ "run_id": "1npxgq1v",
226
+ "mode": null
227
+ },
228
+ "gradient_accumulation_steps": 1,
229
+ "use_peft": false,
230
+ "autocast_adapter_dtype": true,
231
+ "peft": {
232
+ "target_modules": null,
233
+ "modules_to_save": null,
234
+ "method_type": "LORA",
235
+ "init_type": null,
236
+ "r": 64,
237
+ "lora_alpha": 128,
238
+ "fullfinetune_vlm_patch_embeddings": false,
239
+ "fullfinetune_vlm_vision_model": false
240
+ }
241
+ }