File size: 14,856 Bytes
700dd75 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 | # Downloading Model Checkpoints
Pre-trained GEAR-SONIC checkpoints (ONNX format) are hosted on Hugging Face:
**[nvidia/GEAR-SONIC](https://huggingface.co/nvidia/GEAR-SONIC)**
## Quick Download
### Install the dependency
```bash
pip install huggingface_hub
```
### Run the download script
From the repo root:
```bash
# Deployment (ONNX models + planner β gear_sonic_deploy/)
python download_from_hf.py
# Low-latency teleoperation checkpoint (ONNX models + planner β gear_sonic_deploy/)
python download_from_hf.py --low-latency
# SONIC v1.1 checkpoint (ONNX models + planner β gear_sonic_deploy/)
python download_from_hf.py --sonic-v1-1
# Training (checkpoint + SMPL data β sonic_release/ + data/smpl_filtered/)
python download_from_hf.py --training
# Low-latency PyTorch checkpoint + config only
python download_from_hf.py --training --low-latency
# SONIC v1.1 PyTorch checkpoint + configs only
python download_from_hf.py --training --sonic-v1-1 --no-smpl
# Sample data only (1 walking sequence for quick testing)
python download_from_hf.py --sample
# Training checkpoint only (skip 30GB SMPL download)
python download_from_hf.py --training --no-smpl
```
This downloads the **latest** policy encoder + decoder + kinematic planner into
`gear_sonic_deploy/`, preserving the same directory layout the deployment binary expects.
---
## Options
| Flag | Description |
|------|-------------|
| `--training` | Download training checkpoint + SMPL motion data (~30 GB) |
| `--low-latency` | Download the low-latency teleoperation checkpoint. For deployment, ONNX files go to `gear_sonic_deploy/policy/low_latency/`; with `--training`, the PyTorch checkpoint and configs go to `low_latency/`. |
| `--sonic-v1-1` | Download SONIC v1.1, which uses robot-heading-normalized targets and wrist-pose augmentation. Deployment files go to `gear_sonic_deploy/policy/sonic_v1_1/`; training files go to `sonic_v1_1/`. |
| `--sample` | Download sample motion data only (~4 MB) |
| `--no-planner` | Skip the kinematic planner download |
| `--no-smpl` | With `--training`, skip SMPL data (checkpoint only) |
| `--output-dir PATH` | Override the destination directory |
| `--token TOKEN` | HF token (alternative to `hf auth login`) |
### Examples
```bash
# Policy + planner (default)
python download_from_hf.py
# Policy only
python download_from_hf.py --no-planner
# Low-latency teleoperation policy only
python download_from_hf.py --low-latency --no-planner
# SONIC v1.1 policy only
python download_from_hf.py --sonic-v1-1 --no-planner
# Download into a custom directory
python download_from_hf.py --output-dir /data/gear-sonic
```
---
## Low-Latency Teleoperation Checkpoint
The checkpoint published under `low_latency/` in
[`nvidia/GEAR-SONIC`](https://huggingface.co/nvidia/GEAR-SONIC) is configured
for responsive whole-body teleoperation. Its SMPL encoder uses **4 future
reference frames**, compared with **10 frames** in the default release. At
50 Hz (20 ms per frame), this reduces SMPL reference lookahead from
approximately **200 ms to 80 ms**.
This is the controller's reference lookahead, not a measurement of total
end-to-end system latency. The checkpoint does not replace the default
top-level deployment policy.
Download the deployment ONNX files:
```bash
python download_from_hf.py --low-latency
```
This creates:
```
gear_sonic_deploy/
βββ policy/low_latency/
βββ model_encoder.onnx
βββ model_decoder.onnx
βββ observation_config.yaml
```
### C++ deployment inference
Run the low-latency ONNX controller in simulation:
```bash
cd gear_sonic_deploy
./deploy.sh \
--cp policy/low_latency/model \
--obs-config policy/low_latency/observation_config.yaml \
sim
```
Run it for VLA or teleoperation on the real robot:
```bash
cd gear_sonic_deploy
./deploy.sh \
--cp policy/low_latency/model \
--obs-config policy/low_latency/observation_config.yaml \
--input-type zmq_manager \
real
```
`deploy.sh` expects `--cp` to be the shared model prefix; it appends
`_encoder.onnx` and `_decoder.onnx` internally. The low-latency PyTorch
checkpoint is available as `low_latency/last.pt`:
```bash
python download_from_hf.py --training --low-latency
```
### Python inference and evaluation
For Python-side checkpoint evaluation in Isaac Lab, download the PyTorch
checkpoint and sample motions:
```bash
python download_from_hf.py --training --low-latency
python download_from_hf.py --sample
```
Then run the low-latency checkpoint with `eval_agent_trl.py`:
```bash
python gear_sonic/eval_agent_trl.py \
+checkpoint=low_latency/last.pt \
+headless=False \
++num_envs=1 \
++manager_env.observations.policy.enable_corruption=False \
++manager_env.observations.tokenizer.enable_corruption=False \
"++manager_env.commands.motion.motion_lib_cfg.motion_file=sample_data/robot_filtered" \
"++manager_env.commands.motion.motion_lib_cfg.smpl_motion_file=sample_data/smpl_filtered"
```
For the Python VLA tmux launcher, pass the same low-latency C++ deploy files
through launcher flags:
```bash
python gear_sonic/scripts/launch_inference.py \
--deploy-checkpoint policy/low_latency/model \
--deploy-obs-config policy/low_latency/observation_config.yaml \
--camera-host 192.168.123.164 \
--prompt "pick up the cup"
```
The launcher still runs the ONNX controller through the C++ deployment pane;
the Python process coordinates the VLA client, camera client, keyboard control,
and optional data exporter.
---
## SONIC v1.1 Checkpoint
The checkpoint under `sonic_v1_1/` uses robot-heading-normalized target
orientations and was trained with wrist-pose augmentation. It is intended for
heading-stable 3-point teleoperation and SONIC-backed VLA policies trained
against this controller.
Its SMPL and wrist encoders use **10 future frames at 20 ms spacing**
(approximately **200 ms** of reference lookahead). G1 and teleoperation
references use 10 frames at `step5`. This is not the low-latency checkpoint.
Download the matching ONNX encoder, decoder, observation config, and planner:
```bash
python download_from_hf.py --sonic-v1-1
```
This creates:
```
gear_sonic_deploy/
βββ policy/sonic_v1_1/
βββ model_encoder.onnx
βββ model_decoder.onnx
βββ observation_config.yaml
```
Run the controller in simulation:
```bash
cd gear_sonic_deploy
./deploy.sh \
--cp policy/sonic_v1_1/model \
--obs-config policy/sonic_v1_1/observation_config.yaml \
sim
```
For the VLA launcher:
```bash
python gear_sonic/scripts/launch_inference.py \
--deploy-checkpoint policy/sonic_v1_1/model \
--deploy-obs-config policy/sonic_v1_1/observation_config.yaml \
--camera-host 192.168.123.164 \
--prompt "pick up the cup"
```
Download the PyTorch checkpoint and configs without the shared 30 GB SMPL
dataset:
```bash
python download_from_hf.py --training --sonic-v1-1 --no-smpl
```
Evaluate it with the matching release recipe:
```bash
python gear_sonic/eval_agent_trl.py \
+exp=manager/universal_token/all_modes/sonic_v1_1 \
+checkpoint=sonic_v1_1/last.pt \
+headless=False \
++num_envs=1 \
++manager_env.observations.policy.enable_corruption=False \
++manager_env.observations.tokenizer.enable_corruption=False
```
Use the same `+exp` and `+checkpoint` values with `train_agent_trl.py` for
continued training.
---
## Manual download via CLI
If you prefer the Hugging Face CLI:
```bash
pip install huggingface_hub[cli]
# Policy only
hf download nvidia/GEAR-SONIC \
model_encoder.onnx \
model_decoder.onnx \
observation_config.yaml \
--local-dir gear_sonic_deploy
# Everything (policy + planner)
hf download nvidia/GEAR-SONIC --local-dir gear_sonic_deploy
```
---
## Manual download via Python
```python
from huggingface_hub import hf_hub_download
REPO_ID = "nvidia/GEAR-SONIC"
encoder = hf_hub_download(repo_id=REPO_ID, filename="model_encoder.onnx")
decoder = hf_hub_download(repo_id=REPO_ID, filename="model_decoder.onnx")
config = hf_hub_download(repo_id=REPO_ID, filename="observation_config.yaml")
planner = hf_hub_download(repo_id=REPO_ID, filename="planner_sonic.onnx")
print("Policy encoder :", encoder)
print("Policy decoder :", decoder)
print("Obs config :", config)
print("Planner :", planner)
```
---
## SONIC Training Checkpoint
The SONIC release training checkpoint and config are also available on Hugging Face, for evaluation or fine-tuning:
### Download via CLI
```bash
hf download nvidia/GEAR-SONIC \
sonic_release/last.pt \
sonic_release/config.yaml \
--local-dir models
```
### Download via Python
```python
from huggingface_hub import hf_hub_download
REPO_ID = "nvidia/GEAR-SONIC"
checkpoint = hf_hub_download(repo_id=REPO_ID, filename="sonic_release/last.pt")
config = hf_hub_download(repo_id=REPO_ID, filename="sonic_release/config.yaml")
print("Checkpoint :", checkpoint)
print("Config :", config)
```
### Evaluate the checkpoint
```bash
python gear_sonic/eval_agent_trl.py \
+checkpoint=models/sonic_release/last.pt \
+num_envs=1 headless=False
```
---
## Sample Motion Data (Quick Start)
A small sample dataset (1 walking sequence) is included for quick testing without downloading the full Bones-SEED dataset. It contains all three data types needed for training: robot retargeted, SOMA skeleton, and SMPL.
### Download via CLI
```bash
# Sample data only
hf download nvidia/GEAR-SONIC \
--include "sample_data/*" \
--local-dir .
# Sample data + training checkpoint
hf download nvidia/GEAR-SONIC \
--include "sample_data/*" \
--include "sonic_release/*" \
--local-dir .
```
This creates:
```
sample_data/
βββ robot_filtered/210531/ # G1 retargeted motion (for motion tracking)
β βββ walk_forward_amateur_001__A001.pkl
β βββ walk_forward_amateur_001__A001_M.pkl
βββ soma_filtered/210531/ # SOMA skeleton motion
β βββ walk_forward_amateur_001__A001.pkl
β βββ walk_forward_amateur_001__A001_M.pkl
βββ smpl_filtered/ # SMPL human motion
βββ walk_forward_amateur_001__A001.pkl
βββ walk_forward_amateur_001__A001_M.pkl
```
### Test training with sample data
```bash
python gear_sonic/train_agent_trl.py \
+exp=manager/universal_token/all_modes/sonic_release \
num_envs=16 headless=True \
manager_env.commands.motion.motion_lib_cfg.motion_file=sample_data/robot_filtered \
manager_env.commands.motion.motion_lib_cfg.smpl_motion_file=sample_data/smpl_filtered
```
For full-scale training, download the complete [Bones-SEED](https://huggingface.co/datasets/bones-studio/seed) dataset and follow the [Training Guide](../user_guide/training.md).
---
## SMPL Motion Data (Bones-SEED Filtered)
The SMPL retargeted motion data used for training (131K sequences, filtered from the Bones-SEED dataset) is available as a split tar archive (~30GB total).
### Download and extract
```bash
# Download all parts
hf download nvidia/GEAR-SONIC --include "bones_seed_smpl/*" --local-dir .
# Reassemble and extract
cat bones_seed_smpl/bones_seed_smpl.tar.part_* | tar xf - -C data/
```
This extracts to `data/smpl_filtered/` with 131K `.pkl` files.
Then point training to it:
```bash
python gear_sonic/train_agent_trl.py \
+exp=manager/universal_token/all_modes/sonic_release \
+checkpoint=sonic_release/last.pt \
num_envs=4096 headless=True \
++manager_env.commands.motion.motion_lib_cfg.smpl_motion_file=data/smpl_filtered
```
---
## Available files
```
nvidia/GEAR-SONIC/
βββ model_encoder.onnx # Policy encoder (ONNX, for deployment)
βββ model_decoder.onnx # Policy decoder (ONNX, for deployment)
βββ observation_config.yaml # Observation configuration (deployment)
βββ planner_sonic.onnx # Kinematic planner (ONNX)
βββ low_latency/
β βββ model_encoder.onnx # Low-latency policy encoder (ONNX)
β βββ model_decoder.onnx # Low-latency policy decoder (ONNX)
β βββ observation_config.yaml # Low-latency observation configuration
β βββ last.pt # Low-latency training checkpoint
β βββ config.yaml # Low-latency training config
β βββ model_config.yaml # Low-latency model config
βββ sonic_v1_1/
β βββ model_encoder.onnx # SONIC v1.1 policy encoder (ONNX)
β βββ model_decoder.onnx # SONIC v1.1 policy decoder (ONNX)
β βββ observation_config.yaml # Matching deployment observations
β βββ last.pt # SONIC v1.1 training checkpoint
β βββ config.yaml # Resolved training config
β βββ model_config.yaml # Model architecture config
βββ bones_seed_smpl/ # SMPL motion data (131K sequences, ~30GB split tar)
β βββ bones_seed_smpl.tar.part_aa
β βββ ...
β βββ bones_seed_smpl.tar.part_ag
βββ sonic_release/
β βββ last.pt # Training checkpoint (for eval/fine-tuning)
β βββ config.yaml # Training config
βββ sample_data/ # Sample motion data (1 walking sequence)
βββ robot_filtered/ # G1 retargeted motion
βββ soma_filtered/ # SOMA skeleton motion
βββ smpl_filtered/ # SMPL human motion
```
The download script places deployment files into the layout the deployment binary expects:
```
gear_sonic_deploy/
βββ policy/release/
β βββ model_encoder.onnx
β βββ model_decoder.onnx
β βββ observation_config.yaml
βββ policy/low_latency/
β βββ model_encoder.onnx
β βββ model_decoder.onnx
β βββ observation_config.yaml
βββ policy/sonic_v1_1/
β βββ model_encoder.onnx
β βββ model_decoder.onnx
β βββ observation_config.yaml
βββ planner/target_vel/V2/
βββ planner_sonic.onnx
```
---
## Authentication
The repository is **public** β no token required for downloading.
If you hit rate limits or need to access private forks:
```bash
# Option 1: CLI login (recommended β token is saved once)
hf login
# Option 2: environment variable
export HF_TOKEN="hf_..."
python download_from_hf.py
# Option 3: pass token directly
python download_from_hf.py --token hf_...
```
Get a free token at [huggingface.co/settings/tokens](https://huggingface.co/settings/tokens).
---
## Next steps
After downloading, follow the [Quick Start](quickstart.md) guide to run the
deployment stack in MuJoCo simulation or on real hardware.
|