The GCC Engineer
  • Report
  • Companies
  • Roles
  • Guides
  • Pricing
Log inGet started
ReportCompaniesRolesGuidesPricing
Log inGet started

The GCC Engineer

The end-to-end AI engineering career roadmap for GCCs in India.

Explore

  • Companies
  • Roles
  • Guides
  • The blueprint
  • The GCC growth story

Tools

  • Resume Evaluate
  • Readiness check
  • Your roadmap

Company

  • Pricing
  • Contact

The GCC report

How fast India's GCCs are growing, where they hire and what makes a role there different.

Read the report
© 2026 The GCC Engineer
  • Privacy
  • Terms
  • Refunds
  • Delivery
  • Contact
The GCC Engineer
  • Report
  • Companies
  • Roles
  • Guides
  • Pricing
Log inGet started
ReportCompaniesRolesGuidesPricing
Log inGet started
  1. Home
  2. Guides
  3. Skills and roadmap
  4. MLOps basics: from a notebook to production
Skills and roadmap

MLOps basics: from a notebook to production

MLOps basics for engineers: versioning code, data and models, CI/CD for ML, serving patterns, monitoring and drift, and what changes for LLM applications.

By The GCC Engineer editorial teamUpdated 13 November 20266 min read

Quick answer

MLOps is the set of practices that take a machine learning model from a notebook to a dependable production service. The basics are versioning code, data and models together; automated testing and deployment; a serving pattern matched to how predictions are used; and monitoring for drift and degraded quality so the model can be retrained or rolled back. It applies software engineering discipline to systems whose behaviour depends on data.

On this page
  1. What is MLOps?
  2. What are the steps from a notebook to production?
  3. What needs to be versioned in machine learning?
  4. How is CI/CD different for machine learning?
  5. How are models served in production?
  6. What is model drift and how do you monitor it?
  7. What changes for LLM applications?
  8. How do interviews test MLOps?

MLOps is the engineering practice of getting machine learning models into production and keeping them working there. The MLOps basics are four things: version everything that produced the model, automate testing and release, serve predictions in a way that fits how they are used, and monitor the model after launch because its quality can fall without anyone touching the code. A notebook proves a model can work once. MLOps makes it work every day, for other people, in a way you can repair.

These skills are core for the AI platform and MLOps role and for ML engineers, and they come after evaluation on the AI engineer roadmap because you cannot automate a quality check you have not defined.

What is MLOps?

MLOps is DevOps extended to systems whose behaviour depends on data as well as code. In ordinary software, the same code gives the same behaviour. In machine learning, behaviour is set by code, training data and the resulting model artefact together, and the world the model predicts keeps changing.

That creates problems ordinary software does not have: a model that cannot be rebuilt because nobody recorded which data it used; features computed one way in training and another in production; a model whose accuracy quietly decays as customer behaviour shifts. MLOps is the set of habits and tools that prevent those.

What are the steps from a notebook to production?

The steps from a notebook to production turn exploratory code into a pipeline that can run without you. Each step removes one way the system depends on a person's laptop or memory.

From a notebook to a production model
  1. 1

    Move logic into a package

    Turn notebook cells into typed, tested functions for data preparation, training and prediction.

  2. 2

    Version code, data and config

    Commit code, record which data snapshot was used and keep settings in files, not in cells.

  3. 3

    Track experiments

    Log parameters, metrics and artefacts for every run so results can be compared and reproduced.

  4. 4

    Register the model

    Store the chosen model with its version, lineage and evaluation results in a registry.

  5. 5

    Package and test

    Build a container image and run code, data and model checks automatically in CI.

  6. 6

    Deploy gradually

    Release to a small share of traffic or in shadow mode, compare with the current model, then widen.

  7. 7

    Monitor and retrain

    Watch service health, input data and prediction quality, and retrain or roll back when they slip.

The first step is plain Python engineering, covered in Python for AI engineers.

What needs to be versioned in machine learning?

Machine learning needs four things versioned together: code, data, configuration and the model artefact. The test is reproducibility. Given a model running in production, you should be able to say exactly which code, which data and which settings produced it, and rebuild it.

