Working draft

Frontier LLMs, From the Inside

How the largest language models are built, trained, aligned, served, and used. For engineers.

The map

Every chapter points back here. Read left to right: the machine, then how a frontier lab makes one, then how it becomes an assistant, then how it is served and built upon, then what lies beyond text.

1 · The machine ch 1–7 next-token gamevectors, matricesattention, blocklearning, tokenstrain vs infer 2 · Pretraining ch 8–13 scaling lawscorpus, hardwareparallelismarchitecturethe run 3 · Post-training ch 14–18 SFTpreferences, RLreasoningalignment, safetyevaluation 4 · Serving ch 19–24 inference at scaleprompting, toolsretrieval, agentsapp evaluationproduction 5 · Beyond ch 25–27 multimodalinterpretabilitybig to small Lab spine · Beacon one imagined frontier model, followed from raw data to deployed API; reasoned about, never run Builder spine · Dispatch an on-call assistant for Postbox, grown on the frontier API, one layer per chapter
Where does each chapter sit, and what runs through all of them? Five parts in reading order, and two threads that never stop: the model the Lab builds, and the product you build on it.

Contents

Part 1 · The machine: from numbers to next token

  1. The next-token game
  2. Vectors and the functions that move them
  3. Attention
  4. The transformer block
  5. Learning
  6. Tokenization
  7. Training vs inference

Part 2 · Making a frontier model: pretraining at scale

  1. Why bigger works
  2. The corpus
  3. The hardware
  4. Training across thousands of GPUs
  5. Frontier architecture choices
  6. The run

Part 3 · From base model to assistant

  1. From base model to assistant
  2. Learning from preferences
  3. Reinforcement learning and reasoning
  4. Alignment and safety
  5. Evaluating a model

Part 4 · Serving and building on frontier models

  1. Inference at scale
  2. Prompting and context as engineering
  3. Retrieval
  4. Agents
  5. Evaluating an application
  6. Operating in production

Part 5 · The wider frontier

  1. Multimodal models
  2. Looking inside
  3. Big to small

Closing and appendices