Run this model with HF Jobs
Run SJTU-DENG-Lab/CoDance-robo on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/SJTU-DENG-Lab/CoDance-robo. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SJTU-DENG-Lab/CoDance-robo on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use SJTU-DENG-Lab/CoDance-robo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SJTU-DENG-Lab/CoDance-robo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("SJTU-DENG-Lab/CoDance-robo", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
Aligning Physical Reasoning and Video Generation via Coupled Reinforcement Learning
Yanzhe Hu1,2,* · Xiang Li1,* · Yuzheng Zhang3 · Qiuyue Li4 · Zhijie Deng1,†
1 Shanghai Jiao Tong University · 2 Huazhong University of Science and Technology
3 East China Normal University · 4 The Hong Kong Polytechnic University
* Equal contribution · † Corresponding author
CoDance trains a vision-language reasoner and a video generator together using feedback from filmed motion. Given a starting image and an instruction, CoDance-robo generates a video of the robot carrying out the action. Its frozen features can also guide a task-specific controller.

Figure 1. CoDance generations and benchmark results on Physics-IQ Verified, RBench and WorldArena.
Method
Starting from Cosmos3-Nano, CoDanceRL samples several descriptions of what might happen after a given frame, then generates several videos for each description. It compares each video with the recorded continuation using motion regions and point trajectories. Differences among videos for one description guide the generator. The mean reward for each description guides the reasoner. Method on the project page
Quick start
Download the Cosmos3-Nano configuration and tokenizer, then place the CoDance-robo weights in the same directory. The snapshot includes the shard indices and base_encoder.safetensors. The weights are released under OpenMDW-1.1. Base model · Weight license
from huggingface_hub import snapshot_download
weights = "weights/CoDance-robo"
snapshot_download(
"nvidia/Cosmos3-Nano",
local_dir=weights,
allow_patterns=["*.json", "*.txt", "*.jinja"],
ignore_patterns=["*.safetensors.index.json"],
)
snapshot_download("SJTU-DENG-Lab/CoDance-robo", local_dir=weights)
Results
RBench · Embodied video generation
CoDance-robo scores 67.9 on RBench. Its largest gain over Cosmos3-Nano is in manipulation, from 48.5 to 67.2. The evaluation covers 650 image–instruction pairs, with 50 per task category and 100 per robot embodiment. The mean weights all nine categories equally. SFT denotes supervised fine-tuning. RBench dataset
| RBench category | Cosmos3-Nano | Cosmos3-Nano + SFT | PF-Cosmos | Seedance 2.0 | CoDance-robo |
|---|---|---|---|---|---|
| Mean | 58.7 | 61.5 | 63.8 | 66.3 | 67.9 |
| Manipulation | 48.5 | 62.7 | 58.9 | 63.4 | 67.2 |
| Spatial | 57.1 | 53.6 | 69.7 | 59.0 | 72.6 |
| Multi-entity | 45.0 | 43.0 | 51.3 | 54.7 | 56.2 |
| Long-horizon | 57.9 | 56.6 | 60.8 | 66.5 | 67.7 |
| Reasoning | 45.3 | 47.5 | 53.0 | 54.5 | 56.7 |
| Single-arm | 64.5 | 71.8 | 69.3 | 72.8 | 70.0 |
| Dual-arm | 65.8 | 71.5 | 70.0 | 73.4 | 71.8 |
| Quadruped | 75.0 | 74.2 | 72.2 | 78.2 | 76.6 |
| Humanoid | 69.2 | 72.2 | 69.0 | 73.8 | 72.3 |
The CoDance-robo evaluation uses five-second clips at 1280 × 720 and 24 fps, with 50 denoising steps. In the lamp example below, the light goes out as the robot presses the switch. In the pouring example, the robot tilts the bottle above the glass and then brings it back toward upright.
WorldArena · Closed-loop control
CoDance-robo features yield 41.5% mean task success across two simulated tasks. The reasoner and video generator stay frozen. For each task, an inverse dynamics model learns to map generator features to robot action sequences from 40 RoboTwin 2.0 demonstrations. Each task is evaluated over 100 rollouts, with ten repetitions of each of ten held-out initial conditions. WorldArena benchmark
| Model | Adjust bottle | Click bell | Mean success |
|---|---|---|---|
| CoDance-robo | 34.0% | 49.0% | 41.5% |
| PhysisForcing | 22.0% | 26.0% | 24.0% |
| Cosmos3-Nano + SFT | 21.0% | 24.0% | 22.5% |
| WoW | 20.0% | 21.0% | 20.5% |
| TesserAct | 1.0% | 35.0% | 18.0% |
| Wan2.2-TI2V-5B | 12.0% | 20.0% | 16.0% |
| Cosmos3-Nano | 15.0% | 13.0% | 14.0% |
| RoboMaster | 8.0% | 20.0% | 14.0% |
Additional RoboTwin 2.0 tasks
The paper also evaluates three more tasks with a separately trained inverse dynamics model for each. The mean in this table covers these three tasks.
| Model | Lift pot | Press stapler | Shake bottle | Mean success |
|---|---|---|---|---|
| CoDance-robo | 37.0% | 41.0% | 49.0% | 42.3% |
| Cosmos3-Nano | 13.0% | 29.0% | 5.0% | 15.7% |
Citation
@misc{hu2026codance,
title = {Aligning Physical Reasoning and Video Generation via Coupled Reinforcement Learning},
author = {Yanzhe Hu and Xiang Li and Yuzheng Zhang and Qiuyue Li and Zhijie Deng},
year = {2026},
eprint = {2611.36916},
archivePrefix = {arXiv},
primaryClass = {cs.CV},
url = {https://arxiv.org/abs/2611.36916}
}
- Downloads last month
- -
Model tree for SJTU-DENG-Lab/CoDance-robo
Base model
nvidia/Cosmos3-Nano
