Build an ML app pipeline with GitLab Model Registry using MLflow

ML App Pipeline with GitLab Model Registry using MLflow
Introduction
This tutorial will guide you through setting up an MLOps pipeline with GitLab Model Registry using MLflow. MLOps is crucial for managing and automating the lifecycle of machine learning models, from development to deployment and maintenance.
Prerequisites
- Basic knowledge of GitLab pipelines
- Basic knowledge of MLflow
- A Kubernetes cluster
- Dockerfile
Steps
- Set up environment variables of MLflow
- Train and log candidates at merge request
- Register the most successful candidate
- Dockerize and deploy an ML app with the registered model
Details
- Train models using Random Forest Classifier, Decision Tree, and Logistic Regression
- Create pipeline stages for training steps
- Trigger pipeline manually in merge requests
- View candidate details in Model Experiments after pipeline completion
- Dockerize ML app and deploy with registered model
- Access Docker image from Container Registry for deployment
Additional Resources
- Model experiments
- MLflow client compatibility
- CI/CD components
- Building GitLab with GitLab: Why there is no MLOps without DevSecOps
Credits
This tutorial and sample projects were created and shared by OBSS.