GPU & Memory
VRAM budgeting: weights, activations, gradients, optimizer state, KV cache.
Learning path
Work through each subtopic in order. Click any file below to open its lesson. Track your progress with the checkbox at the bottom.
Subtopics
Each subtopic includes a concise explanation, code examples, and references.
VRAM
GPU memory meter.
Model Memory
Model-size calculator.
Weight Memory
Weight-storage visualization.
Activation Memory
Activation tensor timeline.
Gradient Memory
Training-memory diagram.
Optimizer Memory
Optimizer-state allocation diagram.
KV Cache Memory
Cache-growth visualization.