← All posts

The First Exam For World Models

Qian Zhang

Why Grid9

Training a world model on a consumer GPU has been hard: the usual datasets take hours to days on large GPUs before you see a single number. And one success rate does not tell you whether a model can handle different kinds of problems.

So we are releasing Grid9, a dataset built to be as easy to train on as possible while still being a real challenge. It has six 9×9 grid worlds, each adding one problem a world model has to solve. A level trains on an RTX 3060, and every model is scored by planning in the real environment, whose dynamics are known exactly, so you can check an idea in minutes and a failure points to one cause.

LevelDatasetWhat it tests
L0grid9-l0-emptyPlain movement on an empty board
L1grid9-l1-mazeWalls that force detours
L2grid9-l2-distractorIgnoring motion the actions do not cause
L3grid9-l3-pushPushing a block: sparse contact
L4grid9-l4-stochasticMoves that slip half the time
L5grid9-l5-windA hidden wind the frame does not show
Figure 1. What the levels reveal. On L0–L3, every state laid out by its exact move distances (Ideal), next to the learned latents of LeWM and LpWM (top two principal components), while an agent walks through the real world. ρ: rank correlation between latent and move distances; nbr: share of nearest latent neighbours that are one move away.

Using it

Grid9 ships with CleanJepa, our open-source library of JEPA world models in plain PyTorch. From install to a planning score takes four commands:

git clone https://github.com/HappyFox001/CleanJepa.git && cd CleanJepa
pip install -e ".[wm]"
python recipes/train_wm.py --preset lewm --frameskip 1 --amp bf16 \
    --data CleanJepa/grid9-l1-maze/grid_l1.h5 --save-dir runs/grid9_l1
python recipes/eval_grid9.py --ckpt runs/grid9_l1/epoch_10.pt --level l1

--data downloads the level from the Hugging Face Hub on first use. eval_grid9.py plans towards goal frames in the real world and reports the success rate next to random actions on the same tasks. Change --level and the dataset to take another level, or --preset to try another method.

Citation

If you find this work useful, please cite it as:

@misc{zhang2026first,
  title  = {{The First Exam For World Models}},
  author = {Zhang, Qian},
  year   = {2026},
  url    = {https://happyfox.dev/blog/the-first-exam-for-world-models/},
  note   = {Blog post}
}
← All posts