AI Infrastructure

Model Deployment

Model deployment is the process of moving a trained model out of the lab and into a running system where it receives real requests, returns predictions, and is monitored, secured, and updated over time.

What is model deployment?

Model deployment is the set of steps that takes a trained model from a data scientist’s notebook to a production environment where it answers real requests. Training produces a file of model weights plus the code that turns raw inputs into the features the model expects. Deployment wraps both in a service with an application programming interface (API), places it on servers with enough compute, connects it to the systems that will call it, and adds the monitoring, access control, and logging that any production system needs.

There are two broad patterns. Real-time inference exposes the model as an endpoint that applications call and expects an answer within a latency budget. Batch inference runs the model on a schedule over a table of records, for example scoring every open account each night. Many deployments use both.

How model deployment works

A typical sequence starts with registering the trained model in a model registry with its version, training data, and evaluation results. The model is packaged into a container with its preprocessing code and the inference server that loads it. The package is tested in a staging environment against known inputs, then released into production, often through a canary deployment or a period in shadow mode. After release, model monitoring tracks input distributions, prediction rates, and business outcomes so that data drift or concept drift is caught early. Retraining and redeployment follow on a schedule or when monitoring calls for them.

Model deployment in practice

A hospital revenue cycle team trains a model that predicts which insurance claims are likely to be denied. The deployed version runs nightly over the day’s claims and flags the riskiest ones for a billing specialist to correct before submission. The team keeps the previous model version ready to restore, logs every score with the model version that produced it, and compares the denial rate of flagged and unflagged claims each month. That logging is part of the deployment rather than an afterthought, because it is what makes a later audit or a drift investigation possible.

What to watch for

  • Preprocessing code must be identical in training and in production, or the model will see inputs it was never trained on.
  • Decide who owns the model after deployment. Data scientists, IT operations, and the business unit each hold a piece of the responsibility.
  • Plan the rollback before the rollout. A previous version that can be restored in minutes is the cheapest insurance available.
  • Access control applies to models as it does to databases. Limit who can call the endpoint and who can replace the model behind it.

← Back to AI Glossary