Transformer Decoder Explained

/playground

End-to-end playground

Same compute path as the explainer pages, all on one screen. Pick a preset to load a curated seed, or change the inputs in any widget.

Show me an example

Sign in (top-right) to save experiments.

1 · Embeddings

2 · Attention

Head:

3 · Feed-forward

4 · Stacking

Blocks:

5 · Sampling

Mode

6 · Step through generation

The whole loop, one step at a time: the model runs, the KV cache grows, the logits become a distribution, temperature and top-k or top-p reshape it, a seeded draw picks a token, and the token is appended. The presets above set its prompt and seed.

Loading the animation…