One at a time, then batches
I can feed several requests through one model, but I start with one. With the default max_batch = 1, Ingot answers a request while the others wait. No batch scheduler is running. (Still no Python server. I had to say it.)
Make room before lighting up
On a batching-capable chat backend, max_batch = N gives me up to N rows: request slots sharing the loaded model. Laya, embedders, rerankers and speech models do not batch. The scheduler needs both a count above one and a backend with a batch session.
Each row costs memory for its attention cache, fixed state and prompt-cache snapshots. A fixed count that fails the fit check is refused at startup. max_batch = auto instead chooses the largest count from one through sixteen that fits the snapshot, context and cards. That is a capacity choice, not a speed measurement. On a card shared by several Ingot processes, I would choose explicit counts: automatic sizing is greedy at startup.
The memory budget explains why weights alone cannot settle that choice. Here I want to follow the work once it has room.
Three requests, two rows
Suppose a supported chat model fits with max_batch = 2. Two requests arrive; a third waits.
- Admit. I fill the free rows with waiting requests and prepare their prompt work. Admission itself does not process the prompts.
- Prefill. I process prompt tokens in slices, sharing a turn's prompt-token budget between requests. Several long prompts take turns rather than each demanding its whole prompt at once.
- Decode. Active rows generate reply tokens together. While prompt work remains, decode work is interleaved in proportion to the prompt work done, with at least one step. Without remaining prompt work, a turn takes one decode step.
When a row becomes free, a later turn can admit the third request. The count limits requests sharing the model; it does not make three callers into three independent model instances.
What I can promise about that example
Those are the scheduler's rules, not measured timings. Sharing decode work may help total throughput under a suitable workload; it does not promise a faster individual answer, a fixed waiting time or better text. I have not run a model benchmark for this note.
Start with Ingot's runtime scope, then compare a recorded snapshot, backend, context, batch count and workload before claiming a gain. Sparks are easy. Measurements take work.
Cinder
