SlideShare a Scribd company logo
1 of 32
Download to read offline
Serverless  Machine  Learning  
on  Amazon  Web  Services
clda.co/serverless-­‐milano
11/03/2016
Applicazioni  di  Intelligenza  Ar:ficiale  con  AWS  Lambda
@alex_casalboni
clda.co/serverless-­‐milano Serverless  Meetup  @  Milan
Web  Developer  (6+  years)
Sr.  So;ware  Engineer  @  Cloud  Academy
Master  in  Computer  Science
About  me
What  is  Machine  Learning?
Back  to  1959  (Arthur  Samuel)
How  computers  learn  from  Data
How  to  solve  decision  problems
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Machine  Learning  pipeline
Training Predic3on
batch real-­‐Ame
Feature  
extrac3on
batch
data informaMon
features ML  models
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
?
Machine  Learning  taxonomy
classifica2on
regression
170

cm
Supervised    
Learning
Unsupervised    
Learning
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Machine  Learning  taxonomy
clustering
rule  extrac2on
group A group B
A, B C
Supervised    
Learning
Unsupervised    
Learning
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
What  problems  can  ML  solve  for  you?
Supervised    
Learning
Unsupervised    
Learning
classifica'on
regression
clustering
rule  extrac'on
?
170

cm
gro gro
A, B C
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
What  problems  can  ML  solve  for  you?
Supervised    
Learning
Unsupervised    
Learning
classifica'on
regression
clustering
rule  extrac'on
?
fraud  detecMon
170

cm
gro gro
A, B C
price  of  a  stock  over  Mme
purchase  likelihood
user  segmentaMon
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Learning
Data
Machine
Cloud
Big
Science
Information
Internet
Statistics
Technology
Python Future
Mining Social
Deep
IOT
Algorithms
Management
Storage Petabytes
Parallel
Network
Privacy
Million
NoSQL
PaaS
SQL
Database
Exabytes
Billion
Dataset
Hadoop
R
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Generated  data  started  growing  ~10  years  ago…
“90%  of  the  data  in  the  world  today  has  been    
created  in  the  last  two  years  alone”  -­‐  IBM
“300+  hours  worth  of  video  content  is  being    
uploaded  to  the  site  every  minute”  -­‐  Youtube
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
…  and  it  keeps  geKng  bigger!
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
What  does  a  real  Data  ScienAst  look  like?
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  Data  ScienMst
Very  smart  &  curious
Numbers  lover  (i.e.  Data)
Great  teamwork  skills
40%  analysis,  30%  design,  30%  code
Big  data  challenges
Manual  exploraMon  is  not  an  opMon
Data-­‐driven  decisions  are  a  must
Distributed/parallel  compuMng
The  curse  of  dimensionality
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Why  is  deploying  ML  models  a  challenge?
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Why  is  deploying  ML  models  a  challenge?
+
+
Data  
ScienMst
Data
Time
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Why  is  deploying  ML  models  a  challenge?
+
+
Data  
ScienMst
Data
Time
ML  
Model
Data  
VisualisaMon
Prototype
+
+
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Why  is  deploying  ML  models  a  challenge?
ProducMon  
Code
+
+
Data  
ScienMst
Data
Time
ML  
Model
Data  
VisualisaMon
Prototype
+
+
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Why  is  deploying  ML  models  a  challenge?
+
+
Data  
ScienMst
Data
Time
ML  
Model
Data  
VisualisaMon
Prototype
+
+
Web  
Developer
DevOps
A  lot  of  
Time
+
+
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Why  is  deploying  ML  models  a  challenge?
1.  Prototyping  !=  ProducMon-­‐ready
2.  We  need  ElasMcity
4.  MulM-­‐model  architectures
3.  Too  many  nice-­‐to-­‐have  features
5.  Avoid  lack  of  ownership
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
The  Lack  of  Ownership
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
!=
Data  ScienMst DevOps
MathemaAcal  modeling  
StaAsAcal  analysis  
Data  mining
(Cloud)  OperaAons  

System  administraAon  
SoVware  best  pracAces
Machine  Learning  as  a  Service  (MLaaS)
Amazon

Machine  Learning
Azure

Machine  Learning
Google

PredicAon  API
IMB

Watson  AnalyAcs
BigML