WhatWhy it mattersCommon approach
CodeTraining and feature logic define the modelGit commit recorded with every run
DataThe same code on different data gives a different modelImmutable snapshots or data version identifiers
ConfigurationHyperparameters and feature lists change resultsConfig files in version control, logged per run
Model artefactThe thing actually deployedModel registry with versions and stages
EnvironmentLibrary versions can change outputsPinned dependencies and container images
What to version and how.

Experiment tracking ties these together. Each training run records its code version, data version, parameters and metrics, so the question "why is this model better than last month's?" has an answer.

How is CI/CD different for machine learning?

CI/CD for machine learning tests data and model quality in addition to code, and it deploys a pipeline as well as a service. A code change, a data change or a scheduled retrain can each trigger a release, and each needs checks.

Three kinds of test run before a model ships:

  • Code tests. Unit tests for feature functions, preprocessing and prediction logic, as in any software project.
  • Data tests. Checks that incoming data matches expectations: schema, ranges, missing-value rates, no duplicated keys. Bad data is the most frequent cause of bad models.
  • Model tests. The candidate must meet a minimum score on held-out data and must not be worse than the current production model, overall and on important segments.

Release itself is gradual. A shadow deployment runs the new model alongside the old one without using its predictions, so the two can be compared on real traffic. A canary release sends a small share of traffic to the new model first. Both depend on a fast rollback, which the model registry makes simple: redeploy the previous version.

How are models served in production?

Models are served in one of three patterns, chosen by how fresh a prediction must be and how quickly it is needed.

PatternHow it worksFits whenMain trade-off
BatchScore many records on a schedule and store resultsPredictions can be hours old, such as weekly churn listsSimple and cheap, but stale
OnlineAn API returns a prediction per requestThe answer is needed immediately, such as fraud checksNeeds low latency and high availability
StreamingScore events as they arrive on a streamContinuous signals, such as sensor or clickstream dataMost complex to build and operate
Serving patterns and when each fits.

Batch is the right default when it meets the need, because it avoids most operational difficulty. Online serving introduces the classic failure of training-serving skew: a feature is calculated differently in the live service than it was in training, so the model receives inputs it has never seen. The fix is one shared implementation of each feature, used in both places.

What is model drift and how do you monitor it?

Model drift is the decline in a model's usefulness as the data it sees in production moves away from the data it was trained on. Data drift means the inputs have changed, for example a new customer segment. Concept drift means the relationship between inputs and outcome has changed, for example fraud tactics evolving. Either can happen with no change to code.

Monitoring works at three levels: the service (latency, errors, throughput), the data (input and prediction distributions) and the outcome (accuracy once true labels arrive). True labels are often delayed by days or weeks, so drift in inputs is the early warning. A common measure is the population stability index, which compares a feature's distribution in production with its distribution at training time:

python
import numpy as np


def psi(expected: np.ndarray, actual: np.ndarray, bins: int = 10) -> float:
    """Population stability index between a training and a production sample."""
    edges = np.quantile(expected, np.linspace(0, 1, bins + 1))
    edges[0], edges[-1] = -np.inf, np.inf
    e = np.histogram(expected, edges)[0] / len(expected)
    a = np.histogram(actual, edges)[0] / len(actual)
    e, a = np.clip(e, 1e-6, None), np.clip(a, 1e-6, None)
    return float(np.sum((a - e) * np.log(a / e)))

A value near zero means the two distributions match; larger values mean a bigger shift. Alert thresholds should be set from how the feature has varied historically, and an alert should lead to a decision: investigate, retrain or roll back.

Note: Drift is not always a problem

A shifted input distribution matters only if it changes model quality or business results. Monitor drift as a prompt to investigate, and confirm with outcome metrics before retraining.

What changes for LLM applications?

LLM applications keep the same principles and change what is versioned and monitored. The artefact is often a prompt, a retrieval index and a reference to a hosted model instead of weights you trained.

Operations for classical ML and for LLM applications

Classical ML

  • Version training data, features and model weights
  • Gate releases on held-out metrics
  • Monitor feature drift and accuracy
  • Cost is mostly training and hosting

LLM applications

  • Version prompts, retrieval indexes and model identifiers
  • Gate releases on a golden set of test cases
  • Monitor output quality, cost per request and latency
  • Cost scales with tokens per request

The release gate for an LLM application is an evaluation run, described in how to evaluate an LLM application.

How do interviews test MLOps?

