Module resources

Evaluation and model adaptation

Checked sources to go further than the lessons. Back to the module.

Recommended learning sequence

Work through these in order.

  1. Your AI Product Needs Evals (opens in a new tab)

    Hamel Husain2024Article

    Repeated on purpose (used in lesson 1, further in lesson 4): it is the best first read for the whole module. It frames evaluation as levels of rising cost and the habit of looking at your own data, which every later lesson relies on.

  2. Define success criteria and build evaluations (opens in a new tab)

    Anthropic2026Documentation

    Then turn a vague goal into measurable success criteria. The page shows exact match, similarity, ROUGE-L and model-graded checks as worked examples, which maps onto the layered eval in lesson 1.

  3. Model optimization (opens in a new tab)

    OpenAI2026Documentation

    Next see the whole adaptation loop in one place: write evals first, then prompt, and fine-tune only for some use cases, checking against test data each time. This is the order that lesson 2 argues for. Caveat: the page says these workflows are being moved into legacy documentation and that OpenAI's fine-tuning platform is no longer accessible to new users, so read it for the loop, not the product.

  4. LoRA (PEFT conceptual guide) (opens in a new tab)

    Hugging Face2026Documentation

    Repeated on purpose (used in lesson 3, further in lessons 2 and 4): it shows how rank, alpha and target modules appear in a real LoRA configuration, which you need before reading the research papers on LoRA.

  5. Practical Tips for Finetuning LLMs Using LoRA (Low-Rank Adaptation) (opens in a new tab)

    Sebastian Raschka2023Article

    Then read a practitioner's LoRA and QLoRA experiments: memory against training time, which layers to adapt, and how rank and alpha behave. It turns the lesson 3 trade-offs into numbers before you run your own.

  6. Making LLMs even more accessible with bitsandbytes, 4-bit quantization and QLoRA (opens in a new tab)

    Younes Belkada, Tim Dettmers, Artidoro Pagnoni, Sylvain Gugger, et al.2023Article

    Repeated on purpose (further in lessons 3 and 4): finish on the hands-on step. Load a model in 4-bit and train an adapter, then apply lesson 4 by comparing the result against a held-out set and your baseline.

All resources

Official documentation

  • SFT Trainer (TRL documentation) (opens in a new tab)

    Hugging Face2026Documentation

    Shows the supervised fine-tuning trainer: accepted dataset formats, training on the assistant or completion part only, and passing a LoRA config. Connects the SFT stage in lesson 3 to code.

Further reading

Research papers

  • LIMA: Less Is More for Alignment (opens in a new tab)

    Chunting Zhou, Pengfei Liu, Puxin Xu, Srini Iyer, et al.2023PaperNeurIPS 2023

    Fine-tunes a 65B model on 1,000 curated prompt-response pairs and reports results against other models. Supports the data-quality argument in lessons 2 to 4: a small, careful set can go a long way for behaviour and style.

  • Holistic Evaluation of Language Models (opens in a new tab)

    Percy Liang, Rishi Bommasani, Tony Lee, and 47 others2023PaperTMLR (2023)

    Argues for evaluating language models on many scenarios and several metrics at once, not one score. Good background for lesson 1's point that a benchmark shortlists models while your own eval decides.

  • LoRA Learns Less and Forgets Less (opens in a new tab)

    Dan Biderman, Jacob Portes, Jose Javier Gonzalez Ortiz, Mansheej Paul, et al.2024PaperTMLR 2024 (Featured Certification)

    Compares LoRA with full fine-tuning on code and maths and finds LoRA learns less on the target task but forgets less of the base model. Evidence for the forgetting risk and the trade-off in lessons 3 and 4.

  • Distilling the Knowledge in a Neural Network (opens in a new tab)

    Geoffrey Hinton, Oriol Vinyals, Jeff Dean2015Preprint

    The classic paper on compressing a large model or ensemble into a single smaller one. Read it for the distillation stage named in lesson 3.

  • Extracting Training Data from Large Language Models (opens in a new tab)

    Nicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski, et al.2021PaperUSENIX Security 2021

    Shows that querying GPT-2 can recover verbatim training sequences, including personal information, and that larger models were more vulnerable. Grounds the leakage risk of putting private data into a tuning set (lesson 4).

Hands-on

Courses

  • CS336: Language Modeling from Scratch (opens in a new tab)

    Tatsunori Hashimoto, Percy Liang2026Course

    Repeated on purpose (used in module 1's resources and module 9, lesson 2): the university course. Its schedule has lectures on Evaluation, Data (filtering, deduplication, mixing, synthetic data), Mid/post-training (SFT/RLHF) and Alignment, multimodality that go deeper than this module.