Coder Social home page Coder Social logo

leolorenzoluis / amazon-sagemaker-script-mode Goto Github PK

View Code? Open in Web Editor NEW

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

0.0 1.0 0.0 465 KB

Amazon SageMaker Script Mode examples

License: Apache License 2.0

Python 32.09% Jupyter Notebook 63.70% Shell 4.05% Dockerfile 0.15%

amazon-sagemaker-script-mode's Introduction

Amazon SageMaker Script Mode Examples

This repository contains examples and related resources regarding Amazon SageMaker’s Script Mode. With Script Mode, you can use training scripts similar to those you would use outside SageMaker with SageMaker's prebuilt containers for various deep learning frameworks such TensorFlow, PyTorch, and Apache MXNet.

Currently this repository has the following resources:

  • TensorFlow Eager Execution: This example shows how to use Script Mode with TensorFlow's Eager Execution mode. Eager Execution is the future of TensorFlow, and a major paradigm shift. Introduced as a more intuitive and dynamic alternative to the original graph mode of TensorFlow, Eager Execution is the default mode of TensorFlow 2. PREREQUISITES: Be sure to upload all files in the tf-eager-script-mode directory (including the subdirectory train_model) to the directory where you will run the related Jupyter notebook.

  • TensorFlow Sentiment Analysis: Script Mode is used with TensorFlow's implementation of the Keras API for a sentiment analysis task. In addition to demonstrating Local Mode training for testing your code, this example also shows usage of SageMaker Batch Transform for asynchronous, large scale inference, rather than SageMaker Hosted Endpoints for near real-time inference. PREREQUISITES: Be sure to upload all files in the tf-sentiment-script-mode directory to the directory where you will run the related Jupyter notebook.

  • TensorFlow Text Classification with Word Embeddings: In this example, TensorFlow's tf.keras API is used with Script Mode for a text classification task. An important aspect of the example is showing how to load preexisting word embeddings such as GloVe in Script Mode. PREREQUISITES: (1) Use a GPU-based (P3 or P2) SageMaker notebook instance, and (2) be sure to upload all files in the keras-embeddings-script-mode directory (including subdirectory code) to the directory where you will run the related Jupyter notebook.

  • TensorFlow Distributed Training Options: This example demonstrates distributed training options in Script Mode, including the use of parameter servers and Horovod. PREREQUISITES: be sure to upload all files in the tf-distribution-options directory (including the subdirectory code and files) to the directory where you will run the related Jupyter notebook.

  • TensorFlow Highly Performant Batch Inference & Training: The focus of this example is highly performant batch inference using TensorFlow Serving, along with Horovod distributed training. To transform the input image data for inference, a preprocessing script is used with the Amazon SageMaker TensorFlow Serving container. PREREQUISITES: be sure to upload all files in the tf-batch-inference-script directory (including the subdirectory code and files) to the directory where you will run the related Jupyter notebook.

  • TensorFlow with Horovod & Inference Pipeline: Script Mode with TensorFlow is used for a computer vision task, in a demonstration of Horovod distributed training and doing batch inference in conjunction with an Inference Pipeline for transforming image data before inputting it to the model container. This is an alternative to the previous example, which uses a preprocessing script with the Amazon SageMaker TensorFlow Serving Container rather than an Inference Pipeline. PREREQUISITES: be sure to upload all files in the tf-horovod-inference-pipeline directory (including the subdirectory code and files) to the directory where you will run the related Jupyter notebook.

License

The contents of this repository are licensed under the Apache 2.0 License except where otherwise noted.

amazon-sagemaker-script-mode's People

Contributors

jpeddicord avatar rabowskyb avatar

Watchers

 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.