Skip to content

A repository for notes on the open-source mlrun project

License

Notifications You must be signed in to change notification settings

noahgift/mlrun-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A repository for notes on the open-source mlrun project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published