Standard 3 stops to get here · leads to 1

Model Deployment

Getting a trained model out of the notebook and into a running system where real users or applications can rely on its predictions, and keeping it healthy there.

Your route here

3 stops · basics first
  1. Dataset ✓ understood

    A collection of data examples used for training, validating, or testing machine learning models.

  2. Training ✓ understood

    The process of fitting a model to data by repeatedly measuring how wrong its outputs are and adjusting its parameters to reduce that error.

  3. Inference ✓ understood

    Running a trained model on new inputs to get predictions, with its weights frozen: the stage of a model's life that users actually interact with.

  4. Model Deployment · you are here ✓ understood

Picture it

  1. 01 Package Freeze weights, code and dependencies together
  2. 02 Integrate Put it behind an API, in a batch job or on a device
  3. 03 Release Roll it out to users gradually and reversibly
  4. 04 Monitor and update Watch live behaviour; retrain or roll back
Notice that deployment does not end at launch: the last step loops back, because live data keeps changing after the model ships.

Model deployment is everything between “the model works in an experiment” and “the product depends on it”. A trained model is just a file of weights; deployment turns it into a service with inputs, outputs, owners, and a plan for when it goes wrong.

Paleyes and colleagues describe an ML project as four stages: data management, model learning, model verification, and model deployment. They define deployment as integrating the trained model into the software infrastructure that runs it, and include maintenance and updates in the same stage. Their survey of real case studies found practitioners hitting problems at every stage, but deployment is where the model first meets production constraints.

What it involves

  • Choosing a shape. Online prediction behind an API (model serving), scheduled batch processing, or running on the device itself (edge deployment).
  • Packaging and versioning. Pinning the exact weights, preprocessing code and dependencies, usually via a model registry, so what runs in production matches what was tested.
  • Releasing safely. Rolling a new model out gradually, such as to a small slice of traffic first, and keeping the old one ready as a fallback.
  • Watching it. Model monitoring tracks latency, errors and prediction quality once real data arrives.

Why it is hard

Sculley and colleagues pointed out that the ML code is only a small fraction of a real-world ML system; the surrounding infrastructure is vast. Much of the difficulty is data: a model can degrade without any code changing because the world it sees has changed. That is why deployment is treated as a continuous loop, the core concern of MLOps, rather than a one-time handoff.

Where it sits

Before this

Inference
Model Deployment

Explore nearby

Sources

  1. Paleyes, Urma and Lawrence, "Challenges in Deploying Machine Learning: a Survey of Case Studies" . ACM Computing Surveys, 2022
  2. Sculley et al., "Hidden Technical Debt in Machine Learning Systems" . NeurIPS 2015