Giter Site home page Giter Site logo

ts-azure-services / local-mlflow-aml-endpoint Goto Github PK

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

A repo to showcase a local dev workflow to build an MLFlow model and then load it for inferencing into Azure ML.

License: MIT License

Makefile 6.12% Shell 28.58% Python 65.30%
azure-ml managed-online-endpoints mlflow

local-mlflow-aml-endpoint's Introduction

local-mlflow-aml-endpoint

This repo demonstrates a workflow to develop a local ML model using mlflow and then leverage Azure ML to setup a real-time inference endpoint. To use this workflow, ensure that you have the latest Azure ML CLI v2 installed (refer this link).

Steps

  • Create a local virtual environment and install needed libraries using the make install command.
  • Create the Azure ML environment using the make infra command:
    • Ensure you have a sub.env file with your subscription listed as a single line command as SUB_ID=<your subscription>.
  • Then, start a local mlflow backend server, and in a separate terminal, trigger a local run, using make local_run.
  • Once you have the local model artifacts, run aml_deploy. This will do a few things:
    • Consolidate all the model artifacts in a model directory.
    • Overwrite the conda.yaml file with a more extensive definition.
    • Trigger a number of Azure CLI commands to register the model in AML and trigger a managed real-time deployment. (This can also be manually done through the Portal as detailed here.
  • Once the endpoint is up, the last series of commands - make get_prediction - can help generate some test data from the original dataset which can be manually tested through the Portal 'Test' feature for the managed online endpoint.

local-mlflow-aml-endpoint's People

Contributors

thomassantosh 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.