From a single neuron to a trained model

What this is

A bottom-up tour: neurons → networks → how networks learn → how that scales into something that talks. If you only read two sections, read 8. The transformer block and 10. Pretraining at scale. That’s where the real stuff is.

How to get the most out of this guide

  • Click any link to jump to that section. Every formula links back to the Symbol cheat sheet.
  • Hover a link to preview the section without leaving where you are.
  • Collapsed boxes (marked with a small arrow) hold worked examples and extra detail. Click to expand.
  • Diagrams are live Mermaid charts and equations are rendered LaTeX.
  • Want to play with the ideas? Jump to Interactive visualizers.

Table of contents

#SectionIn one line
0Symbol cheat sheetWhat Σ, ∂, θ and friends actually mean
0The big pictureOne diagram of the whole pipeline
11. The artificial neuronMultiply, add, squash
22. Layers and why non-linearity mattersMatrix multiplies and the “stacking” trick
33. Loss and how wrong we areA single number that says “bad” or “good”
44. Gradient descent and backpropagationHow the weights actually improve
55. From generic networks to languageTwo problems to solve for text
66. TokenizationText → integer IDs
77. EmbeddingsIDs → meaningful vectors
88. The transformer blockAttention, MLP, residuals, norm
99. Stacking it up and producing outputFull forward pass
1010. Pretraining at scaleData, objective, scaling laws, hardware
1111. Post-trainingTurning a base model into an assistant
1212. InferenceWhat happens when you hit enter
1313. What’s actually going on insideInterpretability
1414. Limitations and failure modesWhere it breaks
1515. Tiny code examplesThe skeleton in ~50 lines
1616. Where to learn moreResources + Interactive visualizers

Prefer one long page? Read the full guide on a single page.