# TinyRealm

Canonical: https://udgamlabs.com/models/tinyrealm · Updated: 2026-12-01

World model · December 2026

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

[Play it live](#try)[Hugging Face](https://huggingface.co/udgamlabs/TinyRealm-45M)[GitHub](https://github.com/udgamlabs/tinyrealm)

Try it in your browser: [https://udgamlabs.com/models/tinyrealm#try](https://udgamlabs.com/models/tinyrealm#try)

## Nothing here is drawn

Top: frames from the real 3D worlds we built to train it. Bottom: what TinyRealm imagined, given only the first frames and the same keys. It keeps the look of each world, though its path drifts from the real one over time.

*Red-Rock Canyon*

The real 3D scene

![Six frames of Red-Rock Canyon from the real 3D scene, frames 1 to 128](https://udgamlabs.com/models/tinyrealm/real_w0.jpg)

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

![The same six frames of Red-Rock Canyon as TinyRealm imagined them](https://udgamlabs.com/models/tinyrealm/model_w0.jpg)

frame 1frame 16frame 32frame 64frame 96frame 128

*Neon Skyway*

The real 3D scene

![Six frames of Neon Skyway from the real 3D scene, frames 1 to 128](https://udgamlabs.com/models/tinyrealm/real_w1.jpg)

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

![The same six frames of Neon Skyway as TinyRealm imagined them](https://udgamlabs.com/models/tinyrealm/model_w1.jpg)

frame 1frame 16frame 32frame 64frame 96frame 128

*Aurora Fjord*

The real 3D scene

![Six frames of Aurora Fjord from the real 3D scene, frames 1 to 128](https://udgamlabs.com/models/tinyrealm/real_w2.jpg)

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

![The same six frames of Aurora Fjord as TinyRealm imagined them](https://udgamlabs.com/models/tinyrealm/model_w2.jpg)

frame 1frame 16frame 32frame 64frame 96frame 128

*Volcanic Trench*

The real 3D scene

![Six frames of Volcanic Trench from the real 3D scene, frames 1 to 128](https://udgamlabs.com/models/tinyrealm/real_w3.jpg)

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

![The same six frames of Volcanic Trench as TinyRealm imagined them](https://udgamlabs.com/models/tinyrealm/model_w3.jpg)

frame 1frame 16frame 32frame 64frame 96frame 128

## How it works

One loop, run on your own graphics chip through WebGPU.

1.  1

    You press a key

    W, A, S, D, Space, or nothing.

2.  2

    The model predicts

    A 44.9M transformer guesses the next frame in a compressed form, from the last frames and your key.

3.  3

    A tiny decoder paints it

    A 0.68M decoder turns it into a 256 × 256 picture.

4.  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?

A separate checker model watches each pair of frames and guesses which key was pressed. If the model ignored you, the checker would be stuck near the shuffled-keys score.

*Keys the checker got right over 128 frames (%)Dark bar: TinyRealm · grey bar: the real 3D scene, same checker · higher is better*

Keys the checker got right over 128 frames (%)

| 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

Other world models you can steer, from their own papers and model cards. The big ones run on data-centre chips and stream to you. A few small ones, TinyRealm among them, run on your own graphics chip inside the browser, with no server.

Steerable world models compared, as published by each maker

| 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](https://deepmind.google/discover/blog/genie-3-a-new-frontier-for-world-models/) | Google DeepMind | not published | 720p, 24 fps | Google’s servers | No |
| [Oasis 500M](https://huggingface.co/Etched/oasis-500m) | Decart and Etched | 500M | 360p, 20 fps (H100) | Data-centre GPU | Yes, MIT |
| [GameNGen](https://arxiv.org/html/2408.14837v2) | Google | not published | 320 × 240, 20 fps (TPU) | Data-centre chip | No |
| [DIAMOND (CS:GO)](https://diamond-wm.github.io/) | Alonso et al. | 381M | low-res + upsampler, ~10 fps | Gaming GPU (RTX 3090) | Yes, MIT |
| [Matrix-Game 2.0](https://arxiv.org/html/2508.13009v2) | Skywork | 1.8B | 352 × 640, 25 fps (H100) | Data-centre GPU | Yes, MIT |
| [micro-doom-world](https://huggingface.co/kulikov0/micro-doom-world) | kulikov0 | 39M + 7M | 128 × 96 | Your browser (WebGPU) | Yes, MIT |
| [Neural Drive β](https://huggingface.co/codelion/neural-drive-model) | codelion | 131M + decoder | 384 × 192 | Your browser (WebGPU) | Weights, custom licence |
| [Dream Engine](https://github.com/teshnizi2/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 page Play 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.](#try)
- [In your app One ONNX file and a small JS runner About twenty lines with ONNX Runtime Web. Apache-2.0.](#quick-start)
- [On GitHub The 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.](https://github.com/udgamlabs/tinyrealm)

### 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
```

---

## About Udgam Labs

Udgam Labs is an independent AI research lab. We work from first principles: before we build, we understand why things work, whether we are training a model, fine-tuning one or applying AI to a new problem. Today that means open models such as Gargi, a 384M-parameter language model that comes within 2 points of Qwen2.5-0.5B on three reasoning benchmarks with about 1,000× less training data. Next come products, custom models for businesses, and AI in the physical world. Udgam (उद्गम) is Sanskrit for origin.

Udgam Labs · AI research from first principles · https://udgamlabs.com
