RadianVector · tutorials

How language models run.

Visual walkthroughs of model internals with exact tensor shapes, byte counts and diagrams that move one operation at a time.

01

Published

Inside an LLM · part 1 of 5

How an LLM generates one token

One token from input to output: tokenization, embeddings, twenty-four transformer layers, the LM head, temperature and sampling. CPU work is blue, GPU work is green, and two 3-D benches show the tensor moving through the pipeline. Part one of Inside an LLM, a five-part series built on one reference model, Qwen2.5-0.5B, so every number lines up from the first page to the last.

Read part 1
Inside an LLM · part 2 of 5

Making the sentence stand up

Type a sentence and watch it stand up into a tensor: one row per token, through the ids, the embedding lookup and all 24 layers, until only the last row is left.

Read part 2
02

Coming soon

Parts 3–5 of Inside an LLM are drafted and under technical review.

03

Planned for the future