AI models
Build a small language model and test what it learned. Topic previews are free. Detailed walkthroughs and projects are part of paid MCP practice.
AI Engineering syllabusAll 7 sections Lessons: 36
Your own language model
Nine steps from word counts to training, generation and moving to a GPU. The main project runs on a CPU.
See how autocomplete chooses between “rain” and “snow” using three entries from a weather diary.
Split a short phrase into examples where two words give the model a clue and the third is its target.
Swap two words and see why a model needs to know which came first.
Use two numbers to see how Tanh transforms a signal inside a hidden layer.
Compare the probability of the correct word before and after an update to see whether the prediction improved.
Decide which of ten stories to hold back so you can test the model on unfamiliar text.
Continue one phrase in two ways and see how each word changes what might follow.
See how changing a single vocabulary entry changes the word you read after reloading a model.
Consider a model on the GPU and an input on the CPU. Work out where the data needs to be before the calculation.
Adapt a pretrained model
Continue training existing weights, compare training modes and build an adapter for a pretrained LLM.
Check how a pretrained model performs before it sees the new training examples.
See how new texts change the predictions of a model that can already continue a phrase.
Discover what changes when only the output layer is allowed to learn.
See how features learned from reading text can help solve a different task.
Compare the old and new skills to detect when fine-tuning makes a model forget.
Explore how a tokenizer turns a phrase into a sequence of IDs for a language model.
See how a small adapter changes the predictions of a pretrained language model.
RAG over instructions
Build local retrieval and source-checked answers for numeric configuration facts.
Choose the passage from a short manual that tells you when an archive will be deleted.
Compare two titles and find the word that points to the archive recovery instructions.
Choose one paragraph that answers how long backups are kept and keep its source label.
Compare an assistant’s promise with the support hours and spot the claim the help page never makes.
Inspect the retrieved passage to work out why an assistant gave the wrong archive retention period.
An application with a model
Verify an answer against its source and retry without creating a duplicate ticket.
Eval harness
Test the assistant with a case set, account for noise and decide in CI whether to ship a new version.
Describe the assistant's checks as cases and split them so that heldout stays honest.
Write checks that look at the assistant's response and name the specific reason for a failure.
Run two versions of the assistant over the same set and find what broke during a fix.
Run a real model several times and work out how far you can trust the success rate.
Compare an LLM judge's verdicts with human labels and see what kappa shows.
Decide from two runs whether to let a new version of the assistant through, and prove a prompt improvement.
Quantize a model
Convert weights to int8 and compare quality, storage and latency.
See how rounding to a grid changes a model weight.
Explore how an integer code and a scale represent a model weight together.
Add two products and see how much room the sum needs.
Identify the measurements that tell you whether a compact model suits your task.
Choose a model that meets the application’s constraints and check it after saving.
Refusals and answer quality
Three lessons with local Python labs. No model downloads or GPU required.
Distinguish sources of refusal and check which conclusions the evidence supports.
Label harmless responses using clear rules and a verified reference.
Compare two fictional response sets and check accuracy separately from refusals.