All courses

Advanced · module A8

Large Language Models: Training, Adaptation and Evaluation

By the end: Explain each stage of an LLM's life, fine-tune an open model efficiently, and evaluate LLM systems rigorously

Covers
How LLMs are pre-trained, aligned, adapted, served and evaluated
Contents
4 chapters, 15 topics
Time
About 4 hours
Level
Advanced
Your progress
0 / 15

This module builds on Sequence Models, Transformers and Modern NLP. We suggest looking at it first, but the choice is yours.

Chapter 1 Pre-Training

  1. 1.1

    Pre-Training Data and Objectives

    Web-scale data, cleaning, deduplication and next-token prediction

    Lab: build a small data pipeline

    15 minBeing written
  2. 1.2

    Scaling Laws and Compute

    How performance grows with data, parameters and compute

    Interactive: scaling-law curves

    12 minBeing written
  3. 1.3

    Training a Small Language Model

    Training a tiny GPT end to end

    Code: train a character-level GPT

    30 minBeing written

Chapter 2 Post-Training and Alignment

  1. 2.1

    Instruction Tuning

    Supervised fine-tuning on instructions and conversations

    Code: instruction-tune a small model

    15 minBeing written
  2. 2.2

    Learning from Human Feedback

    RLHF, reward models, DPO and constitutional approaches

    Interactive: the preference pipeline

    15 minBeing written
  3. 2.3

    Reasoning Models

    Chain of thought, test-time compute and reinforcement learning for reasoning

    Lab: compare reasoning strategies

    12 minBeing written

Chapter 3 Adapting LLMs

  1. 3.1

    Choosing an Approach

    Prompting, retrieval, fine-tuning or training from scratch

    Decision exercise

    10 minBeing written
  2. 3.2

    Parameter-Efficient Fine-Tuning

    LoRA, QLoRA and adapters

    Code: LoRA fine-tuning

    W′ = W + BA

    20 minBeing written
  3. 3.3

    Quantisation and Distillation

    Making models smaller and faster

    Code: quantise and compare

    12 minBeing written

Chapter 4 Serving and Evaluating

  1. 4.1

    Inference and Serving

    KV cache, batching, speculative decoding and serving engines

    Lab: serve an open model

    15 minBeing written
  2. 4.2

    Long Context and Memory

    Context windows and strategies for long documents

    Lab: long-document question answering

    10 minBeing written
  3. 4.3

    Evaluating LLMs

    Benchmarks, contamination, LLM-as-judge and human evaluation

    Code: build an evaluation suite

    15 minBeing written
  4. 4.4

    Multimodal LLMs

    Models that read images, audio and text together

    Lab: a document question-answering demo

    12 minBeing written
  5. 4.5

    Open and Closed Models

    Licences, trade-offs, cost and model selection

    Comparison exercise

    8 minBeing written
  6. 4.6

    Module Review and Assessment

    Coding tasks and a scored quiz

    Graded project

    20 minBeing written