Robotics
LeRobot
Safetensors
groot
UD77 commited on
Commit
df697a6
·
verified ·
1 Parent(s): 24caf81

Upload policy weights, train config and readme

Browse files
Files changed (4) hide show
  1. README.md +169 -0
  2. config.json +113 -0
  3. model.safetensors +3 -0
  4. train_config.json +266 -0
README.md ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets: UD77/patchbench-so101-v0
3
+ library_name: lerobot
4
+ license: apache-2.0
5
+ model_name: groot
6
+ pipeline_tag: robotics
7
+ tags:
8
+ - groot
9
+ - robotics
10
+ - lerobot
11
+ ---
12
+
13
+ # Model Card for groot
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+ [GR00T N1.7](https://github.com/NVIDIA/Isaac-GR00T) is an open, cross-embodiment foundation model from NVIDIA for generalized humanoid robot reasoning and skills. It uses a Cosmos-Reason2/Qwen3-VL backbone and a flow-matching action transformer to predict actions conditioned on vision, language, and proprioception.
19
+
20
+
21
+
22
+ <p align="center">
23
+ <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/lerobot-groot-paper1%20(1).png" alt="groot architecture" width="85%"/>
24
+ </p>
25
+
26
+
27
+ <!-- A short demo is worth more than any description! Record a GIF/video of the policy
28
+ running on your robot, upload it to this repo, and embed it here:
29
+ <p align="center">
30
+ <img src="https://huggingface.co/<hf_user>/<policy_repo_id>/resolve/main/demo.gif" width="60%"/>
31
+ </p>
32
+ -->
33
+
34
+ This policy has been trained and pushed to the Hub using [LeRobot](https://github.com/huggingface/lerobot).
35
+
36
+ Learn how to train and run it in the [LeRobot groot guide](https://huggingface.co/docs/lerobot/main/en/groot), or browse the [full documentation](https://huggingface.co/docs/lerobot/index).
37
+
38
+
39
+ ---
40
+
41
+ ## Model Details
42
+
43
+ - **License:** apache-2.0
44
+ - **Robot type:** `so101_follower`
45
+ - **Cameras:** `front`, `wrist`
46
+
47
+
48
+ ## Inputs & Outputs
49
+
50
+ The policy consumes these observation features and produces these action features.
51
+
52
+ **Inputs**
53
+
54
+ | Feature | Type | Shape |
55
+ | --- | --- | --- |
56
+ | `observation.state` | STATE | `(6,)` |
57
+ | `observation.images.front` | VISUAL | `(3, 480, 640)` |
58
+ | `observation.images.wrist` | VISUAL | `(3, 480, 640)` |
59
+ | `observation.servo_load` | STATE | `(6,)` |
60
+ | `observation.servo_current` | STATE | `(6,)` |
61
+
62
+ **Outputs**
63
+
64
+ | Feature | Type | Shape |
65
+ | --- | --- | --- |
66
+ | `action` | ACTION | `(6,)` |
67
+
68
+
69
+ ## Training Dataset
70
+
71
+ - **Repository:** [UD77/patchbench-so101-v0](https://huggingface.co/datasets/UD77/patchbench-so101-v0)
72
+ - **Episodes:** 600
73
+ - **Frames:** 94848
74
+ - **Frame rate:** 30 FPS
75
+ - **Task(s):** "insert the cable into the left port", "insert the cable into the middle port", "insert the cable into the right port"
76
+
77
+ <a class="flex" href="https://huggingface.co/spaces/lerobot/visualize_dataset?path=UD77/patchbench-so101-v0">
78
+ <img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl.svg"/>
79
+ <img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/badges/resolve/main/visualize-this-dataset-xl-dark.svg"/>
80
+ </a>
81
+
82
+
83
+ ## Training Configuration
84
+
85
+ | Setting | Value |
86
+ | --- | --- |
87
+ | Training steps | 6000 |
88
+ | Batch size | 32 |
89
+ | Optimizer | adamw |
90
+ | Learning rate | 0.0001 |
91
+ | Seed | 1000 |
92
+ | LeRobot version | 0.6.1 |
93
+
94
+ ---
95
+
96
+ ## How to Get Started with the Model
97
+
98
+ New to LeRobot? These guides cover the full workflow:
99
+
100
+ - **[Install LeRobot](https://huggingface.co/docs/lerobot/main/en/installation)** — set up the `lerobot` package.
101
+ - **[Hardware setup](https://huggingface.co/docs/lerobot/main/en/hardware_guide)** — assemble, wire, and calibrate your robot and cameras.
102
+ - **[Record data & train a policy](https://huggingface.co/docs/lerobot/en/il_robots)** — the end-to-end imitation-learning walkthrough.
103
+ - **[CLI cheat-sheet](https://huggingface.co/docs/lerobot/main/en/cheat-sheet)** — quick reference for the `lerobot-*` commands.
104
+
105
+ The short version to run and train this policy:
106
+
107
+ ### Run the policy on your robot
108
+
109
+ ```bash
110
+ lerobot-rollout \
111
+ --strategy.type=base \
112
+ --robot.type=so101_follower \
113
+ --robot.port=<your_robot_port> \
114
+ --robot.cameras="{ <camera_1>: {type: opencv, index_or_path: <index_or_path>, width: 640, height: 480, fps: 30}, <camera_2>: {type: opencv, index_or_path: <index_or_path>, width: 640, height: 480, fps: 30}}" \
115
+ --policy.path=UD77/patchbench-groot-n17 \
116
+ --task="insert the cable into the left port" \
117
+ --duration=60
118
+ ```
119
+
120
+ Replace the remaining `<...>` placeholders with your own values: `--robot.port` and the camera names/indices are specific to your machine, and the camera names must match the observation keys this policy was trained on.
121
+
122
+ When `--strategy.type=base` is used the script doesn't record the episodes. Skipping duration will make the policy run indefinitely. For more information look at [rollout documentation](https://huggingface.co/docs/lerobot/main/en/inference).
123
+
124
+ ### Train your own policy
125
+
126
+ ```bash
127
+ lerobot-train \
128
+ --dataset.repo_id=${HF_USER}/<dataset> \
129
+ --policy.type=groot \
130
+ --output_dir=outputs/train/<policy_repo_id> \
131
+ --job_name=lerobot_training \
132
+ --policy.device=cuda \
133
+ --policy.repo_id=${HF_USER}/<policy_repo_id> \
134
+ --wandb.enable=true
135
+ ```
136
+
137
+ _Writes checkpoints to `outputs/train/<policy_repo_id>/checkpoints/`._
138
+
139
+ ---
140
+
141
+ ## Evaluation
142
+
143
+ <!-- Report real-robot results here: run the policy several times per task and count the
144
+ successes. Delete the "No evaluation results" line and fill in this table instead:
145
+
146
+ | Task | Trials | Successes | Success rate |
147
+ | ---- | ------ | --------- | ------------ |
148
+ | pick the lego brick | 10 | 8 | 80% |
149
+
150
+ Also worth noting: anything that affects difficulty (new object positions, lighting,
151
+ distractors, a different robot of the same type, ...).
152
+ -->
153
+
154
+ _No evaluation results have been provided for this policy yet._
155
+
156
+ ---
157
+
158
+ ## Citation
159
+
160
+ If you use this policy, please cite the method linked in the description above, along with LeRobot:
161
+
162
+ ```bibtex
163
+ @misc{cadene2024lerobot,
164
+ author = {Cadene, Remi and Alibert, Simon and Soare, Alexander and Gallouedec, Quentin and Zouitine, Adil and Palma, Steven and Kooijmans, Pepijn and Aractingi, Michel and Shukor, Mustafa and Aubakirova, Dana and Russi, Martino and Capuano, Francesco and Pascal, Caroline and Choghari, Jade and Moss, Jess and Wolf, Thomas},
165
+ title = {LeRobot: State-of-the-art Machine Learning for Real-World Robotics in Pytorch},
166
+ howpublished = "\url{https://github.com/huggingface/lerobot}",
167
+ year = {2024}
168
+ }
169
+ ```
config.json ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "groot",
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
+ "observation.images.wrist": {
20
+ "type": "VISUAL",
21
+ "shape": [
22
+ 3,
23
+ 480,
24
+ 640
25
+ ]
26
+ },
27
+ "observation.servo_load": {
28
+ "type": "STATE",
29
+ "shape": [
30
+ 6
31
+ ]
32
+ },
33
+ "observation.servo_current": {
34
+ "type": "STATE",
35
+ "shape": [
36
+ 6
37
+ ]
38
+ }
39
+ },
40
+ "output_features": {
41
+ "action": {
42
+ "type": "ACTION",
43
+ "shape": [
44
+ 6
45
+ ]
46
+ }
47
+ },
48
+ "device": "cuda",
49
+ "use_amp": false,
50
+ "use_peft": false,
51
+ "push_to_hub": true,
52
+ "repo_id": "UD77/patchbench-groot-n17",
53
+ "private": null,
54
+ "tags": null,
55
+ "license": null,
56
+ "pretrained_path": null,
57
+ "pretrained_revision": null,
58
+ "chunk_size": 16,
59
+ "n_action_steps": 16,
60
+ "max_state_dim": 132,
61
+ "max_action_dim": 132,
62
+ "normalization_mapping": {
63
+ "VISUAL": "IDENTITY",
64
+ "STATE": "IDENTITY",
65
+ "ACTION": "IDENTITY"
66
+ },
67
+ "base_model_path": "nvidia/GR00T-N1.7-3B",
68
+ "action_decode_transform": null,
69
+ "embodiment_tag": "new_embodiment",
70
+ "tune_llm": false,
71
+ "tune_visual": false,
72
+ "tune_projector": true,
73
+ "tune_diffusion_model": true,
74
+ "tune_vlln": true,
75
+ "tune_top_llm_layers": 0,
76
+ "num_inference_timesteps": null,
77
+ "rtc_ramp_rate": null,
78
+ "use_flash_attention": false,
79
+ "use_relative_actions": true,
80
+ "relative_exclude_joints": [
81
+ "gripper"
82
+ ],
83
+ "optimizer_lr": 0.0001,
84
+ "optimizer_betas": [
85
+ 0.9,
86
+ 0.999
87
+ ],
88
+ "optimizer_eps": 1e-08,
89
+ "optimizer_weight_decay": 1e-05,
90
+ "warmup_ratio": 0.05,
91
+ "use_bf16": true,
92
+ "model_params_fp32": true,
93
+ "image_size": [
94
+ 256,
95
+ 256
96
+ ],
97
+ "tokenizer_assets_repo": null,
98
+ "lora_rank": 0,
99
+ "lora_alpha": 16,
100
+ "lora_dropout": 0.1,
101
+ "lora_full_model": false,
102
+ "video_backend": "decord",
103
+ "balance_dataset_weights": true,
104
+ "balance_trajectory_weights": true,
105
+ "dataset_paths": null,
106
+ "output_dir": "./tmp/gr00t",
107
+ "save_steps": 1000,
108
+ "max_steps": 10000,
109
+ "batch_size": 32,
110
+ "dataloader_num_workers": 8,
111
+ "report_to": "wandb",
112
+ "resume": false
113
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ced51b596ac39e4f62c3e51c0a13cae10bc3f649204436ae7a4ff5cf34781d43
3
+ size 12576215296
train_config.json ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": {
3
+ "repo_id": "UD77/patchbench-so101-v0",
4
+ "repo_type": "dataset",
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
+ "affine": {
63
+ "weight": 1.0,
64
+ "type": "RandomAffine",
65
+ "kwargs": {
66
+ "degrees": [
67
+ -5.0,
68
+ 5.0
69
+ ],
70
+ "translate": [
71
+ 0.05,
72
+ 0.05
73
+ ]
74
+ }
75
+ }
76
+ }
77
+ },
78
+ "revision": null,
79
+ "use_imagenet_stats": true,
80
+ "video_backend": "torchcodec",
81
+ "return_uint8": false,
82
+ "depth_output_unit": "mm",
83
+ "streaming": false,
84
+ "eval_split": 0.0
85
+ },
86
+ "env": null,
87
+ "policy": {
88
+ "type": "groot",
89
+ "n_obs_steps": 1,
90
+ "input_features": {
91
+ "observation.state": {
92
+ "type": "STATE",
93
+ "shape": [
94
+ 6
95
+ ]
96
+ },
97
+ "observation.images.front": {
98
+ "type": "VISUAL",
99
+ "shape": [
100
+ 3,
101
+ 480,
102
+ 640
103
+ ]
104
+ },
105
+ "observation.images.wrist": {
106
+ "type": "VISUAL",
107
+ "shape": [
108
+ 3,
109
+ 480,
110
+ 640
111
+ ]
112
+ },
113
+ "observation.servo_load": {
114
+ "type": "STATE",
115
+ "shape": [
116
+ 6
117
+ ]
118
+ },
119
+ "observation.servo_current": {
120
+ "type": "STATE",
121
+ "shape": [
122
+ 6
123
+ ]
124
+ }
125
+ },
126
+ "output_features": {
127
+ "action": {
128
+ "type": "ACTION",
129
+ "shape": [
130
+ 6
131
+ ]
132
+ }
133
+ },
134
+ "device": "cuda",
135
+ "use_amp": false,
136
+ "use_peft": false,
137
+ "push_to_hub": true,
138
+ "repo_id": "UD77/patchbench-groot-n17",
139
+ "private": null,
140
+ "tags": null,
141
+ "license": null,
142
+ "pretrained_path": null,
143
+ "pretrained_revision": null,
144
+ "chunk_size": 16,
145
+ "n_action_steps": 16,
146
+ "max_state_dim": 132,
147
+ "max_action_dim": 132,
148
+ "normalization_mapping": {
149
+ "VISUAL": "IDENTITY",
150
+ "STATE": "IDENTITY",
151
+ "ACTION": "IDENTITY"
152
+ },
153
+ "base_model_path": "nvidia/GR00T-N1.7-3B",
154
+ "action_decode_transform": null,
155
+ "embodiment_tag": "new_embodiment",
156
+ "tune_llm": false,
157
+ "tune_visual": false,
158
+ "tune_projector": true,
159
+ "tune_diffusion_model": true,
160
+ "tune_vlln": true,
161
+ "tune_top_llm_layers": 0,
162
+ "num_inference_timesteps": null,
163
+ "rtc_ramp_rate": null,
164
+ "use_flash_attention": false,
165
+ "use_relative_actions": true,
166
+ "relative_exclude_joints": [
167
+ "gripper"
168
+ ],
169
+ "optimizer_lr": 0.0001,
170
+ "optimizer_betas": [
171
+ 0.9,
172
+ 0.999
173
+ ],
174
+ "optimizer_eps": 1e-08,
175
+ "optimizer_weight_decay": 1e-05,
176
+ "warmup_ratio": 0.05,
177
+ "use_bf16": true,
178
+ "model_params_fp32": true,
179
+ "image_size": [
180
+ 256,
181
+ 256
182
+ ],
183
+ "tokenizer_assets_repo": null,
184
+ "lora_rank": 0,
185
+ "lora_alpha": 16,
186
+ "lora_dropout": 0.1,
187
+ "lora_full_model": false,
188
+ "video_backend": "decord",
189
+ "balance_dataset_weights": true,
190
+ "balance_trajectory_weights": true,
191
+ "dataset_paths": null,
192
+ "output_dir": "./tmp/gr00t",
193
+ "save_steps": 1000,
194
+ "max_steps": 10000,
195
+ "batch_size": 32,
196
+ "dataloader_num_workers": 8,
197
+ "report_to": "wandb",
198
+ "resume": false
199
+ },
200
+ "reward_model": null,
201
+ "output_dir": "outputs/groot_patchbench",
202
+ "job_name": "groot",
203
+ "resume": false,
204
+ "seed": 1000,
205
+ "cudnn_deterministic": false,
206
+ "num_workers": 4,
207
+ "batch_size": 32,
208
+ "prefetch_factor": 4,
209
+ "persistent_workers": true,
210
+ "dataloader_multiprocessing_context": "spawn",
211
+ "steps": 6000,
212
+ "env_eval_freq": 20000,
213
+ "log_freq": 200,
214
+ "eval_steps": 0,
215
+ "max_eval_samples": 0,
216
+ "tolerance_s": 0.0001,
217
+ "save_checkpoint": true,
218
+ "save_freq": 2000,
219
+ "use_policy_training_preset": true,
220
+ "optimizer": {
221
+ "type": "adamw",
222
+ "lr": 0.0001,
223
+ "weight_decay": 1e-05,
224
+ "grad_clip_norm": 1.0,
225
+ "betas": [
226
+ 0.9,
227
+ 0.999
228
+ ],
229
+ "eps": 1e-08
230
+ },
231
+ "scheduler": {
232
+ "type": "diffuser",
233
+ "num_warmup_steps": 500,
234
+ "name": "cosine"
235
+ },
236
+ "eval": {
237
+ "n_episodes": 50,
238
+ "batch_size": 8,
239
+ "use_async_envs": true,
240
+ "recording": false,
241
+ "recording_repo_id": null,
242
+ "recording_private": false
243
+ },
244
+ "wandb": {
245
+ "enable": false,
246
+ "disable_artifact": false,
247
+ "project": "lerobot",
248
+ "entity": null,
249
+ "notes": null,
250
+ "run_id": null,
251
+ "mode": null,
252
+ "add_tags": true
253
+ },
254
+ "peft": null,
255
+ "job": {
256
+ "target": null,
257
+ "image": "huggingface/lerobot-gpu:latest",
258
+ "timeout": "2d",
259
+ "detach": false,
260
+ "tags": []
261
+ },
262
+ "save_checkpoint_to_hub": false,
263
+ "sample_weighting": null,
264
+ "rename_map": {},
265
+ "checkpoint_path": null
266
+ }