SlideShare a Scribd company logo
1 of 19
Download to read offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building, Training, and Deploying fast.ai
Models Using Amazon SageMaker
Matt McClean
Solution Architect Manager
Amazon Web Services
A I M 4 2 8
Andrew Shaw
Researcher
fast.ai
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Fully managed
hosting with auto-
scaling
One-click
deployment
Pre-built
notebooks for
common
problems
Built-in, high-
performance
algorithms
One-click
training
Automatic model
tuning
Build Train Deploy
Amazon SageMaker
Amazon SageMaker
1
I
Notebook instances
2
I
Algorithms
3
I
ML training service
4
I
ML hosting service
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Training code
• Matrix factorization
• Regression
• Principal component analysis
• K-means clustering
• Gradient boosted trees
• And more!
Built-in algorithms
Bring your own script
(Amazon SageMaker builds the container)
Amazon SageMaker
estimators in Apache
Spark
Bring your own algorithm
(you build the container)
Amazon SageMaker training options
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon SageMaker training service
Training Image Inference ImageTraining ImageTraining DataTraining Data
Model artifacts
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon SageMaker hosting service
Training Image Inference ImageTraining ImageTraining DataTraining DataModel artifacts
Inference Image
Model artifacts
Endpoint
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Custom algorithms with Amazon SageMaker
Train image
Train data (S3)
Hyperparameters
Model artifacts
Inference image
HTTP POST Response
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Training image run
docker run {image} train
Amazon SageMaker run command
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Training image run
/opt/ml
├── input
│ ├── config
│ │ ├── hyperparameters.json
│ │ └── resourceConfig.json
│ └── data
│ └── <channel_name>
│ └── <input data>
├── model
│ └── <model files>
└── output
└── failure
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Inference image run
/opt/ml/model
Model artifacts directory
docker run {image} serve
Amazon SageMaker run command
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Inference image server
post: /invocations
get: /ping
Inference calls
Endpoint health
HTTP
request
NGINX
GUNICORN
FLASK
ML code
Python
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
fast.ai—Making neural nets uncool again
Deep learning for coders
• MOOC taught by Jeremy Howard
• Part 1 happening now
fastai Library
• Deep learning framework built on PyTorch
• SOTA best practices made easy
• Easily extensible
Founded by Jeremy Howard and Rachel Thomas
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Research
Vision
NLP
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dogs vs. cats
Arch: Resnet50 Fastai Keras
Lines of code (excluding imports) 5 31
Stage 1 error 0.65% 2.05%
Stage 2 error 0.50% 0.80%
Test time augmentation (TTA) error 0.40% N/A*
Stage 1 time 9:30 8:30
Stage 2 time 12:48 17:38
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Links
fast.ai Library - https://github.com/fastai/fastai
fast.ai Online course - http://course.fast.ai/
Amazon SageMaker fast.ai container -
https://github.com/mattmcclean/sagemaker-fastai-container or https://bit.ly/2RWxteU
Amazon SageMaker fast.ai example –
https://github.com/mattmcclean/sagemaker-fastai-example or https://bit.ly/2P8yxxJ
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Matt McClean
mmcclean@amazon.com
Andrew Shaw
andrew.t.shaw@gmail.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018Amazon Web Services
 
Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...
Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...
Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...Amazon Web Services
 
Sequence-to-Sequence Modeling with Apache MXNet, Sockeye, and Amazon SageMake...
Sequence-to-Sequence Modeling with Apache MXNet, Sockeye, and Amazon SageMake...Sequence-to-Sequence Modeling with Apache MXNet, Sockeye, and Amazon SageMake...
Sequence-to-Sequence Modeling with Apache MXNet, Sockeye, and Amazon SageMake...Amazon Web Services
 
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...Amazon Web Services
 
Let’s Talk about Reinforcement Learning with Amazon SageMaker RL (AIM399) - A...
Let’s Talk about Reinforcement Learning with Amazon SageMaker RL (AIM399) - A...Let’s Talk about Reinforcement Learning with Amazon SageMaker RL (AIM399) - A...
Let’s Talk about Reinforcement Learning with Amazon SageMaker RL (AIM399) - A...Amazon Web Services
 
Hollywood's Cloud-Based Content Lakes: Modernized Media Archives (MAE203) - A...
Hollywood's Cloud-Based Content Lakes: Modernized Media Archives (MAE203) - A...Hollywood's Cloud-Based Content Lakes: Modernized Media Archives (MAE203) - A...
Hollywood's Cloud-Based Content Lakes: Modernized Media Archives (MAE203) - A...Amazon Web Services
 
