How does continuous batching in engines like vLLM change unit economics?
PICTURE THIS: A SENTENCE BECOMES TOKENS
The model does not read letters like humans. It reads these pieces, then predicts the next one.
Simple meaning
New requests join an in-flight batch at token boundaries instead of waiting for a full batch to drain.
WHY — Tokens instead of words?
LLMs use tokens (not full words) because it helps them:
question about Cost.
trade-offs, and what you would actually do on a GenAI / LLM project - not buzzwords.
Each piece maps to a number the network can learn.
Fixed pieces are what transformers expect as input.
STEPS — What happens with tokens?
Before the model can read a sentence, it goes through these steps:
- 1New requests join an
in-flight batch at token boundaries instead of waiting for a full batch to drain.
- 2GPU occupancy stays high
under chatty, uneven loads.
- 3You still need cap
on max sequences so tail latency stays within SLO.
- 4Context mix
Attention looks at nearby tokens together.
- 5Next token
The model scores what should come next.
- 6Decode
IDs turn back into readable text.
EXAMPLE — See it in action
Here's a short line you can speak, broken into clear beats:
Note: Adapt this scaffold to your own project — keep it under 60–90 seconds.
Key takeaway
New requests join an in-flight batch at token boundaries instead of waiting for a full batch to drain. GPU occupancy stays high under chatty, uneven loads.