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.
Your AI Product Needs Evals (opens in a new tab)
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.
Define success criteria and build evaluations (opens in a new tab)
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.
Model optimization (opens in a new tab)
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.
LoRA (PEFT conceptual guide) (opens in a new tab)
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.
Practical Tips for Finetuning LLMs Using LoRA (Low-Rank Adaptation) (opens in a new tab)
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.
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)
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
Using LLM-as-a-Judge For Evaluation: A Complete Guide (opens in a new tab)Essential
A step-by-step method for building a judge that is checked against a domain expert's pass or fail calls with written critiques, and it warns that raw agreement can mislead on imbalanced data. Extends the judge validation in lesson 1.
Practical Tips for Finetuning LLMs Using LoRA (Low-Rank Adaptation) (opens in a new tab)
A practitioner's experiments with LoRA and QLoRA: memory against training time, which layers to adapt, and sensitivity to rank and alpha. Gives numbers behind the trade-offs in the method-choice objective of lesson 3.
LoRA Without Regret (opens in a new tab)
Compares LoRA with full fine-tuning and reports when they match and when LoRA runs out of capacity, plus advice on which layers and learning rate to use. A current counterpoint to the idea that LoRA always costs quality.
Research papers
LIMA: Less Is More for Alignment (opens in a new tab)
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)
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)
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)
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)
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
lm-evaluation-harness: a framework for few-shot evaluation of language models (opens in a new tab)
A framework for few-shot evaluation of language models, with many tasks and model backends behind one interface. Run a public benchmark yourself to see what it does and does not tell you about your product.
Courses
CS336: Language Modeling from Scratch (opens in a new tab)
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.