GithubHelp home page GithubHelp logo

apac-ml-tfc / frugal-mlops Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 2.0 472 KB

MLOps example with an emphasis on re-using (rather than re-building) artifacts

Jupyter Notebook 55.39% Python 39.95% Shell 3.76% HTML 0.90%
sagemaker mlops aws-step-functions

frugal-mlops's People

Contributors

athewsey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

frugal-mlops's Issues

Feature: Data-driven re-training

This repository demonstrates examples of experiment-driven pipelines to push new model ideas into deployment, but doesn't show a corresponding data-driven pipeline to refresh trained models as new data arrives.

SFN should retain only payloads from Lambda states

By replacing our Lambda-calling states with style e.g.

"Hello": {
  "Type": "Task",
  "Resource": "arn:aws:lambda:us-east-1:xxxxxxxxx:function:HelloWorld:$LATEST",
  "ResultPath": "$.LambdaResult",
  "Next": "World"
},

...we can reference results at $.LambdaResult instead of $.LambdaResult.Payload, and not pollute the step function data with other Lambda execution metadata e.g. the called version, HTTP headers etc which appear at the moment.

bug: Sandbox stack does not properly grant AssumeRole on ProjectSudoRole

Although the sandbox.yml stack grants the user's execution role permission to sts:AssumeRole on the SudoRole, the SudoRole's trust policy is not updated to add the new principal - so the access is still blocked... Resulting in an error something like the below at the end of notebook 1:

An error occurred (AccessDenied) when calling the AssumeRole operation: User: arn:aws:sts::123456789012:assumed-role/AmazonSageMaker-ExecutionRole-XYZ/SageMaker is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::123456789012:role/forestcover/forestcover-ProjectSudoRole

The manual fix is to open the SudoRole in the IAM console, go to the "Trust Relationships" tab, and add an entry something like:

    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::123456789012:role/AmazonSageMaker-ExecutionRole-XYZ"
      },
      "Action": "sts:AssumeRole"
    }

...But the templates should be updated to automate this process

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.