liveBook · Manning

Model server shard

As explained in Distributed Machine Learning Patterns

A serving component that processes a subset of a large inference request as part of a sharded model-serving deployment.

A model server shard is a partition of one model-serving instance that processes a subset of a large inference request. Sharding addresses requests too large for one serving component by dividing the input, processing parts independently, and combining the resulting predictions. section 4.3.2

A sharded serving workflow follows these steps:

  • Divide the original high-resolution input into separate sub-requests, such as video regions. section 4.3.2
  • Send each sub-request to a different model server shard for independent processing. section 4.3.2
  • Have each shard retrieve the previously trained model from model storage and generate inferences for its assigned subset. section 4.3.2
  • Merge the shard results to produce the inference result for the original request. section 4.3.2

High-resolution video tagging

A video containing a dog and a kid is divided into two videos. One shard processes the dog region and another processes the kid region; merging their entity-tagging results returns dog and kid for the original video. section 4.3.2

Figure 4.10 An example architecture of the sharded services pattern where a high-resolution video gets divided into two separate videos. Each video represents a subset of the original large request and is processed by different model server shard independently.
04-10

Use the architecture diagram to trace input partitioning, independent shard processing, and result assembly. section 4.3.2

How Distributed Machine Learning Patterns covers it

How deep it goes
Explains partitioning, independent inference, model retrieval, and result merging without detailing sub-request distribution.
Examples
Uses a high-resolution dog-and-kid video split into two independently tagged video requests.
What it assumes
Assumes familiarity with trained models, model serving, inference requests, and model storage.
What you can do after
Apply it by partitioning large inputs, processing subsets independently, and merging shard-level inference results.
How it connects
Connects model serving with distributed model training, parameter servers, model storage, and replicated services.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Distributed Machine Learning Patterns. The section links point to the parts of the book it draws on.