Code Monkey home page Code Monkey logo

mlops-sagemaker-integration's Introduction

Mlops-Sagemaker-integration

MLFlow provides explicit AWS SageMaker support in its operationalization code.

create --prefix ./env python=3.8 -y && conda activate ./env 

Run 2-3 times with different alpha and li ratio

python main.py alpha l1_ratio

To See logs

mlflow ui

PREREQUISITES

  1. Install AWS CLI
  2. Open Cmd : aws configure
  3. Paste Public key , private key and Region
  4. Run below command

Permissions

  1. AmazonEC2ContainerRegistryFullAccess
  2. AmazonS3FullAccess
  3. EC2InstanceProfileForImageBuilderECRContainerBuilds
  4. AWSAppRunnerServicePolicyForECRAccess

Create Image and Upload on docker

mlflow sagemaker build-and-push-container

Run Server

mlflow server
--backend-store-uri mysql://admin:pass@endpoint/DB-name
--default-artifact-root ./artifacts
--host 127.0.0.1
-p 5000

Send Ml-runs on Aws-S3 Bucket

python utils/sagemaker_integration.py

To build and Push Container

mlflow sagemaker build-and-push-container

Check Errors If occurred try:

docker.errors.DockerException: Install pypiwin32 package to enable npipe:// support
Solution : Instead of pip install pypiwin32  Try : conda install -c anaconda pywin32

mlops-sagemaker-integration's People

Contributors

ketangangal avatar

Stargazers

Jatinkumar Parmar avatar

Watchers

James Cloos 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.