Level 7 · Artificial Intelligence and Intelligent Automation · Course 7.1 Foundations
Module 82: Large Language Models
Goal: understand how large language models work underneath: how they read text as tokens, how they're trained and then used, what transformers and attention do, how much they can hold in mind at once, and why their answers are uncertain.
You'll need: your ai-plan.md from Module 81 and an AI assistant. A free online tokenizer tool (most model providers
publish one) helps for Lesson 1.
Lessons
- 1Tokens15–25 minutes✓
- 2Training and inference15–25 minutes✓
- 3Transformers and attention15–25 minutes✓
- 4Context windows15–25 minutes✓
- 5Uncertainty15–25 minutes✓
🛠️Module practice: How LLMs work, explained
Write llm-notes.md for your assistant project:
- Token estimates for your knowledge documents, and what that means for cost and context.
- Training versus inference, and why your assistant needs your documents at inference time.
- A simple diagram of next-token generation with attention.
- Context-window plan: what your assistant will include in each request.
- Uncertainty: three hallucination risks for your assistant and how you'll reduce each.
✅Module check
Explain in a few sentences, in your own words:
How does a large language model produce an answer, and why can't it be trusted blindly?
Show a good answer
A good answer mentions: text is split into tokens (which drive cost, limits and some odd mistakes); the model was pre-trained to predict the next token on huge text, then fine-tuned with feedback, and doesn't learn during use or know anything after its cutoff or private to you; a transformer uses attention to relate tokens and generates one token at a time from probabilities, with temperature controlling variety; everything it uses must fit in the context window, best filled with relevant material; and because it produces plausible rather than verified text, it can hallucinate, so answers are grounded in sources, uncertainty is allowed and tested, code handles calculations, and outputs are checked.
📝Module quiz
10 questions · 10 marks each · 100 marks in all · pass mark 70% · retry as often as you like ·
