GitHub

Train a world model in under 10 minutes for $0.1 of compute, and play it!

Every frame below is generated by a 14M-parameter world model on your GPU, one action at a time. Train your own, autoresearch style, and beat ours.

now playing: iteration 3 by crownMaharishiva

autoresearch you can play

Point your coding agent at tinywmcraft: it trains a world model in 10 minutes, scores it, and tries again. Push the score up, then play the model you made: walk around inside it, craft, fight, and see what it gets wrong.

Beat 0.562 and yours is iteration 4: the crown goes next to your GitHub login, and the player on this page switches to your model. Paste this into your coding agent:

>/goal Clone https://github.com/Maharishiva/tinywmcraft, read program.md, get a GPU (a Google Colab A100 works: uv tool install google-colab-cli), beat the best world model under the rules on the three-seed mean, and only then open a pull request.
paste into Codex, Claude Code or any coding agent

The best so far, by the score: how close imagined play comes to the real game in looks, game logic and memory, and how well the model predicts rewards and deaths, from 0 for a trivial model to 1 for the real game.

  1. 1crownMaharishiva0.562 ± 0.017iteration 3 · train.py: shortcut loss, the heads' gradient into the trunk cut to a tenth in the second half, no hard-window mining, 1/8 game-start windows, two fused kernels, 349 lines
  2. 2Maharishiva0.463 ± 0.023iteration 2 · tile transformer tokenizer trained on clean, half-masked and noised frames, fused Pallas kernels, hard-window mining, half the windows from game starts, symlog two-hot reward head
  3. 3Maharishiva0.287 ± 0.019iteration 1 · train_tiny.py: the whole model in 178 lines, no custom kernels
gFVD of 698 training runs over 8 days: the accepted recipe steps down from 61.3 to 42.5
Our own autoresearch loop while the benchmark was being built: 698 runs in 8 days, ranked on gFVD alone (lower is better), on development data and an earlier eval. Now it is your agent's turn, on the full score.
the benchmark: score over time, every entry, rules, metrics

diamond speedrun

Get a diamond inside the world model, in the player above, in the fewest steps. The fastest run posted before 24 December 2026 (PST) wins a paper copy of Sutton & Barto's Reinforcement Learning. Press save clip, then post it in the discussion and on X. Rules: diamond_speedrun.md. Found a funny glitch? Post it in the glitch discussion.

the road to a diamond

wood table wood sword wood pickaxe stone coal stone pickaxe stone sword place stone furnace iron iron pickaxe iron sword diamond sapling place plant eat plant drink eat cow zombie skeleton wake up
crafting recipe book
makeneedswhere
place_table table2 woodon an open tile
make_wood_pickaxe wood pickaxe1 woodnext to a table; mines stone and coal
make_wood_sword wood sword1 woodnext to a table
make_stone_pickaxe stone pickaxe1 wood 1 stonenext to a table; mines iron
make_stone_sword stone sword1 wood 1 stonenext to a table
place_furnace furnace1 stoneon an open tile
make_iron_pickaxe iron pickaxe1 wood 1 stone 1 coal 1 ironnext to a table and a furnace; mines diamonds
make_iron_sword iron sword1 wood 1 stone 1 coal 1 ironnext to a table and a furnace
place_stone place stone1 stoneon grass, sand, path, water or lava
place_plant plant1 saplingon grass

Wood comes from trees by hand, saplings from grass (1 hit in 10); stone and coal need a wood pickaxe, iron a stone pickaxe, diamonds an iron pickaxe. "Next to" is one of the 8 tiles around you. These are the real game's rules: the world model learned them from pixels and does not always keep them. In the real game, the first unlock of each of the 22 achievements is worth +1.

how it works

tinywmcraft is a world model of Craftax-Classic, a 2D Minecraft, learned from scratch from pixels and actions alone. Given a history of frames and an action, it generates the next frame, the reward and whether the episode ends; feed its own frames back in and you can play inside it. Every world in the player starts from a first frame the model imagines from noise: nothing is replayed. 13.9M parameters (5.2M tokenizer, 8.6M world model), trained cold in under 10 minutes on one A100, about $0.1 of compute.

Colab Pro: $9.99 for 100 compute units, and a 40 GB A100 uses about 5.4 an hour (~$0.55/h). A full submission, three seeds with their evals, is under $0.5.

Frames go through the encoder to 4×4×32 latents, the world model denoises the newest latent in eight steps conditioned on the action, and the decoder shows the frame at every step
What runs on every action. No game engine and no game state: the encoder turns past frames into 4×4×32 latents, the world model denoises the next latent in eight steps conditioned on your action, and the decoder draws it.
inside the model: tokenizer, losses, optimizer, kernels, sampling