Interviews test MLOps mostly through design and incident questions. Typical prompts are to take a described model to production, to explain what you would monitor, or to diagnose a model whose accuracy fell after launch. Good answers name what is versioned, what gates a release, which serving pattern fits and why, and what triggers a rollback.

These questions form a large part of the ML system design interview. The day-to-day work is described in the MLOps and AI platform engineer role, and a deployed, monitored model is one of the strongest AI portfolio projects. To compare how much operations depth each track expects, use the role explorer.

Key takeaways

  • A model in production is code plus data plus a trained artefact, and all three must be versioned.
  • Reproducibility is the first goal: you should be able to rebuild any deployed model from recorded inputs.
  • CI/CD for ML tests data and model quality as well as code.
  • Choose batch, online or streaming serving from how fresh predictions need to be, not from preference.
  • Models decay without any code change, so monitoring inputs, outputs and outcomes is part of the job.

Frequently asked questions

Is MLOps the same as DevOps?

MLOps extends DevOps. Both use version control, automated testing, continuous delivery and monitoring. MLOps adds what is specific to machine learning: data and model versioning, experiment tracking, validation of model quality before release, and monitoring for drift, because a model can degrade while the code stays exactly the same.

Do I need Kubernetes to start learning MLOps?

No. Start with containers, a simple API around a model, a CI pipeline and basic monitoring. Those teach the core ideas on one machine. Kubernetes matters when you run many services at scale and is core for AI platform roles, but it is an advanced step, not an entry requirement.

What is a feature store and do I need one?

A feature store is a system that computes, stores and serves model features so that training and serving use the same definitions. It helps when several models share features or when online and offline values must match exactly. A single model with a simple pipeline can do without one; shared, tested feature code is often enough.

How often should a model be retrained?

Retrain when monitoring shows that performance or input data has shifted enough to matter, or on a schedule that matches how fast the domain changes. There is no universal interval. A scheduled retrain is simple to operate; a triggered retrain reacts faster. Either way, the new model must pass validation before replacing the old one.

Can a software engineer move into MLOps without machine learning experience?

Yes, and it is one of the more direct routes. The AI platform and MLOps role is built on containers, cloud, CI/CD and monitoring, which many backend and DevOps engineers already know. What needs adding is working knowledge of how models are trained, evaluated and served, not deep modelling or maths.

The GCC Engineer editorial team

Researched and reviewed by the team behind the GCC roadmap

Published 13 November 2026 · Updated 13 November 2026

On this page

  1. What is MLOps?
  2. What are the steps from a notebook to production?
  3. What needs to be versioned in machine learning?
  4. How is CI/CD different for machine learning?
  5. How are models served in production?
  6. What is model drift and how do you monitor it?
  7. What changes for LLM applications?
  8. How do interviews test MLOps?

Read next

All 10 guides: Skills and roadmap
  • Skills and roadmapStart here

    AI engineer roadmap: what to learn and in what order

    An AI engineer roadmap across eight skill domains: what to learn first, what each role needs, and what you can skip for the job you want.

    6 min read
  • AI roles

    MLOps and AI platform engineer: what the role involves

    The MLOps engineer role at a GCC explained: platform work versus model work, the skills it needs, and why it is a strong route for DevOps and cloud engineers.

    5 min read
  • Skills and roadmap

    Machine learning fundamentals every AI engineer needs

    Machine learning fundamentals that interviews return to: generalisation, bias and variance, data splits, leakage, baselines and choosing the right metric.

    6 min read
  • Interviews

    ML system design interview: a framework that works

    A six-step framework for the ML system design interview: requirements, metrics, data, model, serving and monitoring, with a worked example and mistakes.

    6 min read

Turn this into your own plan

Answer a few questions and get a roadmap built around your target role and where you are now.

Get started free

The GCC Engineer

The end-to-end AI engineering career roadmap for GCCs in India.

Explore

  • Companies
  • Roles
  • Guides
  • The blueprint
  • The GCC growth story

Tools

  • Resume Evaluate
  • Readiness check
  • Your roadmap

Company

  • Pricing
  • Contact

The GCC report

How fast India's GCCs are growing, where they hire and what makes a role there different.

Read the report
© 2026 The GCC Engineer
  • Privacy
  • Terms
  • Refunds
  • Delivery
  • Contact