cloudacademy.com/blog/machine-­‐learning
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Amazon  Machine  Learning
AmazonML
One  of  the  first  MLaaS  soluMons  (Apr  2015)
It’s  great  for  classificaMon  and  regression  problems
Only  linear  models  (linear  &  logisMc  regression  +  SGD)
No  support  for  advanced  scenarios  yet  
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Serverless  compuAng  to  the  rescue!
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Versioning,  staging  &  caching
1  model  =  1  microservice
Flexible  RESTful  interface
High  Availability  (no  downMme)
Very  liele  operaMonal  effort
Transparent  elasMcity  (PAYG)
Failure  isolaMon  /  DecentralisaMon Offline  training  phase
ProducMon-­‐ready  prototypes A/B  tesMng  through  composiMon
Quick  Example
clda.co/ML-­‐Lambda
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Serverless  ML  @  Cloud  Academy
MulM-­‐model  architecture
1  Lambda  FuncMon  for  each  ML  model
S3  to  store  models  (1~10MB  each)
RDS  to  store  training  data  (PostgreSQL)
Periodic  training  (offline)
Real-­‐world  Example
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
AWS  
Lambda
No  real-­‐Mme  models  (only  pseudo  real-­‐Mme)
Deployment  package  management:  size  limit  and  OS  libraries
Not  suitable  for  model  training  yet  (5  min  max  execuMon  Mme)
Cold  start  Mme  is  long  and  hard  to  avoid
Unit/integraMon  tests  help,  but  not  enough
LimitaAons  of  Serverless  ML
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
cloudacademy.com/blog/machine-­‐learning
cloudacademy.com/blog/serverless
cloudacademy.com/webinars
cloudacademy.com/community
AddiAonal  Resources
Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
Grazie  =)
cloudacademy.com
Q  &  A
11/03/2016

More Related Content

Viewers also liked

Viewers also liked (20)

Cloud Academy's AWS Hands on-labs
Cloud Academy's AWS Hands on-labsCloud Academy's AWS Hands on-labs
Cloud Academy's AWS Hands on-labs
 
Introduction to building alexa skills and putting your amazon echo to work
Introduction to building alexa skills and putting your amazon echo to workIntroduction to building alexa skills and putting your amazon echo to work
Introduction to building alexa skills and putting your amazon echo to work
 
AWS re:Invent 2016: Building IoT Applications with AWS and Amazon Alexa (HLC304)
AWS re:Invent 2016: Building IoT Applications with AWS and Amazon Alexa (HLC304)AWS re:Invent 2016: Building IoT Applications with AWS and Amazon Alexa (HLC304)
AWS re:Invent 2016: Building IoT Applications with AWS and Amazon Alexa (HLC304)
 
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
AWS re:Invent 2016: Workshop: Creating Voice Experiences with Alexa Skills: F...
 
Introduction to the Serverless paradigm
Introduction to the Serverless paradigmIntroduction to the Serverless paradigm
Introduction to the Serverless paradigm
 
An Introduction to Kubernetes
An Introduction to KubernetesAn Introduction to Kubernetes
An Introduction to Kubernetes
 
Cloud Academy & AWS: how we use Amazon Web Services for machine learning and ...
Cloud Academy & AWS: how we use Amazon Web Services for machine learning and ...Cloud Academy & AWS: how we use Amazon Web Services for machine learning and ...
Cloud Academy & AWS: how we use Amazon Web Services for machine learning and ...
 
Alexa bootcamp - Skill building 101
Alexa bootcamp - Skill building 101Alexa bootcamp - Skill building 101
Alexa bootcamp - Skill building 101
 
AWS Big Data combo
AWS Big Data comboAWS Big Data combo
AWS Big Data combo
 
Simplify Big Data with AWS
Simplify Big Data with AWSSimplify Big Data with AWS
Simplify Big Data with AWS
 
Influencer marketing: Buying and Selling Audience Impressions
Influencer marketing: Buying and Selling Audience ImpressionsInfluencer marketing: Buying and Selling Audience Impressions
Influencer marketing: Buying and Selling Audience Impressions
 
Scale, baby, scale! (June 2016)
Scale, baby, scale! (June 2016)Scale, baby, scale! (June 2016)
Scale, baby, scale! (June 2016)
 
Machine Learning for everyone
Machine Learning for everyoneMachine Learning for everyone
Machine Learning for everyone
 
