
MLOps: Putting machine learning models into production, and building only the pipeline your stage needs
MLOps is the set of practices that takes a machine learning model from development into production and provides the processes needed to monitor, evaluate and maintain its performance over time. This guide breaks an MLOps setup into six components and three stages, so you build only what each stage needs. It also shows what MLOps tooling cannot fix.
What is MLOps, and why do models need it after deployment?
MLOps (machine learning operations) is a set of practices for deploying, monitoring and maintaining machine learning models in production, combining ML development with DevOps-style automation. Models need it because their accuracy can deteriorate after launch as data changes, even when the software serving them continues to work correctly.
MLOps makes model behavior reproducible, deployment repeatable and production performance measurable. It connects the work of data scientists, ML engineers and platform teams across the machine learning lifecycle.
Reproducibility in MLOps: Three core artifacts and their training context
Unlike conventional software, a machine learning model depends on more than source code.
Three core artifacts need to be traceable:
- Code: The logic used to prepare data, train and evaluate the model.
- Data: The training dataset or snapshot, including relevant feature definitions.
- Model: The trained artifact, its configuration and evaluation results.
These artifacts form the foundation of a broader reproducibility record. Depending on the training process, teams may also need to capture hyperparameters, random seeds, dependency versions, runtime and hardware information, and other environment settings.
Versioning code, data and model artifacts, together with the relevant training context, helps teams reproduce experiments, investigate regressions and restore previous releases. It does not guarantee identical results in every environment.
The core practices are version control, automation, continuous testing and delivery, and governance over model versions and approvals.
Why a model that works in a notebook fails in production: Four gaps
A successful experiment does not establish production readiness.
Common gaps include:
- Missing reproducibility: The original dataset or configuration is no longer available.
- Disconnected ownership: Data science and engineering teams have not agreed who deploys and maintains the model.
- Unreliable scaling: A notebook workflow cannot handle production volumes or dependencies.
- Manual repetition: Training, testing and deployment require error-prone manual steps.
MLOps addresses these operational gaps. It does not guarantee that the original model solves a useful business problem.
How is MLOps different from DevOps, and from LLMOps, DataOps and AIOps?
MLOps extends DevOps with requirements that ordinary application delivery does not fully address: versioning data and models alongside code, establishing reproducible training and retraining processes, and monitoring predictive quality rather than system health alone. DevOps remains the operational foundation. MLOps adds controls for systems whose behavior depends on changing data.
Five places where MLOps extends DevOps
| DevOps practice | MLOps extension | What a code-only pipeline misses |
| Version control of code | Version control of code, data and model, with lineage between them | A model cannot be reproduced if its training data is unavailable |
| CI/CD | CI/CD plus reproducible or automated retraining when required | New data can change the model without a code change |
| Software testing | Data validation and model validation against a baseline | A build may pass tests but deliver a worse model |
| Monitoring system health | Monitoring model quality, input data and drift | Healthy infrastructure can serve deteriorating predictions |
| Deployment of a tested artifact | Controlled promotion of validated model versions through defined lifecycle or approval states | The team may not know which version produced a prediction |
Simplified comparison of DevOps and MLOps practices.
DevOps tooling may be sufficient for an early-stage model if the team adds documented model versioning, evaluation and monitoring. A dedicated MLOps platform is not automatically necessary.
Where MLOps ends and LLMOps, AIOps and DataOps begin
These terms describe related but distinct responsibilities:
- LLMOps focuses on operating large language model applications. It extends model operations to components such as prompts and retrieval. The broader context includes deploying large language models in enterprises and maintaining retrieval-augmented systems.
- AIOps applies AI to IT operations, such as identifying infrastructure incidents and operational anomalies.
- DataOps concerns the reliability and delivery of data pipelines that supply analytical and machine learning systems.
- DevOps provides the software delivery and infrastructure practices on which MLOps builds.
These disciplines overlap in enterprise systems, but they should not be treated as interchangeable.
What does an MLOps pipeline consist of, layer by layer?
An MLOps setup has six components: data and feature pipelines, experiment tracking, a reproducible training workflow, a model registry, deployment and serving, and monitoring with a retraining trigger. Together, they establish a traceable path from input data to a deployed model and back to evaluation when production conditions change.
| Component | Job | Versioned artifact | Needed from |
| Data and feature pipelines | Deliver validated inputs for training and serving | Dataset snapshot and schema | Stage 1; feature store when reuse justifies it |
| Experiment tracking | Record parameters, data and evaluation metrics | Training run record | Stage 1 |
| Training workflow | Run reproducible training and evaluation; automate and orchestrate the workflow when needed | Model and evaluation report | Stage 1 for a reproducible workflow; Stage 2 for automation |
| Model registry | Manage versions and approval status | Registered model version | Stage 1, initially simple |
| Deployment and serving | Run batch jobs, APIs or streams with rollback | Deployed endpoint or job | Stage 1 |
| Monitoring and retraining trigger | Track quality and initiate investigation or retraining | Alerts and monitoring reports | Basic at Stage 1, more automated at Stage 2 |
Simplified six-component architectural model.
MLOps pipeline architecture
Data and feature pipelines
Validated datasets and feature definitions
Experiment tracking and training
Runs, parameters, evaluation results
Model registry
Approved and versioned model artifacts
Deployment and serving
Batch · API · Streaming
Monitoring and retraining trigger
Data checks · Drift · Model quality
Monitoring findings feed the next training cycle
Data and feature layer: Validate inputs first, add a feature store when features are reused
Data validation checks whether inputs match expected schemas, ranges and completeness requirements.
A feature store can standardize the definitions and availability of features used in training and inference. It is especially useful when multiple models or teams reuse features, or when inconsistent calculations cause training-serving skew.
For one model with a simple data pipeline, documented feature definitions may be enough.
Experiment tracking and the model registry: One record per model version
Experiment tracking records which code, data, parameters and evaluation metrics produced a training run.
A model registry then identifies the resulting artifact and its approval or deployment status. MLflow is one example of a tool that supports experiment tracking and model registration.
Together, these records allow teams to answer which model was deployed, why it was approved and how it can be reproduced.
CI/CD and continuous training: Three kinds of change that start a pipeline
Continuous integration and delivery automate testing and releasing software changes. MLOps adds model validation and, where justified, continuous training.
Three events can initiate pipeline activity:
- Code changes: Training logic or application behavior changes.
- Data changes: New datasets arrive or input distributions shift.
- Quality changes: Monitoring identifies declining performance or a retraining condition.
Continuous training does not mean retraining after every new observation. It means establishing a controlled, automated response when retraining is needed. Retraining can also be performed manually or on a schedule through a reproducible workflow.
How do you deploy a machine learning model to production?
To deploy a machine learning model, package it as a versioned artifact, choose an appropriate scoring mode and release it through a validated process with a rollback path. The deployment method must match the business decision’s latency requirements. Shadow, canary and blue-green strategies reduce the risk of replacing a working model.
Batch, real-time or streaming: The scoring mode follows the decision
Three serving modes cover common needs:
- Batch scoring: Generate predictions on a schedule, such as overnight demand forecasts. The workflow needs reliable scheduling and output validation.
- Real-time inference: Return a prediction through an API when an application requests it. The service needs latency controls and consistent features.
- Streaming inference: Evaluate events as they arrive. The architecture must handle event ordering, throughput and failures.
Choose the simplest mode that meets the decision deadline. A forecast used tomorrow rarely needs millisecond inference.
Serving behind a stable API contract
When a model is exposed as a service, its interface should define input fields, output types, error responses and model version information.
This contract allows applications to consume predictions without depending on the model’s internal implementation.
The same principle underlies designing the API contract before building the service.
Shadow, canary and blue-green releases with a rollback path
Release strategies allow a new model to be evaluated before it fully replaces an existing one.
- Shadow deployment: Run the candidate on production inputs without allowing its predictions to affect live decisions.
- Canary release: Send a limited portion of production traffic to the candidate and increase exposure after checks pass.
- Blue-green deployment: Maintain separate environments and switch traffic between them, preserving a route back.
Every approach needs a clearly identified previous model version and a tested rollback procedure.
Seven production-readiness gates before a model goes live
Before promotion, verify that:
- Training can be reproduced from recorded code, data, configuration and relevant environment information.
- Input data passes defined validation checks.
- Evaluation meets an agreed baseline and business acceptance threshold.
- Deployment and rollback have been tested.
- Monitoring is active and alerts have named owners.
- Retraining, investigation and retirement conditions are documented.
- Security, access control and applicable privacy requirements are met, including appropriate authentication and authorization, protection of model endpoints and data, and any risk controls required by the use case.
These gates are a simplified engineering checklist. Their exact implementation depends on the model’s risk and operating environment.
How do you monitor a model after launch and detect model drift?
Model drift describes changes that can reduce predictive quality after deployment. MLOps monitoring examines incoming data, prediction distributions and, when verified outcomes become available, actual model performance. It should distinguish genuine changes in the problem from broken upstream data and connect every alert to an investigation or retraining decision.
Data drift, concept drift and upstream data failures: What to investigate
Two types of drift and one separate category of data pipeline failures deserve investigation:
- Data drift: The distribution of incoming features changes relative to the training or reference data. For example, a forecasting model starts receiving orders from a new market.
- Concept drift: The relationship between input features and the target outcome changes. A pattern that once predicted demand may no longer hold.
- Upstream data or schema failures: A source system changes a field, unit or schema, producing missing, invalid or inconsistent model inputs. This is primarily a data quality or pipeline reliability issue, although it may also cause apparent distribution changes or affect model performance.
Not every distribution shift requires retraining. Some changes are harmless, while others indicate a data pipeline defect rather than a change in the underlying business problem. Monitoring should therefore distinguish statistical drift from broken upstream data before triggering an investigation or retraining decision.
What to monitor and in what order, when true labels arrive late
Monitoring should begin with signals that are available immediately, then incorporate outcome-based metrics when ground truth arrives.
| Layer | Example signals | Needs true labels? |
| Data quality | Missing values, wrong types, schema changes, late data | No |
| Input drift | Distribution shifts measured using statistical tests or distances | No |
| Prediction drift | Changes in score or predicted class distribution | No |
| Model quality | Accuracy, precision, recall or prediction error | Yes |
| Business outcome | The operational result the model is intended to improve | Usually |
Simplified monitoring framework.
A fraud model, for instance, may receive confirmed fraud labels weeks after scoring transactions. In the meantime, teams can monitor input quality, score distributions and other early warning signals.
Those proxies help prioritize investigation but cannot prove that model accuracy has declined.
Thresholds should reflect historical variability and the consequences of an error. An alert needs an owner and a documented response, not merely a dashboard indicator.
Model monitoring versus system observability
System observability helps engineers understand whether the application and infrastructure are functioning.
Model monitoring asks whether predictions remain appropriate for the data and outcomes encountered in production.
A prediction API can have excellent uptime and latency while producing increasingly inaccurate results. Reliable operations require both perspectives.
What are examples of MLOps in practice?
MLOps requirements vary according to how predictions are used. Fraud scoring emphasizes low-latency inference and delayed feedback. Demand forecasting often uses scheduled batch predictions and periodic retraining. Predictive maintenance depends on sensor quality, rare events and clear ownership of alerts. These are illustrative operating patterns rather than documented customer deployments.
Fraud scoring: Low latency and late labels, so proxy signals carry the monitoring
A fraud scoring model may need to evaluate transactions immediately.
Its serving architecture therefore prioritizes latency and availability. Confirmed fraud outcomes, however, may arrive much later.
Monitoring can initially track missing features, unexpected transaction patterns and changes in prediction scores. Once labels arrive, the team evaluates actual precision, recall and other agreed quality metrics.
A separate example of a production churn-prediction system, end to end, shows how model operations connect with a business use case.
Demand forecasting: Batch scoring and seasonal drift, so retraining follows data and calendar
Demand forecasting commonly produces predictions on a schedule rather than for every individual request.
The pipeline needs reliable input snapshots, repeatable training and checks for seasonal changes.
Retraining may be scheduled around new data or business cycles. Unexpected error increases should still trigger investigation rather than automatic replacement of the model.
Predictive maintenance: Sensor data and rare failures, so thresholds and alert ownership matter
Predictive maintenance models use equipment and sensor data to identify potential failures.
Their reliability depends on stable measurements, consistent units and an understanding of rare events.
A model alert should reach someone who can assess the equipment and take appropriate action. Without that ownership, more sophisticated monitoring creates additional notifications without improving operations.
How much MLOps does your team need at each stage, and what can wait?
The appropriate MLOps investment depends on model count, retraining frequency, operational risk and the number of teams sharing infrastructure. Start with reproducibility for the first production model. Add automated pipelines when manual work becomes recurring. Introduce shared platform capabilities when models or teams need consistent standards and stronger auditability.
Three stages and the triggers that move you from one to the next
| Stage | Trigger to enter | Add | Can wait |
| 1. Reproducible | First model reaches production or is about to | Versioned code, data and model; experiment tracking; reproducible training and evaluation workflow; simple registry; documented deployment and rollback; basic monitoring | Automated retraining, feature store, shared platform |
| 2. Automated | Retraining becomes frequent, production data changes regularly or a second model arrives | Automated training, CI/CD, model validation gates, drift alerts | Shared feature store unless reuse requires it; multi-team standards |
| 3. Standardized | Several models or teams share infrastructure, or models drive material or audited decisions | Shared templates, feature definitions, approval workflows, audit trail, cost and service tracking | No essential controls should remain undefined |
Simplified maturity framework based on operational triggers, not a universal industry standard.
The stages are not a mandatory sequence for every organization. A single high-risk model may require formal approval and audit controls immediately, even if the team has no need for a shared platform.
Five signals that a full MLOps platform is premature
| Signal | Better option | Why |
| One model, retrained rarely | Stage 1 practices on existing DevOps tooling | A platform adds maintenance without removing a meaningful risk |
| Models remain experimental | Experiment tracking | Nothing needs production serving or monitoring yet |
| Model failure has limited consequences | Lightweight monitoring and manual review | Extensive controls may cost more than the risk they reduce |
| Nobody owns model quality or alerts | Assign owners first | Tools cannot respond to alerts themselves |
| Input data is unstable or poorly understood | Improve data pipelines and validation | Automation reproduces existing defects |
Simplified editorial decision framework.
The clearest signal to invest further is a recurring operational problem: releases take too long, model versions become difficult to trace, retraining is unreliable or teams repeatedly rebuild the same infrastructure.
The gate between a proof of concept and production
A proof of concept demonstrates that a proposed approach may work. Production readiness requires additional evidence.
The team must confirm that the model can be reproduced, deployed, monitored and maintained with available resources.
It also needs an agreed business acceptance threshold and a responsible owner.
For a broader discussion, see what a proof of concept should prove before it moves to production.
Which MLOps tools do you need, and how do you choose without lock-in?
Select MLOps tools by capability rather than vendor ranking. The essential categories are data validation, experiment tracking, training orchestration, model registration, deployment and monitoring. Existing DevOps infrastructure may already cover part of the requirement. A dedicated platform becomes more attractive when integration effort, model count or operational complexity makes separate components difficult to maintain.
Six capabilities and the open-source and managed tools sources name for each
| Capability | Examples of tools or approaches | Selection question |
| Data and feature validation | Great Expectations, validation within existing pipelines | Can it detect incompatible inputs before training or scoring? |
| Experiment tracking | MLflow, managed experiment tracking | Can a training result be reproduced? |
| Training orchestration | Kubeflow Pipelines, Airflow, managed ML pipelines | Can training and evaluation run reliably without manual coordination? |
| Model registry | MLflow Model Registry, managed registries | Can the team trace approvals and deployed versions? |
| Deployment and serving | KServe, managed model endpoints, existing application infrastructure | Does it support the required latency and rollback method? |
| Monitoring | Evidently, custom checks, managed model monitoring | Can it detect meaningful changes and route alerts to an owner? |
Examples are illustrative, not product endorsements or a comparative evaluation.
The goal is not to introduce a separate product for every row. Some tools cover several capabilities, and an existing engineering platform may already provide sufficient deployment and monitoring functions.
Four selection criteria that matter more than feature lists
Evaluate the stack against four questions:
- Integration: Does it work with the organization’s data sources, infrastructure and deployment environment?
- Traceability and lineage: Can the team trace a prediction back to the specific model version, relevant input data and training context?
- Operational ownership: Can engineers monitor, debug and maintain the system with available skills?
- Portability and cost: Can models and artifacts be moved or exported without excessive migration effort?
Tool selection should follow the operational requirements identified in the first production use case.
Why do machine learning models fail in production even with MLOps tooling?
MLOps tools cannot repair missing data contracts, inconsistent feature definitions or unclear ownership. A pipeline can automate training and deployment while repeatedly producing unreliable results. Before buying another platform component, identify whether the failure originates in data quality, reproducibility, system integration or the absence of a defined operational response.
Six symptoms that point to the foundation, not the model
| Symptom in production | Likely foundation gap | First corrective action |
| Accuracy drops after a source system changes | No upstream data contract or validation | Validate schemas and input distributions |
| A previous model cannot be reproduced | Missing dataset versions or lineage | Preserve snapshots and training metadata |
| Offline results are good, online results are poor | Training-serving skew | Align feature calculations |
| Nobody notices model degradation | Monitoring covers infrastructure only | Add model quality checks and alert ownership |
| Every release requires a manual project | Missing software delivery automation | Establish repeatable CI/CD |
| Data exists but cannot support the model | Problems with access, coverage or quality | Resolve data readiness issues first |
Simplified diagnostic matrix. Each symptom may have multiple causes and requires investigation.
These failures are often architectural rather than algorithmic. Retraining the same model on unreliable inputs will not solve a broken data contract.
Why we call the missing base an AI-grade foundation
An AI-grade foundation is a useful way to describe the data, engineering and operational capabilities required to run AI systems reliably.
For MLOps, that means dependable data access, quality checks, traceable transformations, reproducible environments and clearly assigned responsibilities.
It is an architectural concept, not a claim that every organization needs a particular platform or service.
The distinction matters because a model pipeline sits on top of these capabilities. When they are missing, more automation can increase the speed at which errors propagate.
Who owns each part of an MLOps setup?
Successful MLOps requires explicit responsibility for business outcomes, model quality, data inputs, training pipelines, serving infrastructure and approvals. Responsibilities may overlap in a small team, but each operational area needs an accountable owner. Every alert should also have one named responder who can investigate the issue and decide whether to retrain, roll back or escalate.
One owner per area, and one named owner per alert
| Area | Accountable role | Decision or artifact |
| Outcome metric and acceptance threshold | Business owner | When the model is acceptable or should be retired |
| Model quality and features | Data scientist | Evaluation, feature hypotheses and retraining criteria |
| Pipeline, registry and release | ML engineer | Training workflow, promotion and rollback |
| Infrastructure, serving and CI/CD | Platform or DevOps team | Environments, endpoints and service objectives |
| Input data and validation | Data engineering | Data pipelines and validation checks |
| Audit trail and approvals | Risk or compliance owner | Approval rules and evidence |
Illustrative ownership model. Actual assignments depend on team structure and risk.
A shared dashboard does not replace ownership. When an alert fires, the team should know who receives it, what evidence to inspect and which actions that person is authorized to take.
MLOps engineer and ML engineer: Where the roles overlap
An ML engineer often focuses on making models trainable, deployable and maintainable as software systems.
An MLOps engineer typically emphasizes the reusable pipelines, infrastructure and operational controls that support those activities across models.
The distinction is not universal. In smaller organizations, one engineer may cover both roles alongside platform responsibilities.
What matters is that model quality and operational reliability do not fall between teams.
FAQ
Is MLOps harder than DevOps?
MLOps adds complexity because model behavior depends on changing data as well as code. Teams must validate training inputs, track experiments, compare model versions and monitor predictive quality after deployment. However, not every project needs a sophisticated platform. Existing DevOps practices can support an early-stage model with a few additional controls.
What is a feature store, and do you need one?
A feature store manages feature definitions and access for model training and inference. It helps teams reuse features and reduce inconsistencies between training and production. You do not necessarily need one for a single model. Consider it when multiple models share features or maintaining consistent calculations becomes difficult.
Does every machine learning model need continuous training?
No. Continuous training is useful when data changes frequently, retraining is repetitive or declining model quality creates significant risk. A stable model can be retrained manually through a documented, reproducible process. Introduce automated retraining when schedules, data changes or monitoring signals make manual updates an operational bottleneck.
What can MLflow do in an MLOps stack?
MLflow can track experiments, record training parameters and metrics, manage model artifacts and maintain a model registry. These capabilities help teams compare runs and identify deployed versions. MLflow is one possible component of an MLOps architecture, not a replacement for data pipelines, production monitoring or operational ownership.
Sources
https://aws.amazon.com/what-is/mlops
https://ml-ops.org/content/mlops-principles
https://mlflow.org/docs/latest/ml
https://www.ibm.com/think/topics/model-drift