2026-11-26 15:40 UTC

Simulusion releases a unified PyTorch library for world models

state: seedheat: mediumuncertainty: mediumrelevance: mediumworld-models pytorch open-source model-based-reinforcement-learningParam Thakkar

What is this?

Simulusion is an MIT-licensed PyTorch library by Param Thakkar, formerly TorchWM, renamed for its 1.0 release and available from PyPI. Its repository and documentation describe a shared API and training workflow for world-model approaches including Dreamer, PlaNet, IRIS, DIAMOND, Genie, JEPA and DiT, alongside environment adapters, demos and some model checkpoints. The project was highlighted in a Show HN post on November 25, 2026. Evidence here is primarily the project’s own documentation and repository; independent evaluation or adoption is not established.

Why it matters

A common interface could lower the engineering cost of trying and comparing quite different world-model methods, and make components easier to reuse across simulated environments and some robot-data workflows. That is useful infrastructure for researchers and developers, but the supplied evidence does not establish independent performance, broad adoption, or a step-change in world-model capability.

Current assessment

New: Simulusion is presented as an installable, open-source PyTorch library consolidating multiple world-model families under shared model-creation, configuration and training interfaces. The project says it supports several simulation and robotics-related integrations, reproducible run metadata, export options, and demos; it also says some demos are deliberately small, laptop-GPU runs rather than paper-scale results. Its reported DreamerV3 task score and other demo outcomes are project claims, not independently verified results in the supplied evidence. The likely significance is practical: a consistent workflow may make experimentation, algorithm comparison and modular reuse easier, broadening access to this research area. Unknowns include code quality and maintenance over time, how faithfully each implementation reproduces its source method, and whether the unified workflow yields reliable comparisons. The search results offer no meaningful independent confirmation or adoption evidence.

Measured heat

now 0 pts/hpeak 3 pts/hcomments 0/hpeers p21momentum: steady2 platformsage 35h
points/hour across evidence Β· reading as of 2026-11-27 02:23:58.509736+11:00 Β· deterministic, not a model opinion

How the heat travelled

11-25 05:25 (minted)⭐ origin echo-reconstructedThe repository presents Simulusion as a modular PyTorch library that brings multiple world-model algorithms together under a shared API, wit
Param Thakkar on github (echo) Β· attributed from hn.story.50638565 Β· published time unknown
β€”
11-25 04:43first on hacker news Β· published Β· lag ?Show HN: Simulusion – DreamerV3, IRIS, Genie and other world models in PyTorch
paramthakkar
β€”
11-25 04:43amplified on hacker news πŸ‘‘hn.story.50638565
paramthakkar
peak 2 Β· 0 comments Β· 103% of case engagement
11-25 05:24our radar first saw it Β· lag ?discovery anchor: hn.story.50638565β€”
pace: p40 vs 1548 stories at the 24h mark (now 35h old) β€” ahead of 42loop-agent-operated-product-experiment (2.0x), behind agentfx-agent-animation-tool (0.7x)

Evidence (2) β€” ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Simulusion – DreamerV3, IRIS, Genie and other world models in PyTorch
Retrieved article excerpt

Open article Β· Retrieved 2026-11-25T05:24:53.923206+00:00

# Simulusion

