TECHNOLOGY

MLServer inference pools: increasing workers can replicate every loaded model

In this article
THE QUICK TAKE

A shared inference pool loads its models across workers; capacity planning must include the whole model set assigned to that pool.

Scaling a small endpoint increases unrelated memory

A server hosts a frequently called classifier and a larger, rarely used embedding model. Increasing its inference workers to relieve classifier pressure unexpectedly increases memory substantially. The operator counted extra copies of the classifier while overlooking the other model loaded into the same pool.

The planning question is therefore not only how large the busy model is. It is which models belong to the inference pool and what every additional process must initialize to serve that membership.

A pool is a process-level boundary

The parallel-inference guide explains that MLServer offloads inference to separate worker processes and loads models uniformly across pool workers. It also documents dedicated pool grouping for separating model workloads.

Check the actual pool assignment before estimating replication. A model configuration that looks independent in the repository can still contribute to the resource footprint of a shared runtime pool when the server loads it.

Configure the effective server-level worker count

The server settings identify the global parallel_workers control. Inspect the deployed value and environment overrides, rather than assuming a model-local file alone establishes the running process topology.

The model settings direct users away from the older model-level parallel_workers field toward the server-wide setting. Mixing the scopes can produce a configuration review that describes a topology different from the one actually running.

Count loaded runtime state rather than checkpoint bytes

Reserved and allocated accelerator memory explains why live tensor size is not the complete runtime footprint. Include framework state, preprocessing dependencies and peak temporary work when evaluating whether the replicated pool fits.

Also distinguish host and accelerator failure modes. Host memory-pressure events can explain a process termination even when the accelerator dashboard appears to have room. A pool is a collection of full runtime processes, not just additional request slots.

Compare shared and separated deployment evidence

Record pool membership, worker count, model-load events and memory after all models become usable. Then compare candidate topologies using the same input mix and model revisions, including the rarely called model.

A useful scaling decision explains both the busy endpoint’s behavior and the total replicated footprint. Extra workers are justified by measured service needs only when the full assigned model set still fits its operating environment.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles