SlideShare ist ein Scribd-Unternehmen logo
1 von 57
Downloaden Sie, um offline zu lesen
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CI/CD for Your Machine Learning
Pipeline with Amazon SageMaker
Vit Niennattrakul, Ph.D.
Managing Director, DailiTech, Thailand
AWS Community Hero, Thailand
D V C 3 0 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Vit Niennattrakul
- Ph.D. in data mining (time series)
- AWS Community Hero
- AWS User Group – Thailand
- Managing director at DailiTech
- AWS external instructor
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
CI/CD on Amazon Web Services
Machine learning with Amazon SageMaker
Architecture integrated with Amazon SageMaker
CI/CD on Amazon SageMaker
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Goal
Developers require a DevOps to make agility, reliability, and consistency
Data scientists require that DevOps as well
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continuous integration/continuous delivery
https://aws.amazon.com/devops/continuous-integration/
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Why do we need CI/CD?
• Fix bug earlier and faster
• Deliver faster and often
• Unblock developers
• Grow skills factor
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CI/CD with AWS developer tools
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodePipeline
• Continuous delivery service for fast and reliable
application updates
• Model and visualize your software release process
• Builds, tests, and deploys your code every time
there is a code change
• Integrates with third-party tools and AWS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodePipeline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodePipeline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodeCommit
• Secure, scalable, and managed Git source control
• Use standard Git tools
• Scalability, availability, and durability of Amazon
Simple Storage Service (Amazon S3)
• Encryption at rest with customer-specific keys
• No repo size limit
• Post commit hooks to call out to Amazon Simple
Notification Service (Amazon SNS)/AWS Lambda
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CodeBuild
• Fully managed build service that compiles source
code, runs tests, and produces software packages
• Scales continuously and processes multiple
builds concurrently
• You can provide custom build environments
suited to your needs via Docker images
• Only pay by the minute for the compute
resources you use
• Launched with AWS CodePipeline and Jenkins
integration
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is machine learning?
Machine learning is a field of artificial
intelligence that uses statistical techniques to
give computer systems the ability to "learn"
(for example, progressively improve
performance on a specific task) from data,
without being explicitly programmed
-Wikipedia
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Machine learning with Amazon Web Services
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Machine learning with Amazon SageMaker
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Machine learning with Amazon SageMaker
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Machine learning with Amazon SageMaker
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Build—Jupyter Notebook
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Build—Jupyter Notebook
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Train—Training jobs
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Tune—Hyperparameter tuning
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Inference—Model & endpoint configuration
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon SageMaker AI/ML algorithms
Built-in algorithm
• Linear learner
• XGBoost algorithm
• Factorization machines
• K-means algorithm
• Principal component analysis (PCA)
• Image classification algorithm
• Sequence to sequence
• Latent Dirichlet allocation (LDA)
• Neural topic model (NTM)
Custom algorithm
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML integrated with business application
Business Application AI Service
Data in Data Lake
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML integrated with business application
Business Application AI Service Data Lake
Business Application
Client
Mobile client
AI Service Data Lake
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML-as-a-service building flow
Development
Environment
Raw Data
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML-as-a-service building flow
Endpoint Raw Data
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML-as-a-service building flow
Endpoint Raw DataApply some business
logics
Handle API key,
cache, etc.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML-as-a-service building flow
Endpoint Raw DataApply some business
logics
Handle API key,
cache, etc.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML-as-a-service building flow
Endpoint Raw DataApply some business
logics
Handle API key,
cache, etc.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML-as-a-service building flow
Endpoint Raw DataApply some business
logics
Handle API key,
cache, etc.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML-as-a-service building flow
Endpoint Raw DataApply some business
logics
Handle API key,
cache, etc.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML-as-a-service building flow
Endpoint Raw DataApply some business
logics
Handle API key,
cache, etc.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AI/ML-as-a-service building flow
Endpoint Raw DataApply some business
logics
Handle API key,
cache, etc.
Let’s demo
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Challenges
- Versioning control for Jupyter Notebook file
- Consistency on multiple environments (dev, test, production)
- Deployment to production environment may not be possible for data
scientist permission
- On-going build an incremental model
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Version control on Amazon SageMaker
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Version control on Amazon SageMaker
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Version control on Amazon SageMaker
Data Scientist
Data Scientist
Data Scientist
Data Scientist
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CodePipeline configuration
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CodePipeline configuration
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate deployment and execution
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CodePipeline configuration
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CodePipeline configuration
Raw dataInference modelApply some
business logics
Handle API key,
cache, etc.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CodePipeline configuration
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CodePipeline configuration
Raw dataInference modelApply some
business logics
Handle API key,
cache, etc.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CodePipeline configuration
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CodePipeline configuration
Raw dataInference modelApply some
business logics
Handle API key,
cache, etc.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CodePipeline configuration
Raw dataInference modelApply some
business logics
Handle API key,
cache, etc.Let’s demo
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Benefits
- Can do versioning control for Jupyter Notebook file
- Can do consistency deployment on multiple environments (dev, test,
production)
- Can do deployment with the same code from development to
production environment
- Support on-going build an incremental model
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Conclusion
• CI/CD on Amazon Web Services has a full service from all stages of
development that are source, build, test, and production
• Machine learning with Amazon SageMaker is flexible and scalable
• API Gateway and AWS Lambda will help Amazon SageMaker for
throttling, caching, and authorization
• For CI/CD on Amazon SageMaker, we utilize AWS CloudFormation to
provision ready-to-use API Gateway and Lambda
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Vit Niennattrakul
vit.n@dailitech.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Weitere ähnliche Inhalte

