Retrieved article excerpt
Open article · Retrieved 2026-11-02T19:23:45.016364+00:00
[GitHub](https://github.com/Maharishiva/tinywmcraft)
tinywmcraft
# 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](https://maharishiva.github.io/tinywmcraft/#autoresearch), and beat ours.
now playing: [iteration 3](https://github.com/Maharishiva/tinywmcraft/blob/8538aa5/train.py) by crown[Maharishiva](https://github.com/Maharishiva)
## 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 agentcopy
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. 1crown[Maharishiva](https://github.com/Maharishiva)0.562 ± 0.017[iteration 3](https://github.com/Maharishiva/tinywmcraft/blob/8538aa5/train.py) · 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. 2[Maharishiva](https://github.com/Maharishiva)0.463 ± 0.023[iteration 2](https://github.com/Maharishiva/tinywmcraft/blob/80b1c34/train.py) · 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. 3[Maharishiva](https://github.com/Maharishiva)0.287 ± 0.019[iteration 1](https://github.com/Maharishiva/tinywmcraft/blob/23e6515/train_tiny.py) · 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](https://maharishiva.github.io/tinywmcraft/benchmark.html)
## 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](https://github.com/Maharishiva/tinywmcraft/discussions/9) and on X. Rules: [diamond\_speedrun.md](https://github.com/Maharishiva/tinywmcraft/blob/main/diamond_speedrun.md). Found a funny glitch? Post it in the [glitch discussion](https://github.com/Maharishiva/tinywmcraft/discussions/10).
### 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
| make | needs | where |
| --- | --- | --- |
| place\_table table | 2 wood | on an open tile |
| make\_wood\_pickaxe wood pickaxe | 1 wood | next to a table; mines stone and coal |
| make\_wood\_sword wood sword | 1 wood | next to a table |
| make\_stone\_pickaxe stone pickaxe | 1 wood 1 stone | next to a table; mines iron |
| make\_stone\_sword stone sword | 1 wood 1 stone | next to a table |
| place\_furnace furnace | 1 stone | on an open tile |
| make\_iron\_pickaxe iron pickaxe | 1 wood 1 stone 1 coal 1 iron | next to a table and a furnace; mines diamonds |
| make\_iron\_sword iron sword | 1 wood 1 stone 1 coal 1 iron | next to a table and a furnace |
| place\_stone place stone | 1 stone | on grass, sand, path, water or lava |
| place\_plant plant | 1 sapling | on 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](https://github.com/MichaelTMatthews/Craftax), 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](https://maharishiva.github.io/tinywmcraft/model.html)