AI Choreography

Peking University's Open-Source Motion Model Holds a 39.5-Second Run Without Drifting

November 24, 20260 views阅读中文原文
4. Evaluate first, simulate later

Beijing University's Open-Source Motion Model Holds a 39.5-Second Run Without Drifting

On 23 November, a Peking University-led team posted Motion Mamba 2.0 to arXiv and released the code, the weights and real-robot footage the same day. The headline number: on HiPHI retargeted to the Unitree G1 skeleton, a single generation stays on target for 39.52 seconds. Inference latency drops from 1685 ms to 276 ms, a 6.138× median speedup.

Anyone who works with dance or motion generation knows where it breaks. The first five seconds look great. By second 20 the feet slide. By second 30 the whole figure is gliding sideways like it is being pushed by wind. That is the failure this paper goes after.

TL;DR

  • What it is: a humanoid motion generator driven by text plus spatial goals, built to keep going without restarting.
  • Who made it: Peking University leads, with Korea University, Monash and NTU as co-authors, eight authors total.
  • What you get: Apache-2.0 code, a 1.32 GB MotionMamba2.pt on Hugging Face, and G1 hardware demos.
  • Key numbers: 39.52 s of continuous generation, 6.138× faster inference, 52 frames per window, 25 FPS.
  • Do not expect to run it tonight: Linux + CUDA + Python 3.11 only. Windows and Mac are not supported.

What it actually fixes

Autoregressive motion generation emits motion in chunks. Generate 52 frames, accept them, update the history, generate the next 52. The weak point is that "history" memory is short.

Old bottleneckWhat Motion Mamba 2.0 does
Attention cache only holds a short recent window, so a late instruction cannot refer to early motionCompressed motion history, state deltas and text features go into persistent content memory (PCM) slots that attention can always read
Recurrent state has to be re-aligned every window, which causes jitterMamba-3 recurrent state resumes from the last committed state instead of starting over
Every window reruns three classifier-free-guidance branches, which is slowCUDA Graph replay plus fused kernels strip out the repeated overhead

In plain terms: the old model was reciting from memory and forgot paragraph one by paragraph three. This one keeps a notebook it can flip back through.

Structurally it splits the job in two. First the root network decides where the body travels, then the body network decides how the limbs move. Spatial targets such as "walk to that point" go straight into the root network, and the body only has to follow. That split is also why instructions can be changed mid-stream.

The numbers, laid out

I checked each of these against the paper or the repository:

MetricValueWhere
Longest continuous rollout39.52 s (988 frames, 19 windows)arXiv abstract and eval scripts
Median complete-window latency1685.35 → 276.14 ms on an RTX 4090Paper abstract
Speedup6.138× with bitwise-identical outputsPaper abstract
Generation window52 frames at 25 FPS, about 2 secondsREADME
Training budget100,000 updates, global batch 512README
Weight file size1,322,358,662 bytes, about 1.32 GBHugging Face file listing
Code licenseApache-2.0GitHub repository

The ablation table is the interesting part. Take persistent content memory out and long-horizon performance drops hardest. The authors do not lead with this in the abstract; it sits in the appendix, which is where I found it.

How to use it

The bar is genuinely high, but the commands are short. The maintainers' minimal path is four steps:

```bash

1. Clone

git clone https://github.com/AIGeeksGroup/MotionMamba2.0

cd MotionMamba2.0

2. Build the environment (Python 3.11 + CUDA on Linux)

python3.11 -m venv .venv && source .venv/bin/activate

pip install torch && pip install --no-deps triton==3.5.1

pip install -e .

3. Download weights, then set two variables

MM2_CHECKPOINT -> MotionMamba2.pt

MM2_FRONTEND_DIR -> the codec and normalization stats under frontend/

4. Evaluate first, simulate later

python -m scripts.evaluate --check

python -m scripts.evaluate --domain all

```

