Large
Language
Models
Foundations to Advanced Systems
An advanced bachelor's course covering the full LLM stack — from Transformer architecture and pretraining through fine-tuning, RAG, agentic systems, and responsible deployment at scale. Designed for students who want to build real-world AI systems.
Skills &
Prior Knowledge
This course assumes a strong technical foundation. Students should arrive comfortable with deep learning, NLP fundamentals, and Python at an advanced level. It builds on Natural Language Processing and Introduction to Machine Learning. The bars below indicate the expected entry-level proficiency — this is a fast-paced, advanced bachelor's course with no ramp-up on basics.
Core Learning
Outcomes
7-Week
Course Plan
- Evolution of LMs: statistical → neural → Transformers → LLMs
- Emergent capabilities of LLMs
- Interact with an LLM (GPT, LLaMA, etc.) across multiple tasks
- Write a reflection: "Where does the model excel? Where does it fail?"
Bender et al. (2021), On the Dangers of Stochastic Parrots
- Transformer architecture: attention, positional encoding, feedforward layers
- Model scaling laws: data, parameters, compute
- Advances beyond vanilla Transformers: MoE, Mamba, RWKV, RAG
- Implement scaled dot-product attention in PyTorch
- Compare inference speed of small vs. medium pre-trained models
Kaplan et al. (2020), Scaling Laws for Neural Language Models
- Tokenisation: BPE, WordPiece, SentencePiece
- Pre-training objectives: masked LM, next-token prediction
- Fine-tuning strategies: supervised fine-tuning (SFT), domain adaptation
- RLHF: reward modelling, preference optimisation
- Fine-tune a small pre-trained model on a custom task
- Experiment with prompt-tuning vs. fine-tuning; compare results
Ouyang et al. (2022), Training language models to follow instructions with human feedback
- Challenges: cost, latency, memory
- Model compression: quantisation, pruning, distillation
- Parameter-efficient tuning: LoRA, adapters, PEFT
- Apply quantisation on a small model
- Compare memory use and speed before vs. after LoRA tuning
- Prompting strategies: zero-shot, one-shot, few-shot
- Advanced prompting: Chain-of-Thought, Self-Consistency, Tree-of-Thoughts
- Design prompts for reasoning, summarisation, and creative writing
- Evaluate prompt effectiveness across models systematically
- What knowledge LLMs store vs. what they infer
- Logical, mathematical, and commonsense reasoning
- Augmenting reasoning: retrieval-augmented generation (RAG), external tools
- Evaluation of reasoning abilities
- Build a retrieval-augmented QA pipeline
- Compare LLM-only vs. LLM + retrieval performance
Lewis et al. (2020), Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- Text + Vision: CLIP, Flamingo, GPT-4V
- Speech + Text: Whisper, AudioLM
- Video, code, and beyond: multimodal reasoning
- Emerging research directions & open challenges
- Run inference with a vision-language model on visual QA tasks
- Explore multimodal reasoning: image + text prompting
Alayrac et al. (2022), Flamingo: a Visual Language Model for Few-Shot Learning
Real-World
LLM Applications
Responsible LLMs &
Societal Impact
The power of large language models comes with serious responsibility. This course treats ethics not as an afterthought but as a core technical and intellectual discipline — with responsible deployment at scale integrated across the curriculum rather than left to a single module.