Skip to main content

Supermimic - Pytorch

Unofficial implementation of Supermimic, Scaling Humanoid Whole-Body Control with One Differentiable World Model, from Qiayuan Liao et al. of Berkeley

Install

$ pip install supermimic-pytorch

Usage

import torch
from torch import nn
from x_mlps_pytorch import MLP
from supermimic_pytorch import WorldModel, SuperMimic

world_model = WorldModel(
    dim_state = 71,
    dim_action = 29,
    dim_sim_context = 33
)

actor = MLP(71 + 71, 2048, 1024, 512, 256, 29, activation = nn.GELU())

supermimic = SuperMimic(
    actor = actor,
    world_model = world_model,
    observation_noise_scale = 0.05
)

# logged transitions from any non-differentiable simulator

state = torch.randn(4, 71)
sim_context = torch.randn(4, 33)
logged_actions = torch.randn(4, 32, 29)
logged_next_states = torch.randn(4, 32, 71)
logged_terminals = torch.randint(0, 2, (4, 32)).float()

# fit world model autoregressively on k = 32 window

wm_loss, _, _ = world_model.rollout(
    state,
    logged_actions,
    logged_next_states,
    sim_context = sim_context,
    next_terminals = logged_terminals
)
wm_loss.backward()

# imagine H = 32 steps through frozen world model and train actor via bptt

goals = torch.randn(4, 33, 71)

rollout = supermimic(
    state,
    sim_context = sim_context,
    actor_goals = goals,
    num_rollout_timesteps = 32
)

rewards = -(rollout.states[:, 1:] - goals[:, :-1]).square().mean(dim = -1)

actor_loss = supermimic.actor_loss(
    rewards,
    rollout.terminals
)

actor_loss.backward()

Experiments

Toy HalfCheetah-v5 experiment - trains an x-ppo expert, then tracks an 8-dim pose subset (no velocities or task reward) through the learned world model

$ uv run train_cheetah.py

RUKA-v2 hand experiment - tracks real human hand motion under MuJoCo torque control

$ uv run train_ruka_hand.py

Unitree Go2 quadruped experiment - tracks held-out real German Shepherd motion capture under MuJoCo rigid-body ground contact physics

$ uv run train_unitree_dog.py

Citations

