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.

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.

  1. 01 · Execution model — ~2h
  2. 02 · Memory hierarchy — ~3h
  3. 03 · Data parallelism: SAXPY — ~2h

Stage B — Parallel algorithms

After this stage you can build the three algorithmic shapes 90% of kernels reduce to.

  1. 04 · Reduction — ~3h
  2. 05 · Scan & histogram — ~4h
  3. 06 · Matmul & tiling — ~4h

Stage C — Systems craft

After this stage you can overlap, synchronize and profile like it’s a habit.

  1. 07 · Asynchrony & overlap — ~3h
  2. 08 · Sync, atomics, memory model — ~3h
  3. 09 · Profiling & roofline — ~3h

Stage D — The frontier

After this stage you can read FlashAttention and CUTLASS as engineering, not magic.

  1. 10 · Advanced GPU — ~5h
  2. 11 · Multi-device — ~4h
  3. 12 · Capstone: PyTorch extension — ~6h

How to study each lesson

  1. Read the lesson (concept + the CPU-vs-GPU confrontation table).
  2. Build and run the cpp/ lab, then the cuda/ lab — source links are on every page.
  3. 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.
  4. 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.

This site uses Just the Docs, a documentation theme for Jekyll.