Sub topic 1
What MLOps Is and Why Models Need Operations
Prerequisites
Assume you can write basic Python, train and evaluate a supervised machine learning model, use Git and the command line, and understand how a web service is deployed. You do not need prior MLOps experience.
What MLOps means
MLOps is the set of practices for developing, releasing, operating, and maintaining machine learning systems. It combines machine learning work with software engineering, data management, automation, and production operations.
A model is only one part of an ML system. The system also includes:
- Training and inference code
- Training, validation, and production data
- Feature transformations
- Configuration and dependencies
- Evaluation results and release criteria
- A serving process or batch job
- Monitoring and alerting
- Documentation, ownership, and access controls
MLOps makes these parts repeatable and traceable. A team should be able to answer questions such as:
- Which data and code produced this model?
- Which parameters and environment did training use?
- Why was this version released?
- Is the model still accurate on current data?
- How can the team roll back or retrain it?
MLOps compared with DevOps and model development
DevOps applies automation and operational practices to software systems. MLOps uses many of the same ideas, such as version control, continuous integration, deployment automation, observability, and rollback.
MLOps adds problems caused by changing data and statistical behavior. A normal service can pass its tests while its inputs remain stable. An ML service can continue running successfully while its predictions become less useful because the input data or the relationship between inputs and outcomes has changed.
Model development focuses mainly on creating and evaluating a candidate model. MLOps extends that work across the complete operational lifecycle:
| Concern | Model development | MLOps |
|---|---|---|
| Main question | Does this model perform well? | Can this system perform reliably over time? |
| Evidence | Evaluation metrics | Data, code, model, deployment, and monitoring records |
| End point | A trained model | A maintained production capability |
The lifecycle view
An ML lifecycle is a connected loop rather than a one-time sequence. A team frames a problem, manages data, trains and evaluates models, releases a version, observes its behavior, and uses what it learns to improve the next version.
Each stage produces artifacts. These can include metric definitions, versioned datasets, feature code, experiment records, model files, approval decisions, deployment configurations, and monitoring reports. Tracking the artifacts together creates lineage, which is the record of how a production result was produced.
Exercise
A model scores 96% on a test set, but no one can identify the training data version or dependency versions. Is the result fully reproducible?
Show answer
No. The model's score is known, but the inputs and environment needed to recreate the run are missing.