Continuous Batching Under the Hood: What Actually Happens Inside vLLM When 100 Requests Hit at Once A developer published a technical breakdown of how vLLM's V1 scheduler implements continuous batching, explaining that no persistent batch object exists inside modern LLM inference engines—instead, a scheduler recomputes batch membership between every token-generation step using waiting and running queues plus per-request num_computed_tokens cursors. The writeup traces how finished sequences are evicted and their KV cache memory reassigned to waiting requests within roughly 15 milliseconds, and contrasts iteration-level scheduling (from the Orca paper at OSDI 2022) with static request-level batching. If you come from traditional deep learning, your mental model of batching is straightforward. You gather $N$ inputs, pad them with zeros so their dimensions match, pack them into a tensor, and push that tensor through your model in a single forward pass. When developers first stand up an inference server for a large language model using that approach, throughput drops off a cliff. Generative language models do not work like ResNet or BERT. In an LLM, requests arrive asynchronously. One user sends a 50-word prompt and wants a 10-word reply. Another user uploads a 3,000-word documentation file and asks for an 800-word summary. If you group those two requests into a classic static batch, two things go wrong immediately: