MLOps

MLOps is the set of practices and tools that apply DevOps principles to machine learning, so models can be trained, versioned, deployed, monitored and retrained reliably and repeatably.

Also known as: Machine learning operations, LLMOps

Related terms in this glossary

How it works

A machine learning system depends on code, data and a trained model, and all three change. MLOps brings automation and version control to each stage of that lifecycle:

  • Data and features: versioned datasets, validation checks and sometimes a feature store for consistent training and serving features.
  • Experiment tracking: recording parameters, code versions and metrics for each training run, with tools such as MLflow or Weights and Biases.
  • Training pipelines: repeatable, automated training, often on Kubernetes with Kubeflow, Ray or cloud services such as SageMaker, Vertex AI and Azure Machine Learning.
  • Model registry: versioned models with approval stages and lineage back to data and code.
  • Deployment and serving: CI/CD for models, with canary rollouts, on servers such as KServe, vLLM or NVIDIA Triton, and GPU scheduling on Kubernetes.
  • Monitoring: tracking accuracy, data drift, latency and cost, and triggering retraining.

Google Cloud describes MLOps maturity in levels, from manual work (level 0) to automated training pipelines (level 1) and automated CI/CD of the pipelines themselves (level 2). For large language model applications, the same ideas extend to prompt versioning, evaluation sets, guardrails and token cost tracking, sometimes called LLMOps.

Why it matters

Many models work in a notebook and never reach production, or reach it once and quietly degrade as data changes. MLOps makes models reproducible, auditable and maintainable, and lets teams ship improvements safely. See Gepton's MLOps and AI Infrastructure service.

MLOps in depth

A reference pipeline, stage by stage

The page above lists the building blocks. Here is how they connect in a working setup, from a code change to a model in production:

  1. A data scientist pushes training code. CI runs unit tests and data validation checks, for example with Great Expectations or simple schema tests, on a sample of the training data.
  2. A training pipeline, orchestrated by a tool such as Kubeflow Pipelines, Airflow or a cloud ML service, pulls a versioned dataset (tracked with DVC, lakeFS or table snapshots) and trains the model.
  3. Parameters, metrics and artifacts are logged to an experiment tracker such as MLflow.
  4. The candidate is evaluated against the current production model on the same held-out data, including slices such as region or customer segment.
  5. If it wins, it is registered with a new version and lineage back to code and data, then a reviewer approves promotion.
  6. Deployment rolls it out as a canary or in shadow mode, where it predicts alongside the old model without affecting decisions.
  7. Monitoring compares live inputs and outcomes with training data and alerts on drift.

Example: retraining a demand model

Example: a retailer forecasts weekly demand per store and item. A scheduled pipeline retrains every week on the latest sales, but promotion is not automatic. The new model must beat the current one on the last four weeks of held-out data, overall and for the top-selling categories, and must not get worse for any region beyond a set tolerance. During festival periods, when patterns shift sharply, the team reviews results by hand before approving. Each forecast written to the planning system carries the model version, so planners can trace an odd number back to the exact model and data.

Monitoring that catches real problems

Model monitoring has two layers. The first is ordinary service health: latency, errors, throughput and resource use, handled by standard observability tools. The second is model health:

  • Data drift: input distributions moving away from training data, measured with statistics such as population stability index or KL divergence.
  • Prediction drift: the share of each predicted class or the forecast level changing unexpectedly.
  • Performance: accuracy once true outcomes arrive, which can take days or months.
  • Training-serving skew: features computed differently online than in training.

Open-source libraries such as Evidently compute many of these checks.

Common mistakes

  • Notebooks as the only record of how a model was trained.
  • Fully automatic retraining and promotion with no quality gate.
  • Features re-implemented by hand in the serving code, causing skew.
  • GPU clusters sized for peak training and left idle; Dynamic Resource Allocation and autoscaling on Kubernetes help here.

MLOps borrows its delivery habits from CI/CD and DevOps. For applications built on hosted language models, the emphasis shifts to prompts and evaluation under LLMOps. Gepton builds pipelines, registries and serving platforms in MLOps and AI infrastructure.

Questions about MLOps

Something else? Send us your question and an engineer replies with next steps.

Do we need a feature store to do MLOps?

Not at the start. A feature store helps when many models share features, or when the same features must be computed consistently for batch training and real-time serving. With one or two models, well-tested feature code in a shared library, run by both training and serving, usually avoids skew. Add a feature store such as Feast when duplication or inconsistency becomes a real, observed problem rather than an expected one.

How often should a model be retrained?

Base it on evidence rather than a fixed habit. Measure how quickly accuracy declines on fresh data, and how fast the underlying patterns change. Demand and fraud patterns may shift weekly, while a document classifier may stay accurate for months. Many teams retrain on a schedule but promote only when the new model beats the current one, and trigger extra retraining when drift monitoring raises an alert.

Can MLOps run on a small team's existing cloud account?

Yes. Managed services such as SageMaker, Vertex AI and Azure Machine Learning provide tracking, pipelines, registries and endpoints without running your own platform. A lighter path uses MLflow for tracking and registry, a scheduled job runner for training, and a containerized model behind an API. Kubernetes-based stacks such as Kubeflow make more sense when there are many models or GPU workloads to share.

Articles that mention MLOps

All articles

Jump to

↑↓ to move↵ to open