Giter VIP home page Giter VIP logo

mnist_mlops's Introduction

MNIST MLOps

Points

  1. The training can be run using train.py file.
  2. Inference script can be run using inference.py.
  3. Inference Dockerfile is Dockerfile
  4. BentoML is used for model serving with prometheus integrated (exposed at /metrics route)
  5. Deployment manifests can be found in manifests folder
  6. MLFlow is integrated for logging of models and metrics

How to run

  1. Clone the repo
git clone https://github.com/sethusaim/mnist_mlops.git
  1. Setup MLFlow server

Run this the seprate terminal

mlflow server --backend-store-uri sqlite:///mlflow.db --default-artifact-root s3://<your-bucket-name>/ --host 0.0.0.0 -p 8000

Export MLFLOW_TRACKING_URI

export MLFLOW_TRACKING_URI=http://localhost:8000/
  1. To run the training script
python train.py

The training script generates bentoml dockerfile and builds and image

  1. Run the inference docker image
docker run -d -p 3000:3000 mnist-mlops

On http://localhost:3000/ url, we will get swagger ui, with predict route and prometheus metrics route

PostMan Request

postman_screenshot

mnist_mlops's People

Contributors

sethusaim avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.