Build a Babel Fish with Machine Learning Language Services (AIM313) - AWS re:...
Build a Babel Fish with Machine Learning Language Services (AIM313) - AWS re:...Build a Babel Fish with Machine Learning Language Services (AIM313) - AWS re:...
Build a Babel Fish with Machine Learning Language Services (AIM313) - AWS re:...Amazon Web Services
 
Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...
Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...
Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...Amazon Web Services
 
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...Machine Learning for Improving Disaster Management and Response (WPS313) - AW...
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...Amazon Web Services
 
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...Amazon Web Services
 
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...Amazon Web Services
 
Amazon, awsreinvent2018, Artificial Intelligence & Machine Learning, AIM422, ...
Amazon, awsreinvent2018, Artificial Intelligence & Machine Learning, AIM422, ...Amazon, awsreinvent2018, Artificial Intelligence & Machine Learning, AIM422, ...
Amazon, awsreinvent2018, Artificial Intelligence & Machine Learning, AIM422, ...Amazon Web Services
 
Detect Anomalies Using Amazon SageMaker (AIM420) - AWS re:Invent 2018
Detect Anomalies Using Amazon SageMaker (AIM420) - AWS re:Invent 2018Detect Anomalies Using Amazon SageMaker (AIM420) - AWS re:Invent 2018
Detect Anomalies Using Amazon SageMaker (AIM420) - AWS re:Invent 2018Amazon Web Services
 
Machine Learning Your Eight-Year-Old Would Be Proud Of (AIM390) - AWS re:Inve...
Machine Learning Your Eight-Year-Old Would Be Proud Of (AIM390) - AWS re:Inve...Machine Learning Your Eight-Year-Old Would Be Proud Of (AIM390) - AWS re:Inve...
Machine Learning Your Eight-Year-Old Would Be Proud Of (AIM390) - AWS re:Inve...Amazon Web Services
 
Deep Learning Applications Using PyTorch, Featuring Facebook (AIM402-R) - AWS...
Deep Learning Applications Using PyTorch, Featuring Facebook (AIM402-R) - AWS...Deep Learning Applications Using PyTorch, Featuring Facebook (AIM402-R) - AWS...
Deep Learning Applications Using PyTorch, Featuring Facebook (AIM402-R) - AWS...Amazon Web Services
 
Detecting Financial Market Manipulation Using Machine Learning (AIM347) - AWS...
Detecting Financial Market Manipulation Using Machine Learning (AIM347) - AWS...Detecting Financial Market Manipulation Using Machine Learning (AIM347) - AWS...
Detecting Financial Market Manipulation Using Machine Learning (AIM347) - AWS...Amazon Web Services
 
Run XGBoost with Amazon SageMaker (AIM335) - AWS re:Invent 2018
Run XGBoost with Amazon SageMaker (AIM335) - AWS re:Invent 2018Run XGBoost with Amazon SageMaker (AIM335) - AWS re:Invent 2018
Run XGBoost with Amazon SageMaker (AIM335) - AWS re:Invent 2018Amazon Web Services
 
New AI/ML Solutions with AWS DeepLens & Amazon SageMaker with ConocoPhillips ...
New AI/ML Solutions with AWS DeepLens & Amazon SageMaker with ConocoPhillips ...New AI/ML Solutions with AWS DeepLens & Amazon SageMaker with ConocoPhillips ...
New AI/ML Solutions with AWS DeepLens & Amazon SageMaker with ConocoPhillips ...Amazon Web Services
 
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...Amazon Web Services
 
