MLOps

Also known as: Machine learning operations · ML lifecycle management · model lifecycle management

On this page 7

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.

StageMain artifactTypical component
Data ingestion and validationVersioned dataset snapshotData pipeline with schema checks
Feature engineeringReusable feature definitionsFeature store
Training and tuningModel weights and metricsTraining cluster and experiment tracker
Evaluation and approvalEvaluation report, sign-offValidation suite and model registry
DeploymentVersioned serving endpointInference server or batch job
MonitoringDrift and quality metricsObservability stack and alerting
RetrainingNew candidate modelScheduled or triggered pipeline
Core stages of the MLOps lifecycle

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.

LevelWhat is automatedTypical retraining cadenceMain risk
Level 0: manualNothing; notebooks and hand-copied filesMonths, ad hocIrreproducible models
Level 1: pipeline automationTraining pipeline and continuous trainingDays to weeksPipeline code itself untested
Level 2: CI/CD for pipelinesTesting and deployment of pipelines and modelsHours to daysOperational complexity and cost
Common MLOps maturity levels

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.

DisciplinePrimary unit of changeDistinctive concern
DevOpsApplication codeFast, safe software releases
DataOpsData pipelinesData quality and freshness
MLOpsCode, data and model togetherReproducibility and model decay
LLMOpsPrompts, retrieval and foundation modelsEvaluation of open-ended output, token cost
MLOps and related operational disciplines

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.

SymptomLikely causeFix
Offline accuracy high, production accuracy lowTraining-serving skewShare feature logic through a feature store
Nobody can rebuild last quarter’s modelUnversioned data and environmentVersion datasets, containers and seeds
Accuracy declines slowly over monthsUndetected driftDrift monitoring with retraining triggers
Deployments take weeksManual handoff to engineeringAutomated pipeline with registry approval
GPU bills grow unexpectedlyIdle clusters and oversized modelsAutoscaling, quotas and model compression
Frequent MLOps problems and remedies

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.