Skip to content

MLOps with open stack. Inspired by DataTalks.Club.

Notifications You must be signed in to change notification settings

pytholic/mlops-orbit

Repository files navigation

MLOps Pipeline

Machine Learning Lifecycle This repository is my official beginning of MLOps journey. Instead of focusing on piece of production-grade machine learning, we will be building full end-to-end pipeline.

We will be training simple regression models on NYC taxi ride dataset and build MLOps pipeline including model training, hyperparameter optimization, experiment tracking, orchestrating, deployment, monitoring, etc. This repository is inspired by the mlops-zoomcamp course by DataTalks.Club.

Since the MLOps tool landscape is very wide, There will be more follow up work on this with various tech stacks.

Tech Stack

Notes

Setting up a VM on GCP
Dataset
MLFlow Experiment Tracking
MLFlow Experiment Tracking on GCP
Workflow Orchestration with Prefect
Model Deployment as a web-service with Docker, Kubernetes, and GKS.
Model Deployment with model from model registry
Streaming Model Deployment (Online)
Batch Model Deployment (Offline)
Scheduling batch scoring jobs with Prefect
Monitoring and debugging with Evidently

Setup

Install requirements

conda create -n mlops-orbit python=3.9
conda activate mlops-orbit

pip install -r requirements.txt

For remote VM

Forward MLflow port which is 0.0.0.0:5000. mlflow port forwarding

Forward the port for jupyter if you are using it (127.0.0.1:8888). jupyter port forwarding

Forward port for Prefect server (127.0.0.1:4200).

You can also do it in ~/.ssh/config.

Host gcp-mlflow-tracking-server
    HostName xx.xx.xx.xxx # VM Public IP
    User pytholic # VM user
    IdentityFile ~/.ssh/mlops-zoomcamp # Private SSH key file
    StrictHostKeyChecking no
    LocalForward 5001 0.0.0.0:5000
    LocalForward 4200 127.0.0.1:4200

About

MLOps with open stack. Inspired by DataTalks.Club.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages