Watch an AI pick one word.

A real language model runs in your browser. It takes the start of a sentence, and in a few seconds of arithmetic chooses the next word. This show slows that down and draws every step from the model's own numbers: nothing here is staged.

What to watch

1 · Choose a model

All four run the loop you are about to watch. They differ in size (layers, numbers per token, dictionary), in what they read, and in a few design choices (how word order gets in, whether the output table is the input table again). The chat model reads a hidden instruction and your message as a chat, then answers instead of continuing. Mamba, the design with no attention, is in the Explorer.

2 · Write the start

The sentence below is only a suggestion. Type your own: the whole show is computed fresh for it.

The model downloads once, when you press Begin.

Tap anything on the stage for its numbers; drag, scroll or pinch the cloud, 3D shows the real three-dimensional map (drag to turn it); ? explains each screen and words maps the picture to the proper terms. Nothing you type leaves this page. The step-by-step version · the Explorer · code.