Robotics
LeRobot
Safetensors
sarm
chocolat-nya commited on
Commit
f176a49
·
verified ·
1 Parent(s): ca2a454

Bootstrap from lerobot-data-collection/level2_sarm9

Browse files
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: lerobot-data-collection/level12_quality0_2026-02-08
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: sarm
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - robotics
9
+ - lerobot
10
+ - sarm
11
+ ---
12
+
13
+ # Model Card for sarm
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,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "sarm",
3
+ "n_obs_steps": 8,
4
+ "input_features": {
5
+ "observation.images.base": {
6
+ "type": "VISUAL",
7
+ "shape": [
8
+ 480,
9
+ 640,
10
+ 3
11
+ ]
12
+ },
13
+ "observation.state": {
14
+ "type": "STATE",
15
+ "shape": [
16
+ 32
17
+ ]
18
+ }
19
+ },
20
+ "output_features": {
21
+ "action": {
22
+ "type": "ACTION",
23
+ "shape": [
24
+ 16
25
+ ]
26
+ }
27
+ },
28
+ "device": "cuda",
29
+ "use_amp": false,
30
+ "use_peft": false,
31
+ "push_to_hub": true,
32
+ "repo_id": "lerobot-data-collection/level2_sarm9",
33
+ "private": null,
34
+ "tags": null,
35
+ "license": null,
36
+ "pretrained_path": "lerobot-data-collection/sarm_lv2_10k",
37
+ "annotation_mode": "single_stage",
38
+ "frame_gap": 30,
39
+ "max_rewind_steps": 4,
40
+ "image_dim": 512,
41
+ "text_dim": 512,
42
+ "hidden_dim": 768,
43
+ "num_heads": 12,
44
+ "num_layers": 8,
45
+ "max_state_dim": 32,
46
+ "drop_n_last_frames": 1,
47
+ "batch_size": 64,
48
+ "clip_batch_size": 64,
49
+ "dropout": 0.1,
50
+ "stage_loss_weight": 1.0,
51
+ "rewind_probability": 0.8,
52
+ "language_perturbation_probability": 0.2,
53
+ "num_sparse_stages": 1,
54
+ "sparse_subtask_names": [
55
+ "task"
56
+ ],
57
+ "sparse_temporal_proportions": [
58
+ 1.0
59
+ ],
60
+ "num_dense_stages": null,
61
+ "dense_subtask_names": null,
62
+ "dense_temporal_proportions": null,
63
+ "pretrained_model_path": null,
64
+ "image_key": "observation.images.base",
65
+ "state_key": "observation.state",
66
+ "normalization_mapping": {
67
+ "VISUAL": "IDENTITY",
68
+ "STATE": "MEAN_STD",
69
+ "LANGUAGE": "IDENTITY",
70
+ "REWARD": "IDENTITY"
71
+ }
72
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43d5d328b754459e0f0b04aa60f620d79e938b7a3d24bdca7ea7dcd073023334
3
+ size 476739240
policy_postprocessor.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_postprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "device_processor",
6
+ "config": {
7
+ "device": "cpu",
8
+ "float_dtype": null
9
+ }
10
+ }
11
+ ]
12
+ }
policy_preprocessor.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "policy_preprocessor",
3
+ "steps": [
4
+ {
5
+ "registry_name": "to_batch_processor",
6
+ "config": {}
7
+ },
8
+ {
9
+ "registry_name": "rename_observations_processor",
10
+ "config": {
11
+ "rename_map": {}
12
+ }
13
+ },
14
+ {
15
+ "registry_name": "normalizer_processor",
16
+ "config": {
17
+ "eps": 1e-08,
18
+ "features": {
19
+ "observation.images.base": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 480,
23
+ 640,
24
+ 3
25
+ ]
26
+ },
27
+ "observation.state": {
28
+ "type": "STATE",
29
+ "shape": [
30
+ 32
31
+ ]
32
+ },
33
+ "action": {
34
+ "type": "ACTION",
35
+ "shape": [
36
+ 16
37
+ ]
38
+ }
39
+ },
40
+ "norm_map": {
41
+ "VISUAL": "IDENTITY",
42
+ "STATE": "MEAN_STD",
43
+ "LANGUAGE": "IDENTITY",
44
+ "REWARD": "IDENTITY"
45
+ }
46
+ },
47
+ "state_file": "policy_preprocessor_step_2_normalizer_processor.safetensors"
48
+ },
49
+ {
50
+ "class": "lerobot.policies.sarm.processor_sarm.SARMEncodingProcessorStep",
51
+ "config": {}
52
+ },
53
+ {
54
+ "registry_name": "device_processor",
55
+ "config": {
56
+ "device": "cuda",
57
+ "float_dtype": null
58
+ }
59
+ }
60
+ ]
61
+ }
policy_preprocessor_step_2_normalizer_processor.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df5dcd343018b5f98d629fe3f4d3b5e339c36cf4ca6cbadca0c47c662ccbb205
3
+ size 9456
train_config.json ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "lerobot-data-collection/level12_quality0_2026-02-08",
4
+ "root": null,
5
+ "episodes": null,
6
+ "image_transforms": {
7
+ "enable": false,
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": null,
78
+ "use_imagenet_stats": true,
79
+ "video_backend": "torchcodec",
80
+ "streaming": false
81
+ },
82
+ "env": null,
83
+ "policy": {
84
+ "type": "sarm",
85
+ "n_obs_steps": 8,
86
+ "input_features": {
87
+ "observation.images.base": {
88
+ "type": "VISUAL",
89
+ "shape": [
90
+ 480,
91
+ 640,
92
+ 3
93
+ ]
94
+ },
95
+ "observation.state": {
96
+ "type": "STATE",
97
+ "shape": [
98
+ 32
99
+ ]
100
+ }
101
+ },
102
+ "output_features": {
103
+ "action": {
104
+ "type": "ACTION",
105
+ "shape": [
106
+ 16
107
+ ]
108
+ }
109
+ },
110
+ "device": "cuda",
111
+ "use_amp": false,
112
+ "use_peft": false,
113
+ "push_to_hub": true,
114
+ "repo_id": "lerobot-data-collection/level2_sarm9",
115
+ "private": null,
116
+ "tags": null,
117
+ "license": null,
118
+ "pretrained_path": "lerobot-data-collection/sarm_lv2_10k",
119
+ "annotation_mode": "single_stage",
120
+ "frame_gap": 30,
121
+ "max_rewind_steps": 4,
122
+ "image_dim": 512,
123
+ "text_dim": 512,
124
+ "hidden_dim": 768,
125
+ "num_heads": 12,
126
+ "num_layers": 8,
127
+ "max_state_dim": 32,
128
+ "drop_n_last_frames": 1,
129
+ "batch_size": 64,
130
+ "clip_batch_size": 64,
131
+ "dropout": 0.1,
132
+ "stage_loss_weight": 1.0,
133
+ "rewind_probability": 0.8,
134
+ "language_perturbation_probability": 0.2,
135
+ "num_sparse_stages": 1,
136
+ "sparse_subtask_names": [
137
+ "task"
138
+ ],
139
+ "sparse_temporal_proportions": [
140
+ 1.0
141
+ ],
142
+ "num_dense_stages": null,
143
+ "dense_subtask_names": null,
144
+ "dense_temporal_proportions": null,
145
+ "pretrained_model_path": null,
146
+ "image_key": "observation.images.base",
147
+ "state_key": "observation.state",
148
+ "normalization_mapping": {
149
+ "VISUAL": "IDENTITY",
150
+ "STATE": "MEAN_STD",
151
+ "LANGUAGE": "IDENTITY",
152
+ "REWARD": "IDENTITY"
153
+ }
154
+ },
155
+ "output_dir": "/fsx/pepijn/outputs/shirt-folding-sarm-9feb2",
156
+ "job_name": "sarm",
157
+ "resume": false,
158
+ "seed": 1000,
159
+ "num_workers": 4,
160
+ "batch_size": 32,
161
+ "steps": 5000,
162
+ "eval_freq": 20000,
163
+ "log_freq": 200,
164
+ "tolerance_s": 0.01,
165
+ "save_checkpoint": true,
166
+ "save_freq": 2500,
167
+ "use_policy_training_preset": true,
168
+ "optimizer": {
169
+ "type": "adamw",
170
+ "lr": 5e-05,
171
+ "weight_decay": 0.001,
172
+ "grad_clip_norm": 10.0,
173
+ "betas": [
174
+ 0.9,
175
+ 0.999
176
+ ],
177
+ "eps": 1e-08
178
+ },
179
+ "scheduler": {
180
+ "type": "cosine_decay_with_warmup",
181
+ "num_warmup_steps": 500,
182
+ "num_decay_steps": 5000,
183
+ "peak_lr": 5e-05,
184
+ "decay_lr": 5e-06
185
+ },
186
+ "eval": {
187
+ "n_episodes": 50,
188
+ "batch_size": 50,
189
+ "use_async_envs": false
190
+ },
191
+ "wandb": {
192
+ "enable": true,
193
+ "disable_artifact": false,
194
+ "project": "sarm",
195
+ "entity": null,
196
+ "notes": null,
197
+ "run_id": "losgneoh",
198
+ "mode": null
199
+ },
200
+ "peft": null,
201
+ "use_rabc": false,
202
+ "rabc_progress_path": null,
203
+ "rabc_kappa": 0.01,
204
+ "rabc_epsilon": 1e-06,
205
+ "rabc_head_mode": "sparse",
206
+ "rename_map": {},
207
+ "checkpoint_path": null
208
+ }