MLOps, short for machine learning operations, is the set of engineering practices, tooling and organizational roles that move machine learning models from experimentation into reliable, repeatable production use and keep them healthy afterward. Within AI infrastructure, it is the operational layer that connects data pipelines, training compute, model serving and monitoring into one governed lifecycle.
The discipline borrows continuous integration and delivery from DevOps, but it adds problems that ordinary software does not have: models depend on data that changes, their quality decays silently, and the same code can produce different results when the training data or random seed differs. MLOps exists to make that behavior visible, reproducible and controllable.
How the MLOps lifecycle works
The MLOps lifecycle is a closed loop that runs from data collection through training, validation, deployment and monitoring, and then back to retraining when performance drifts. Each stage produces versioned artifacts (datasets, features, model weights, configuration files and evaluation reports), so any production prediction can be traced back to the exact inputs that created it.
The table below lists the main stages, the artifact each one produces and the infrastructure component that usually handles it.
| Stage | Main artifact | Typical component |
|---|---|---|
| Data ingestion and validation | Versioned dataset snapshot | Data pipeline with schema checks |
| Feature engineering | Reusable feature definitions | Feature store |
| Training and tuning | Model weights and metrics | Training cluster and experiment tracker |
| Evaluation and approval | Evaluation report, sign-off | Validation suite and model registry |
| Deployment | Versioned serving endpoint | Inference server or batch job |
| Monitoring | Drift and quality metrics | Observability stack and alerting |
| Retraining | New candidate model | Scheduled or triggered pipeline |
The key design principle is that pipelines, not people, produce models. A data scientist commits code and configuration; an orchestrated pipeline retrieves the data, trains, evaluates and registers the result. This removes the classic failure in which a model exists only in one notebook on one laptop and nobody can rebuild it.
MLOps maturity levels
Organizations usually adopt MLOps gradually, and a widely used three-level maturity model describes how automation grows. The levels differ mainly in what is automated and how quickly a model can be retrained safely.
| Level | What is automated | Typical retraining cadence | Main risk |
|---|---|---|---|
| Level 0: manual | Nothing; notebooks and hand-copied files | Months, ad hoc | Irreproducible models |
| Level 1: pipeline automation | Training pipeline and continuous training | Days to weeks | Pipeline code itself untested |
| Level 2: CI/CD for pipelines | Testing and deployment of pipelines and models | Hours to days | Operational complexity and cost |
Moving up a level is not automatically better. A model retrained once a year on stable data gains little from full CI/CD automation, while a fraud or recommendation model facing daily behavior change usually needs at least continuous training to stay accurate.
How MLOps compares with DevOps, DataOps and LLMOps
MLOps overlaps with several neighboring disciplines, and the differences come from what is being versioned and tested. DevOps manages code, DataOps manages data pipelines, and LLMOps is a specialization of MLOps for large language models and prompt-based systems.
| Discipline | Primary unit of change | Distinctive concern |
|---|---|---|
| DevOps | Application code | Fast, safe software releases |
| DataOps | Data pipelines | Data quality and freshness |
| MLOps | Code, data and model together | Reproducibility and model decay |
| LLMOps | Prompts, retrieval and foundation models | Evaluation of open-ended output, token cost |
The defining difference from DevOps is testing. Software tests check deterministic behavior, whereas model tests must check statistical behavior: accuracy on holdout data, fairness across subgroups, calibration and robustness to unusual inputs. A model can pass every unit test and still be worse than the version it replaces.
Building blocks of an MLOps platform
A practical MLOps platform combines a small number of components, each solving one reproducibility or reliability problem. Teams can assemble open-source tools or use a managed platform, but the functions remain the same.
- Experiment tracking records parameters, metrics and code versions for every training run.
- A model registry stores approved model versions with lineage, stage labels and approval history.
- A feature store keeps training and serving features consistent, preventing training-serving skew.
- Pipeline orchestration schedules and retries multi-step workflows on training compute.
- Model serving exposes models through an inference server, with canary or shadow deployment.
- Monitoring tracks latency, error rates, input drift and, where labels arrive later, real accuracy.
Monitoring deserves particular attention because model failure is usually silent. A service that returns HTTP 200 with confident but wrong predictions looks healthy to ordinary infrastructure monitoring. MLOps adds data drift checks (input distributions shift), concept drift checks (the relationship between inputs and outcomes changes) and delayed ground-truth evaluation.
Common MLOps mistakes and how to fix them
Most MLOps failures are not caused by exotic algorithms but by gaps between teams and stages. The table below lists frequent symptoms, their usual cause and a proven fix.
| Symptom | Likely cause | Fix |
|---|---|---|
| Offline accuracy high, production accuracy low | Training-serving skew | Share feature logic through a feature store |
| Nobody can rebuild last quarter’s model | Unversioned data and environment | Version datasets, containers and seeds |
| Accuracy declines slowly over months | Undetected drift | Drift monitoring with retraining triggers |
| Deployments take weeks | Manual handoff to engineering | Automated pipeline with registry approval |
| GPU bills grow unexpectedly | Idle clusters and oversized models | Autoscaling, quotas and model compression |
A further warning concerns governance. Regulated domains such as credit, insurance and healthcare increasingly require documented lineage, bias testing and human approval before deployment. Treating these as audit artifacts produced by the pipeline, rather than documents written afterward, is far cheaper and more trustworthy.
A non-technical view
Building a machine learning model is a little like baking a good cake once in a home kitchen. MLOps is what turns that single cake into a bakery that produces the same quality every day: written recipes, labeled ingredients, quality checks and a way to notice when customers stop liking the product.
Models also go stale because the world changes around them. MLOps watches for that and retrains the model before it starts making bad decisions, so the people relying on it can trust what it says.
A concrete example
A mid-sized online retailer runs a demand forecasting model that decides how much stock each of its 40 warehouses orders every week. Originally a data scientist retrained it by hand every few months, and after a sudden shift in shopping habits the forecasts drifted for six weeks before anyone noticed, leaving popular items out of stock.
The team then introduced an MLOps pipeline. Sales data is validated nightly, features come from a shared feature store, and a drift monitor compares weekly input distributions with the training data. When drift crosses a set threshold, the pipeline retrains automatically, evaluates the candidate against the current model on the last eight weeks of data and registers it for one-click approval.
Within a quarter, retraining time fell from about two weeks of manual work to under four hours of automated runtime, and drift is now detected within days instead of weeks, which noticeably reduced stockouts during seasonal peaks.