nano-world-model

simchowitzlabpublicMIT活跃维护

极简但开箱即用的世界模型研究代码库,集成扩散模型、视频生成与模型预测控制,方便快速复现和推进世界模型实验。

A Minimalist, Batteries-included Repository for Advancing World Model Science.

暂无版本772star52fork同步于 2026-11-07 07:30 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/simchowitzlabpublic/nano-world-model.git
cd nano-world-model
./nanowm sync
./nanowm doctor --require-cuda
硬件要求按 README 说明

README 未说明具体显存要求;环境基于 Linux x86_64 与 CUDA wheels,quickstart 需选择 GPU 运行时并用 --require-cuda 校验。

需要 CUDA
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

极简的视频世界模型训练库,基于 diffusion-forcing,开箱即用

极简但开箱即用的世界模型研究代码库,集成扩散模型、视频生成与模型预测控制,方便快速复现和推进世界模型实验。

核心能力

  • 用 diffusion-forcing 训练视频世界模型
  • Hydra 配置统一管理训练、验证与评估流程
  • 提供预测目标、动作注入、模型规模的对照消融
  • 内置长程 rollout、视频转 3D 点云与 MPC 规划
  • 开源全部模型 checkpoint 与评估指标

容易踩的坑

需先安装 uv,且环境锁定在 Linux x86_64;RT-1/LeRobot 依赖要额外执行 ./nanowm sync --extra rt1,且不要安装 lerobot-datasets;FVD 评估需手动下载 i3d_torchscript.pt,数据集也要按 docs/datasets 自行下载并设置 DATASET_DIR 等环境变量。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    A minimalist repository for training video world models based on diffusion-forcing.

    3×4 rollout grid

    News and Updates

    • 🚩 2026-05: We release 📕 Technical Report on arxiv, check it out!

    • 🚩 2026-05: We release all model checkpoints on 🤗 huggingface.

    • 🚩 2026-05: We release code for training, inference and evaluation.

    Key Features

    • 🚀 Instant Start — Minimal dependencies, easy data loading. From clone to first rollout in minutes.
    • 🛠️ Unified Pipeline — Training, Validation, Evaluation; All managed with clean hydra-based configuration systems.
    • 🔬 Scientific Transparency — Clean codebase with head-to-head ablations across prediction target, action injection, and model scale; Fully open-source, including model checkpoints.
    • 🤖 Diverse Applications — Long-horizon rollouts, rollout to 3d point clouds, planning (MPC) out of the box.

    🚀 Quick Start

    Try the Colab quickstart notebook to download the official Point Maze checkpoint and preview predictions beside recorded validation frames. Select a GPU runtime, then run all cells; the notebook uses the same lock below.

    Install uv first. The supported Linux x86_64 environment uses one committed lock for Python, PyTorch, CUDA wheels, and all dependencies. See environment setup and verification.

    git clone https://github.com/simchowitzlabpublic/nano-world-model.git
    cd nano-world-model
    ./nanowm sync
    ./nanowm doctor --require-cuda
    

    For the locked RT-1/LeRobot dependencies, run ./nanowm sync --extra rt1. Do not install lerobot-datasets; it is a dataset format version, not a PyPI package.

    Set data + results paths (or use the gitignored src/configs/local/paths.yaml template — see docs/config_system.md):

    export DATASET_DIR=/path/to/dino_wm_data       # DINO-WM envs (point_maze, pusht, ...)
    export CSGO_DATA_DIR=/path/to/csgo             # CSGO HDF5 files
    export RT1_DATA_ROOT=/path/to/rt1_fractal      # RT-1 LeRobot mirror (optional)
    export RESULTS_DIR=/path/to/results            # checkpoints + logs land here
    

    Download the i3d torchscript used by FVD evaluation (FID uses InceptionV3, which downloads itself on first use):

    mkdir -p pretrained_models/i3d && curl -L \
        "https://www.dropbox.com/scl/fi/c5nfs6c422nlpj880jbmh/i3d_torchscript.pt?rlkey=x5xcjsrz0818i4qxyoglp5bb8&dl=1" \
        -o pretrained_models/i3d/i3d_torchscript.pt
    

    For dataset downloads (DINO-WM, RT-1, CSGO), see docs/datasets/README.md.

    🥷 Train your first model

    DINO-WM PushT, NanoWM-B/2, default settings (pred-v · additive injection · cosine + ZTSNR):

    ./nanowm python src/main.py experiment=dino_wm_pusht dataset=dino_wm/pusht model=nanowm_b2
    

    CSGO with the L/2 model:

    ./nanowm python src/main.py experiment=csgo dataset=game/csgo model=nanowm_l2_csgo
    

    RT-1 (fractal) main run:

    ./nanowm python src/main.py experiment=rt1 dataset=rt1/rt1 model=nanowm_b2
    

    For reproducibility, we provide example scripts in src/scripts/. See docs/training.md for the full training guide, design choices, and ablation tables.

    📦 Pretrained Checkpoints

    Best-config runs (pred-v · additive · cosine + ZTSNR · NanoWM-B/2 unless noted):

    DomainCheckpointSteps
    DINO-WM Point Maze🤗 nanowm-b2-dino-wm-point-maze-30k30k
    DINO-WM Wall🤗 nanowm-b2-dino-wm-wall-15k15k
    DINO-WM Rope🤗 nanowm-b2-dino-wm-rope-15k15k
    DINO-WM Granular🤗 nanowm-b2-dino-wm-granular-15k15k
    DINO-WM PushT🤗 nanowm-b2-dino-wm-pusht-100k100k
    RT-1 (fractal)🤗 nanowm-b2-rt1-300k300k
    CSGO🤗 nanowm-l2-csgo-100k (NanoWM-L/2)100k

    We also provide RT-1 ablation tables with HF checkpoint paths. See docs/training.md#design-choices for the full table and ablation numbers.

    🎬 Sample Predictions

    CSGO 50-frame auto-regressive long-rollouts (NanoWM-L/2, 100k):

    CSGO 50-frame autoregressive long rollout

    Quantitative Metrics Evaluated on 256 fixed samples (seed=42), 250 DDIM steps, sequential scheduling (frame-by-frame autoregressive denoising).

    DatasetStepsPSNR ↑SSIM ↑LPIPS ↓FID ↓
    Point Maze30k36.740.9840.0199.66
    Wall15k34.050.9940.0102.64
    PushT100k33.190.9820.01613.63
    Rope15k31.630.9530.05635.20
    Granular15k26.080.9170.07340.05
    RT-1300k24.360.7870.18035.08

    Full per-domain numbers and methodology in docs/evaluation.md.

    🧭 Applications

    NanoWM rollouts can be used directly for downstream applications, including long-horizon generation, video-to-3D reconstruction, and MPC-style planning.

    Video-to-3D point cloud demo

    📚 Documentation

    🙏 Acknowledgements

    We build upon a number of existing codebases: Latte, Vid2World, DFoT, and DINO-WM. More broadly, this repository draws inspirations and design principles from NanoGPT, NanoChat, and Boyuan Chen's Research Template. We sincerely thank the codebases above for open-sourcing their works.

    📝 Citation

    If you find this repository useful in your research, please consider citing:

    @misc{huang2026nanoworldmodels,
      title={Nano World Models: A Minimalist Implementation of Future Video Prediction},
      author={Siqiao Huang and Partha Kaushik and Michael Chen and Hengkai Pan and Omar Chehab and Fernando Moreno-Pino and Max Simchowitz},
      year={2026},
      eprint={2605.23993},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2605.23993},
    }
    

    ✨ Star History