Worksheets
In-class worksheets, posted here after the class that uses them. Answers go up once the class has discussed them.
| Week |
Topic |
Worksheet |
Answers |
| Week 3 |
The Transformer: attention, masking, KV cache, architectures |
PDF |
PDF |
| Week 4 |
Pretraining, scaling laws, fine-tuning, and the same ideas in code |
PDF |
PDF |
| Week 5 |
RLHF, reasoning models, test-time scaling, Codex and pass@k |
PDF |
PDF |
| Week 7 |
RAG, Elasticsearch 101, RAG failure points, agents, ReAct, MCP, Reflexion |
PDF |
PDF |
| Week 8 |
Metrics, pass@k, perplexity, Goodhart's law, benchmarks, contamination, LLM judges |
PDF |
PDF |
| Module 2 |
Optional practice · Machine learning in production: the small box, when to use ML, requirements and mistakes, architecture, four-level QA, production, debt, responsibility |
PDF |
PDF |
Exam review
| Sheet |
What it covers |
PDF |
| Midterm 1 review sheet |
Fri, Oct 9 · scope, format, checklist, practice problems with answers |
PDF |
| Midterm 2 review sheet |
Wed, Nov 18 · cumulative (30% before Midterm 1, 70% since: Weeks 7–8 and Module 2): scope, format, practice problems with answers |
PDF |
Past exams
| Exam |
Questions |
Solutions |
| Midterm 1 |
PDF |
PDF |
| Midterm 2 |
PDF |
PDF |