Supermimic - Pytorch (wip)
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()
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},
}
Metadata
Release files for supermimic-pytorch 0.0.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| supermimic_pytorch-0.0.22.tar.gz | 15.3 kB | Without provenance | Details for supermimic_pytorch-0.0.22.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| supermimic_pytorch-0.0.22-py3-none-any.whl | Python 3 | none | any | Details for supermimic_pytorch-0.0.22-py3-none-any.whl |
Total release size: 32.2 kB
Release files / supermimic_pytorch-0.0.22.tar.gz
| Download URL | supermimic_pytorch-0.0.22.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bcc28e939789f4050034963a386d0dca4f7d7ac1d5b6e116b3aac6c5d5ee9b1
|
|
BLAKE2b-256 checksum How to use checksums |
5f5f144daf89cb0616b87f9eac7c35772a8a663e289183edf21c9cfa4b96d170
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / supermimic_pytorch-0.0.22-py3-none-any.whl
| Download URL | supermimic_pytorch-0.0.22-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
326e7afd4bc9489bb2bcf3dbd8c263882520375ef4d0c2f2adf87eaaf01941e6
|
|
BLAKE2b-256 checksum How to use checksums |
ab28ca6747cd2de5676d2770fe4937ed84961c3707adb83aca1bd9f794501500
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Security for supermimic-pytorch 0.0.22
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.