liveBook · Manning

Model repository

As explained in Designing Deep Learning Systems: A guide for software engineers

A model repository is a filesystem-based collection of directories and files that stores deployable model artifacts.

A model repository is a filesystem-based collection of directories and files that stores deployable model artifacts. Serving systems discover artifacts there, load selected versions, and expose them through inference APIs. section 7.4.3 section 7.4.1

A repository connects storage to the serving lifecycle:

  • Triton loads models from repository directories, creates a configurable scheduler for each model, and dispatches requests to the matching backend. section 7.4.3
  • TensorFlow Serving locates a servable in the filesystem, associates it with a version and loader, and applies a predefined version policy before loading it. section 7.4.1
  • Repository contents must match the serving system’s expected artifact format, such as TensorFlow SavedModel directories containing assets, variables, and saved_model.pb. section 7.4.1

Versioned TensorFlow Serving layout

A model directory can contain versioned subdirectories such as tf_model/1. TensorFlow Serving can mount that directory, select configured versions, and answer requests using a version-specific REST endpoint. section 7.4.1

Figure 7.10 Triton Inference Server high-level architecture (Source: NVIDIA Developer, https://developer.nvidia.com/nvidia-triton-inference-server)

Use the Triton architecture to trace requests from REST or gRPC entry points through repository-loaded models, schedulers, and backends. section 7.4.3

How Designing Deep Learning Systems: A guide for software engineers covers it

How deep it goes
Defines filesystem storage and follows discovery, version policy, loading, scheduling, and backend execution without detailing repository synchronization.
Examples
Uses Triton model directories and TensorFlow SavedModel layouts with versioned subdirectories, assets, variables, and saved_model.pb.
What you can do after
Operate/configure TensorFlow Serving or Triton around filesystem-hosted model artifacts and selected model versions.
How it connects
Connects model repositories with model serving, model versioning, SavedModel, schedulers, backends, and inference APIs.

Also explained in

Compare how 2 books explain model repository →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Designing Deep Learning Systems: A guide for software engineers. The section links point to the parts of the book it draws on.