Skip to main content

Stable Library for evaluate and conduct world model research

Project description

stable-worldmodel

World Models Research Made Simple


Test license license

Overview

Stable World Model provides a streamlined framework for conducting world model research with reproducible data collection, flexible model training, and comprehensive evaluation tools. Built on top of Gymnasium, it offers vectorized environments, domain randomization, and integrated support for multiple planning algorithms.

Installation

Prerequisites

  • Python >= 3.10
  • CUDA-compatible GPU (recommended for training)

Quick Install

Using uv (recommended):

# Install uv
pip install uv

# Clone and install
git clone https://github.com/rbalestr-lab/stable-worldmodel.git
cd stable-worldmodel
uv pip install -e .

Using pip:

git clone https://github.com/rbalestr-lab/stable-worldmodel.git
cd stable-worldmodel
pip install -e .

Development Installation

For contributors and researchers developing new features:

uv pip install -e ".[dev,docs]"

This includes testing tools (pytest, coverage) and documentation generators (sphinx).

Architecture

stable_worldmodel/
├── envs/                   # Gymnasium environments
│   ├── pusht.py
│   ├── simple_point_maze.py
│   ├── two_room.py
│   └── ogbench_cube.py
├── solver/                 # Planning algorithms
│   ├── cem.py               # Cross-Entropy Method
│   ├── mppi.py              # Model Predictive Path Integral
│   ├── gd.py                # Gradient Descent
│   └── nevergrad.py         # Nevergrad
├── wm/                     # World model architectures
│   ├── dinowm.py            # DINO World Model
│   ├── dreamer.py           # Dreamer
│   └── tdmpc.py             # Temporal Difference MPC
├── policy.py
├── spaces.py               # Extended Gymnasium spaces
├── world.py
├── data.py
└── utils.py

Testing

We maintain high test coverage to ensure reliability:

# Run all tests
pytest

# Run with coverage report
pytest --cov=stable_worldmodel --cov-report=term-missing

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stable_worldmodel-0.0.1b1.tar.gz (165.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stable_worldmodel-0.0.1b1-py3-none-any.whl (143.0 kB view details)

Uploaded Python 3

File details

Details for the file stable_worldmodel-0.0.1b1.tar.gz.

File metadata

  • Download URL: stable_worldmodel-0.0.1b1.tar.gz
  • Upload date:
  • Size: 165.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for stable_worldmodel-0.0.1b1.tar.gz
Algorithm Hash digest
SHA256 9d9638b42e0051f0133c9ccf1c9ad294b48e4a101e15e0d712e9b6dd6e075c12
MD5 69fe05928c138f0990dc26f219c08854
BLAKE2b-256 913b6a5c74ac059bcce0d854edd1503d5122a1cafeb1c2d9cee95e33b23a8cad

See more details on using hashes here.

File details

Details for the file stable_worldmodel-0.0.1b1-py3-none-any.whl.

File metadata

  • Download URL: stable_worldmodel-0.0.1b1-py3-none-any.whl
  • Upload date:
  • Size: 143.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for stable_worldmodel-0.0.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ea27a8c3c0aed8c32fead2a93cec88d94e9731bce611b595b49024d561a6cb3
MD5 e91099aa7ad37d73b42a65c4a6e4284e
BLAKE2b-256 1884ad5b7014e07c0521b3147ee8f002628c44283721221ddb00671e9cf637f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page