prefill
AI infra interview questions tagged prefill, across every topic.
12 questions · 2 unlocked for you
Concepts behind "prefill"
Review the concepts used in these questions.
Foundational
Prefill vs DecodeFollow one prompt through its first prediction and later decode steps, then separate GPU work from the wait a user sees. Learn why batch size and context change the likely bottleneck.🚀 Inference & Serving
Core
Arithmetic Intensity by OperationCount the FLOPs and memory transfers of a projection, attention and a residual add. Learn where the batch-size shortcut works, where it breaks, and which hardware roof applies.🧮 Napkin Math & CapacitySign in
Advanced
Memory-Bound vs Compute-Bound KernelsUse a worked timing example to distinguish a bandwidth ceiling from a measured bottleneck. Learn which profiler evidence to inspect and why decode, prefill and a whole serving step need separate diagnoses.🧩 GPU & Accelerator Architecture🔒 Premium
Advanced
Disaggregated Prefill and DecodeSeparate prefill and decode to control phase interference, then budget the KV handoff. A short isolated transfer can still overload a shared path; cancellation stops generation before it necessarily releases transfer buffers.🚀 Inference & Serving🔒 Premium
