GithubHelp home page GithubHelp logo

prgatadi / amazon-sagemaker-local-mode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/amazon-sagemaker-local-mode

0.0 0.0 0.0 2.33 MB

Amazon SageMaker Local Mode Examples

License: MIT No Attribution

Shell 2.68% Python 88.20% Dockerfile 3.74% Jupyter Notebook 5.38%

amazon-sagemaker-local-mode's Introduction

Amazon SageMaker Local Mode Examples

This repository contains examples and related resources showing you how to preprocess, train, debug your training script with breakpoints, and serve on your local machine using Amazon SageMaker Local mode for processing jobs, training and serving.

Overview

The local mode in the Amazon SageMaker Python SDK can emulate CPU (single and multi-instance) and GPU (single instance) SageMaker training jobs by changing a single argument in the TensorFlow, PyTorch or MXNet estimators. To do this, it uses Docker compose and NVIDIA Docker. It will also pull the Amazon SageMaker TensorFlow, PyTorch or MXNet containers from Amazon ECS, so you’ll need to be able to access a public Amazon ECR repository from your local environment.

For full details on how this works:

SageMaker local mode training and serving in PyCharm

This repository examples will work in any IDE on your local machine.

Here you can see a TensorFlow example running on PyCharm. The data for training and serving is also located on your local machine file system.

SageMaker local mode training in PyCharm

SageMaker local mode training in PyCharm

SageMaker local mode serving in PyCharm

SageMaker local mode serving in PyCharm

SageMaker local mode processing jobs in PyCharm

SageMaker local mode processing jobs in PyCharm

Debugging your training script running SageMaker local mode training in PyCharm

Debug your application

Repository Structure

The repository contains the following resources:

  • scikit-learn resources:

  • XGBoost resources:

  • TensorFlow resources:

  • PyTorch resources:

  • Bring Your Own Container resources:

    • Bring Your Own Container TensorFlow Algorithm - Train/Serve: This example provides a detailed walkthrough on how to package a Tensorflow 2.5.0 algorithm for training and production-ready hosting. We have included also a Python file for local training and serving that can run on your local computer, for faster development.
    • Bring Your Own Container TensorFlow Algorithm - Train/Batch Transform: This example provides a detailed walkthrough on how to package a Tensorflow 2.5.0 algorithm for training, and then run a Batch Transform job on a CSV file. We have included also a Python file for local training and serving that can run on your local computer, for faster development.
    • Bring Your Own Container CatBoost Algorithm: This example provides a detailed walkthrough on how to package a CatBoost algorithm for training and production-ready hosting. We have included also a Python file for local training and serving that can run on your local computer, for faster development.
    • Bring Your Own Container LightGBM Algorithm: This example provides a detailed walkthrough on how to package a LightGBM algorithm for training and production-ready hosting. We have included also a Python file for local training and serving that can run on your local computer, for faster development.
    • Bring Your Own Container Prophet Algorithm: This example provides a detailed walkthrough on how to package a Prophet algorithm for training and production-ready hosting. We have included also a Python file for local training and serving that can run on your local computer, for faster development.
    • Bring Your Own Container HDBSCAN Algorithm: This example provides a detailed walkthrough on how to package a HDBSCAN algorithm for training. We have included also a Python file for local training that can run on your local computer, for faster development.
  • Built-in scikit-learn Processing Job :

    • Built-in scikit-learn Processing Job: This example provides a detailed walkthrough on how to use the built-in scikit-learn Docker image for processing jobs. We have included also a Python file for processing jobs that can run on your local computer, for faster development.
  • Bring Your Own Container scikit-learn Processing Job :

    • Bring Your Own Container scikit-learn Processing Job: This example provides a detailed walkthrough on how to package a scikit-learn Docker image for processing jobs. We have included also a Python file for processing jobs that can run on your local computer, for faster development.

Note: Those examples were tested on macOS and Linux.

Installation Instructions

  1. Create an AWS account if you do not already have one and login.

  2. Install Docker Desktop for Mac

  3. Install the AWS CLI and Configure AWS credentials.

  4. Clone the repo onto your local development machine using git clone.

  5. Open the project in any IDE of your choice in order to run the example Python files.

  6. Follow the instructions on which Python packages to install in each of the example Python file.

Questions?

Please contact @e_sela or raise an issue on this repo.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

amazon-sagemaker-local-mode's People

Contributors

amazon-auto avatar eitansela avatar gilinachum avatar shneydor 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.