SuperAPIAI Directory

stable-worldmodel

github.com · AI developer platforms

stable-worldmodel is a platform for reproducible world model research and evaluation, developed by galilai-group. It provides a unified interface covering the three stages of world model research: data collection, training, and evaluation based on model predictive control (MPC), and supports a large number of standardized environments. The platform includes reference implementations of common baseline models and planning solvers, allowing research code to focus on the models and objectives themselves. On the data side, the default dataset format is based on the Lance stack (lancedb, pylance, pyarrow), provided separately as an optional dependency; it also supports LeRobot datasets (requires Python 3.12+, installed via pip install 'stable-worldmodel[lerobot]'). Datasets and checkpoints are stored by default in $STABLEWM_HOME (default ~/.stable_worldmodel/) and can be customized. Environments come from the DeepMind Control Suite, Gymnasium classic control, OGBench, Craftax, the Arcade Learning Environment (100+ Atari games), and classic world model benchmarks (Two-Room, PushT). Most environments include independently controllable visual and physical variation factors, making it easy to evaluate zero-shot generalization. After installation, the swm command-line tool is provided for inspecting/converting datasets, environments, and checkpoints. The library is under active development, and the API may change between minor versions.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

stable-worldmodel is an open-source platform for world model research, designed to provide reproducible research and evaluation workflows. It is maintained by galilai-group, with code hosted on GitHub.

Purpose The platform provides a single, unified interface for the three core stages of world model research—data collection, training, and evaluation based on model predictive control (MPC)—and covers a large number of standardized environments. It includes reference implementations of common baseline models and planning solvers, allowing research code to focus on the models and objectives themselves rather than infrastructure.

Key capabilities

  • Unified interface: integrates data collection, training, and evaluation workflows.
  • Standardized environments: environments come from the DeepMind Control Suite, Gymnasium classic control, OGBench, Craftax, the Arcade Learning Environment (100+ Atari games), and classic world model benchmarks (Two-Room, PushT). Most environments include independently controllable visual and physical variation factors (such as lighting, texture, dynamics, morphology), making it easy to evaluate zero-shot generalization to distribution shifts without additional setup. Adding a new environment only requires conforming to the Gymnasium interface.
  • Reference implementations: reference implementations are provided in scripts/train/, lewm.py implements LeWM, and prejepa.py reproduces DINO-WM.
  • Dataset format: the default dataset format is based on the Lance stack (lancedb, pylance, pyarrow), provided as a separate optional dependency, avoiding the installation of approximately 410 MB of native wheels for users who only need solvers and world models. It supports LeRobot datasets (requires Python 3.12+, installed via pip install 'stable-worldmodel[lerobot]').
  • Format registry: recording, loading, and conversion are all handled through a small format registry, allowing selection of a backend matching the trade-offs or registration of your own backend. Each writer accepts a mode parameter ('append' by default, 'overwrite', 'error'); rerunning world.collect extends the existing dataset rather than failing.
  • Command-line interface: after installation, the swm command is provided for inspecting/converting datasets, environments, and checkpoints without writing code.
  • Storage: datasetsand checkpoints are stored in $STABLEWM_HOME (defaults to ~/.stable_worldmodel/), which can be overridden via an environment variable.

Usage Installation: can be installed via pip, with data-related dependencies provided as an extra ([data]), and LeRobot support can be installed via pip install 'stable-worldmodel[lerobot]'. Installing from source (development): refer to the repository instructions. Quick Start: the repository provides a Quick Start guide. Training: refer to the implementations in scripts/train/, or train directly using HuggingFace object storage without downloading the dataset locally (see the notebook). Evaluation: use the built-in solvers and baselines for MPC-based evaluation. Documentation: full documentation is available at galilai-group.github.io/stable-worldmodel, including API reference, tutorials, and guides.

Use Cases Suitable for world model research, including data collection, model training, planning solver evaluation, zero-shot generalization testing, etc. Suitable for researchers who need standardized environments and reproducible evaluation.

Limitations The library is under active development, and the API may change between minor versions. Some features (such as LeRobot dataset support) require Python 3.12+. Data-related dependencies are large (about 410 MB) and are installed as an optional extra.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools