batch size
AI infra interview questions tagged batch size, across every topic.
5 questions · 3 unlocked for you
Concepts behind "batch size"
Review the concepts used in these questions.
Foundational
The KV CacheThe KV cache saves attention keys and values from processed tokens. Follow one decode step, calculate its memory cost, and see why longer conversations reduce the number of requests a GPU can hold.🚀 Inference & Serving
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