Was ist angesagt?

AWS Certified Solutions Architect Professional Course S1-S5
AWS Certified Solutions Architect Professional Course S1-S5AWS Certified Solutions Architect Professional Course S1-S5
AWS Certified Solutions Architect Professional Course S1-S5Neal Davis
 
Mainframe Modernization with AWS: Patterns and Best Practices
Mainframe Modernization with AWS: Patterns and Best PracticesMainframe Modernization with AWS: Patterns and Best Practices
Mainframe Modernization with AWS: Patterns and Best PracticesAmazon Web Services
 
Machine Learning & Amazon SageMaker
Machine Learning & Amazon SageMakerMachine Learning & Amazon SageMaker
Machine Learning & Amazon SageMakerAmazon Web Services
 
How Can I Build a Landing Zone & Extend my Operations into AWS to Support my ...
How Can I Build a Landing Zone & Extend my Operations into AWS to Support my ...How Can I Build a Landing Zone & Extend my Operations into AWS to Support my ...
How Can I Build a Landing Zone & Extend my Operations into AWS to Support my ...Amazon Web Services
 
Behind the Scenes: Exploring the AWS Global Network (NET305) - AWS re:Invent ...
Behind the Scenes: Exploring the AWS Global Network (NET305) - AWS re:Invent ...Behind the Scenes: Exploring the AWS Global Network (NET305) - AWS re:Invent ...
Behind the Scenes: Exploring the AWS Global Network (NET305) - AWS re:Invent ...Amazon Web Services
 
Data & Analytics ReInvent Recap [AWS Basel Meetup - Jan 2023].pdf
Data & Analytics ReInvent Recap [AWS Basel Meetup - Jan 2023].pdfData & Analytics ReInvent Recap [AWS Basel Meetup - Jan 2023].pdf
Data & Analytics ReInvent Recap [AWS Basel Meetup - Jan 2023].pdfChris Bingham
 
浸透するサーバーレス 実際に見るユースケースと実装パターン
浸透するサーバーレス 実際に見るユースケースと実装パターン浸透するサーバーレス 実際に見るユースケースと実装パターン
浸透するサーバーレス 実際に見るユースケースと実装パターンAmazon Web Services Japan
 
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain PipelineThe Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain PipelineAmazon Web Services
 
AWS Data Analytics on AWS
AWS Data Analytics on AWSAWS Data Analytics on AWS
AWS Data Analytics on AWSsampath439572
 
