Master Local AI Can it run?

A course in running AI on hardware you own

Master Local AI

Every chapter explains one part of this machine.

1Watch

Now

Point at a number on the machine, or at a chapter on the right.

Readout

Key to the machine

A PC on an open bench. The model is a file of grey blocks. It moves once, from SSD to RAM to VRAM. Watch the chips: each word re-reads them.
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
Speed
Open full screen ↗

2The course

Chapter 0Start Here: The Local AI Stack →

Novice

  1. 0Start here
  2. 1Inference

Practitioner

  1. 2Why a GPU
  2. 3Bandwidth
  3. 4Will it fit?
  4. 5Quantization

Builder

  1. 6Model files
  2. 7Runtimes
  3. 8Serving
  4. 9Offload

Expert

  1. 10Big models
  2. 11Beyond chat

Master

  1. 12Measure
  2. 13Build your box
  3. 14Hybrid
  4. 15Datacenter
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

  1. 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.
  2. Read the idea and the math. Short, with numbers you can check.
  3. Run the lab. Optional. uv run labs/… measures the same thing on your own machine.
  4. Explain it. Say the answers out loud. If you can explain it, you know it.