hbseong commited on
Commit
3d915df
·
verified ·
1 Parent(s): 6592973

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +89 -0
  3. model.safetensors +3 -0
  4. train_config.json +327 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: hbseong/record-stacking-so101
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: internvla
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - lerobot
9
+ - robotics
10
+ - internvla
11
+ ---
12
+
13
+ # Model Card for internvla
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,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "internvla",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 6
9
+ ]
10
+ },
11
+ "observation.images.top": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ },
19
+ "observation.images.right": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ }
27
+ },
28
+ "output_features": {
29
+ "action": {
30
+ "type": "ACTION",
31
+ "shape": [
32
+ 6
33
+ ]
34
+ }
35
+ },
36
+ "device": "cuda",
37
+ "use_amp": false,
38
+ "push_to_hub": true,
39
+ "repo_id": "hbseong/internvla_stacking_so101_baseline",
40
+ "private": null,
41
+ "tags": null,
42
+ "license": null,
43
+ "pretrained_path": null,
44
+ "chunk_size": 50,
45
+ "n_action_steps": 50,
46
+ "normalization_mapping": {
47
+ "VISUAL": "IDENTITY",
48
+ "STATE": "MEAN_STD",
49
+ "ACTION": "MEAN_STD"
50
+ },
51
+ "max_state_dim": 32,
52
+ "max_action_dim": 32,
53
+ "resize_imgs_with_padding": [
54
+ 448,
55
+ 448
56
+ ],
57
+ "empty_cameras": 0,
58
+ "adapt_to_pi_aloha": false,
59
+ "use_delta_joint_actions_aloha": false,
60
+ "tokenizer_max_length": 48,
61
+ "num_steps": 10,
62
+ "use_cache": true,
63
+ "freeze_vision_encoder": true,
64
+ "train_expert_only": true,
65
+ "train_state_proj": true,
66
+ "optimizer_lr": 0.0001,
67
+ "optimizer_betas": [
68
+ 0.9,
69
+ 0.95
70
+ ],
71
+ "optimizer_eps": 1e-08,
72
+ "optimizer_weight_decay": 1e-10,
73
+ "optimizer_grad_clip_norm": 10,
74
+ "scheduler_warmup_steps": 1000,
75
+ "scheduler_decay_steps": 30000,
76
+ "scheduler_decay_lr": 2.5e-06,
77
+ "vlm_model_name": "OpenGVLab/InternVL3-1B-hf",
78
+ "load_vlm_weights": true,
79
+ "add_image_special_tokens": false,
80
+ "attention_mode": "cross_attn",
81
+ "prefix_length": -1,
82
+ "pad_language_to": "longest",
83
+ "num_expert_layers": -1,
84
+ "num_vlm_layers": 16,
85
+ "self_attn_every_n_layers": 2,
86
+ "expert_width_multiplier": 0.75,
87
+ "min_period": 0.004,
88
+ "max_period": 4.0
89
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c58be60cdcf142a4ad4810d0f4f1576499889f3371dff268ea1aaf5a51eb9430
3
+ size 1801658456
train_config.json ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "hbseong/record-stacking-so101",
4
+ "root": null,
5
+ "episodes": [
6
+ 0,
7
+ 2,
8
+ 3,
9
+ 4,
10
+ 5,
11
+ 6,
12
+ 7,
13
+ 8,
14
+ 9,
15
+ 10,
16
+ 11,
17
+ 12,
18
+ 14,
19
+ 15,
20
+ 17,
21
+ 18,
22
+ 19,
23
+ 20,
24
+ 21,
25
+ 23,
26
+ 24,
27
+ 25,
28
+ 26,
29
+ 27,
30
+ 28,
31
+ 29,
32
+ 31,
33
+ 32,
34
+ 33,
35
+ 34,
36
+ 35,
37
+ 36,
38
+ 38,
39
+ 39,
40
+ 40,
41
+ 41,
42
+ 42,
43
+ 43,
44
+ 44,
45
+ 45,
46
+ 46,
47
+ 47,
48
+ 48,
49
+ 49,
50
+ 50,
51
+ 51,
52
+ 52,
53
+ 53,
54
+ 54,
55
+ 56,
56
+ 57,
57
+ 58,
58
+ 59,
59
+ 60,
60
+ 61,
61
+ 62,
62
+ 64,
63
+ 65,
64
+ 66,
65
+ 67,
66
+ 68,
67
+ 69,
68
+ 70,
69
+ 71,
70
+ 72,
71
+ 73,
72
+ 74,
73
+ 75,
74
+ 76,
75
+ 77,
76
+ 78,
77
+ 79,
78
+ 80,
79
+ 82,
80
+ 83,
81
+ 85,
82
+ 86,
83
+ 88,
84
+ 89,
85
+ 90,
86
+ 91,
87
+ 92,
88
+ 93,
89
+ 94,
90
+ 95,
91
+ 96,
92
+ 97,
93
+ 98,
94
+ 99,
95
+ 100,
96
+ 101,
97
+ 102,
98
+ 103,
99
+ 104,
100
+ 105,
101
+ 106,
102
+ 107,
103
+ 108,
104
+ 109,
105
+ 110,
106
+ 111,
107
+ 112,
108
+ 113,
109
+ 114,
110
+ 115,
111
+ 116,
112
+ 117,
113
+ 118
114
+ ],
115
+ "image_transforms": {
116
+ "enable": false,
117
+ "max_num_transforms": 3,
118
+ "random_order": false,
119
+ "tfs": {
120
+ "brightness": {
121
+ "weight": 1.0,
122
+ "type": "ColorJitter",
123
+ "kwargs": {
124
+ "brightness": [
125
+ 0.8,
126
+ 1.2
127
+ ]
128
+ }
129
+ },
130
+ "contrast": {
131
+ "weight": 1.0,
132
+ "type": "ColorJitter",
133
+ "kwargs": {
134
+ "contrast": [
135
+ 0.8,
136
+ 1.2
137
+ ]
138
+ }
139
+ },
140
+ "saturation": {
141
+ "weight": 1.0,
142
+ "type": "ColorJitter",
143
+ "kwargs": {
144
+ "saturation": [
145
+ 0.5,
146
+ 1.5
147
+ ]
148
+ }
149
+ },
150
+ "hue": {
151
+ "weight": 1.0,
152
+ "type": "ColorJitter",
153
+ "kwargs": {
154
+ "hue": [
155
+ -0.05,
156
+ 0.05
157
+ ]
158
+ }
159
+ },
160
+ "sharpness": {
161
+ "weight": 1.0,
162
+ "type": "SharpnessJitter",
163
+ "kwargs": {
164
+ "sharpness": [
165
+ 0.5,
166
+ 1.5
167
+ ]
168
+ }
169
+ },
170
+ "affine": {
171
+ "weight": 1.0,
172
+ "type": "RandomAffine",
173
+ "kwargs": {
174
+ "degrees": [
175
+ -5.0,
176
+ 5.0
177
+ ],
178
+ "translate": [
179
+ 0.05,
180
+ 0.05
181
+ ]
182
+ }
183
+ }
184
+ }
185
+ },
186
+ "revision": null,
187
+ "use_imagenet_stats": true,
188
+ "video_backend": "torchcodec",
189
+ "streaming": false
190
+ },
191
+ "env": null,
192
+ "policy": {
193
+ "type": "internvla",
194
+ "n_obs_steps": 1,
195
+ "input_features": {
196
+ "observation.state": {
197
+ "type": "STATE",
198
+ "shape": [
199
+ 6
200
+ ]
201
+ },
202
+ "observation.images.top": {
203
+ "type": "VISUAL",
204
+ "shape": [
205
+ 3,
206
+ 480,
207
+ 640
208
+ ]
209
+ },
210
+ "observation.images.right": {
211
+ "type": "VISUAL",
212
+ "shape": [
213
+ 3,
214
+ 480,
215
+ 640
216
+ ]
217
+ }
218
+ },
219
+ "output_features": {
220
+ "action": {
221
+ "type": "ACTION",
222
+ "shape": [
223
+ 6
224
+ ]
225
+ }
226
+ },
227
+ "device": "cuda",
228
+ "use_amp": false,
229
+ "push_to_hub": true,
230
+ "repo_id": "hbseong/internvla_stacking_so101_baseline",
231
+ "private": null,
232
+ "tags": null,
233
+ "license": null,
234
+ "pretrained_path": null,
235
+ "chunk_size": 50,
236
+ "n_action_steps": 50,
237
+ "normalization_mapping": {
238
+ "VISUAL": "IDENTITY",
239
+ "STATE": "MEAN_STD",
240
+ "ACTION": "MEAN_STD"
241
+ },
242
+ "max_state_dim": 32,
243
+ "max_action_dim": 32,
244
+ "resize_imgs_with_padding": [
245
+ 448,
246
+ 448
247
+ ],
248
+ "empty_cameras": 0,
249
+ "adapt_to_pi_aloha": false,
250
+ "use_delta_joint_actions_aloha": false,
251
+ "tokenizer_max_length": 48,
252
+ "num_steps": 10,
253
+ "use_cache": true,
254
+ "freeze_vision_encoder": true,
255
+ "train_expert_only": true,
256
+ "train_state_proj": true,
257
+ "optimizer_lr": 0.0001,
258
+ "optimizer_betas": [
259
+ 0.9,
260
+ 0.95
261
+ ],
262
+ "optimizer_eps": 1e-08,
263
+ "optimizer_weight_decay": 1e-10,
264
+ "optimizer_grad_clip_norm": 10,
265
+ "scheduler_warmup_steps": 1000,
266
+ "scheduler_decay_steps": 30000,
267
+ "scheduler_decay_lr": 2.5e-06,
268
+ "vlm_model_name": "OpenGVLab/InternVL3-1B-hf",
269
+ "load_vlm_weights": true,
270
+ "add_image_special_tokens": false,
271
+ "attention_mode": "cross_attn",
272
+ "prefix_length": -1,
273
+ "pad_language_to": "longest",
274
+ "num_expert_layers": -1,
275
+ "num_vlm_layers": 16,
276
+ "self_attn_every_n_layers": 2,
277
+ "expert_width_multiplier": 0.75,
278
+ "min_period": 0.004,
279
+ "max_period": 4.0
280
+ },
281
+ "output_dir": "outputs/train/internvla_stacking_so101_baseline",
282
+ "job_name": "internvla_stacking_so101_baseline",
283
+ "resume": false,
284
+ "seed": 1000,
285
+ "num_workers": 4,
286
+ "batch_size": 8,
287
+ "steps": 100000,
288
+ "eval_freq": 20000,
289
+ "log_freq": 200,
290
+ "save_checkpoint": true,
291
+ "save_freq": 20000,
292
+ "use_policy_training_preset": true,
293
+ "optimizer": {
294
+ "type": "adamw",
295
+ "lr": 0.0001,
296
+ "weight_decay": 1e-10,
297
+ "grad_clip_norm": 10,
298
+ "betas": [
299
+ 0.9,
300
+ 0.95
301
+ ],
302
+ "eps": 1e-08
303
+ },
304
+ "scheduler": {
305
+ "type": "cosine_decay_with_warmup",
306
+ "num_warmup_steps": 1000,
307
+ "num_decay_steps": 30000,
308
+ "peak_lr": 0.0001,
309
+ "decay_lr": 2.5e-06
310
+ },
311
+ "eval": {
312
+ "n_episodes": 50,
313
+ "batch_size": 50,
314
+ "use_async_envs": false
315
+ },
316
+ "wandb": {
317
+ "enable": true,
318
+ "disable_artifact": false,
319
+ "project": "lerobot",
320
+ "entity": null,
321
+ "notes": null,
322
+ "run_id": "5gi3q25r",
323
+ "mode": null
324
+ },
325
+ "checkpoint_path": null,
326
+ "rename_map": {}
327
+ }