The hardware demo is a separate install: the SONIC physics and policy stack, TensorRT, ONNX Runtime, Node/npm, wired up through visualization/download_assets.py and prepare_sonic.py. The Viser interface comes up on port 2333, and clicking the floor sets a waypoint.

Do not skip --check. It verifies the checkpoint fingerprint against the config, and skipping it turns later failures into unreadable ones.

Who it's for

  • Robotics teams choreographing motion: they need one continuous stream that accepts new instructions mid-run, not stitched clips.
  • Humanoid previsualization work: long walks that do not drift, with root and body controllable separately.
  • Researchers on long-horizon generation: eval scripts for all three benchmarks (retargeted HiPHI, BONES Seed, retargeted HumanML3D) ship in the repo.
  • Teams fine-tuning on their own data: Apache-2.0 code and a documented 100,000-update recipe.

Not a good fit

  • If you want music-to-dance video: the inputs are text and spatial goals. No audio conditioning, no beat alignment. You would need a video model on top.
  • If you only have a Mac or Windows box: Python 3.11 + CUDA + Linux, with no CPU path.
  • If you want a product out of the box: the simulation stack expects you to assemble SONIC yourself, and TensorRT version changes break it. This is not a pip-install-and-ship package.
  • If you just want to dance: this is research infrastructure, not a consumer tool.

Pitfalls: four places you will actually get stuck

One, the text encoder license. The motion weights are Apache-2.0, but the pipeline depends on LLM2Vec built on Llama-3-8B for text encoding. That piece has its own access gate and terms. Sort that out before any commercial use; do not assume the whole chain is open.

Two, hardware footage is not autonomy. In the demos the G1 is driven by model-generated motion streams while a human edits text prompts and clicks waypoints. That is closed-loop lab control, not a robot roaming a mall on its own.

Three, retargeting brings foot sliding with it. Training data is retargeted to the G1 skeleton from BONES Seed, HumanML3D and HiPHI, and retargeting itself introduces joint-limit violations and sliding feet. Physics simulation hides part of it. Real hardware does not.

Four, 6.138× is a conditional number. It is median window latency on an RTX 4090 with the CUDA Graph capture contract satisfied. Change the GPU, the driver or the batch and expect something else.

Cost and time

  • Money: code, weights and data are free. No subscription, and the paper is on arXiv.
  • Time: half a day to get the environment up, another half day to get evaluation passing, assuming you are comfortable with Linux and CUDA. First-time SONIC setup is a full day.
  • VRAM: the 1.32 GB checkpoint is small, but three guidance branches plus CUDA Graph capture put you in RTX 4090 territory, which is what the paper benchmarks.
  • Training: 100,000 updates at batch 512 is multi-GPU scale, not a laptop job.

Next step

If you only want to know whether this is worth tracking: spend 20 minutes tonight comparing the MotionMamba2.0.pt file page against the evaluation section of the README, and check whether the 988-frame tasks match the length you care about.

If they do, rent a Linux box with a 4090 and run --check.

Sources

  • arXiv paper (v1, 23 Nov 2026): https://arxiv.org/abs/2611.29897
  • GitHub repository (Apache-2.0): https://github.com/AIGeeksGroup/MotionMamba2.0
  • Project page with simulation and hardware demos: https://aigeeksgroup.github.io/MotionMamba2.0/
  • Hugging Face weights: https://huggingface.co/AIGeeksGroup/MotionMamba2.0
  • Hugging Face dataset: https://huggingface.co/datasets/AIGeeksGroup/MotionMamba2.0
  • explainx.ai report (24 Nov 2026): https://explainx.ai/blog/motion-mamba-2-unitree-g1-long-horizon-humanoid-control-november-2026
  • Blockchain.News report (24 Nov 2026): https://blockchain.news/news/motion-mamba-2-long-horizon-control

This article is compiled from multiple media reports, cross-checked against the paper, the GitHub repository and the Hugging Face file listing. Every figure above can be traced to those pages.

Sources

Comments

0 published
Log inorsign up to leave a comment.

Loading comments...