@misc{liao2026supermimicscalinghumanoidwholebody,
    title   = {SuperMimic: Scaling Humanoid Whole-Body Control with One Differentiable World Model},
    author  = {Qiayuan Liao and Yiyang Shao and Junfeng Long and Kevin Zakka and Roberto Horowitz and Pieter Abbeel and Koushil Sreenath},
    year    = {2026},
    eprint  = {2610.28480},
    archivePrefix = {arXiv},
    primaryClass = {cs.RO},
    url     = {https://arxiv.org/abs/2610.28480},
}
@misc{xu2022acceleratedpolicylearningparallel,
    title   = {Accelerated Policy Learning with Parallel Differentiable Simulation},
    author  = {Jie Xu and Viktor Makoviychuk and Yashraj Narang and Fabio Ramos and Wojciech Matusik and Animesh Garg and Miles Macklin},
    year    = {2022},
    eprint  = {2204.07137},
    archivePrefix = {arXiv},
    primaryClass = {cs.LG},
    url     = {https://arxiv.org/abs/2204.07137},
}
@misc{georgiev2025pwmpolicylearningmultitask,
    title    = {PWM: Policy Learning with Multi-Task World Models},
    author   = {Ignat Georgiev and Varun Giridhar and Nicklas Hansen and Animesh Garg},
    year     = {2025},
    eprint   = {2407.02466},
    archivePrefix = {arXiv},
    primaryClass = {cs.LG},
    url      =  {https://arxiv.org/abs/2407.02466},
}
@article{Peng2021AMPAM,
    title   = {AMP: Adversarial Motion Priors for Stylized Physics-Based Character Control},
    author  = {Xue Bin Peng and Ze Ma and Pieter Abbeel and Sergey Levine and Angjoo Kanazawa},
    year    = {2021},
    eprint  = {2104.02180},
    archivePrefix = {arXiv},
    primaryClass = {cs.GR},
    url     = {https://arxiv.org/abs/2104.02180},
}
@misc{gladstone2026explorativemodelingunlockingpretraining,
    title   = {Explorative Modeling: Unlocking a Third Pretraining Axis and End-to-End Generation},
    author  = {Alexi Gladstone and Heng Ji and Yilun Du},
    year    = {2026},
    eprint  = {2607.27372},
    archivePrefix = {arXiv},
    primaryClass = {cs.LG},
    url     = {https://arxiv.org/abs/2607.27372},
}
@misc{jia2025antitheticnoisediffusionmodels,
    title   = {Antithetic Noise in Diffusion Models},
    author  = {Jing Jia and Sifan Liu and Bowen Song and Wei Yuan and Liyue Shen and Guanyang Wang},
    year    = {2025},
    eprint  = {2506.06185},
    archivePrefix = {arXiv},
    primaryClass = {cs.LG},
    url     = {https://arxiv.org/abs/2506.06185},
}
@misc{zorin2025rukarethinkingdesignhumanoid,
    title   = {RUKA: Rethinking the Design of Humanoid Hands with Learning},
    author  = {Anya Zorin and Irmak Guzey and Billy Yan and Aadhithya Iyer and Lisa Kondrich and Nikhil X. Bhattasali and Lerrel Pinto},
    year    = {2025},
    eprint  = {2504.13165},
    archivePrefix = {arXiv},
    primaryClass = {cs.RO},
    url     = {https://arxiv.org/abs/2504.13165},
}
@misc{liu2026rukav2tendondrivenopensource,
    title   = {Ruka-v2: Tendon Driven Open-Source Dexterous Hand with Wrist and Abduction for Robot Learning},
    author  = {Xinqi Lucas Liu and Ruoxi Hu and Alejandro Ojeda Olarte and Zhuoran Chen and Kenny Ma and Charles Cheng Ji and Lerrel Pinto and Raunaq Bhirangi and Irmak Guzey},
    year    = {2026},
    eprint  = {2603.26660},
    archivePrefix = {arXiv},
    primaryClass = {cs.RO},
    url     = {https://arxiv.org/abs/2603.26660},
}
@inproceedings{peng2020learningagileroboticlocomotion,
    title     = {Learning Agile Robotic Locomotion Skills by Imitating Animals},
    author    = {Xue Bin Peng and Erwin Coumans and Tingnan Zhang and Tsang-Wei Edward Lee and Jie Tan and Sergey Levine},
    booktitle = {Robotics: Science and Systems (RSS)},
    year      = {2020},
    eprint    = {2004.00784},
    archivePrefix = {arXiv},
    primaryClass = {cs.RO},
    url       = {https://arxiv.org/abs/2004.00784},
}
@article{tessler2024maskedmimic,
    title   = {MaskedMimic: Unified Physics-Based Character Control Through Masked Motion Inpainting},
    author  = {Chen Tessler and Yunrong Guo and Ofir Nabati and Gal Chechik and Xue Bin Peng},
    journal = {ACM Transactions on Graphics (TOG)},
    volume  = {43},
    number  = {6},
    year    = {2024},
    eprint  = {2409.14393},
    archivePrefix = {arXiv},
    primaryClass = {cs.GR},
    url     = {https://arxiv.org/abs/2409.14393},
}

Metadata

Release files for supermimic-pytorch 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for supermimic-pytorch 0.1.4
File Size Uploaded Provenance Actions
supermimic_pytorch-0.1.4.tar.gz 66.7 kB Without provenance Details for supermimic_pytorch-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for supermimic-pytorch 0.1.4
File Interpreter ABI Platform Actions
supermimic_pytorch-0.1.4-py3-none-any.whl Python 3 none any Details for supermimic_pytorch-0.1.4-py3-none-any.whl

Total release size: 137.3 kB

Release files / supermimic_pytorch-0.1.4.tar.gz

Download URL supermimic_pytorch-0.1.4.tar.gz
Size 66.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8a59422ab076c5a7d61292a854bf7bc6807cff2537bab1f1adfbdecfc664020c
BLAKE2b-256 checksum
How to use checksums
5628e4becfcf6de260490420631a2d1c94bbefa90e81424ae043f1d1bed3c5a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / supermimic_pytorch-0.1.4-py3-none-any.whl

Download URL supermimic_pytorch-0.1.4-py3-none-any.whl
Size 70.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9cf1a2c187c067507d837c507d96d05e8f57ea82f0ef77491dabf18d489e00f
BLAKE2b-256 checksum
How to use checksums
f4fcafaeb8c4559c630d6897a7638f17d1b0bf0db137da90f6ca73f43aa21a38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Security for supermimic-pytorch 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page