179 questions
No questions match those filters.
← All questions
Inference & ServingMedium· vLLM· Throughput· Memory Management
How does vLLM achieve higher throughput than naive batc...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansvLLM improves throughput by addressing the inefficiencies of static batching. Continuous batching allows the system to reclaim slots as soon as a sequence finishes, preventing idle time. Selective batching ensures that compute operations are always performed at full efficiency. Furthermore, PagedAttention manages the KV cache in non-contiguous memory blocks, similar to virtual memory in operating systems, which eliminates fragmentation and allows for a higher number of concurrent sequences.