Morning Session - AWS Serverless Ways
Morning Session - AWS Serverless WaysMorning Session - AWS Serverless Ways
Morning Session - AWS Serverless Ways
 
Framework Battle: Django vs Flask vs Chalice
Framework Battle: Django vs Flask vs ChaliceFramework Battle: Django vs Flask vs Chalice
Framework Battle: Django vs Flask vs Chalice
 
Deep Dive on Amazon S3 (May 2016)
Deep Dive on Amazon S3 (May 2016)Deep Dive on Amazon S3 (May 2016)
Deep Dive on Amazon S3 (May 2016)
 
A 60-minute tour of AWS Compute (November 2016)
A 60-minute tour of AWS Compute (November 2016)A 60-minute tour of AWS Compute (November 2016)
A 60-minute tour of AWS Compute (November 2016)
 
Hands-on with AWS IoT (November 2016)
Hands-on with AWS IoT (November 2016)Hands-on with AWS IoT (November 2016)
Hands-on with AWS IoT (November 2016)
 
AWS IoT Button and Lambda to power a blockchain project - AWS Serverless Web Day
AWS IoT Button and Lambda to power a blockchain project - AWS Serverless Web DayAWS IoT Button and Lambda to power a blockchain project - AWS Serverless Web Day
AWS IoT Button and Lambda to power a blockchain project - AWS Serverless Web Day
 
AWS Machine Learning Workshp
AWS Machine Learning WorkshpAWS Machine Learning Workshp
AWS Machine Learning Workshp
 

More from Alex Casalboni

More from Alex Casalboni (6)

Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)
Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)
Serverless Meetup SF - Lambda@Edge (Serverless & Originless on AWS)
 
Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)
Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)
Seattle AWS - Lambda@Edge (Serverless & Originless on AWS)
 
Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8
Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8
Facial Analysis Techniques for Pythonista (and beyond!) - PyCon8
 
Serverless London - Lambda@Edge (Serverless & Originless on AWS)
Serverless London - Lambda@Edge (Serverless & Originless on AWS)Serverless London - Lambda@Edge (Serverless & Originless on AWS)
Serverless London - Lambda@Edge (Serverless & Originless on AWS)
 
Serverless Italy - Lambda@Edge (Preview)
Serverless Italy - Lambda@Edge (Preview)Serverless Italy - Lambda@Edge (Preview)
Serverless Italy - Lambda@Edge (Preview)
 
How to deploy machine learning models in the Cloud
How to deploy machine learning models in the CloudHow to deploy machine learning models in the Cloud
How to deploy machine learning models in the Cloud
 

Recently uploaded

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 

Recently uploaded (20)

Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 

