Giter Club home page Giter Club logo

one-click-mlflow's Introduction

1. one-click-mlflow

A tool to deploy a mostly serverless MLflow on a GCP project with one command

1.1. How to use

1.1.1. Pre-requisites

  • A GCP project on which you are owner
  • Terraform, make, and jq installed
  • Initialized gcloud SDK with your owner account

1.1.2. Deploying

Clone the repo

Run make one-click-mlflow and let the wizard guide you.

If you want to see the innards, you can run it in debug mode: DEBUG=true make one-click-mlflow

1.1.3. What it does

  • Enables the necessary services
  • Builds and deploys the MLFlow docker image
  • Creates a private IP CloudSQL (MySQL) database for the tracking server
  • Creates an AppEngine Flex on the default service for the web UI, secured by IAP
  • Manages all the network magic
  • Creates the mlflow-log-pusher service account

Architecture

1.1.4. Other available make commands

  • make deploy: builds and pushes the application image and (re)deploys the infrastructure
  • make docker: builds and pushes the application image
  • make apply: (re)deploys the infrastructure
  • make destroy: destroys the infrastructure. Will not delete the OAuth consent screen, and the app engine application.

1.1.5. Pushing your first parameters, logs, artifacts

Once the deployment successful, you can start pushing to your MLFlow instance.

cd examples
python3 -m venv venv 
source venv/bin/activate
pip install -r requirements.txt
python track_experiment.py

You can than adapt examples/track_experiment.py and examples/mlflow_config.py to suit your application's needs.

one-click-mlflow's People

Contributors

alexisvlrt avatar cedric-magnan avatar consciousml avatar cugnierew avatar dependabot[bot] avatar griseau avatar louispaga avatar pol-defont-reaulx 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.