Skip to main content

Guided route and resource map

Three questions, nine stages, territories, sections, pages, and canonical concepts

A guided route in three questions detailed as nine conceptual stages, a progressive territory map, and a canonical-concept registry to orient yourself across the site.

Nine stages of Understand · Resource map

Theory path — Understand

We first observe what an LLM predicts, then reconstruct the computation that produces its predictive distribution. The route next follows the generation loop, then examines how the application assembles the context for each call. It finally returns to the distribution’s other two uses: scoring an observed target and learning the parameters. This is a pedagogical order: context design acts upstream of each call, even though the route studies it after generation. The nine stages provide a first-reading order, not a strict prerequisite chain.

Learning path skeleton

The details of each lesson follow the form ideas used → object studied · intended outcome.

Compare uses
Stage Context \(c\) Parameters \(\theta\) Operation
Generate Grows with each token fed back Fixed Output · Select and feed back a token
Shape context Assembled for each call Fixed Input · Choose the information supplied
Score Prefix given for each target Fixed Output · Score an observed target or sequence
Train Prefixes from observed examples Updated Training · Aggregate losses and update parameters

Context design shapes the input. The other three operations use the distribution. Training aggregates penalties on observed targets, backpropagates the gradient, and applies an update.

Skeleton of the 20 lessons

How an LLM works

From text to tokens

From IDs to representations

Understand Transformer computation

From hidden states to the predictive distribution

Run inference and generate text

Use and design context

Score observed tokens

Learn and update parameters

Predictions in notation

For an autoregressive GPT, \(f_\theta(c)\) maps context \(c\) to logits using parameters \(\theta\). Normalizing the logits gives the base next-token distribution.

\[p_\theta(\cdot\mid c)=\operatorname{softmax}\!\bigl(f_\theta(c)\bigr).\]

The nine stages

These stages follow the canonical curriculum. They show the study order and optional resources. Pages within a stage complement one another.

Learning path plan and review sheets

The model

01 · How an LLM works

Locate the model’s context and parameters. Follow two generation steps in the overview before studying how a prediction is computed.

Core pages

Optional resources

Predict a token

02 · From text to tokens

Distinguish text, tokens, and token IDs that form the model’s discrete input without needing to study segmentation algorithms.

Core pages

Optional resources

05 · From hidden states to the predictive distribution

Trace the projection from final hidden states to logits and the conditional next-token distribution; interpret its entropy before any token selection or observed target.

Core pages

Use and train

06 · Run inference and generate text

Distinguish prompt prefill from iterative decode, select a token with a decoding policy, feed it back into the context, and stop generation without updating parameters.

Core pages

Optional resources

07 · Use and design context

Extend inference to the application level. Explain the effect of examples supplied in the prompt, then choose what information a system passes to the model.

Core pages

Optional resources

08 · Score observed tokens

Evaluate the probability assigned to a known target, build a sequence likelihood, and connect negative log-likelihood to cross-entropy without selecting a token or changing parameters.

Core pages

Optional resources

09 · Learn and update parameters

Connect observed targets to the aggregated loss, gradients, and parameter updates, then to the repeated training loop and validation loss; understand teacher forcing conceptually without making shifted-example preparation a stage of the Theory path.

Core pages

Optional resources

Try the end-of-path exercise, then design an evaluation on held-out data.

Other primary path — Build: To build a small GPT, follow the independent Build path. It has its own implementation milestones and prerequisites; it is not a required continuation of the Theory path. Corpus preparation and training-example construction form a dedicated model-learning branch, not a prerequisite for inference.

Explore the resources

How to read this map
  • Territories — the main parts of the site: Understand, Build, Practice, Deepen, Reference.
  • Sections — clicking a territory reveals its subsections; the breadcrumb or the Escape key takes you back up one level at a time.
  • Pages — clicking a page shows its details (purpose, sections, links); “Open the page” navigates there directly.
  • Concepts — the “Canonical concepts” view groups the concepts from the bilingual registry versioned in data/concepts.yml by discovery domain, with their definitions, typed relationships, and resource pages. The search and the relation-type filter narrow the list, a selected concept highlights its neighbours, and related concepts remain clickable from the details panel.

Section headings shown in a page’s details are editorial landmarks, not canonical concepts. The guided route provides a reading order.

The URL records the search, filter, and selection. “Copy link” shares that view. “Reset view” clears those three settings. The map and static list are generated from the Quarto sidebar and page metadata.

Loading the map…

Loading the map…

Use this map for orientation, not as a strict prerequisite graph. Advanced pages can be consulted directly when they address the question at hand.

All resources, as a list

The same structure as a static list: useful without JavaScript, for printing, or for copying a link. It is produced by the same generation as the interactive map.

Browse the glossary · Explore the GPT build path · Version française