Deployments and monitoring
Endpoints, access modes, versions, monitoring, drift and retraining in one mental model.
A trained model only helps when other software can ask it questions. A deployment makes a model available as an endpoint, and monitoring tells you whether the model keeps working after it is live. This page gives you the whole picture: how to publish a model, who may call it, how versions change, and how drift and retraining fit in. For the step-by-step screens, see Deploy and test a model.
Deployments and endpoints
A deployment is a named, live copy of one model version. It has an endpoint slug, a short name that becomes part of its address:
POST /api/v1/deployments/<slug>/predict
You send rows, a list of objects that map column names to values, and you get back one prediction per row, with class probabilities when the model provides them. You send the raw columns of your data. The preprocessing steps of the pipeline run inside the endpoint, so you do not prepare the values yourself, and the target column is not needed.
The slug uses lowercase letters, digits and dashes, 3 to 64 characters, and it must be unique on the server. Deployments are workspace assets: they appear on the workspace Deployments page, with their access mode, number of predictions, errors, p50 and p95 latency, and last prediction.
A deployment is always tied to one specific model version, so a deployment never changes under you: it points to a version until you deliberately change it. A deployment is Active, Paused or Archived.
To create one, select Deploy best model on a run, or Deploy on a version in the registry. See Models and the registry.
Access modes
Who may call an endpoint is its Auth mode, set when you create it:
| Mode | Who can call it |
|---|---|
| Workspace members | Signed-in members of the deployment's workspace, with a session token or an API key. This is the default. |
| API key | The same people, and when the call authenticates with an API key, that key must belong to this workspace or be a personal key that is not bound to one. |
| Public | Any signed-in user, including people outside the workspace. A workspace administrator has to choose this on purpose. Calls from outside the workspace are rate limited per client address and are not recorded, so strangers cannot read your traffic back or distort your drift reference. |
Public does not mean anonymous: every caller still needs an account. A key with the predict scope is enough to call an endpoint and nothing else, which makes it the right credential for an application. See API keys and scopes.
In the Deploy dialog opened from the registry, the API key and Public options are labelled "(V2)". They work, but the label has not been updated yet.
Versions and rollback
When you register a new version of a model and deploy it, you create a new version of the deployment's pipeline. The Versions tab of a deployment lists them, with the one that is active. To go back, select Rollback to vN: the endpoint is switched to the older version, without retraining. The change takes effect for the next prediction, and the drift reference restarts from that moment, because a different model is now serving.
Rollback is possible between versions of the same model. If a model has only one version, the tab says so.
On mlflow or anywhere else
You choose where a model runs. In the Deploy anywhere dialog of a run:
- Deploy on mlflow serves the model from your mlflow server, with the endpoint, versioning and monitoring described here. If the model is still only a candidate, mlflow first asks you to Promote and continue, which registers it.
- Download kit gives you a ready-to-use deployment kit for Docker, AWS (ECS or SageMaker), Azure Container Apps, Google Cloud Run or Kubernetes. A kit service has no authentication of its own: put it behind your gateway or a private network.
- Download exports the model as a file: a Python pipeline, a pickle, ONNX when the model supports it, or a full bundle with the pipeline, a script, requirements, the schema and a readme.
Model files run code when they are loaded, so only open files you trust. See Deploy anywhere.
If a model runs outside mlflow, you can still watch it. Register deployment in the Monitor tab of the model gives you an ingestion key, and a plain HTTP call from your serving code sends predictions back so that mlflow can show their volume and drift. See External models.
Monitoring, drift and retraining
A deployment page has four tabs: Overview, Test, Monitor and Versions.
- Overview shows live counters: predictions, errors, p50 and p95 latency (measured over the last 100 predictions) and the time of the last prediction.
- Test has Test a prediction: edit the Rows (JSON array) and select Send request. Batch prediction is also here.
- Monitor holds drift, alerts and retraining.
Drift means that the data arriving at the endpoint no longer looks like the data the model was built on. mlflow records the rows the endpoint receives and compares recent ones with a reference. The reference is the first rows after the current model went live, or the training data when there are too few. The comparison uses the Population Stability Index for each feature, and by default a feature is flagged at 0.2 or more. At least 500 rows are needed on each side before a feature is scored. Features with too few rows are reported as having insufficient data rather than guessed. Drift reports produce alerts that you can send to your channels; see Drift and alerts.
Drift is a warning that the inputs changed, not proof that predictions are wrong. The lessons Monitoring and Drift explain how to interpret it.
Retraining closes the loop. A schedule can re-run the deployed model's pipeline on the latest version of its dataset. mlflow then promotes the new model only if it beats the one in production on the main metric by a margin that you configure. Existing versions are never changed: a promotion creates a new version and repoints the deployment, so the previous version is still one rollback away. Every outcome, including a skipped or failed retraining, is recorded with a reason. See Retraining.
Next steps
Learn the theory
Lessons on learning.mlflow.es that explain the ideas behind this page.
Updated 2026-11-22