Why inference is fast or slow, and how to make it faster
Inference Engineering
Bottleneck maths, attention and GPU architecture, the software stack, engines compared from the inside, and the techniques that matter: quantisation, speculative decoding, parallelism, caching and disaggregation. Ends with a benchmarking capstone.
4 tracks · 12 lessons · about 5 hours · 1 free lessons · 0 animated diagrams
What you will be able to do
- ✓Predict throughput and latency from memory bandwidth and FLOPs
- ✓Explain what each engine optimisation changes and when it helps
- ✓Choose parallelism, quantisation and caching strategies with trade-offs
- ✓Benchmark honestly and report results others can reproduce
Who it is for
Engineers who want to reason about inference performance from first principles and tune it with evidence.
Prerequisites
Local LLM Inference basics (tokens, VRAM, prefill vs decode). Comfort reading Python.
Curriculum
Bottlenecks and Hardware
AdvancedPrefill versus decode, the roofline model, attention optimisations and GPU architecture for inference.
The Software Stack
AdvancedFrom CUDA kernels and compilers to the engines: llama.cpp, vLLM, SGLang, TensorRT-LLM and friends compared from the inside.
Performance Techniques
AdvancedQuantisation, speculative decoding, parallelism, disaggregated serving and caching, with the maths for each.
- 1Quantisation in depth: formats, groups, outliers, activations and KVPro17 min
- 2Speculative decoding in depth: acceptance maths, draft models, EAGLE and n-gramsPro15 min
- 3Model parallelism: tensor, pipeline, expert and data parallel inferencePro15 min
- 4Disaggregated prefill and decode: why and when to splitPro13 min
- 5Caching: prefix caching, semantic caching and KV offloadPro14 min
Benchmarking and Capstone
AdvancedBenchmark honestly, avoid common traps, and run the baseline-to-3x capstone.