Giter Site home page Giter Site logo

gabriellgpc / mlflow-tracking-server Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 7 KB

How to launch a mlflow tracking server using filesystem to storage the artifacts

License: MIT License

Dockerfile 8.13% Shell 91.87%
linux mlflow mlflow-tracking-server mlops

mlflow-tracking-server's Introduction

mlflow-tracking-server

MLflow is an open source platform for managing the end-to-end machine learning lifecycle. It tackles four primary functions:

  • Tracking experiments to record and compare parameters and results (MLflow Tracking).
  • Packaging ML code in a reusable, reproducible form in order to share with other data scientists or transfer to production (MLflow Projects).
  • Managing and deploying models from a variety of ML libraries to a variety of model serving and inference platforms (MLflow Models).
  • Providing a central model store to collaboratively manage the full lifecycle of an MLflow Model, including model versioning, stage transitions, and annotations (MLflow Model Registry).

For more information refer to

MLflow Tracking

MLflow Tracking is an API and UI for logging parameters, code versions, metrics, and artifacts when running your machine learning code and for later visualizing the results. You can use MLflow Tracking in any environment (for example, a standalone script or a notebook) to log results to local files or to a server, then compare multiple runs. Teams can also use it to compare results from different users.

Setup

This setup is heavly based on Toumash's work where a docker-compose project is proposed to orchestrate database, FTP server, mlflow server and reverse-proxy images.

In order to configure mlflow server instance, follow these steps:

  1. Create the file .env and set the following variables:
  • DB_USER - username for internal MLflow tracking database (arbitrary)
  • DB_PW - password for internal MLflow tracking database (arbitrary)
  • DB_ROOTPW - root password for internal ML Flow tracking database (arbitrary)
  • MLFLOW_SERVER_IP - remote MLflow tracking instance
  • MLFLOW_TRACKING_USERNAME- MLflow proxy authentication username
  • MLFLOW_TRACKING_PASSWORD - MLflow proxy authentication password
  • ARTIFACT_PATH - File Storage where artifacts will be stored
  • FTP_USER - username for internal FTP server
  • FTP_PASS - password for internal FTP server
  1. Export MLFLOW_TRACKING_USERNAME and MLFLOW_TRACKING_PASSWORD variables

  2. Run setup.sh to install dependencies and create reverse-proxy authentication file

Start MLFlow Tracking server (daemon mode)

Build docker images and start containers using docker-compose:

$ docker-compose up -d --build

Check start up logs for errors

$ docker-compose logs -f

Verify tracking server ui

Open a web browser at http://<MLFLOW_SERVER_IP> and authenticate with <MLFLOW_TRACKING_USERNAME> and <MLFLOW_TRACKING_PASSWORD>

Stop and remove containers

$ docker-compose rm --stop --force

References

mlflow-tracking-server's People

Contributors

gabriellgpc avatar

Stargazers

 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.