AlgoViz

Serving mixed workloads on an inference cluster

hard 7 min

Prefill computes representations for the prompt and builds key/value state.

Trace the example

Follow the evidence through each stage, then test a change in the case.

A long document arrives among short conversations

A long document arrives among short conversations. Selected component: Admission queue inside Serving control.
Open full-size diagram

Serving control

Admit the long document within budget

Reserve capacity for prompt tokens, concurrent chats and the expected decode state. Queue or decline a request that cannot fit its declared limits.

Split pools reduce prefill delay but repeatedly miss the inter-token target. What comparison should decide deployment?

Transfer the cache between worker pools

31.25 ms minimum payload transfer time

The prefill worker sends 256 MiB of cache to the decode worker. Queueing, serialization and contention add to this lower bound.