Syllabus

  1. 01From ELIZA to ChatGPTSeventy years of machines and language: early chatbots, the Turing test, the statistical view of text, and the milestones that led to today's large language models.3 lessons
    1. 01Early Chatbots and the Turing Test
    2. 02Language as Statistics
    3. 03Milestones on the Road to LLMs
  2. 02Counting Words: N-gram ModelsBuild the simplest language model by hand: split text into units, estimate next-word probabilities from counts, and see why counting alone hits a wall.3 lessons
    1. 01Tokens and N-grams
    2. 02Probabilities from Counts
    3. 03The Limits of Counting
  3. 03Neural Language ModelsHow neural networks represent meaning with embeddings, how they learn from prediction errors, and how the transformer and post-training turned them into today's assistants.4 lessons
    1. 01Embeddings: Words as Vectors
    2. 02How Neural Networks Learn
    3. 03Transformers and Attention
    4. 04From Pretrained Model to Assistant
  4. 04Generating TextHow a model turns probabilities into words, what temperature and other sampling settings do, and the strengths, limits and risks to keep in mind.4 lessons
    1. 01Choosing the Next Token
    2. 02Temperature
    3. 03Top-k, Top-p and Other Settings
    4. 04Strengths, Limits and Risks