AI Skills Wiki 中文

MLOps: Reliable Machine Learning Delivery

AI Skills Wiki › AI Engineering · Last updated: 2026-10-30

Definition

MLOps, or machine learning operations, applies software engineering and operational practices to the full ML lifecycle. It connects reproducible experiments, tested training pipelines, artifact registration, controlled deployment, and production feedback. Unlike model serving or ML observability alone, its focus is the delivery process across these components. CI tests changes; CD releases approved artifacts or pipelines; continuous training reruns training when justified, without implying automatic production promotion.

Why it matters for AI jobs

For ML engineers and platform engineers, a strong portfolio must show how an experiment becomes a maintainable product. MLOps provides evidence through repeatable runs, release gates, and recovery procedures. It helps teams diagnose regressions, control infrastructure costs, and coordinate data scientists with service owners. In interviews, demonstrate one failed validation and one successful rollback rather than listing tools. For LLM applications, extend release checks to prompt, retrieval, and evaluation versions; retraining is not always needed.

Key concepts

  • Reproducibility: Record code revision, dataset snapshot, dependencies, parameters, and artifacts; a random seed alone is insufficient.
  • CI/CD/CT: Separate testing pipeline changes, delivering approved releases, and triggering training. Keep promotion behind explicit quality gates.
  • Validation gates: Check input schemas, leakage, held-out performance, and serving compatibility before approving a release.
  • Model registry: MLflow versions, tags, and aliases link release candidates to their training runs. Record an immutable version for each deployment.
  • Workflow orchestration: Kubeflow Pipelines represents container-based workflows with typed artifacts, caching, and parallel tasks on compatible backends.
  • Feedback and recovery: Define monitoring ownership, retraining triggers, rollback targets, and approval rules; drift alone does not prove accuracy loss.

Learning path

  1. Train a small scikit-learn classifier on a public dataset. Save a fixed train/test split and create a command that reproduces its evaluation from a clean environment.
  2. Use MLflow to record parameters, metrics, artifacts, dataset references, and code revisions for two runs. Register a validated model version and document its input signature.
  3. Add CI checks for preprocessing, schema validation, leakage, and held-out performance. Deliberately introduce an invalid input and confirm the pipeline blocks promotion.
  4. Package preprocessing, training, and evaluation as separate steps. Start locally; use Kubeflow Pipelines when portable, containerized orchestration is justified, not as a prerequisite.
  5. Deploy an approved version to a test service, log the resolved model version, and rehearse rollback. Update an MLflow alias and verify the deployment explicitly reloads or redeploys; alias changes do not hot-swap every running process.
  6. Write an operational runbook covering quality and latency thresholds, cost, ownership, and retraining approval. Present the repository, CI evidence, and recovery demonstration as a job portfolio.

Resources