r/learnmachinelearning • • 27d ago

Project I built a library to learn world models hands-on. Every model trains on a laptop GPU in 1–2 hours

When I started learning about world models (Dreamer, IRIS, Genie…), the hardest part was that every paper's code was huge and different. So I built Simulusion: one PyTorch library where they all share the same structure, and each one has a demo small enough to run on a 4 GB laptop GPU.

If you're learning, you can:
- Train a Dreamer agent on Pendulum in a few lines and watch it "imagine" the future
- Swap "dreamer" for "planet" or "iris" and compare, since the code stays the same
- Read the world models guide for how each family works: recurrent latents, tokens, diffusion
- Open the components (RSSM, VQ-VAE, diffusion) to see how the pieces fit

import simulusion
agent = simulusion.create_model("dreamer", env="Pendulum-v1", env_backend="gym", total_steps=10_000)
agent.train()

It's open source (MIT), and it's built so new world models can be added, so it's also a good first-contribution project if you want to implement one yourself.

Github: https://github.com/paramthakkar123/simulusion
Website: https://simulusion.vercel.app/

10 Upvotes

0 comments sorted by