Serving mixed workloads on an inference cluster
hard 7 minPrefill 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
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
The prefill worker sends 256 MiB of cache to the decode worker. Queueing, serialization and contention add to this lower bound.