Transform the Modern Contact Center Using Machine Learning and Analytics (AIM...
Transform the Modern Contact Center Using Machine Learning and Analytics (AIM...Transform the Modern Contact Center Using Machine Learning and Analytics (AIM...
Transform the Modern Contact Center Using Machine Learning and Analytics (AIM...Amazon Web Services
 

What's hot (20)

Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
Robocar Rally 2018 (AIM206-R20) - AWS re:Invent 2018
 
Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...
Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...
Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...
 
Sequence-to-Sequence Modeling with Apache MXNet, Sockeye, and Amazon SageMake...
Sequence-to-Sequence Modeling with Apache MXNet, Sockeye, and Amazon SageMake...Sequence-to-Sequence Modeling with Apache MXNet, Sockeye, and Amazon SageMake...
Sequence-to-Sequence Modeling with Apache MXNet, Sockeye, and Amazon SageMake...
 
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...
Build an Intelligent Multi-Modal User Agent with Voice and NLU (AIM340) - AWS...
 
Let’s Talk about Reinforcement Learning with Amazon SageMaker RL (AIM399) - A...
Let’s Talk about Reinforcement Learning with Amazon SageMaker RL (AIM399) - A...Let’s Talk about Reinforcement Learning with Amazon SageMaker RL (AIM399) - A...
Let’s Talk about Reinforcement Learning with Amazon SageMaker RL (AIM399) - A...
 
Hollywood's Cloud-Based Content Lakes: Modernized Media Archives (MAE203) - A...
Hollywood's Cloud-Based Content Lakes: Modernized Media Archives (MAE203) - A...Hollywood's Cloud-Based Content Lakes: Modernized Media Archives (MAE203) - A...
Hollywood's Cloud-Based Content Lakes: Modernized Media Archives (MAE203) - A...
 
Build a Babel Fish with Machine Learning Language Services (AIM313) - AWS re:...
Build a Babel Fish with Machine Learning Language Services (AIM313) - AWS re:...Build a Babel Fish with Machine Learning Language Services (AIM313) - AWS re:...
Build a Babel Fish with Machine Learning Language Services (AIM313) - AWS re:...
 
Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...
Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...
Smarter Event-Driven Edge with Amazon SageMaker & Project Flogo (AIM204-S) - ...
 
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...Machine Learning for Improving Disaster Management and Response (WPS313) - AW...
Machine Learning for Improving Disaster Management and Response (WPS313) - AW...
 
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...
Improve Your Customer Experience with Machine Translation (AIM321) - AWS re:I...
 
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...
Democratize Data Preparation for Analytics & Machine Learning A Hands-On Lab ...
 
Amazon, awsreinvent2018, Artificial Intelligence & Machine Learning, AIM422, ...
Amazon, awsreinvent2018, Artificial Intelligence & Machine Learning, AIM422, ...Amazon, awsreinvent2018, Artificial Intelligence & Machine Learning, AIM422, ...
Amazon, awsreinvent2018, Artificial Intelligence & Machine Learning, AIM422, ...
 
Detect Anomalies Using Amazon SageMaker (AIM420) - AWS re:Invent 2018
Detect Anomalies Using Amazon SageMaker (AIM420) - AWS re:Invent 2018Detect Anomalies Using Amazon SageMaker (AIM420) - AWS re:Invent 2018
Detect Anomalies Using Amazon SageMaker (AIM420) - AWS re:Invent 2018
 
Machine Learning Your Eight-Year-Old Would Be Proud Of (AIM390) - AWS re:Inve...
Machine Learning Your Eight-Year-Old Would Be Proud Of (AIM390) - AWS re:Inve...Machine Learning Your Eight-Year-Old Would Be Proud Of (AIM390) - AWS re:Inve...
Machine Learning Your Eight-Year-Old Would Be Proud Of (AIM390) - AWS re:Inve...
 
Deep Learning Applications Using PyTorch, Featuring Facebook (AIM402-R) - AWS...
Deep Learning Applications Using PyTorch, Featuring Facebook (AIM402-R) - AWS...Deep Learning Applications Using PyTorch, Featuring Facebook (AIM402-R) - AWS...
Deep Learning Applications Using PyTorch, Featuring Facebook (AIM402-R) - AWS...
 
Detecting Financial Market Manipulation Using Machine Learning (AIM347) - AWS...
Detecting Financial Market Manipulation Using Machine Learning (AIM347) - AWS...Detecting Financial Market Manipulation Using Machine Learning (AIM347) - AWS...
Detecting Financial Market Manipulation Using Machine Learning (AIM347) - AWS...
 
Run XGBoost with Amazon SageMaker (AIM335) - AWS re:Invent 2018
Run XGBoost with Amazon SageMaker (AIM335) - AWS re:Invent 2018Run XGBoost with Amazon SageMaker (AIM335) - AWS re:Invent 2018
Run XGBoost with Amazon SageMaker (AIM335) - AWS re:Invent 2018
 
New AI/ML Solutions with AWS DeepLens & Amazon SageMaker with ConocoPhillips ...
New AI/ML Solutions with AWS DeepLens & Amazon SageMaker with ConocoPhillips ...New AI/ML Solutions with AWS DeepLens & Amazon SageMaker with ConocoPhillips ...
New AI/ML Solutions with AWS DeepLens & Amazon SageMaker with ConocoPhillips ...
 
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
 
Transform the Modern Contact Center Using Machine Learning and Analytics (AIM...
Transform the Modern Contact Center Using Machine Learning and Analytics (AIM...Transform the Modern Contact Center Using Machine Learning and Analytics (AIM...
Transform the Modern Contact Center Using Machine Learning and Analytics (AIM...
 

Similar to Building, Training, and Deploying fast.ai Models Using Amazon SageMaker (AIM428) - AWS re:Invent 2018

Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...Amazon Web Services
 
From Notebook to production with Amazon SageMaker
From Notebook to production with Amazon SageMakerFrom Notebook to production with Amazon SageMaker
From Notebook to production with Amazon SageMakerAmazon Web Services
 
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018Amazon Web Services
 
AWS Machine Learning Week SF: End to End Model Development Using SageMaker
AWS Machine Learning Week SF: End to End Model Development Using SageMakerAWS Machine Learning Week SF: End to End Model Development Using SageMaker
AWS Machine Learning Week SF: End to End Model Development Using SageMakerAmazon Web Services
 
Amazon SageMaker (December 2018)
Amazon SageMaker (December 2018)Amazon SageMaker (December 2018)
Amazon SageMaker (December 2018)Julien SIMON
 
Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...
Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...
Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...Codiax
 
End to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMakerEnd to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMakerAmazon Web Services
 
AWS re:Invent 2018 - ENT321 - SageMaker Workshop
AWS re:Invent 2018 - ENT321 - SageMaker WorkshopAWS re:Invent 2018 - ENT321 - SageMaker Workshop
AWS re:Invent 2018 - ENT321 - SageMaker WorkshopJulien SIMON
 
Supercharge Your Machine Learning Model with Amazon SageMaker
Supercharge Your Machine Learning Model with Amazon SageMakerSupercharge Your Machine Learning Model with Amazon SageMaker
Supercharge Your Machine Learning Model with Amazon SageMakerAmazon Web Services
 
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Amazon Web Services
 
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...Amazon Web Services
 
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018Amazon Web Services
 
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...Amazon Web Services
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS SummitAmazon Web Services
 
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...Amazon Web Services
 
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...Amazon Web Services
 
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...Amazon Web Services
 
Building a Serverless AI Powered Twitter Bot: Collision 2018
Building a Serverless AI Powered Twitter Bot: Collision 2018Building a Serverless AI Powered Twitter Bot: Collision 2018
Building a Serverless AI Powered Twitter Bot: Collision 2018Amazon Web Services
 
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...Amazon Web Services
 

Similar to Building, Training, and Deploying fast.ai Models Using Amazon SageMaker (AIM428) - AWS re:Invent 2018 (20)

Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
Building Deep Learning Applications with TensorFlow and SageMaker on AWS - Te...
 
From Notebook to production with Amazon SageMaker
From Notebook to production with Amazon SageMakerFrom Notebook to production with Amazon SageMaker
From Notebook to production with Amazon SageMaker
 
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018
Serverless AI with Scikit-Learn (GPSWS405) - AWS re:Invent 2018
 
AWS Machine Learning Week SF: End to End Model Development Using SageMaker
AWS Machine Learning Week SF: End to End Model Development Using SageMakerAWS Machine Learning Week SF: End to End Model Development Using SageMaker
AWS Machine Learning Week SF: End to End Model Development Using SageMaker
 
Amazon SageMaker (December 2018)
Amazon SageMaker (December 2018)Amazon SageMaker (December 2018)
Amazon SageMaker (December 2018)
 
Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...
Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...
Julien Simon, Principal Technical Evangelist at Amazon - Machine Learning: Fr...
 
End to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMakerEnd to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMaker
 
AWS re:Invent 2018 - ENT321 - SageMaker Workshop
AWS re:Invent 2018 - ENT321 - SageMaker WorkshopAWS re:Invent 2018 - ENT321 - SageMaker Workshop
AWS re:Invent 2018 - ENT321 - SageMaker Workshop
 
Supercharge Your Machine Learning Model with Amazon SageMaker
Supercharge Your Machine Learning Model with Amazon SageMakerSupercharge Your Machine Learning Model with Amazon SageMaker
Supercharge Your Machine Learning Model with Amazon SageMaker
 
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
Perform Machine Learning at the IoT Edge using AWS Greengrass and Amazon Sage...
 
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
Build, Train, and Deploy Machine Learning for the Enterprise with Amazon Sage...
 
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018
Supercharge Your ML Model with SageMaker - AWS Summit Sydney 2018
 
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...
Accelerate ML Training on Amazon SageMaker Using GPU-Based EC2 P3 Instances (...
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Atlanta AWS Summit
 
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
Crowdsourcing Data Collection with Amazon Mechanical Turk (AIM362) - AWS re:I...
 
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...
Get Started with Deep Learning and Computer Vision Using AWS DeepLens (AIM316...
 
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...
Building WhereML, an AI Powered Twitter Bot for Guessing Locations of Picture...
 
Building a Serverless AI Powered Twitter Bot: Collision 2018
Building a Serverless AI Powered Twitter Bot: Collision 2018Building a Serverless AI Powered Twitter Bot: Collision 2018
Building a Serverless AI Powered Twitter Bot: Collision 2018
 
Where ml ai_heavy
Where ml ai_heavyWhere ml ai_heavy
Where ml ai_heavy
 
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...
Accelerate Machine Learning with Ease Using Amazon SageMaker - BDA301 - Chica...
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Building, Training, and Deploying fast.ai Models Using Amazon SageMaker (AIM428) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Building, Training, and Deploying fast.ai Models Using Amazon SageMaker Matt McClean Solution Architect Manager Amazon Web Services A I M 4 2 8 Andrew Shaw Researcher fast.ai
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Fully managed hosting with auto- scaling One-click deployment Pre-built notebooks for common problems Built-in, high- performance algorithms One-click training Automatic model tuning Build Train Deploy Amazon SageMaker
  • 4. Amazon SageMaker 1 I Notebook instances 2 I Algorithms 3 I ML training service 4 I ML hosting service
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Training code • Matrix factorization • Regression • Principal component analysis • K-means clustering • Gradient boosted trees • And more! Built-in algorithms Bring your own script (Amazon SageMaker builds the container) Amazon SageMaker estimators in Apache Spark Bring your own algorithm (you build the container) Amazon SageMaker training options
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon SageMaker training service Training Image Inference ImageTraining ImageTraining DataTraining Data Model artifacts
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon SageMaker hosting service Training Image Inference ImageTraining ImageTraining DataTraining DataModel artifacts Inference Image Model artifacts Endpoint
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Custom algorithms with Amazon SageMaker Train image Train data (S3) Hyperparameters Model artifacts Inference image HTTP POST Response
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Training image run docker run {image} train Amazon SageMaker run command
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Training image run /opt/ml ├── input │ ├── config │ │ ├── hyperparameters.json │ │ └── resourceConfig.json │ └── data │ └── <channel_name> │ └── <input data> ├── model │ └── <model files> └── output └── failure
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Inference image run /opt/ml/model Model artifacts directory docker run {image} serve Amazon SageMaker run command
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Inference image server post: /invocations get: /ping Inference calls Endpoint health HTTP request NGINX GUNICORN FLASK ML code Python
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. fast.ai—Making neural nets uncool again Deep learning for coders • MOOC taught by Jeremy Howard • Part 1 happening now fastai Library • Deep learning framework built on PyTorch • SOTA best practices made easy • Easily extensible Founded by Jeremy Howard and Rachel Thomas
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Research Vision NLP
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Dogs vs. cats Arch: Resnet50 Fastai Keras Lines of code (excluding imports) 5 31 Stage 1 error 0.65% 2.05% Stage 2 error 0.50% 0.80% Test time augmentation (TTA) error 0.40% N/A* Stage 1 time 9:30 8:30 Stage 2 time 12:48 17:38
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Links fast.ai Library - https://github.com/fastai/fastai fast.ai Online course - http://course.fast.ai/ Amazon SageMaker fast.ai container - https://github.com/mattmcclean/sagemaker-fastai-container or https://bit.ly/2RWxteU Amazon SageMaker fast.ai example – https://github.com/mattmcclean/sagemaker-fastai-example or https://bit.ly/2P8yxxJ
  • 18. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Matt McClean mmcclean@amazon.com Andrew Shaw andrew.t.shaw@gmail.com
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.