# A world model built from scratch, live in your browser: TinyRealm

Canonical: https://udgamlabs.com/blog/tinyrealm · Updated: 2026-12-02

> TinyRealm is a 45M world model we built from scratch. One model holds four worlds and imagines every frame as you steer, about 20 times a second, on your own graphics chip. A checker model reads the right key from its frames 91% of the time.

Release · 2026-12-02 · By Jitesh K Prasad

<Film src="https://udgamlabs.com/models/tinyrealm/film.mp4" poster="/models/tinyrealm/poster_w1.jpg" caption="TinyRealm in 44 seconds." />

## What it is

TinyRealm is a world model we built from scratch. You press a key, and it imagines the next frame of a world you are flying through. Nothing else is running: no game engine, no 3D scene, no map. Every pixel comes from the model.

One 45M model holds four worlds: a red-rock canyon, a neon skyway, an alpine fjord and a volcanic trench. It runs at about 20 frames a second in Chrome, on your own graphics chip, through WebGPU. The model is one 92 MB file with open weights under Apache-2.0, and nothing you press leaves your device.

## How it works

Each frame, a 44.9M transformer predicts the next picture in a compressed form, from the last few frames and the key you are holding. A 0.68M decoder turns that into a 256 × 256 picture. The new frame joins the model's memory, and the loop runs again.

It learned from 620,800 frames flown through four worlds we built ourselves. No outside video went in, so the weights can be Apache-2.0.

## Does it follow your keys?

A world model that ignores you is a video. So we trained a separate checker model that watches each pair of frames and guesses which key was pressed, and ran it on held-out flights of 128 frames in all four worlds.

> **Result.** The checker reads the right key from TinyRealm's frames **91.3%** of the time. With the keys shuffled, it falls to 44.6%, which is what a model that ignored you would get.

Control holds through a run: in frames 65 to 128 alone, the checker still reads 90.1%. Each world clears 90%: canyon 90.9%, neon skyway 91.2%, fjord 91.7%, volcanic trench 91.2%. On the real 3D worlds, the same checker reads 94.3%, so TinyRealm reaches 96.8% of what it can read from the real thing.

## What did not work on the way

**The first compression blurred the neon city.** Our first decoder squeezed each frame 48 times. Three worlds looked fine, but the neon skyway's dense windows smeared. Halving the squeeze (24 times) made all four worlds close to lossless, at no extra cost in the browser.

**A polish pass made it worse.** After the main training, we tried a short extra pass that trains the model on its own imagined frames, which had helped an earlier one-world version. Here it pulled the checker score from about 91% down to 63 to 69% and softened the neon grids. We kept the model from before the pass.

**A race in the player.** Switching worlds while a frame was still being made let that frame land in the new world's memory. A small guard in the player fixed it.

## Where it falls short

- It only knows four worlds. It can't make a new world from a sentence or a picture.
- Pictures are 256 × 256 and come out painterly; thin lines and window grids blur, most in the 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.
- There are no game rules: no score, no collisions, no goal. Walls and rings are only what the model imagines.
- It needs WebGPU in Chrome or Edge on a laptop or desktop, and about 118 MB of downloads to start. Phones get a recording.

## Try it

Open the [model page](https://udgamlabs.com/models/tinyrealm), pick a world and press Play. Fly with W, A, S, D, boost with Space, and switch worlds with 1 to 4.

- Play it: https://udgamlabs.com/models/tinyrealm
- Space: https://huggingface.co/spaces/udgamlabs/TinyRealm-45M
- Weights: https://huggingface.co/udgamlabs/TinyRealm-45M
- Player and Python example: https://github.com/udgamlabs/tinyrealm

Udgam Labs · AI research from first principles

---

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