Batching, Scheduling & Admission
15 questionsDONEUNLOCKEDLOCKED
Continuous Batching & Scheduling Interview Questions
Static, dynamic and iteration-level batching, chunked prefill and the token budget, preemption by swap or recompute, priority and fairness, queueing arithmetic, and the goodput a scheduler is really optimising.
Worked answers on inference mechanisms, with calculations, implementation details, and follow-up questions.
You have 5 free answers unlocked here.Sign in free for 5 more · 5 are premium.
01–06Foundationsthe physics and terms an interviewer will not stop to define0/6 done
07–12Core loopsthe standard questions of this round, worked end to end0/6 done
13–15Field scenariosproduction incidents and capacity problems with the inputs left incomplete0/3 done
The concepts behind Batching, Scheduling & Admission
The ideas these answers lean on. Foundation concepts are free to read; the advanced ones are Premium.
Foundational
Iteration-Level Scheduling (Continuous Batching)Iteration-level scheduling, sold as continuous or in-flight batching, re-forms the batch at every forward step instead of once per batch of requests. Finished sequences leave and queued ones join on the next step, which decides how much of a GPU's decode capacity real traffic with uneven output lengths can use.Advanced
Chunked Prefill and the Token BudgetChunked prefill splits a long prompt into pieces that ride along with decode tokens, under a per-step token budget such as vLLM's max_num_batched_tokens. The budget controls how much prompt work shares a step with decode, trading prompt progress against token gaps without guaranteeing a fixed latency.🔒 Premium
Advanced
Preemption: Swap Versus RecomputeWhen the KV pool runs out mid-decode, the scheduler must evict a running sequence: either swap its cache to host memory over PCIe and copy it back later, or free it and recompute it with a fresh prefill. The cost of each depends on model size, KV bytes per token and whether prefix caching still holds the freed blocks.🔒 Premium
Unlock all 15 answers · ₹2,000 / $25
Every worked answer and derivation in all 12 topics, every concept page, and the full practice-test bank.
6 months · One payment · No auto-renewal