🖥️ AI InfrastructureID:
continuous-batchingContinuous Batching
连续批处理
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep DiveCore Def
Explain the core definition, underlying mechanism/math, and key principles of Continuous Batching.
Use Cases
In production engineering, what are the primary use cases for Continuous Batching and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Static vs continuous batching: draw a timeline with two requests (10 tokens vs 40 tokens) showing static batching's idle time vs continuous batching's refill, and why throughput rises 2-3×.
2
Iteration-level scheduling: what the engine does at the end of each decode iteration (evict finished, insert prefilled newcomers, dynamic membership); why a request must prefill before joining decode.
3
Preemption and swap: who gets preempted under memory pressure (new prefill vs running decode), where evicted KV goes (CPU swap / discard-restart), and each option's latency cost.
4
Why workloads with many short requests benefit most: fast completion, fast slot turnover; relate to the padding/chunked-attention cost of unequal-length sequences in a batch.
5
How continuous batching composes with PagedAttention and PD disaggregation: paged KV makes dynamic membership fragmentation-free; how scheduling works in prefill nodes vs decode nodes.
📖 In-depth Guide:📄 high-concurrency-ai-system →
Updated 2026-08-12🎯
🚀 Start Card Practice ➔Test Your Knowledge: Practice Questions for "Continuous Batching"
Single choice pitfall questions with instant feedback and mistake tracking.