2.5 Module 2 · How LLMs Work

How Prompt → Response Actually Works

Trace your prompt through the six stages of an LLM pipeline — from raw text to generated output. Click each stage to see what happens inside.

LLM Pipeline Animator Stage Deep-Dive Cards

LLM Pipeline Animator

Click any stage to explore it, or hit Play All to watch the entire pipeline animate from start to finish.

LLM Processing Pipeline

Stage Deep-Dive Cards

Expand each card for a deeper look at what happens at every stage of the pipeline. Only one card can be open at a time.

Approximate Processing Time per Stage

Key insight: Understanding this pipeline changes how you write prompts. A clear, specific prompt produces cleaner tokens, more focused embeddings, sharper attention patterns, and higher-confidence predictions — resulting in better output. Every stage amplifies what came before it, so quality at the input stage cascades through the entire pipeline.