Advanced
For engineers who build and run LLM systems: model internals, inference cost, adapting models, retrieval quality, agents, reliability, releases and attacks. It assumes the beginner track or similar experience, and ends with a project that takes the beginner assistant to production.
Paid track · coming soon- 37 lessons, one for each topic, with animated diagrams, worked examples, exercises and answers
- The capstone project, with its guided pages and the download
Purchases are available in the US for now.
Inside the Model
What the beginner diagram of a transformer leaves out.
After this level you can decide whether a reasoning model, a longer context or a multimodal model is worth its cost for your task.
- Comparing attention variants40 minFree concept: Attention variants: MHA, GQA, MQA
- How mixture of experts works35 minFree concept: Mixture of Experts
- Long context and where it breaks40 minFree concept: Positional encoding and long context
- When a reasoning model is worth it40 minFree concept: Reasoning models and test-time compute
- Adding images and audio35 minFree concept: Multimodality
Inference Performance
Where the latency and the money go.
After this level you can decide where your latency and GPU money go, and whether batching, quantization or routing to smaller models will cut them.
- Sizing the KV cache40 minFree concept: KV Cache
- How continuous batching works40 minFree concept: Continuous Batching
- When speculative decoding helps35 minFree concept: Speculative Decoding
- Quantizing a model safely40 minFree concept: Quantization
- Routing requests to smaller models45 minFree concept: Model Routing
- Does the model fit on the GPU?35 minFree concept: GPU memory math: what fits where
- Splitting a model across GPUs40 minFree concept: Distributed inference: tensor and pipeline parallelism
Adapting Models
When and how to change the weights.
After this level you can decide whether to change the model's weights at all, and if so how: full fine-tuning, LoRA, distillation or preference tuning.
Retrieval at Depth
The pipeline runs; why are the answers mediocre?
After this level you can decide why retrieval returns mediocre results, and whether rewriting queries, reranking or a different embedding model will fix it.
- Rewriting queries40 minFree concept: Query Rewriting
- Adding a reranker40 minFree concept: Reranking
- Choosing retrieval metrics45 minFree concept: Precision@k, MRR and NDCG
- Choosing an embedding model40 minFree concept: Choosing and tuning an embedding model
- Multi-hop and graph retrieval40 minFree concept: Multi-hop and graph retrieval
Agent Architecture
What happens when one call becomes forty.
After this level you can decide whether a job needs several agents, a plan or checkpoints, and how to judge the whole run rather than one answer.
Production Reliability
Failures that have nothing to do with the model.
After this level you can decide what your system does when a dependency fails or traffic spikes: retries, rate limits, circuit breakers and fallbacks.
- Retrying safely45 minFree concept: Idempotency & Retries
- Handling rate limits and spikes40 minFree concept: Rate Limiting & Backpressure
- Adding a circuit breaker40 minFree concept: Circuit Breaker
- Designing for when the model is down45 minFree concept: Fallback and graceful degradation
Ship and Observe
Releasing what you cannot unit-test.
After this level you can decide how to release a change safely, and how you'll notice when quality or cost drifts after launch.
- Releasing with canary and shadow runs45 minFree concept: Canary & Shadow Deployment
- Tracing a request40 minFree concept: Distributed Tracing
- Detecting drift40 minFree concept: Drift
- Tracking cost per feature40 minFree concept: Cost and token telemetry
- Running an A/B test on an LLM feature45 minFree concept: Online A/B testing for LLM features
Adversarial and Hardening
How people try to break an LLM system, and what stops them.
After this level you can decide how someone would attack your system, and which layers of defense stop injected instructions and data leaking through tools.
- Red-teaming your own system45 minFree concept: Red teaming an LLM system
- Layering defences against prompt injection45 minFree concept: Defense in depth for prompt injection
- Stopping data leaks through tools45 minFree concept: Data exfiltration and tool permissions
Capstone project: Make an AI assistant ready for real customers
You start with an assistant that answers well on a normal day and breaks on a bad one: too slow, too expensive, failing when the model provider does, open to attacks, impossible to watch. You write the parts that fix that, and a scoreboard shows each fix turning a red line green. It runs on your own computer, with Claude Code or your own Claude or OpenAI key.