DevBCN Vertex AI - Pipelines for your MLOps workflows
DevBCN Vertex AI - Pipelines for your MLOps workflowsDevBCN Vertex AI - Pipelines for your MLOps workflows
DevBCN Vertex AI - Pipelines for your MLOps workflowsMárton Kodok
 
AWS Enterprise First Call Deck
AWS Enterprise First Call DeckAWS Enterprise First Call Deck
AWS Enterprise First Call DeckAlexandre Melo
 

Was ist angesagt? (20)

Amazon Cognito Deep Dive
Amazon Cognito Deep DiveAmazon Cognito Deep Dive
Amazon Cognito Deep Dive
 
AWS Certified Solutions Architect Professional Course S1-S5
AWS Certified Solutions Architect Professional Course S1-S5AWS Certified Solutions Architect Professional Course S1-S5
AWS Certified Solutions Architect Professional Course S1-S5
 
Mainframe Modernization with AWS: Patterns and Best Practices
Mainframe Modernization with AWS: Patterns and Best PracticesMainframe Modernization with AWS: Patterns and Best Practices
Mainframe Modernization with AWS: Patterns and Best Practices
 
Introduction to Amazon Athena
Introduction to Amazon AthenaIntroduction to Amazon Athena
Introduction to Amazon Athena
 
Cloud Migration Workshop
Cloud Migration WorkshopCloud Migration Workshop
Cloud Migration Workshop
 
Machine Learning & Amazon SageMaker
Machine Learning & Amazon SageMakerMachine Learning & Amazon SageMaker
Machine Learning & Amazon SageMaker
 
How Can I Build a Landing Zone & Extend my Operations into AWS to Support my ...
How Can I Build a Landing Zone & Extend my Operations into AWS to Support my ...How Can I Build a Landing Zone & Extend my Operations into AWS to Support my ...
How Can I Build a Landing Zone & Extend my Operations into AWS to Support my ...
 
Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
 
Intro to SageMaker
Intro to SageMakerIntro to SageMaker
Intro to SageMaker
 
Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
 
Behind the Scenes: Exploring the AWS Global Network (NET305) - AWS re:Invent ...
Behind the Scenes: Exploring the AWS Global Network (NET305) - AWS re:Invent ...Behind the Scenes: Exploring the AWS Global Network (NET305) - AWS re:Invent ...
Behind the Scenes: Exploring the AWS Global Network (NET305) - AWS re:Invent ...
 
Data & Analytics ReInvent Recap [AWS Basel Meetup - Jan 2023].pdf
Data & Analytics ReInvent Recap [AWS Basel Meetup - Jan 2023].pdfData & Analytics ReInvent Recap [AWS Basel Meetup - Jan 2023].pdf
Data & Analytics ReInvent Recap [AWS Basel Meetup - Jan 2023].pdf
 
浸透するサーバーレス 実際に見るユースケースと実装パターン
浸透するサーバーレス 実際に見るユースケースと実装パターン浸透するサーバーレス 実際に見るユースケースと実装パターン
浸透するサーバーレス 実際に見るユースケースと実装パターン
 
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain PipelineThe Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
The Zen of DataOps – AWS Lake Formation and the Data Supply Chain Pipeline
 
AWS Data Analytics on AWS
AWS Data Analytics on AWSAWS Data Analytics on AWS
AWS Data Analytics on AWS
 
DevBCN Vertex AI - Pipelines for your MLOps workflows
DevBCN Vertex AI - Pipelines for your MLOps workflowsDevBCN Vertex AI - Pipelines for your MLOps workflows
DevBCN Vertex AI - Pipelines for your MLOps workflows
 
Introducing Amazon SageMaker
Introducing Amazon SageMakerIntroducing Amazon SageMaker
Introducing Amazon SageMaker
 
(STG402) Amazon EBS Deep Dive
(STG402) Amazon EBS Deep Dive(STG402) Amazon EBS Deep Dive
(STG402) Amazon EBS Deep Dive
 
AWS Enterprise First Call Deck
AWS Enterprise First Call DeckAWS Enterprise First Call Deck
AWS Enterprise First Call Deck
 