Serverless Machine Learning on AWS - Serverless Meetup Milano

  • 1. Serverless  Machine  Learning   on  Amazon  Web  Services clda.co/serverless-­‐milano 11/03/2016 Applicazioni  di  Intelligenza  Ar:ficiale  con  AWS  Lambda
  • 2. @alex_casalboni clda.co/serverless-­‐milano Serverless  Meetup  @  Milan Web  Developer  (6+  years) Sr.  So;ware  Engineer  @  Cloud  Academy Master  in  Computer  Science About  me
  • 3. What  is  Machine  Learning? Back  to  1959  (Arthur  Samuel) How  computers  learn  from  Data How  to  solve  decision  problems Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 4. Machine  Learning  pipeline Training Predic3on batch real-­‐Ame Feature   extrac3on batch data informaMon features ML  models Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 5. ? Machine  Learning  taxonomy classifica2on regression 170
 cm Supervised     Learning Unsupervised     Learning Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 6. Machine  Learning  taxonomy clustering rule  extrac2on group A group B A, B C Supervised     Learning Unsupervised     Learning Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 7. What  problems  can  ML  solve  for  you? Supervised     Learning Unsupervised     Learning classifica'on regression clustering rule  extrac'on ? 170
 cm gro gro A, B C Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 8. What  problems  can  ML  solve  for  you? Supervised     Learning Unsupervised     Learning classifica'on regression clustering rule  extrac'on ? fraud  detecMon 170
 cm gro gro A, B C price  of  a  stock  over  Mme purchase  likelihood user  segmentaMon Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 9. Learning Data Machine Cloud Big Science Information Internet Statistics Technology Python Future Mining Social Deep IOT Algorithms Management Storage Petabytes Parallel Network Privacy Million NoSQL PaaS SQL Database Exabytes Billion Dataset Hadoop R Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 10. Generated  data  started  growing  ~10  years  ago… “90%  of  the  data  in  the  world  today  has  been     created  in  the  last  two  years  alone”  -­‐  IBM “300+  hours  worth  of  video  content  is  being     uploaded  to  the  site  every  minute”  -­‐  Youtube Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 11. …  and  it  keeps  geKng  bigger! Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 12. Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 13. What  does  a  real  Data  ScienAst  look  like? Serverless  Meetup  @  Milanclda.co/serverless-­‐milano  Data  ScienMst Very  smart  &  curious Numbers  lover  (i.e.  Data) Great  teamwork  skills 40%  analysis,  30%  design,  30%  code
  • 14. Big  data  challenges Manual  exploraMon  is  not  an  opMon Data-­‐driven  decisions  are  a  must Distributed/parallel  compuMng The  curse  of  dimensionality Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 15. Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 16. Why  is  deploying  ML  models  a  challenge? Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 17. Why  is  deploying  ML  models  a  challenge? + + Data   ScienMst Data Time Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 18. Why  is  deploying  ML  models  a  challenge? + + Data   ScienMst Data Time ML   Model Data   VisualisaMon Prototype + + Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 19. Why  is  deploying  ML  models  a  challenge? ProducMon   Code + + Data   ScienMst Data Time ML   Model Data   VisualisaMon Prototype + + Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 20. Why  is  deploying  ML  models  a  challenge? + + Data   ScienMst Data Time ML   Model Data   VisualisaMon Prototype + + Web   Developer DevOps A  lot  of   Time + + Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 21. Why  is  deploying  ML  models  a  challenge? 1.  Prototyping  !=  ProducMon-­‐ready 2.  We  need  ElasMcity 4.  MulM-­‐model  architectures 3.  Too  many  nice-­‐to-­‐have  features 5.  Avoid  lack  of  ownership Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 22. The  Lack  of  Ownership Serverless  Meetup  @  Milanclda.co/serverless-­‐milano != Data  ScienMst DevOps MathemaAcal  modeling   StaAsAcal  analysis   Data  mining (Cloud)  OperaAons  
 System  administraAon   SoVware  best  pracAces
  • 23. Machine  Learning  as  a  Service  (MLaaS) Amazon
 Machine  Learning Azure
 Machine  Learning Google
 PredicAon  API IMB
 Watson  AnalyAcs BigML
 cloudacademy.com/blog/machine-­‐learning Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 24. Amazon  Machine  Learning AmazonML One  of  the  first  MLaaS  soluMons  (Apr  2015) It’s  great  for  classificaMon  and  regression  problems Only  linear  models  (linear  &  logisMc  regression  +  SGD) No  support  for  advanced  scenarios  yet   Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 25. Serverless  compuAng  to  the  rescue! Serverless  Meetup  @  Milanclda.co/serverless-­‐milano Versioning,  staging  &  caching 1  model  =  1  microservice Flexible  RESTful  interface High  Availability  (no  downMme) Very  liele  operaMonal  effort Transparent  elasMcity  (PAYG) Failure  isolaMon  /  DecentralisaMon Offline  training  phase ProducMon-­‐ready  prototypes A/B  tesMng  through  composiMon
  • 26. Quick  Example clda.co/ML-­‐Lambda Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 27. Serverless  ML  @  Cloud  Academy MulM-­‐model  architecture 1  Lambda  FuncMon  for  each  ML  model S3  to  store  models  (1~10MB  each) RDS  to  store  training  data  (PostgreSQL) Periodic  training  (offline) Real-­‐world  Example Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 28. Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 29. Serverless  Meetup  @  Milanclda.co/serverless-­‐milano
  • 30. AWS   Lambda No  real-­‐Mme  models  (only  pseudo  real-­‐Mme) Deployment  package  management:  size  limit  and  OS  libraries Not  suitable  for  model  training  yet  (5  min  max  execuMon  Mme) Cold  start  Mme  is  long  and  hard  to  avoid Unit/integraMon  tests  help,  but  not  enough LimitaAons  of  Serverless  ML Serverless  Meetup  @  Milanclda.co/serverless-­‐milano