Intermediate level · Module 1 of 10 · 10 guided hours
Understanding LLM Architecture and Capabilities
The transformer architecture in practical terms, how LLMs are trained (pre-training, instruction tuning, preference tuning), what they can and cannot do, and running small open models with Transformers.
Learning objectives
- Explain the main parts of a transformer LLM
- Describe how LLMs are trained and aligned
- Run and compare small open models
Topics
- tokens, embeddings and attention
- decoder-only transformers
- pre-training, instruction tuning and preference tuning
- capabilities and limits
- running small open models
- model families and sizes
Lessons
-
Lesson 1 Inside a Transformer LLM
Learners follow text through a decoder-only transformer (tokens, embeddings, attention layers, next-token probabilities) without heavy maths. Deep Learning and NLP cover the theory in depth.
token IDsembeddingsself-attentiondecoder-onlynext-token probabilities
-
Lesson 2 How LLMs Are Trained and Aligned
Learners distinguish pre-training on large text, supervised instruction tuning, and preference-based tuning (RLHF, DPO), and see how each shapes behaviour.
pre-traininginstruction tuning (SFT)preference tuning (RLHF, DPO)alignmentknowledge cut-off
-
Lesson 3 Capabilities, Limits and Model Families
Learners map what LLMs do well and badly, compare small and large models from different families on the same tasks, and record results.
capability mapmodel sizecontext lengthmultilingual supporttask-based comparison
Practical activity
Annotate an LLM forward pass, compare base and instruct models, and produce a model comparison for the project domain.
Expected outcomes
- Practical understanding of LLM architecture and training
- Evidence-based model choice
Assessment
Model comparison notebook (60%) and written explanations (40%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.