LLMs for Engineers
How large language models are built, trained and run, so you can reason about their behaviour, cost and failure modes in production.
3 modules · 9 lessons~18 hoursUpdated 2026-10-30Certificate included
- Lessons9
- Quizzes9
- Sources60
- Of study~18h
About this course
About this course
A working engineer's model of the LLM: how text becomes tokens and vectors, what attention and the rest of the transformer block compute, how pretraining, fine-tuning and reinforcement learning turn a document predictor into an assistant, and what happens at inference time, from sampling and hallucination to the KV cache, prompt caching and extended thinking. The final module turns that understanding into decisions: when to pay for reasoning, and how to choose and compare models on cost, latency and quality. Each lesson pairs a rigorous explanation with a short video segment, primary sources, a quiz and exercises you do with Claude.
About the running example
The examples follow a fictional property-law (conveyancing) firm in England and Wales, and the capstone extracts data from its title registers (official records of who owns a property). It's a case study, chosen because its documents are long, structured and high-stakes. You don't need a legal background, and the same patterns apply to contracts, insurance claims, invoices, support tickets or patient records. In the lessons, a matter is one client's case and a solicitor is the lawyer who signs work off.
What you'll learn.
- 1Trace a prompt through tokenisation, embeddings, attention and the transformer block, and count a model's parameters from its config
- 2Explain how pretraining, supervised fine-tuning, RLHF, constitutional training and RL with verifiable rewards each shape model behaviour
- 3Predict how sampling settings, grading incentives and missing context lead to hallucinations, and design grounding checks that catch them
- 4Compute KV-cache memory and prompt-caching savings, and structure prompts so caches actually hit
- 5Decide when extended thinking is worth its cost, and choose between models using your own evals, cost per completed task and latency
3 modules, 9 lessons.
10h 5m of lessons
Module 1 · 3 lessons · 2h 55m
Inside the transformer
How text becomes vectors, how attention moves information between positions, and how the rest of the block (MLP, residuals, normalisation, position) turns that into a prediction.
- 1Tokens and embeddingsHow raw text is chopped into tokens with byte-pair encoding, and how each token becomes a vector the network can compute with.45 min7-question quiz6 sources
- 2Attention, step by stepHow each token gathers information from the others through queries, keys and values, and why the formula looks the way it does.1h7-question quiz6 sources
- 3The transformer blockThe parts of the block that are not attention, namely the MLP, residual connections, normalisation and rotary position embeddings, and how they add up to a model whose parameters you can count from its config.1h 10m6-question quiz7 sources
Module 2 · 2 lessons · 2h 25m
How models are trained
From next-token prediction on trillions of tokens to an assistant that follows instructions, refuses harm and reasons through verifiable problems.
- 4Pretraining and scaling lawsHow one objective, predicting the next token over trillions of tokens of text, produces a base model, and how scaling laws decide model size, data and compute.1h 10m6-question quiz6 sources
- 5Post-training an assistantHow supervised fine-tuning, preference learning (RLHF and DPO), constitutional training and reinforcement learning with verifiable rewards turn a base model into an assistant, and the side effects each one leaves behind.1h 15m7-question quiz7 sources
Module 3 · 4 lessons · 4h 45m
Running models in production
What happens at inference time and the engineering decisions that follow: sampling and hallucination, context and caching, reasoning budgets, and choosing a model.
- 6Sampling and hallucinationHow a model turns logits into text (temperature, top-k, top-p and their limits in today's APIs), and why models state false things fluently, from pretraining statistics to grading incentives, with grounding checks that catch it.1h 10m6-question quiz7 sources
- 7Context windows, KV cache and cachingWhat happens to your prompt at inference time, why long context costs memory and money, how the KV cache and prompt caching work, and why a million-token window is not a million tokens of attention.1h 15m6-question quiz7 sources
- 8Reasoning models and extended thinkingWhy letting a model generate tokens before it answers makes it smarter, how reinforcement learning taught models to think at length, and how to control, pay for and trust extended thinking in Claude.1h 10m6-question quiz7 sources
- 9Choosing and comparing modelsHow to read benchmarks critically, compare models on cost per completed task, latency and data constraints, decide between frontier APIs and open-weight models, and keep the decision current as new models ship.1h 10m6-question quiz7 sources
Choose a model for document extraction
Build a small, rigorous evaluation of structured document extraction across models and effort levels, using what you learned about tokens, training, hallucination, caching and reasoning, and write the recommendation memo you would act on.
Finish it. Get certified.
Complete every lesson of LLMs for Engineers and you get a certificate with your name on it. Free, like the course.
- A public page with a certificate ID anyone can check
- Download it as a PDF
- Add it to LinkedIn in one click
LLMs for Engineers, answered.
Is LLMs for Engineers free?
Yes, for everyone: all 9 lessons, 9 quizzes, the capstone brief and the certificate are free, with no card and no trial. The hands-on exercises need the tools listed under Prerequisites.
Do I get a certificate?
Yes. Finish every lesson of LLMs for Engineers and you get a certificate with your name and a certificate ID, on a public page anyone can check. Finishing every course in a learning path earns the path certificate too. You can download each one as a PDF and add it to LinkedIn. They're certificates of completion from the Coders In Hoods AI Academy, not an accredited qualification.
How long does LLMs for Engineers take?
About 18 hours: 3 modules and 9 lessons, at your own pace. Your progress is saved to your account, on every device.
Which roles is it for?
It's on the AI Engineer and Machine Learning Engineer roadmaps: the courses those jobs ask for, in the order to take them.
What do I need before I start?
Comfortable reading Python. Vectors, dot products and matrix multiplication at a first-year level. Optional: what a neural network and gradient descent are.
