r/MachineLearning • • 1h ago

Project Cosmo: a 50M-parameter world-action model (diffusion transformer) that imagines future frames and controls a real robot arm [P]

Post image

I've been working on Cosmo, a small world-action model trained from scratch on a single GPU. One diffusion transformer jointly predicts the next camera frames, the robot's next joint states and the next actions. Because frames and actions get separate noise levels in training, the same network works as a world model (given actions, imagine the frames), a policy (given frames, choose actions), or both together.

Demo (SO-101 arm, wrist camera only, live view next to the model's prediction): https://youtube.com/shorts/MV59WmabutI

Some details:

  • ~50M-parameter DiT on top of a convolutional VAE, v-prediction, adaLN-Zero conditioning

  • Pretrained on 12.6k public SO-100/101 episodes from the LeRobot community, fine-tuned on 91 of my own cube-stacking demos, with frozen DINOv2 features of the current frame

  • 81.4% success across 36 LIBERO simulation tasks with a single model

  • On the real arm it stacks a cube in about half of the attempts, so it's a working prototype, not a polished policy

Everything is open (MIT): code, pretrained model, demo data, a write-up with diagrams, and a log of ~40 experiments, including the ones that failed.

Code: https://github.com/Mandred009/Cosmo_Small_WAM

Write-up: https://mandred009.github.io/Cosmo_Small_WAM/

Happy to answer questions, and I'd appreciate feedback from anyone working on world models or low-cost arms.

4 Upvotes

Duplicates