World model · December 2026
TinyRealm
Fly through four worlds that a 45M model imagines frame by frame, live in your browser. No game engine: every pixel comes from the model.
- 45M parameters
- 4 worlds, one model
- About 20 frames a second in Chrome
Fly it
You steer. The model dreams the next frame.
Each picture is predicted from the last few frames and the key you are holding. There are no 3D models, no map and no physics inside. Pick any of the four worlds below and fly it. Fly into a wall and the model decides what happens.
~20 fps
in Chrome on a Mac mini (M6), WebGPU
256 × 256
pixels, 3 small steps a frame
92 MB
the whole model, one file
0
game engines at runtime




Hear about new Udgam Labs releases first
Subscribers get an email about each new release before we announce it anywhere else. Free, no spam.
Nothing here is drawn
The real 3D scene

TinyRealm, from the same start and the same 128 key presses

The real 3D scene

TinyRealm, from the same start and the same 128 key presses

The real 3D scene

TinyRealm, from the same start and the same 128 key presses

The real 3D scene

TinyRealm, from the same start and the same 128 key presses

How it works
1
You press a key
W, A, S, D, Space, or nothing.
2
The model predicts
A 44.9M transformer guesses the next frame in a compressed form, from the last frames and your key.
3
A tiny decoder paints it
A 0.68M decoder turns it into a 256 × 256 picture.
4
Again, about 20 times a second
The new frame joins the memory and the loop repeats.
Trained on 620,800 frames flown through four worlds we built ourselves, about 4 hours on one GPU. No outside video, so the weights can be Apache-2.0.
Does it obey your keys?
| Test | TinyRealm | The real 3D scene |
|---|---|---|
| Red-Rock Canyon | 90.9 | 94.2 |
| Neon Skyway | 91.2 | 93.9 |
| Aurora Fjord | 91.7 | 94.7 |
| Volcanic Trench | 91.2 | 94.3 |
91.3%
of keys read correctly from TinyRealm’s frames, 96.8% of the real scenes’ 94.3%
44.6%
when the keys are shuffled: the check a model that ignored you would get
90.1%
in frames 65 to 128 alone: control holds through the second half of a run
Held-out flights in all four worlds, 1 Dec 2026, released model, our checker (inverse dynamics model).
How it compares
| Model | Made by | Size | Picture | Runs on | Open weights |
|---|---|---|---|---|---|
| TinyRealm-45M | Udgam Labs | 45M | 256 × 256, ~20 fps (M6) | Your browser (WebGPU) | Yes, Apache-2.0 |
| Genie 3 | Google DeepMind | not published | 720p, 24 fps | Google’s servers | No |
| Oasis 500M | Decart and Etched | 500M | 360p, 20 fps (H100) | Data-centre GPU | Yes, MIT |
| GameNGen | not published | 320 × 240, 20 fps (TPU) | Data-centre chip | No | |
| DIAMOND (CS:GO) | Alonso et al. | 381M | low-res + upsampler, ~10 fps | Gaming GPU (RTX 3090) | Yes, MIT |
| Matrix-Game 2.0 | Skywork | 1.8B | 352 × 640, 25 fps (H100) | Data-centre GPU | Yes, MIT |
| micro-doom-world | kulikov0 | 39M + 7M | 128 × 96 | Your browser (WebGPU) | Yes, MIT |
| Neural Drive β | codelion | 131M + decoder | 384 × 192 | Your browser (WebGPU) | Weights, custom licence |
| Dream Engine | teshnizi2 | 6.8M | 64 × 64, ~28 fps (M4) | Your browser (WebGPU) | Yes, MIT |
As published by each maker, read 1 Dec 2026; each name links to its source. Sizes and speeds are not like for like: different worlds, steps and hardware. TinyRealm’s speed was measured in Chrome on a Mac mini (Apple M6).
Where it falls short
- It only knows four worlds. It can’t make a new world from a sentence or a picture; it imagines the four it was trained on.
- Soft details. Pictures are 256 × 256 and come out painterly; thin lines and window grids blur, more so in Neon Skyway.
- It drifts on long flights. After a few seconds the path wanders from the real one, and colours can wash out; press R to start again.
- No game rules. There is no score, no collisions and no goal: walls and rings are only what the model imagines.
- Desktop browsers only. It needs WebGPU in Chrome or Edge and about 118 MB of downloads to start; phones get the recording.
Use it
- In this pagePlay TinyRealm The 92 MB model and 26 MB per world, downloaded once; then it runs on your own graphics chip. Nothing you press leaves your device.
- In your appOne ONNX file and a small JS runner About twenty lines with ONNX Runtime Web. Apache-2.0.
- On GitHubThe player and a Python example The four-world player from this page, and a short Python script that flies a world and saves the frames. Apache-2.0.
Quick start: one frame in JavaScript
Loop it: draw each frame, feed the memory back, and read the keys for the next action.
// In a browser module, in Chrome or Edge with WebGPU
import * as ort from 'https://cdn.jsdelivr.net/npm/onnxruntime-web@1.30.0/dist/ort.webgpu.min.mjs'
const hf = 'https://huggingface.co/udgamlabs/TinyRealm-45M/resolve/main/'
const model = await ort.InferenceSession.create(hf + 'pocketworld_s1_4worlds_256_fp16.onnx', { executionProviders: ['webgpu'] })
// A world's starting memory: keys, then values (float16, each [12, 1, 8, 1040, 64]). b1 is Neon Skyway.
const kv = new Float16Array(await (await fetch(hf + 'seed_s1_b1_kv.f16')).arrayBuffer())
const dims = [12, 1, 8, 1040, 64], half = kv.length / 2
let k = new ort.Tensor('float16', kv.slice(0, half), dims)
let v = new ort.Tensor('float16', kv.slice(half), dims)
// One frame. The action is [steer, pitch, throttle, boost, strafe]: here, ahead and a little to the right.
const randn = () => Math.sqrt(-2 * Math.log(1 - Math.random())) * Math.cos(2 * Math.PI * Math.random())
const out = await model.run({
noise: new ort.Tensor('float16', Float16Array.from({ length: 32 * 16 * 16 }, randn), [1, 32, 16, 16]),
action: new ort.Tensor('float16', Float16Array.of(0.4, 0, 0.85, 0, 0), [1, 5]),
k_cache: k, v_cache: v,
})
const rgb = await out.rgb.getData() // 3 × 256 × 256 values, 0–255: draw it, then
k = out.next_k; v = out.next_v // feed the memory back for the next frame