[PyPI version](https://pypi.org/project/simulusion/)
[PyPI downloads](https://pypi.org/project/simulusion/)
[License: MIT](https://opensource.org/licenses/MIT)
[Documentation](https://paramthakkar123.github.io/simulusion/)
[CI](https://github.com/paramthakkar123/simulusion/actions/workflows/test.yml)

**Modular PyTorch library for world models β€” many algorithms, one consistent API.**

> **Formerly TorchWM.** The project was renamed to Simulusion for 1.0 and is
> published on PyPI as `simulusion`: `pip install simulusion`, then `import simulusion`.

**Simulusion brings the major world-model families together under a single PyTorch API.** Train Dreamer, PlaNet, JEPA, IRIS, DIAMOND, DiT, and Genie agents through `create_config` / `create_model` / `make_env`, or drop down to their encoders, decoders, and latent-dynamics backbones to compose your own architecture. Environment adapters (Gym/Gymnasium, DeepMind Control, MuJoCo, Brax, Atari, Unity ML-Agents) and ONNX / TorchScript / TensorRT export come built in.

## See it in action

Every model ships with a demo that trains from scratch on a laptop GPU (RTX
3050, 4 GB) and records what it learned. Most are one-to-two-hour runs, not
paper-scale results: the point is to show what each model does. DreamerV3's
joint-state run follows the paper's protocol for its task.

|  |  |
| --- | --- |
| [Dreamer](https://paramthakkar123.github.io/simulusion/gallery.html#gallery-dreamer) **Dreamer**: the real environment (left) beside the world model imagining it open loop (right). | [DIAMOND](https://paramthakkar123.github.io/simulusion/gallery.html#gallery-diamond) **DIAMOND**: Breakout in the emulator beside a diffusion model generating every frame itself. |
| [DreamerV3 from pixels](https://paramthakkar123.github.io/simulusion/gallery.html#gallery-dreamer-v3) **DreamerV3** from pixels: its world model tracks the cart and pole through 45 imagined steps. | [DreamerV3 from joint states](https://paramthakkar123.github.io/simulusion/gallery.html#gallery-dreamer-v3) **DreamerV3** from joint states, trained with the paper's protocol: swing-up return 866 of about 880. |
| [DreamerV3 imagining Boxing](https://paramthakkar123.github.io/simulusion/gallery.html#gallery-dreamer-v3) **DreamerV3** on Atari100k Boxing: the real game beside the world model imagining it from the policy's actions. | [DreamerV3 playing Boxing](https://paramthakkar123.github.io/simulusion/gallery.html#gallery-dreamer-v3) **DreamerV3** playing a full round of Boxing after 400K frames: it wins by 84 points (the paper reports 78). |
| [Genie](https://paramthakkar123.github.io/simulusion/gallery.html#gallery-genie) **Genie**: a real Sonic clip beside Genie regenerating it from the first frame, with actions it learned from unlabelled video. | [IRIS](https://paramthakkar123.github.io/simulusion/gallery.html#gallery-iris) **IRIS**: a policy boxing inside a Transformer world model made of discrete tokens. |
| [PlaNet](https://paramthakkar123.github.io/simulusion/gallery.html#gallery-planet) **PlaNet**: a latent model predicting the future while a CEM planner searches inside it. | [DiT](https://paramthakkar123.github.io/simulusion/gallery.html#gallery-dit) **DiT**: CIFAR-10 samples from a class-conditional Diffusion Transformer, one row per class. |

More clips, learning curves and the commands to reproduce each one are in the
[gallery](https://paramthakkar123.github.io/simulusion/gallery.html); the scripts live in [`demos/`](https://github.com/ParamThakkar123/simulusion/blob/main/demos).
The trained Dreamer, DreamerV2, PlaNet, IRIS, DiT and I-JEPA checkpoints are on
the Hugging Face Hub in the
[Simulusion demo models](https://huggingface.co/collections/simillusion/simulusion-demo-models-6ae0419992e0177bc1695362)
collection; each model card shows how to load it.

## Quick Start

```
# Install the core package from PyPI.
# This keeps environment integrations and experiment logging optional.
pip install simulusion

# With extras
pip install simulusion[gym]       # Gym/Gymnasium environments (runnable quick start)
pip install simulusion[dmc]       # DeepMind Control Suite (walker-walk, cheetah-run, ...)
                               # On CPython 3.13 also run: python -m simulusion.install_dmc
pip install simulusion[worldmodels] # Classic World Models (ConvVAE + CMA-ES controller)
pip install simulusion[ml-agents] # Unity ML-Agents
pip install simulusion[ml]        # TensorBoard, W&B logging
pip install simulusion[viz]       # Latent-space visualization (plotly, UMAP)
pip install simulusion[dev]       # Testing and linting

# Or add it to a uv-managed project.
uv add simulusion
```

Simulusion depends on PyTorch but does not force a single PyTorch wheel index. If you need a specific PyTorch build, install or add the PyTorch packages with the index recommended for your platform by the [PyTorch installation selector](https://pytorch.org/get-started/locally/):

```
# Example: CUDA 12.1 wheels. Choose a different index for CPU, ROCm, CUDA 11.x, CUDA 12.4+, or macOS.
uv add torch torchvision torchaudio --index https://download.pytorch.org/whl/cu121
```

Use the friendly top-level API for the common path. The example below runs on a
base `pip install simulusion[gym]` β€” no simulator downloads required:

```
import simulusion

# Trains a Dreamer agent on a Gymnasium task. Bump `total_steps` for real runs.
# `seed_steps` of random play come first and count towards `total_steps`; the
# final checkpoint is written to `<logdir>/ckpts/` when training finishes.
agent = simulusion.create_model(
    "dreamer",
    env="Pendulum-v1",
    env_backend="gym",
    seed_steps=1_000,
    total_steps=10_000,
)
agent.train()
```

To train on DeepMind Control tasks such as `walker-walk`, install the DMC extra
(`pip install simulusion[dmc]`) and use the default backend:

```
agent = simulusion.create_model("dreamer", env="walker-walk", total_steps=1_000_000)
agent.train()
```

### Swap the algorithm, keep the code

Every algorithm in the table below is reachable through the same factory, so
comparing them is a loop rather than a rewrite:

```
import simulusion

for algo in ["dreamer-v1", "dreamer-v2"]:
    agent = simulusion.create_model(
        algo, env="Pendulum-v1", env_backend="gym", total_steps=20_000
    )
    agent.train()
```

`examples/algorithm_comparison.py` runs exactly this and writes a comparison
plot.

### One trainer, one config file

Every family also trains on one shared `Trainer` from a YAML run config.
Device, precision, resuming, evaluation and checkpoints work the same for all
of them, and every run
writes its resolved `config.yaml` and `run.json` (git commit, package
versions) so it can be repeated:

```
simulusion train --config dreamer model.env=cheetah-run trainer.precision=bf16
simulusion train --config iris game=ALE/Breakout-v5
simulusion train genie data.path=data/clips trainer.max_steps=20000
simulusion train --config runs/<a previous run>/config.yaml     # repeat it
```

World models also train **without their agent**, from recorded episodes,
including robot data converted from LeRobot, and any
agent that speaks the `WorldModel` protocol can then plan with them:

```
simulusion datasets import lerobot datasets/pusht data/pusht
simulusion train --config dreamer-wm data.path=data/pusht
```

See the [trainer guide](https://paramthakkar123.github.io/simulusion/trainer_guide.html)
and the [data guide](https://paramthakkar123.github.io/simulusion/episodes_guide.html).

## Features

- Unified interfaces across world-model algorithms: one `WorldModel` protocol,
  one `Trainer`, one YAML run config per experiment
- One episode format for video, RL and robot data, with a LeRobot reader
- DreamerV3 with fixed hyperparameters across domains, and 12M-400M model-size presets
- Modular encoders, decoders, dynamics models, and backbones
- Training and inference utilities for model-based reinforcement learning
- Environment integrations for Gym/Gymnasium, Unity ML-Agents, MuJoCo, Brax, and robotics extras
- Optional logging, visualization, development, and documentation extras

## Architecture

```
flowchart LR
    subgraph API["simulusion API"]
        CFG["create_config()"]
        MDL["create_model()"]
        ENV["make_env()"]
    end

    subgraph CONFIGS["Configs"]
        DC["DreamerConfig / DreamerV3Config"]
        JC["JEPAConfig"]
        IC["IRISConfig"]
        GC["GenieConfig"]
        DIC["DiTConfig / DiamondConfig"]
    end

    subgraph AGENTS["Agents / Models"]
        DR["Dreamer / DreamerV1 / DreamerV2 / DreamerV3"]
        JP["JEPAAgent"]
        IR["IRISAgent"]
        GN["Genie"]
        DT["DiT / DIAMOND"]
    end

    subgraph BACKBONES["Backbones"]
        RSSM["RSSM / CategoricalRSSM / ModularRSSM"]
        VIT["VisionTransformer"]
        VQ["VQ-VAE / VideoTokenizer"]
        ST["STTransformer"]
        DIF["DDPM / DiT diffusion"]
    end

    subgraph ENVS["Environments"]
        GYM["Gym / Atari"]
        DMC["DeepMind Control"]
        MJ["MuJoCo"]
        BR["Brax"]
        UN["Unity ML-Agents"]
        ROB["Robotics"]
        more["..."]
    end

    subgraph EXPORT["Export"]
        ONNX["ONNX"]
        TS["TorchScript"]
        TRT["TensorRT"]
    end

    CFG --> CONFIGS
    MDL --> AGENTS
    ENV --> ENVS
    AGENTS --> BACKBONES
    AGENTS -.-> ENVS
    AGENTS --> EXPORT
```

 Loading

## Supported Algorithms

Every row is a registry entry β€” pass the name straight to `simulusion.create_model(...)`
or `simulusion.create_config(...)`. Run `simulusion.list_models()` for the live list.

| Name | Algorithm | Description | Key Features |
| --- | --- | --- | --- |
| `dreamer` | **Dreamer** | Model-based RL with latent dynamics (alias for `dreamer-v1`) | Imagination, actor-critic |
| `dreamer-v1` | **DreamerV1** | Latent imagination with Gaussian heads | Normal heads, standard KL |
| `dreamer-v2` | **DreamerV2** | Discrete latents for pixel control | Symlog two-hot heads, balanced KL |
| `dreamer-v3` | **DreamerV3** | One configuration across domains, pixels or state | Categorical latents with free bits, percentile return normalization, LaProp |
| `planet` | **PlaNet** | Latent planning from pixels, no explicit policy | RSSM, CEM planner |
| `modular-rssm` | **ModularRSSM** | Composable recurrent state-space model | Swappable priors/posteriors, custom heads |
| `iris` | **IRIS** | Sample-efficient RL with Transformers | Discrete VAEs, world models |
| `jepa` | **JEPA** | Self-supervised visual representations | Masked prediction, ViT |
| `dit` | **DiT** | Diffusion Transformer workflows | Patch embeddings, diffusion backbones |
| `diamond` | **DIAMOND** | Diffusion world model for pixel-control RL | EDM sampling, Atari imagination rollouts |
| `genie` | **Genie** | Generative interactive environments from video | Latent actions, spatiotemporal transformer |
| `genie-small` | **Genie (small)** | Development- and test-sized Genie | Same architecture, reduced width/depth |
| `genie-large` | **Genie (large)** | Scaled-up Genie variant | Higher capacity dynamics + tokenizer |

## Documentation

- [Full Documentation](https://paramthakkar123.github.io/simulusion/)
- [Installation Guide](https://paramthakkar123.github.io/simulusion/installation.html)
- [Training Guide](https://paramthakkar123.github.io/simulusion/training_guide.html)
- [API Reference](https://paramthakkar123.github.io/simulusion/api_reference.html)

## Community

- [Issue Tracker](https://github.com/paramthakkar123/simulusion/issues)
- [Discussions](https://github.com/paramthakkar123/simulusion/discussions)
- [PyPI](https://pypi.org/project/simulusion/)
- [Contributing Guide](https://github.com/ParamThakkar123/simulusion/blob/main/CONTRIBUTING.md)
- [Code of Conduct](https://github.com/ParamThakkar123/simulusion/blob/main/CODE_OF_CONDUCT.md)

> Simulusion follows [semantic versioning](https://semver.org/) as of 1.0.0. The
> public API β€” everything listed in the [Public API reference](https://par
paramthakkar20
🟧 echo.github ⭐The repository presents Simulusion as a modular PyTorch library that brings multiple world-model algorithms together under a shared API, witParam Thakkarβ€”β€”

Interpretation history

Decision trace