7. Overlapping multiple requests with slots and a queue — implementing continuous batching
If the GPU processes only one sequence at a time, it sits idle while that sequence finishes prefill and moves on to decode. Continuous batching is the approach of feeding…