AI Infrastructure & GPU Engineering
A self-paced path from "what is a feature?" to writing CUDA kernels and sharding training across GPUs — every lesson backed by runnable code you can measure yourself.
C++ ↔ CUDA Dual Track
Every parallel concept implemented twice — CPU stack vs GPU stack — then confronted. The mapping between the two is the skill.
Start drilling →AI Math
The math behind neural networks, from vectors to attention — every concept verified with runnable PyTorch and pytest.
Put a breakpoint on it →How Machines Learn
Features, training vs inference, the learning paradigms and the modern LLM workflow — the chapter to read first.
Read the chapter →Glossary
Every term the lessons use — warp, coalescing, occupancy, roofline — defined once, linked everywhere.
Keep it in a tab →Start here
- New to machine learning? Read How Machines Learn from Data first: features, training vs inference, the learning paradigms, and the modern LLM workflow — no code required.
- Here for the systems side? Jump into the C++ ↔ CUDA dual track and keep the glossary in a tab.
- Want the math to stop being magic? The AI Math track rebuilds the mathematics behind neural networks — vectors to attention — with every concept verified by runnable PyTorch code and pytest. Extra-curricular, but a must for anyone drilling into the internals; it pairs naturally with the main track.
The path, in four stages
Do the stages in order; inside a stage, do modules in order. Each lesson states its prerequisite and an honest time estimate — the hours assume you run the labs, not just read.
Stage A — Foundations of parallel execution
After this stage you can explain why the same loop runs 100× faster on a GPU, and measure it.
- 01 · Execution model — ~2h
- 02 · Memory hierarchy — ~3h
- 03 · Data parallelism: SAXPY — ~2h
Stage B — Parallel algorithms
After this stage you can build the three algorithmic shapes 90% of kernels reduce to.
- 04 · Reduction — ~3h
- 05 · Scan & histogram — ~4h
- 06 · Matmul & tiling — ~4h
Stage C — Systems craft
After this stage you can overlap, synchronize and profile like it’s a habit.
- 07 · Asynchrony & overlap — ~3h
- 08 · Sync, atomics, memory model — ~3h
- 09 · Profiling & roofline — ~3h
Stage D — The frontier
After this stage you can read FlashAttention and CUTLASS as engineering, not magic.
- 10 · Advanced GPU — ~5h
- 11 · Multi-device — ~4h
- 12 · Capstone: PyTorch extension — ~6h
How to study each lesson
- Read the lesson (concept + the CPU-vs-GPU confrontation table).
- Build and run the cpp/ lab, then the cuda/ lab — source links are on every page.
- Answer the exercises in writing in your own NOTES.md. The questions are chosen so the answers differ between the stacks — that delta is the lesson.
- Only then read the companion book chapters listed at the bottom of the lesson.
Reference shelf
- The Ultra-Scale Playbook — free; the parallelism textbook.
- AI Systems Performance Engineering (Fregly, O’Reilly 2025) — spread across the track as per-lesson companion reading.
- Mathematics for Machine Learning (Deisenroth, Faisal, Ong) — free PDF from the authors; ch. 5 pairs with the ML foundations chapter.