ELLMEngineering Large
Language Models
Download PDF

Part introduction

Part I - Understanding a Language Model System

Part I follows the numerical execution of a language model: token IDs, embeddings, attention, vocabulary logits, training gradients, and cached generation. We start with one forward pass and its memory allocations, then derive the operations that implement it. The running example uses a decoder-only transformer; other generation families are introduced explicitly rather than assumed to follow the same execution loop.

Chapters in this part

  1. 01The Model and the System
  2. 02Text, Tokens, and the Prediction Objective
  3. 03Inside a Transformer Decoder
  4. 04How Training Changes the Model
  5. 05What the Model Keeps During Generation
  6. 06Estimating Memory and Runtime
  7. 07Evaluating a Change to the System