Lesson 8.1core3 h

The LLM lifecycle and model landscape

From trillions of web tokens to a chat assistant — and how to pick one

Every decision you make with LLMs — which model to call, whether to fine-tune (8.2 Fine-tuning and PEFT), how to prompt (8.4 Prompting as programming), what to expect from a "reasoning" model (8.6 Reasoning models and test-time compute) — depends on understanding how these models are actually produced. This lesson gives you the full pipeline (data → pretraining → post-training) and the late-2026 landscape of closed and open-weight models, so that model cards, pricing pages and technical reports stop being noise.

You'll be able to

  • Describe the three training stages (pretraining, supervised fine-tuning, preference/RL) and what each contributes
  • Explain how pretraining corpora are built, filtered and deduplicated, and why data quality matters more than raw size
  • Estimate training compute from parameters and tokens and relate it to GPU-hours and cost
  • Distinguish base, instruct and reasoning models and pick the right one for a task
  • Choose a model using capability, cost, latency, context, modality, privacy and license criteria

Key ideas

  1. An assistant is one transformer trained in three stages: pretraining (knowledge), SFT (format), preference/RL (behavior and reasoning).
  2. Pretraining data is mostly filtered web crawl plus code, books and synthetic text; quality filtering and deduplication matter as much as scale.
  3. Training compute is C ≈ 6ND; production models are trained far past Chinchilla's D ≈ 20N because inference cost scales with N.
Show 4 more key ideas
  1. Base models complete text, instruct models follow a chat template, reasoning models think before answering at higher cost.
  2. Frontier closed models (Claude, GPT, Gemini) and open-weight families (Llama, Qwen, DeepSeek, Mistral, Gemma) coexist; open weights are not the same as open source.
  3. Choose models by your own eval, then cost, latency, context/modality, privacy and license — in that order.
  4. Model cards and technical reports should be read for what they omit as much as for what they report.

Suggested path through this lesson