liveBook · Manning

Model repository

As explained in Delivering Machine Learning Projects: From design to deployment

A model repository is a managed storage system for machine learning models and their associated versions or metadata.

A model repository stores model instances and their associated versions and metadata. It links each model to the artifacts, data and results that explain how it was built and evaluated. This record supports controlled development and deployment, as well as investigations into future failures, stability and blind spots. section 5.5 section 7.4.2

For each model iteration, record:

  • An identity linking the model to its binary or declarative specification used in testing and production. section 5.5
  • The algorithm and its version, architecture, hyperparameters, data and features used to create the model. section 5.5 section 7.4.2
  • Evaluation results and any qualification or selection test results. section 5.5
  • Technical artifacts, including foundation models and features, plus identities and status of pipelines used to provide training, validation and test sets. section 5.5

Commission and adopt the repository before iterative modeling begins. Check that suitable hosting and access are available, identify who will establish the infrastructure, and have a hands-on data scientist validate any existing MLOps system. Use the repository alongside an experiment tracker as part of an agreed modeling process. section 2.7.1 section 5.5 section 7.4

Track related tools and components as well. Register foundation models in customer repositories and catalogs, check their licenses, and use the correct versions across pipelines. Record and obtain approval for libraries and other tools, following architectural compliance or exception processes. section 5.5.1

Connecting experiments to models

A series of simple linear-model runs recorded test-set size, penalty and AUC using MLflow from Python modeling code. The test-set size was added after differences in performance prompted closer tracking. Model identifiers provide the link from experiment outcomes to the model binaries and related assets. section 7.4.2

Figure 7.8 The files stored in a model repository that we can use to understand which model is stored, how it was made, how it relates to the experiment tracking information, and to get it up and running again.

Explore how repository files relate a stored model to its construction, experiment information and reuse. section 7.4.2

How Delivering Machine Learning Projects: From design to deployment covers it

How deep it goes
Specifies metadata to record and commissioning checks, without detailing a repository implementation.
Examples
Uses linear-model runs with varying test-set sizes, penalties and AUC to illustrate experiment records linked to models.
What you can do after
Operate/configure a model repository by commissioning it and recording model identities, artifacts, data lineage and evaluation results.
How it connects
Links model versioning with experiment tracking, data pipelines, foundation models and model governance.

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 Delivering Machine Learning Projects: From design to deployment. The section links point to the parts of the book it draws on.