Amazon QuickSight
Amazon QuickSightAmazon QuickSight
Amazon QuickSight
 

Ähnlich wie CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS re:Invent 2018

Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...
Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...
Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...Amazon 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
 
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
 
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
 
Quickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scaleQuickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scaleAWS Germany
 
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
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Amazon 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
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS SummitAmazon 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
 
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...Amazon Web Services
 
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...Amazon Web Services
 
DataXDay - Machine learning models at scale with Amazon SageMaker
DataXDay - Machine learning models at scale with Amazon SageMaker DataXDay - Machine learning models at scale with Amazon SageMaker
DataXDay - Machine learning models at scale with Amazon SageMaker DataXDay Conference by Xebia
 
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018Amazon Web Services
 
Serverless best practices plus design principles 20m version
Serverless   best practices plus design principles 20m versionServerless   best practices plus design principles 20m version
Serverless best practices plus design principles 20m versionHeitor Lessa
 
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 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
 
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
 

Ähnlich wie CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS re:Invent 2018 (20)

Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...
Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...
Intelligence of Things: IoT, AWS DeepLens and Amazon SageMaker - AWS Summit S...
 
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...
 
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
 
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 SageMaker
Amazon SageMakerAmazon SageMaker
Amazon SageMaker
 
Quickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scaleQuickly and easily build, train, and deploy machine learning models at any scale
Quickly and easily build, train, and deploy machine learning models at any scale
 
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
 
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
Build Your Own Log Analytics Solutions on AWS (ANT323-R) - AWS re:Invent 2018
 
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...
 
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS SummitWork with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
Work with Machine Learning in Amazon SageMaker - BDA203 - Toronto AWS Summit
 
