Git Product home page Git Product logo

mlflow-quickstart's Introduction

mlflow-server

Tracking Server and Model Registry Server for MLflow

Deployment

This repo will build an mlflow server to log experiment artifacts and serve models

Example .env

export MLFLOW_BACKEND_STORE_URI='postgresql://username:password@host:5432/db-name'
export MLFLOW_ARTIFACTS_DESTINATION='s3://artifact-location/'
export MLFLOW_DEFAULT_ARTIFACT_ROOT='s3://artifact-location/'
export MLFLOW_REGISTRY_STORE_URI='s3://model-registry/'
export MLFLOW_TRACKING_TOKEN='a-valid-bearer-token'
export MLFLOW_TRACKING_URI='http://localhost:5555'
export MLFLOW_TRACKING_AWS_SIGV4=True
export MLFLOW_WORKERS=1
export MLFLOW_SERVE_ARTIFACTS=true
export MLFLOW_HOST='0.0.0.0'
export MLFLOW_PORT=5555
export AWS_DEFAULT_REGION=s3-region
export AWS_ACCESS_KEY_ID=key-id
export AWS_SECRET_ACCESS_KEY=secret-key
export DB_NAME=db-name
export DB_USER=user
export DB_PASSWORD=password
export DB_HOST=db-host

############
# R env vars
export MLFLOW_PYTHON_BIN=/Users/alan/dev/mlflow-stuff/venv/bin/python
export MLFLOW_BIN=/Users/alan/dev/mlflow-stuff/venv/bin/mlflow

RUN

Once you have a configured .env file in the base directory: docker-compose up --build

TESTS

Integration tests can be run python tests.py

Proxy

MLFLOW does not offer an authorization solution out of the box. This is usually accomplished with a proxy. In this case nginx will proxy the Authorization headers to a Django application and proxies on a 200 response, denying access on a 401 or 403.

You'll need to setup a user in the Django application Gatekeeper if you want to test out the secure proxies. Else you can expose the mlflow port directly and interact with the mlflow server directly.# mlflow-quickstart

mlflow-quickstart's People

Contributors

afraley avatar

Watchers

 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.