napkin math
AI infra interview questions tagged napkin math, across every topic.
30 questions · 10 unlocked for you
Concepts behind "napkin math"
Review the concepts used in these questions.
Foundational
Model Memory FootprintSeparate weight payload, growing request state and training allocations. Work through exact units and per-rank budgets, then check the live peak.🧮 Napkin Math & Capacity
Foundational
KV Cache SizingDerive cache payload from the stored attention state, then account for mixed sequence lengths, block allocation and per-device limits. Worked examples distinguish exact bytes from deployable capacity.🧮 Napkin Math & Capacity
Foundational
Training FLOPs: 6NDDerive the six from one forward and two backward matrix products. Count training tokens, attention and recomputation consistently before turning model work into a schedule.🧮 Napkin Math & Capacity
Foundational
The AI Infra Design Round PlaybookA design interview is a chance to explain requirements, capacity and tradeoffs clearly. Use a flexible structure that leaves time for mechanisms, failures and follow-up questions.📐 AI Systems Design
Core
GPU-Hours and Time to TrainConvert a stated work budget into elapsed time and GPU-hours. Vary utilization, invert for a deadline, and separate productive time from calendar delays without counting them twice.🧮 Napkin Math & CapacitySign in
Advanced
Bandwidth-Bound Decode ThroughputEstimate decode throughput from bytes per step, then separate aggregate output from per-user pace. A finite-memory example shows how batching, cache reads and quantization change the bound.🧮 Napkin Math & Capacity🔒 Premium