Cheat your Way into the Cloud
Cheat your Way into the CloudCheat your Way into the Cloud
Cheat your Way into the Cloud
 
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
 
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
[REPEAT 1] Safeguard the Integrity of Your Code for Fast and Secure Deploymen...
 
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
Safeguard the Integrity of Your Code for Fast and Secure Deployments (DEV349-...
 
DataXDay - Machine learning models at scale with Amazon SageMaker
DataXDay - Machine learning models at scale with Amazon SageMaker DataXDay - Machine learning models at scale with Amazon SageMaker
DataXDay - Machine learning models at scale with Amazon SageMaker
 
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
Your road to a Well Architected solution in the Cloud - Tel Aviv Summit 2018
 
Serverless best practices plus design principles 20m version
Serverless   best practices plus design principles 20m versionServerless   best practices plus design principles 20m version
Serverless best practices plus design principles 20m version
 
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 2018
Driving Innovation with Serverless Applications (GPSBUS212) - AWS re:Invent 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 (...
 
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...
 

Mehr von 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
 

Mehr von 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
 

CI/CD for Your Machine Learning Pipeline with Amazon SageMaker (DVC303) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. CI/CD for Your Machine Learning Pipeline with Amazon SageMaker Vit Niennattrakul, Ph.D. Managing Director, DailiTech, Thailand AWS Community Hero, Thailand D V C 3 0 3
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Vit Niennattrakul - Ph.D. in data mining (time series) - AWS Community Hero - AWS User Group – Thailand - Managing director at DailiTech - AWS external instructor
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda CI/CD on Amazon Web Services Machine learning with Amazon SageMaker Architecture integrated with Amazon SageMaker CI/CD on Amazon SageMaker
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Goal Developers require a DevOps to make agility, reliability, and consistency Data scientists require that DevOps as well
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Continuous integration/continuous delivery https://aws.amazon.com/devops/continuous-integration/
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Why do we need CI/CD? • Fix bug earlier and faster • Deliver faster and often • Unblock developers • Grow skills factor
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. CI/CD with AWS developer tools
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS CodePipeline • Continuous delivery service for fast and reliable application updates • Model and visualize your software release process • Builds, tests, and deploys your code every time there is a code change • Integrates with third-party tools and AWS
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS CodePipeline
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS CodePipeline
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS CodeCommit • Secure, scalable, and managed Git source control • Use standard Git tools • Scalability, availability, and durability of Amazon Simple Storage Service (Amazon S3) • Encryption at rest with customer-specific keys • No repo size limit • Post commit hooks to call out to Amazon Simple Notification Service (Amazon SNS)/AWS Lambda
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS CodeBuild • Fully managed build service that compiles source code, runs tests, and produces software packages • Scales continuously and processes multiple builds concurrently • You can provide custom build environments suited to your needs via Docker images • Only pay by the minute for the compute resources you use • Launched with AWS CodePipeline and Jenkins integration
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What is machine learning? Machine learning is a field of artificial intelligence that uses statistical techniques to give computer systems the ability to "learn" (for example, progressively improve performance on a specific task) from data, without being explicitly programmed -Wikipedia
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Machine learning with Amazon Web Services
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Machine learning with Amazon SageMaker
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Machine learning with Amazon SageMaker
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Machine learning with Amazon SageMaker
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Build—Jupyter Notebook
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Build—Jupyter Notebook
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Train—Training jobs
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Tune—Hyperparameter tuning
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Inference—Model & endpoint configuration
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon SageMaker AI/ML algorithms Built-in algorithm • Linear learner • XGBoost algorithm • Factorization machines • K-means algorithm • Principal component analysis (PCA) • Image classification algorithm • Sequence to sequence • Latent Dirichlet allocation (LDA) • Neural topic model (NTM) Custom algorithm
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML integrated with business application Business Application AI Service Data in Data Lake
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML integrated with business application Business Application AI Service Data Lake Business Application Client Mobile client AI Service Data Lake
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML-as-a-service building flow Development Environment Raw Data
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML-as-a-service building flow Endpoint Raw Data
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML-as-a-service building flow Endpoint Raw DataApply some business logics Handle API key, cache, etc.
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML-as-a-service building flow Endpoint Raw DataApply some business logics Handle API key, cache, etc.
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML-as-a-service building flow Endpoint Raw DataApply some business logics Handle API key, cache, etc.
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML-as-a-service building flow Endpoint Raw DataApply some business logics Handle API key, cache, etc.
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML-as-a-service building flow Endpoint Raw DataApply some business logics Handle API key, cache, etc.
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML-as-a-service building flow Endpoint Raw DataApply some business logics Handle API key, cache, etc.
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AI/ML-as-a-service building flow Endpoint Raw DataApply some business logics Handle API key, cache, etc. Let’s demo
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Challenges - Versioning control for Jupyter Notebook file - Consistency on multiple environments (dev, test, production) - Deployment to production environment may not be possible for data scientist permission - On-going build an incremental model
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Version control on Amazon SageMaker
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Version control on Amazon SageMaker
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Version control on Amazon SageMaker Data Scientist Data Scientist Data Scientist Data Scientist
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CodePipeline configuration
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CodePipeline configuration
  • 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Automate deployment and execution
  • 47. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CodePipeline configuration
  • 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CodePipeline configuration Raw dataInference modelApply some business logics Handle API key, cache, etc.
  • 49. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CodePipeline configuration
  • 50. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CodePipeline configuration Raw dataInference modelApply some business logics Handle API key, cache, etc.
  • 51. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CodePipeline configuration
  • 52. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CodePipeline configuration Raw dataInference modelApply some business logics Handle API key, cache, etc.
  • 53. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon CodePipeline configuration Raw dataInference modelApply some business logics Handle API key, cache, etc.Let’s demo
  • 54. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Benefits - Can do versioning control for Jupyter Notebook file - Can do consistency deployment on multiple environments (dev, test, production) - Can do deployment with the same code from development to production environment - Support on-going build an incremental model
  • 55. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Conclusion • CI/CD on Amazon Web Services has a full service from all stages of development that are source, build, test, and production • Machine learning with Amazon SageMaker is flexible and scalable • API Gateway and AWS Lambda will help Amazon SageMaker for throttling, caching, and authorization • For CI/CD on Amazon SageMaker, we utilize AWS CloudFormation to provision ready-to-use API Gateway and Lambda
  • 56. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Vit Niennattrakul vit.n@dailitech.com
  • 57. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.