Skip to main content
mlops machine-learning devops ai kubernetes model-deployment monitoring ci-cd llmops evaluation

MLOps

MLOps and LLMOps: reproducible training, gated deployment, monitoring and evaluation for classical ML models and LLM applications.

MLOps Services

A model in a notebook is not a system. MLOps applies DevOps practice to ML: versioned data and code, automated tests, controlled releases and monitoring. The same discipline applies to LLM applications, where it is often called LLMOps.

ML Systems Are Different

Unlike traditional software, ML systems can fail silently—degrading performance without throwing errors. MLOps provides the practices and tooling to detect, prevent, and recover from these failures.

MLOps Lifecycle

MLOps lifecycle: Data and training feed a registry, a gated release goes to production, and monitoring triggers retraining.

Development Phase

StageActivitiesTooling
Data PreparationCollection, cleaning, validationDVC, Great Expectations
Feature EngineeringTransformation, storage, servingFeast, Hopsworks
Model TrainingExperimentation, optimizationMLflow, W&B
EvaluationMetrics, validation, comparisonCustom dashboards

Experiment Tracking

  • Version control for data, code, and models
  • Hyperparameter logging and optimization
  • Metric comparison across runs
  • Reproducible training pipelines

Feature Engineering

  • Feature store implementation
  • Online and offline feature serving
  • Feature versioning and lineage
  • Real-time feature computation

Deployment Phase

Deployment Strategies

StrategyRisk LevelRollback TimeBest For
Blue-GreenLowInstantCritical services
CanaryLowFastGradual rollout
A/B TestingMediumModeratePerformance comparison
Shadow ModeVery LowN/APre-production validation

Model Packaging

  • Containerization with Docker
  • ONNX for framework-agnostic deployment
  • Model optimization and quantization
  • API standardization (REST/gRPC)

Infrastructure

Training Infrastructure

Cost Optimization

Kubernetes-based training clusters with spot instances and checkpointing can reduce training costs substantially compared to on-demand pricing.
ComponentPurposeOptions
ComputeModel trainingKubernetes, Ray, Spark
StorageData and artifactsS3, GCS, HDFS
GPUsAccelerated trainingNVIDIA H100/H200 and newer, cloud or on-premise
SchedulingResource managementK8s, Slurm

Serving Infrastructure

ServerBest ForFeatures
TensorFlow ServingTF modelsBatching, versioning
TritonMixed frameworksGPU optimization, batching
vLLM / SGLangLLMsHigh-throughput LLM serving, see Local LLMs
BentoMLRapid deploymentEasy packaging
KServeKubernetes nativeServerless, autoscaling

Monitoring & Observability

Key Metrics

CategoryMetricsAlert Triggers
Model PerformanceAccuracy, F1, AUCDrop below threshold
Latencyp50, p95, p99Exceeds SLA
ThroughputRequests/secondCapacity limits
Data QualitySchema drift, nullsValidation failures
Model DriftDistribution shiftStatistical tests

Drift Detection

  • Data Drift: Input distribution changes
  • Concept Drift: Target relationship changes
  • Prediction Drift: Output distribution changes
  • Feature Drift: Individual feature shifts

LLMOps

LLM applications fail differently: the model is usually someone else’s, and the behaviour depends on prompts, retrieval and tools.

  • Evaluation sets for every use case, run on each change of prompt, model, retriever or tool. LLM-as-judge is calibrated against human grading.
  • Tracing of each request: prompt, retrieved passages, tool calls, tokens, latency, cost. OpenTelemetry’s GenAI conventions are the emerging standard, but still marked experimental, so expect changes.
  • Versioned prompts and configs, released like code.
  • Model upgrades as releases: a new model version is tested against the evaluation set before it replaces the old one. Providers retire models, so plan for it.
  • Guardrails and cost limits: output checks, token budgets, rate limits.
  • Privacy: decide what prompts and responses may be stored in traces.

See also RAG systems and AI agents.


Automation & CI/CD

Pipeline Stages

  1. Code Commit: Trigger automated tests
  2. Data Validation: Schema and quality checks
  3. Model Training: Automated with tracked experiments
  4. Model Validation: Performance gate checks
  5. Staging Deployment: Integration testing
  6. Production Deployment: Gradual rollout
  7. Monitoring: Continuous observability

Orchestration Tools

ToolBest ForKey Features
AirflowComplex DAGsBattle-tested, extensible
PrefectModern workflowsPython-native, dynamic
DagsterData-awareAsset-based, testing
KubeflowKubernetes MLEnd-to-end platform

Tools & Platforms

CategoryTools
Experiment TrackingMLflow, Weights & Biases, Neptune
Feature StoresFeast, Hopsworks
Data VersioningDVC, LakeFS, Delta Lake
Model ServingKServe, BentoML, Triton, vLLM
MonitoringPrometheus, Grafana, Evidently, OpenTelemetry
LLM Tracing and EvalsLangfuse, MLflow, OpenTelemetry GenAI conventions
OrchestrationAirflow, Prefect, Dagster

Implementation Approach

  1. Assessment: Evaluate current ML maturity and pain points
  2. Architecture: Design MLOps platform for your scale
  3. Infrastructure: Set up training and serving environments
  4. Pipelines: Build automated training and deployment workflows
  5. Monitoring: Implement observability and alerting
  6. Documentation: Create runbooks and best practices
  7. Training: Enable your team with MLOps practices

Need reliable ML in production? Talk to us about MLOps implementation.