Robotics
LeRobot
Safetensors
molmoact2
ramy-hty commited on
Commit
2e65296
·
verified ·
1 Parent(s): f8c54d6

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. config.json +123 -0
  3. model.safetensors +3 -0
  4. train_config.json +261 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: ETHrobotlearning/task3-TOY-clean
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: molmoact2
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - molmoact2
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for molmoact2
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,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "molmoact2",
3
+ "n_obs_steps": 1,
4
+ "input_features": {
5
+ "observation.state": {
6
+ "type": "STATE",
7
+ "shape": [
8
+ 6
9
+ ]
10
+ },
11
+ "observation.images.front": {
12
+ "type": "VISUAL",
13
+ "shape": [
14
+ 3,
15
+ 480,
16
+ 640
17
+ ]
18
+ }
19
+ },
20
+ "output_features": {
21
+ "action": {
22
+ "type": "ACTION",
23
+ "shape": [
24
+ 6
25
+ ]
26
+ }
27
+ },
28
+ "device": "cuda",
29
+ "use_amp": false,
30
+ "use_peft": false,
31
+ "push_to_hub": true,
32
+ "repo_id": "ETHrobotlearning/molmoact2-task3-TOY-clean-step2000",
33
+ "private": null,
34
+ "tags": null,
35
+ "license": null,
36
+ "pretrained_path": null,
37
+ "checkpoint_path": "allenai/MolmoAct2-SO100_101",
38
+ "checkpoint_revision": null,
39
+ "checkpoint_force_download": false,
40
+ "trust_remote_code": true,
41
+ "chunk_size": 10,
42
+ "n_action_steps": 10,
43
+ "action_mode": "continuous",
44
+ "inference_action_mode": null,
45
+ "discrete_action_tokenizer": "allenai/MolmoAct2-FAST-Tokenizer",
46
+ "discrete_generation_max_steps": null,
47
+ "norm_tag": null,
48
+ "setup_type": "single SO-100/SO-101 arm with one front RGB camera",
49
+ "control_mode": "absolute joint pose",
50
+ "image_keys": [
51
+ "observation.images.front"
52
+ ],
53
+ "normalize_language": true,
54
+ "add_setup_tokens": true,
55
+ "add_control_tokens": true,
56
+ "normalize_gripper": false,
57
+ "num_state_tokens": 256,
58
+ "max_sequence_length": null,
59
+ "expected_max_action_dim": 32,
60
+ "num_flow_timesteps": 8,
61
+ "flow_matching_cutoff": 1.0,
62
+ "flow_matching_time_offset": 0.001,
63
+ "flow_matching_time_scale": 0.999,
64
+ "flow_matching_beta_alpha": 1.0,
65
+ "flow_matching_beta_beta": 1.5,
66
+ "num_inference_steps": null,
67
+ "mask_action_dim_padding": true,
68
+ "enable_inference_cuda_graph": true,
69
+ "per_episode_seed": false,
70
+ "eval_seed": null,
71
+ "rtc_config": null,
72
+ "enable_lora_vlm": true,
73
+ "lora_rank": 64,
74
+ "lora_alpha": 16,
75
+ "lora_dropout": 0.05,
76
+ "lora_bias": "none",
77
+ "enable_lora_action_expert": false,
78
+ "enable_knowledge_insulation": false,
79
+ "freeze_embedding": true,
80
+ "train_action_expert_only": false,
81
+ "gradient_checkpointing": true,
82
+ "model_dtype": "bfloat16",
83
+ "softmax_auxiliary_loss": true,
84
+ "softmax_auxiliary_loss_scale": 0.0001,
85
+ "discrete_loss_token_weighting": "root_subsegments_root_tokens",
86
+ "optimizer_lr": 1e-05,
87
+ "optimizer_vit_lr": 5e-06,
88
+ "optimizer_connector_lr": 5e-06,
89
+ "optimizer_action_expert_lr": 5e-05,
90
+ "optimizer_betas": [
91
+ 0.9,
92
+ 0.95
93
+ ],
94
+ "optimizer_eps": 1e-06,
95
+ "optimizer_weight_decay": 0.0,
96
+ "optimizer_grad_clip_norm": 1.0,
97
+ "scheduler_warmup_steps": 200,
98
+ "scheduler_decay_steps": null,
99
+ "scheduler_decay_lr": 1e-06,
100
+ "normalization_mapping": {
101
+ "VISUAL": "IDENTITY",
102
+ "STATE": "QUANTILES",
103
+ "ACTION": "QUANTILES"
104
+ },
105
+ "dataset_feature_names": {
106
+ "action": [
107
+ "shoulder_pan.pos",
108
+ "shoulder_lift.pos",
109
+ "elbow_flex.pos",
110
+ "wrist_flex.pos",
111
+ "wrist_roll.pos",
112
+ "gripper.pos"
113
+ ],
114
+ "observation.state": [
115
+ "shoulder_pan.pos",
116
+ "shoulder_lift.pos",
117
+ "elbow_flex.pos",
118
+ "wrist_flex.pos",
119
+ "wrist_roll.pos",
120
+ "gripper.pos"
121
+ ]
122
+ }
123
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a80b5a6e073b1a80d83d0ad4aa8b27ce85b393883b51f58f53565f331a075ca8
3
+ size 11483634784
train_config.json ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "ETHrobotlearning/task3-TOY-clean",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": true,
8
+ "max_num_transforms": 3,
9
+ "random_order": false,
10
+ "tfs": {
11
+ "brightness": {
12
+ "weight": 1.0,
13
+ "type": "ColorJitter",
14
+ "kwargs": {
15
+ "brightness": [
16
+ 0.8,
17
+ 1.2
18
+ ]
19
+ }
20
+ },
21
+ "contrast": {
22
+ "weight": 1.0,
23
+ "type": "ColorJitter",
24
+ "kwargs": {
25
+ "contrast": [
26
+ 0.8,
27
+ 1.2
28
+ ]
29
+ }
30
+ },
31
+ "saturation": {
32
+ "weight": 1.0,
33
+ "type": "ColorJitter",
34
+ "kwargs": {
35
+ "saturation": [
36
+ 0.5,
37
+ 1.5
38
+ ]
39
+ }
40
+ },
41
+ "hue": {
42
+ "weight": 1.0,
43
+ "type": "ColorJitter",
44
+ "kwargs": {
45
+ "hue": [
46
+ -0.05,
47
+ 0.05
48
+ ]
49
+ }
50
+ },
51
+ "sharpness": {
52
+ "weight": 1.0,
53
+ "type": "SharpnessJitter",
54
+ "kwargs": {
55
+ "sharpness": [
56
+ 0.5,
57
+ 1.5
58
+ ]
59
+ }
60
+ },
61
+ "affine": {
62
+ "weight": 1.0,
63
+ "type": "RandomAffine",
64
+ "kwargs": {
65
+ "degrees": [
66
+ -5.0,
67
+ 5.0
68
+ ],
69
+ "translate": [
70
+ 0.05,
71
+ 0.05
72
+ ]
73
+ }
74
+ }
75
+ }
76
+ },
77
+ "revision": "main",
78
+ "use_imagenet_stats": true,
79
+ "video_backend": "pyav",
80
+ "return_uint8": false,
81
+ "streaming": false
82
+ },
83
+ "env": null,
84
+ "policy": {
85
+ "type": "molmoact2",
86
+ "n_obs_steps": 1,
87
+ "input_features": {
88
+ "observation.state": {
89
+ "type": "STATE",
90
+ "shape": [
91
+ 6
92
+ ]
93
+ },
94
+ "observation.images.front": {
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
+ "use_peft": false,
114
+ "push_to_hub": true,
115
+ "repo_id": "ETHrobotlearning/molmoact2-task3-TOY-clean-step2000",
116
+ "private": null,
117
+ "tags": null,
118
+ "license": null,
119
+ "pretrained_path": null,
120
+ "checkpoint_path": "allenai/MolmoAct2-SO100_101",
121
+ "checkpoint_revision": null,
122
+ "checkpoint_force_download": false,
123
+ "trust_remote_code": true,
124
+ "chunk_size": 10,
125
+ "n_action_steps": 10,
126
+ "action_mode": "continuous",
127
+ "inference_action_mode": null,
128
+ "discrete_action_tokenizer": "allenai/MolmoAct2-FAST-Tokenizer",
129
+ "discrete_generation_max_steps": null,
130
+ "norm_tag": null,
131
+ "setup_type": "single SO-100/SO-101 arm with one front RGB camera",
132
+ "control_mode": "absolute joint pose",
133
+ "image_keys": [
134
+ "observation.images.front"
135
+ ],
136
+ "normalize_language": true,
137
+ "add_setup_tokens": true,
138
+ "add_control_tokens": true,
139
+ "normalize_gripper": false,
140
+ "num_state_tokens": 256,
141
+ "max_sequence_length": null,
142
+ "expected_max_action_dim": 32,
143
+ "num_flow_timesteps": 8,
144
+ "flow_matching_cutoff": 1.0,
145
+ "flow_matching_time_offset": 0.001,
146
+ "flow_matching_time_scale": 0.999,
147
+ "flow_matching_beta_alpha": 1.0,
148
+ "flow_matching_beta_beta": 1.5,
149
+ "num_inference_steps": null,
150
+ "mask_action_dim_padding": true,
151
+ "enable_inference_cuda_graph": true,
152
+ "per_episode_seed": false,
153
+ "eval_seed": null,
154
+ "rtc_config": null,
155
+ "enable_lora_vlm": true,
156
+ "lora_rank": 64,
157
+ "lora_alpha": 16,
158
+ "lora_dropout": 0.05,
159
+ "lora_bias": "none",
160
+ "enable_lora_action_expert": false,
161
+ "enable_knowledge_insulation": false,
162
+ "freeze_embedding": true,
163
+ "train_action_expert_only": false,
164
+ "gradient_checkpointing": true,
165
+ "model_dtype": "bfloat16",
166
+ "softmax_auxiliary_loss": true,
167
+ "softmax_auxiliary_loss_scale": 0.0001,
168
+ "discrete_loss_token_weighting": "root_subsegments_root_tokens",
169
+ "optimizer_lr": 1e-05,
170
+ "optimizer_vit_lr": 5e-06,
171
+ "optimizer_connector_lr": 5e-06,
172
+ "optimizer_action_expert_lr": 5e-05,
173
+ "optimizer_betas": [
174
+ 0.9,
175
+ 0.95
176
+ ],
177
+ "optimizer_eps": 1e-06,
178
+ "optimizer_weight_decay": 0.0,
179
+ "optimizer_grad_clip_norm": 1.0,
180
+ "scheduler_warmup_steps": 200,
181
+ "scheduler_decay_steps": null,
182
+ "scheduler_decay_lr": 1e-06,
183
+ "normalization_mapping": {
184
+ "VISUAL": "IDENTITY",
185
+ "STATE": "QUANTILES",
186
+ "ACTION": "QUANTILES"
187
+ },
188
+ "dataset_feature_names": {
189
+ "action": [
190
+ "shoulder_pan.pos",
191
+ "shoulder_lift.pos",
192
+ "elbow_flex.pos",
193
+ "wrist_flex.pos",
194
+ "wrist_roll.pos",
195
+ "gripper.pos"
196
+ ],
197
+ "observation.state": [
198
+ "shoulder_pan.pos",
199
+ "shoulder_lift.pos",
200
+ "elbow_flex.pos",
201
+ "wrist_flex.pos",
202
+ "wrist_roll.pos",
203
+ "gripper.pos"
204
+ ]
205
+ }
206
+ },
207
+ "reward_model": null,
208
+ "output_dir": "/home/ubuntu/outputs/train/molmoact2_task3_toy_clean",
209
+ "job_name": "molmoact2_task3_toy_clean",
210
+ "resume": false,
211
+ "seed": 1000,
212
+ "cudnn_deterministic": false,
213
+ "num_workers": 4,
214
+ "batch_size": 32,
215
+ "prefetch_factor": 4,
216
+ "persistent_workers": true,
217
+ "steps": 20000,
218
+ "eval_freq": -1,
219
+ "log_freq": 20,
220
+ "tolerance_s": 0.0001,
221
+ "save_checkpoint": true,
222
+ "save_freq": 500,
223
+ "use_policy_training_preset": true,
224
+ "optimizer": {
225
+ "type": "adamw",
226
+ "lr": 1e-05,
227
+ "weight_decay": 0.0,
228
+ "grad_clip_norm": 1.0,
229
+ "betas": [
230
+ 0.9,
231
+ 0.95
232
+ ],
233
+ "eps": 1e-06
234
+ },
235
+ "scheduler": {
236
+ "type": "molmoact2_cosine_decay_with_warmup",
237
+ "num_warmup_steps": 200,
238
+ "num_decay_steps": null,
239
+ "peak_lr": 1e-05,
240
+ "decay_lr": 1e-06
241
+ },
242
+ "eval": {
243
+ "n_episodes": 50,
244
+ "batch_size": 11,
245
+ "use_async_envs": true
246
+ },
247
+ "wandb": {
248
+ "enable": true,
249
+ "disable_artifact": false,
250
+ "project": "molmoact2",
251
+ "entity": null,
252
+ "notes": null,
253
+ "run_id": "ajjfvgux",
254
+ "mode": null,
255
+ "add_tags": true
256
+ },
257
+ "peft": null,
258
+ "sample_weighting": null,
259
+ "rename_map": {},
260
+ "checkpoint_path": null
261
+ }