Giter Club home page Giter Club logo

mlrun-notes's Introduction

mlrun-notes

A repository for notes on mlrun

mlrun-architecture

What is it?

  • open-source MLOps framework
  • abstraction layer to a variety of technology stacks

Architectural Components

  • Feature and Artifact Store
  • Elastic Serverless Runtimes: Kubernetes/Nuclio/Dask/Spark/Horovod
  • ML Pipeline Automation: data prep/modeling/real-time pipelines/monitoring
  • Central Management: UI/CLI/SDK

Key Features

  • Speed of deployment
  • Elastic scaling of batch and real-time jobs
  • Feature management system
  • Runs anywhere

Core Concepts

  • Project
  • Function
  • Run
  • Artifact
  • Workflow
  • UI

Hosted Platform Notes

  • Safari not supported, used Chrome

Part 1: MLRun Basics

Must do TWO THINGS before you run tutorial on hosted platform:

  1. !/User/align_mlrun.sh
  2. Restart Kernel

Install Notes

Getting started with official docs

Getting Started via manual install and Github README

  • Install (Make sure you have the latest pip). Install on OS X will take several minutes and requires Rust and Cython.

  • Create and source a python virtualenv: python3 -m venv ~/.mlrun-notes && source ~/.mlrun-notes/bin/activate pip install --upgrade pip && pip install mlrun

Common Install Errors and Gotchas for Manual Install

Operating Specific:

OS X

Can take 30+ minutes to install and contains many dependency errors.

  • install latest Python and Rust): brew install python and brew install rust
  • ModuleNotFoundError: No module named 'Cython'
  • RuntimeError: cargo not found in PATH. Please install rust (https://www.rust-lang.org/tools/install) and try again
  • clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
  • ERROR: Could not build wheels for maturin, which is required to install pyproject.toml-based projects

Github Codespaces

  • Install only takes a couple of minutes to install

Tutorial Specific:

(.mlrun-notes) ➜  functions git:(main) ✗ mlrun build function.yaml

> 2021-11-26 11:39:57,419 [info] remote deployment started
> 2021-11-26 11:39:57,419 [error] database connection is not configured
> 2021-11-26 11:39:57,419 [info] building image (.mlrun/func-default-remote-git-test-latest)
deploy error, local docker registry is not defined, set DEFAULT_DOCKER_REGISTRY/SECRET env vars

Potential Enhancements

  • Hello World example in "one line"
  • Target environment recommendation: Github Codespaces, AWS Cloudshell, etc
  • Hello World using a pre-built Docker pull command
  • Separate demos with foolproof "hello world" commands for each architectural component
  • More clear link to official docs
  • Point to a VM based solution: i.e AWS AMI, etc.

References

mlrun-notes's People

Contributors

noahgift avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gauti003

mlrun-notes's Issues

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.