How LLMs Actually Work

a from-scratch explainer

How LLMs Actually Work

From your first vector to attention, training, and LoRA, with no math background needed.

Start with Chapter 1 →

(The trailer starts muted — tap the speaker icon for narration. Chapter videos play with sound.)

How LLMs actually work · narrated, with captions.

Hi, I'm Sean Egan, a Navy information warfare officer and research scientist. I built this book for colleagues and friends who want to know how a language model works.

We'll follow the real equations and check some by hand. You need no math background. Part I builds the tools, starting with an arrow on a page. Then we follow text into the model, watch attention combine information, and see how training changes its numbers.

New to this? Start with Chapter 1 and take your time. Already know linear algebra? Start at Part II; the prerequisite links bring you back whenever you need a refresher. Watch the videos, drag the interactives, get a pencil. We'll work through this together.

How to read

Three ways to make an idea stick
ToolUse it to
VideosWatch the idea move.
InteractivesChange one thing and see what follows.
Worked examplesCheck the arithmetic with a pencil.