1Watch
Point at a number on the machine, or at a chapter on the right.
Readout
Key to the machine
How the numbers work
Pick a GPU and the ring of VRAM chips changes: a 5090 has sixteen on a 512-bit bus, a 5070 Ti eight on a 256-bit bus. One block is what one chip holds (doubled for very large files, so the file is at most 16 blocks). Weights load from the SSD at about 7 GB/s and cross PCIe 5.0 (64 GB/s) into VRAM once. Then every token streams them from VRAM into the GPU die. Your prompt crosses PCIe as 22 token IDs × 4 bytes = 88 bytes. A model that does not fit leaves surplus blocks in system RAM. Decode time is then the VRAM read plus the slower RAM read (≈ 90 GB/s). Fit check: weights plus an 8,192-token KV cache plus 1 GB overhead must fit in 95% of VRAM; decode assumes 70% of peak bandwidth.
- Grey blocks = model weights
- Tiles = your prompt and reply words
- Green = KV cache on a VRAM chip
2The course
Chapter 0Start Here: The Local AI Stack →Novice
Practitioner
Builder
Expert
Master
All 16 chapters ↓Can it run on my machine? →From the first prompt you type to designing your own personal AI box. Every chapter has a working machine you can push to its limits: change the GPU, the model, the context or the number of users, and watch what breaks.
The whole course follows one question, Why does my GPU need so much VRAM?
, from the keyboard to the GPU and back.
Novice
Practitioner
Builder
Expert
Master
How each chapter works
- Look, then try. The left panel says what happens now. The right panel’s Try this steps drive the machine for you, one limit at a time.
- Read the idea and the math. Short, with numbers you can check.
- Run the lab. Optional.
uv run labs/…measures the same thing on your own machine. - Explain it. Say the answers out loud. If you can explain it, you know it.