SlideShare une entreprise Scribd logo
1  sur  62
Télécharger pour lire hors ligne
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Deep learning applications with TensorFlow,
featuring Mobileye
A I M 4 1 0 - R
Julien Simon
Global Evangelist, AI/ML
Amazon Web Services
@julsimon
Chaim Rand
ML Algorithm Developer
Mobileye
Agenda
TensorFlow on AWS
Customer case study: Mobileye
Demo: TensorFlow on Amazon SageMaker
Getting started
TensorFlow
https://www.tensorflow.org
• Main API in Python, with support for Javascript, Java, C++
• TensorFlow 1.x: symbolic execution
• ‘Define then run’: build a graph, optimize it, feed data, and compute
• Low-level API: variables, placeholders, tensor operations
• High-level API: tf.estimator.*
• Keras library: Sequential and Functional API, predefined layers
• TensorFlow 2.0: imperative execution (aka eager execution)
• ‘Define by run’: normal Python code, similar to numpy
• Run it, inspect it, debug it
• Keras is the preferred API
AWS: The platform of choice for TensorFlow
https://aws.amazon.com/tensorflow/
85% of all
TensorFlow workloads
in the cloud run on
AWS
89% of all deep
learning workloads in
the cloud run on AWS
TensorFlow: a first-class citizen on Amazon SageMaker
• Built-in TensorFlow containers for training and prediction
• Code available on Github: https://github.com/aws/sagemaker-tensorflow-containers
• Build it, run it on your own machine, customize it, etc.
• Versions : 1.4.1 → 1.15 (2.0 coming soon)
• Not just TensorFlow
• Standard tools: TensorBoard, TensorFlow Serving
• SageMaker features: Local Mode, Script Mode, Model Tuning, Spot Training, Pipe Mode,
Amazon EFS & Amazon FSx for Lustre, Amazon Elastic Inference, etc.
• Performance optimizations: GPUs and CPUs (AWS, Intel MKL-DNN library)
• Distributed training: Parameter Server and Horovod
Amazon SageMaker
re:Invent 2019 announcements
SageMaker Studio
SageMaker Notebooks
(preview)
SageMaker Debugger
SageMaker Experiments
SageMaker
Model Monitor
SageMaker Autopilot
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Chaim Rand
ML Algorithm Developer
Mobileye
Making Amazon SageMaker work for you
• Story of how we adopted Amazon SageMaker
• Ways in which Amazon SageMaker accelerated our
development process
• Challenges we faced and how we overcame them
Spoiler:
Adopting Amazon SageMaker enabled us to reduce our
development by up to 10X (from several months to under a week)
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A bit about Mobileye
Goal: use computer vision-based technologies to
• revolutionize the transportation industry
• make roads safer
• and save lives
Acquired by Intel in 2017 for $15.3 billion
Founded in 1999 by Prof. Amnon Shashua and
Mr. Ziv Aviram
A bit about Mobileye
We develop a range of software products,
deployed on a proprietary family of computer chips
named EyeQ
Leading supplier of software that enables advanced
driver-assistance systems (ADAS)—deployed in over
40 million vehicles. (Includes adaptive cruise
control, collision avoidance, lane departure warning,
…)
Over 25 automaker partners,
including most of the world’s largest
Some of our technologies
Rely on monocular camera perception
• Reduces cost
• Other sensors can be used for redundancy when
working on high level autonomous driving
Some of our Sensing Technologies
Use deep neural networks (DNNs) to
detect:
Road users – including vehicles and pedestrians
Road semantics – including traffic lights, traffic
signs, on-road arrows, stop-lines, and crosswalks
Road boundaries – any delimiter of the drivable
area, its 3D structure and semantics,
including curbs, cones and debris
Road geometry – driving paths and surface profile,
including speed bumps and roadside ditches
Scene Segmentation
From ADAS to autonomous
The key to full autonomy relies on three technological pillars
From ADAS to autonomous
The key to full autonomy relies on three technological pillars
From ADAS to autonomous
The key to full autonomy relies on three technological pillars
Localize the vehicle on a map of the surrounding environment
• Up to <10cm precision
From ADAS to autonomous
The key to full autonomy relies on three technological pillars
Sensing and Mapping
From ADAS to autonomous
Learn more:
• From Mobileye VP Tal Babaioff
• AUT307 - Navigating the winding road toward driverless mobility
• Online https://www.mobileye.com
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DNN training challenge
• Variety of different DNN architectures
• Mountains of data: a typical model may train on up to 200TB of data
• Simplified development cycle:
EyeQ
DNN training challenge
• Variety of different DNN architectures
• Mountains of data: a typical model may train on up to 200TB of data
• Simplified development cycle:
EyeQ
DNN training challenge
• Variety of different DNN architectures
• Mountains of data: a typical model may train on up to 200TB of data
• Simplified development cycle:
EyeQ
DNN training challenge
• Variety of different DNN architectures
• Mountains of data: a typical model may train on up to 200TB of data
• Simplified development cycle:
EyeQ
• Historically performed on premise
Training on premises
• Obvious drawbacks to training on premises
• Limit to number of GPU instances
• Limitations to data capacity
• Challenge of staying up to date with latest HW and SW
• Any alternative must comply with our development pipeline,
and must keep our IP safe
• Enter Amazon SageMaker …
What I like about Amazon SageMaker
• Unconstrained capacity – means I can spin up as many training
sessions as I need
• Instance type variety
• Multi-generation CPU and GPU support
• Up to date with latest HW and SW (tuned to maximize efficiency)
• Distributed training support
• Learning curve
• Well documented with many samples
• Secure – means data security team will let me use it
• Pipe Mode support
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon SageMaker Pipe Mode?
• Enables streaming training data from Amazon S3 to training instances
• Instead of copying data to each training device
Benefits of Pipe Mode
• Enables streaming training
data from Amazon S3 to
training instances
• Removes limitation on dataset size
• No need to have dedicated (and costly)
storage for each training instance or to
download data to each instance, and no
delay to training start
• Enables decoupling of data
from training instances
• Multiple training instances can all pull
from the same dataset in S3
Pipe Mode with TensorFlow
• Lest you should fear the need to have to manage the data stream
on your own…
• Amazon SageMaker wraps the pipe with an implementation of the
tf.data.Datasets API
• Complete with all the standard dataset functions
• Ready to be fed directly into your model
Setting up Pipe Mode
from sagemaker.tensorflow import TensorFlow
tensorflow = TensorFlow(
entry_point='pipemode.py',
input_mode='Pipe’, …)
pipes = {'train':'s3://sagemaker-path-to-data’}
tensorflow.fit(pipes)
PipeModeDataset initialization
def parse(record):
feature = {'label': tf.FixedLenSequenceFeature([], tf.int64, allow_missing=True),
'image_raw': tf.FixedLenFeature([], tf.string)}
features = tf.parse_single_example(record, feature)
image = tf.decode_raw(features['image_raw'], tf.uint8)
label = features['label']
return {"image": image}, label # This is what will be fed into your model
ds = PipeModeDataset("train", record_format='TFRecord')
ds = ds.apply(map_and_batch(parse, batch_size=32, num_parallel_batches=2))
return ds
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Pipe Mode challenges
• Converting data to supported format
• Sequential nature of pipe mode
• Pipe number limitation
• Currently stands at 20
Pipe Mode challenges
• Converting data to supported format
• Amazon SageMaker’s PipeModeDataset supports a limited number of formats
• Format conversion of “mountains” of data to TFRecord format seemed daunting
Generating data in TFRecord format
• Turned out to be a blessing in disguise
• Task was performed using AWS Batch
• Used up to hundreds of thousands of vCPUs in parallel. (Each created a100MB TFRecord file.)
• Tip: split generated TFRecord files into 100MB chunks
• Accelerated data preparation time significantly (from days to hours)
Generating data in TFRecord format
• One more step to moving end-to-end development to cloud:
Training and
evaluation
performed
using Amazon
SageMaker
Deployment
script run on
Amazon
SageMaker
Generating data in TFRecord format
• One more step to moving end-to-end development to cloud:
Training and
evaluation
performed
using Amazon
SageMaker
Deployment
script run on
Amazon
SageMaker
Generating data in TFRecord format
• One more step to moving end-to-end development to cloud:
Training and
evaluation
performed
using Amazon
SageMaker
Deployment
script run on
Amazon
SageMaker
Generating data in TFRecord format
• One more step to moving end-to-end development to cloud:
Training and
evaluation
performed
using Amazon
SageMaker
Deployment
script run on
Amazon
SageMaker
Generating data in TFRecord format
• One more step to moving end-to-end development to cloud:
Training and
evaluation
performed
using Amazon
SageMaker
Deployment
script run on
Amazon
SageMaker
Pipe mode challenges
• Sequential nature of pipe mode
• Overcoming the lack of random access to full
dataset
• Relied on for shuffling and boosting
Overcoming the lack of random access to data
• Challenge: shuffling
• In the pre-Amazon SageMaker era, we
relied on random access to the data to
ensure shuffling
• Solution: introduce shuffling on a number of levels
• Using Amazon Sagemaker ShuffleConfig class to shuffle TFRecord files for each epoch
train_data = s3_input('s3://sagemaker-path-to-train-data‘,
shuffle_config=ShuffleConfig(seed))
pipes = {'train':train_data}
• Using TF dataset shuffle
Overcoming the lack of random access to data
• Challenge: boosting
• Solution for increasing representation of
underrepresented data
• E.g., pink cars in a vehicle detection DNN
• In the pre-Amazon SageMaker era, we
relied on random access to the data to
perform boosting
• Solution:
• Underrepresented data can be separated and fed using a dedicated pipe
• Dataset APIs can be used to associate a weight with each pipe and interleave the pipes:
ds = tf.data.sample_from_datasets(datasets, weights)
pipe 1
pipe 2
Pipe Mode challenges
• Overcoming the limitation on number of pipes
• Why might I need more than 20 pipes?
• Boost underrepresented data
Pipe Mode challenges
• Overcoming the limitation on number of pipes
• Why might I need more than 20 pipes?
• Boost underrepresented data
• Distributed training with Horovod, multiply by number of GPUs
Overcoming the limitation on number of pipes
• Solution: use Pipe Mode manifest files
• An alternative way to configure an Amazon SageMaker pipe
• Replace path prefix with a list of files
• Include the same file multiple times to increase its weight
• Have finer control over the data used for training
data = s3_input('s3://path-to-manifest-file',
s3_data_type='ManifestFile',
shuffle_config=ShuffleConfig(seed))
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Other considerations when moving to Amazon SageMaker
• Blog post: https://bit.ly/2sLRJb5
• Distributed training
• How to choose the instance type with the optimal number of GPUs
• Should one use TensorFlow distributed training or Horovod?
• How does one maximize resource utilization?
• How to take advantage of Spot Instances to reduce cost
• How to ensure that mid-train termination won’t have negative impact
• Using TensorBoard and other benchmarking tools
• Debugging on a remote environment
• Tip: make sure your model compiles and runs locally before running on cloud
Summary
• Adopting Amazon SageMaker has boosted our DNN development
capabilities
• Pipe Mode offers a compelling solution for training with large datasets
• Reduce development time significantly (~10X)
• Scalability enables you to test multiple models in parallel
• Integrating with other AWS services can provide further acceleration
• Challenges were overcome using advanced Amazon SageMaker
features and TF dataset APIs
• You can make Amazon SageMaker work for you too
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Chaim Rand
ML Algorithm Developer
Mobileye
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
https://gitlab.com/juliensimon/aim410
Build, train, deploy machine learning models quickly at scale
SageMaker Studio IDE
Amazon SageMaker
Ground
Truth
Algorithms &
Frameworks
Quick-start
notebooks Experiments
Training &
Tuning
Deployment &
Hosting
Reinforcement
Learning
ML
Marketplace
Debugger Autopilot Monitoring
NEW!
NEW!
NEW!
NEW! NEW! NEW!
Neo
Amazon SageMaker
Getting started
http://aws.amazon.com/free
https://aws.amazon.com/tensorflow/
https://aws.amazon.com/sagemaker
https://github.com/aws/sagemaker-python-sdk
https://sagemaker.readthedocs.io/en/stable/using_tf.html
https://github.com/awslabs/amazon-sagemaker-examples
https://gitlab.com/juliensimon/dlnotebooks
Related breakouts
[AUT307] [Navigating the winding road toward driverless mobility, with Mobileye]
Dec 4, 4:00 PM – Aria, Level 1 West, Bristlecone 9 Red
[AIM410R1] [Deep learning applications with TensorFlow, with Fannie Mae]
Dec 5, 1:00 PM – Venetian, Level 3, Lido 3002
[AIM307] [Amazon SageMaker deep dive: A modular solution for machine learning]
Dec 4, 1:45 PM – Venetian, Level 3, Lido 3005
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Role-based ML learning paths for developers, data scientists, data
platform engineers, and business decision makers
Learn ML with AWS Training and Certification
Visit https://aws.training/machinelearning
The same training that our own developers use, now available on demand
70+ free digital ML courses from AWS experts let you learn from
real-world challenges tackled at AWS
Validate expertise with the
AWS Certified Machine Learning - Specialty exam
Thank you!
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Contenu connexe

Tendances

Build, train, and deploy ML models at scale.pdf
Build, train, and deploy ML models at scale.pdfBuild, train, and deploy ML models at scale.pdf
Build, train, and deploy ML models at scale.pdfAmazon Web Services
 
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)Julien SIMON
 
Scale Machine Learning from zero to millions of users (April 2020)
Scale Machine Learning from zero to millions of users (April 2020)Scale Machine Learning from zero to millions of users (April 2020)
Scale Machine Learning from zero to millions of users (April 2020)Julien SIMON
 
Amazon SageMaker (December 2018)
Amazon SageMaker (December 2018)Amazon SageMaker (December 2018)
Amazon SageMaker (December 2018)Julien SIMON
 
Deep Learning on Amazon Sagemaker (July 2019)
Deep Learning on Amazon Sagemaker (July 2019)Deep Learning on Amazon Sagemaker (July 2019)
Deep Learning on Amazon Sagemaker (July 2019)Julien SIMON
 
A pragmatic introduction to natural language processing models (October 2019)
A pragmatic introduction to natural language processing models (October 2019)A pragmatic introduction to natural language processing models (October 2019)
A pragmatic introduction to natural language processing models (October 2019)Julien SIMON
 
Machine Learning & Amazon SageMaker
Machine Learning & Amazon SageMakerMachine Learning & Amazon SageMaker
Machine Learning & Amazon SageMakerAmazon Web Services
 
Become a Machine Learning developer with AWS services (May 2019)
Become a Machine Learning developer with AWS services (May 2019)Become a Machine Learning developer with AWS services (May 2019)
Become a Machine Learning developer with AWS services (May 2019)Julien SIMON
 
Optimize your Machine Learning Workloads on AWS (July 2019)
Optimize your Machine Learning Workloads on AWS (July 2019)Optimize your Machine Learning Workloads on AWS (July 2019)
Optimize your Machine Learning Workloads on AWS (July 2019)Julien SIMON
 
The Future of AI (September 2019)
The Future of AI (September 2019)The Future of AI (September 2019)
The Future of AI (September 2019)Julien SIMON
 
AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)
AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)
AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)Julien SIMON
 
Machine Learning: From Notebook to Production with Amazon Sagemaker (April 2018)
Machine Learning: From Notebook to Production with Amazon Sagemaker (April 2018)Machine Learning: From Notebook to Production with Amazon Sagemaker (April 2018)
Machine Learning: From Notebook to Production with Amazon Sagemaker (April 2018)Julien SIMON
 
Optimize your machine learning workloads on AWS (March 2019)
Optimize your machine learning workloads on AWS (March 2019)Optimize your machine learning workloads on AWS (March 2019)
Optimize your machine learning workloads on AWS (March 2019)Julien SIMON
 
Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Julien SIMON
 
Speed up your Machine Learning workflows with build-in algorithms
Speed up your Machine Learning workflows with build-in algorithmsSpeed up your Machine Learning workflows with build-in algorithms
Speed up your Machine Learning workflows with build-in algorithmsJulien SIMON
 
Building Machine Learning Models Automatically (June 2020)
Building Machine Learning Models Automatically (June 2020)Building Machine Learning Models Automatically (June 2020)
Building Machine Learning Models Automatically (June 2020)Julien SIMON
 
Amazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SI
Amazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SIAmazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SI
Amazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SIAmazon Web Services
 
Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...
Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...
Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...Julien SIMON
 
Demystifying Amazon Sagemaker (ACD Kochi)
Demystifying Amazon Sagemaker (ACD Kochi)Demystifying Amazon Sagemaker (ACD Kochi)
Demystifying Amazon Sagemaker (ACD Kochi)AWS User Group Pune
 

Tendances (20)

Build, train, and deploy ML models at scale.pdf
Build, train, and deploy ML models at scale.pdfBuild, train, and deploy ML models at scale.pdf
Build, train, and deploy ML models at scale.pdf
 
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)Build, Train and Deploy Machine Learning Models at Scale (April 2019)
Build, Train and Deploy Machine Learning Models at Scale (April 2019)
 
Scale Machine Learning from zero to millions of users (April 2020)
Scale Machine Learning from zero to millions of users (April 2020)Scale Machine Learning from zero to millions of users (April 2020)
Scale Machine Learning from zero to millions of users (April 2020)
 
Amazon SageMaker (December 2018)
Amazon SageMaker (December 2018)Amazon SageMaker (December 2018)
Amazon SageMaker (December 2018)
 
Deep Learning on Amazon Sagemaker (July 2019)
Deep Learning on Amazon Sagemaker (July 2019)Deep Learning on Amazon Sagemaker (July 2019)
Deep Learning on Amazon Sagemaker (July 2019)
 
A pragmatic introduction to natural language processing models (October 2019)
A pragmatic introduction to natural language processing models (October 2019)A pragmatic introduction to natural language processing models (October 2019)
A pragmatic introduction to natural language processing models (October 2019)
 
Machine Learning & Amazon SageMaker
Machine Learning & Amazon SageMakerMachine Learning & Amazon SageMaker
Machine Learning & Amazon SageMaker
 
Become a Machine Learning developer with AWS services (May 2019)
Become a Machine Learning developer with AWS services (May 2019)Become a Machine Learning developer with AWS services (May 2019)
Become a Machine Learning developer with AWS services (May 2019)
 
Optimize your Machine Learning Workloads on AWS (July 2019)
Optimize your Machine Learning Workloads on AWS (July 2019)Optimize your Machine Learning Workloads on AWS (July 2019)
Optimize your Machine Learning Workloads on AWS (July 2019)
 
The Future of AI (September 2019)
The Future of AI (September 2019)The Future of AI (September 2019)
The Future of AI (September 2019)
 
AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)
AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)
AIM361 Optimizing machine learning models with Amazon SageMaker (December 2019)
 
Introduction to Sagemaker
Introduction to SagemakerIntroduction to Sagemaker
Introduction to Sagemaker
 
Machine Learning: From Notebook to Production with Amazon Sagemaker (April 2018)
Machine Learning: From Notebook to Production with Amazon Sagemaker (April 2018)Machine Learning: From Notebook to Production with Amazon Sagemaker (April 2018)
Machine Learning: From Notebook to Production with Amazon Sagemaker (April 2018)
 
Optimize your machine learning workloads on AWS (March 2019)
Optimize your machine learning workloads on AWS (March 2019)Optimize your machine learning workloads on AWS (March 2019)
Optimize your machine learning workloads on AWS (March 2019)
 
Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)Build Machine Learning Models with Amazon SageMaker (April 2019)
Build Machine Learning Models with Amazon SageMaker (April 2019)
 
Speed up your Machine Learning workflows with build-in algorithms
Speed up your Machine Learning workflows with build-in algorithmsSpeed up your Machine Learning workflows with build-in algorithms
Speed up your Machine Learning workflows with build-in algorithms
 
Building Machine Learning Models Automatically (June 2020)
Building Machine Learning Models Automatically (June 2020)Building Machine Learning Models Automatically (June 2020)
Building Machine Learning Models Automatically (June 2020)
 
Amazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SI
Amazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SIAmazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SI
Amazon SageMaker Deep Dive - Meetup AWS Toulouse at D2SI
 
Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...
Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...
Get started with Machine Learning and Computer Vision Using AWS DeepLens (Feb...
 
Demystifying Amazon Sagemaker (ACD Kochi)
Demystifying Amazon Sagemaker (ACD Kochi)Demystifying Amazon Sagemaker (ACD Kochi)
Demystifying Amazon Sagemaker (ACD Kochi)
 

Similaire à AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (December 2019)

Machine Learning Inference at the Edge
Machine Learning Inference at the EdgeMachine Learning Inference at the Edge
Machine Learning Inference at the EdgeAmazon Web Services
 
Machine Learning Inference at the Edge
Machine Learning Inference at the EdgeMachine Learning Inference at the Edge
Machine Learning Inference at the EdgeJulien SIMON
 
[AWS에서의 미디어 및 엔터테인먼트] 클라우드에서의 브로드캐스팅 서비스
[AWS에서의 미디어 및 엔터테인먼트] 클라우드에서의 브로드캐스팅 서비스[AWS에서의 미디어 및 엔터테인먼트] 클라우드에서의 브로드캐스팅 서비스
[AWS에서의 미디어 및 엔터테인먼트] 클라우드에서의 브로드캐스팅 서비스Amazon Web Services Korea
 
Neev cloud services with AWS
Neev cloud services with AWSNeev cloud services with AWS
Neev cloud services with AWSNeev Technologies
 
10 Pro Tips for Scaling Your Startup from 0-10M Users
10 Pro Tips for Scaling Your Startup from 0-10M Users10 Pro Tips for Scaling Your Startup from 0-10M Users
10 Pro Tips for Scaling Your Startup from 0-10M UsersAmazon Web Services
 
Canada DevOps Summit 2020 Presentation Nov_03_2020
Canada DevOps Summit 2020 Presentation Nov_03_2020Canada DevOps Summit 2020 Presentation Nov_03_2020
Canada DevOps Summit 2020 Presentation Nov_03_2020Varun Manik
 
Going Cloud Native with IBM Cloud and NetflixOSS for Dev@Pulse
Going Cloud Native with IBM Cloud and NetflixOSS for Dev@PulseGoing Cloud Native with IBM Cloud and NetflixOSS for Dev@Pulse
Going Cloud Native with IBM Cloud and NetflixOSS for Dev@Pulseaspyker
 
AWS Summit 2013 | India - Running High Churn Development & Test Environments,...
AWS Summit 2013 | India - Running High Churn Development & Test Environments,...AWS Summit 2013 | India - Running High Churn Development & Test Environments,...
AWS Summit 2013 | India - Running High Churn Development & Test Environments,...Amazon Web Services
 
5 Years Of Building SaaS On AWS
5 Years Of Building SaaS On AWS5 Years Of Building SaaS On AWS
5 Years Of Building SaaS On AWSChristian Beedgen
 
Application Delivery Patterns for Developers - Technical 401
Application Delivery Patterns for Developers - Technical 401Application Delivery Patterns for Developers - Technical 401
Application Delivery Patterns for Developers - Technical 401Amazon Web Services
 
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise Strategy
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise StrategyAWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise Strategy
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise StrategyAmazon Web Services
 
AWS Cloud Kata | Manila - Getting to Scale on AWS
AWS Cloud Kata | Manila - Getting to Scale on AWSAWS Cloud Kata | Manila - Getting to Scale on AWS
AWS Cloud Kata | Manila - Getting to Scale on AWSAmazon Web Services
 
Accellera la trasformazione digitale con SAP su AWS
Accellera la trasformazione digitale con SAP su AWSAccellera la trasformazione digitale con SAP su AWS
Accellera la trasformazione digitale con SAP su AWSAmazon Web Services
 
Cloud Based Cognitive Learning & IT Project Performance Platform (CLIPP Platf...
Cloud Based Cognitive Learning & IT Project Performance Platform (CLIPP Platf...Cloud Based Cognitive Learning & IT Project Performance Platform (CLIPP Platf...
Cloud Based Cognitive Learning & IT Project Performance Platform (CLIPP Platf...Ed Sattar
 
AWS 201 Webinar Series - Rightsizing and Cost Optimizing your Deployment
AWS 201 Webinar Series - Rightsizing and Cost Optimizing your DeploymentAWS 201 Webinar Series - Rightsizing and Cost Optimizing your Deployment
AWS 201 Webinar Series - Rightsizing and Cost Optimizing your DeploymentAmazon Web Services
 
[Cloud Computing Day with V-Forum] Going Global on AWS
[Cloud Computing Day with V-Forum] Going Global on AWS[Cloud Computing Day with V-Forum] Going Global on AWS
[Cloud Computing Day with V-Forum] Going Global on AWSAmazon Web Services Korea
 

Similaire à AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (December 2019) (20)

Machine Learning Inference at the Edge
Machine Learning Inference at the EdgeMachine Learning Inference at the Edge
Machine Learning Inference at the Edge
 
Machine Learning Inference at the Edge
Machine Learning Inference at the EdgeMachine Learning Inference at the Edge
Machine Learning Inference at the Edge
 
[AWS에서의 미디어 및 엔터테인먼트] 클라우드에서의 브로드캐스팅 서비스
[AWS에서의 미디어 및 엔터테인먼트] 클라우드에서의 브로드캐스팅 서비스[AWS에서의 미디어 및 엔터테인먼트] 클라우드에서의 브로드캐스팅 서비스
[AWS에서의 미디어 및 엔터테인먼트] 클라우드에서의 브로드캐스팅 서비스
 
Neev cloud services with AWS
Neev cloud services with AWSNeev cloud services with AWS
Neev cloud services with AWS
 
Cloud Migration
Cloud MigrationCloud Migration
Cloud Migration
 
AWS Business Essentials Day
AWS Business Essentials DayAWS Business Essentials Day
AWS Business Essentials Day
 
10 Pro Tips for Scaling Your Startup from 0-10M Users
10 Pro Tips for Scaling Your Startup from 0-10M Users10 Pro Tips for Scaling Your Startup from 0-10M Users
10 Pro Tips for Scaling Your Startup from 0-10M Users
 
Canada DevOps Summit 2020 Presentation Nov_03_2020
Canada DevOps Summit 2020 Presentation Nov_03_2020Canada DevOps Summit 2020 Presentation Nov_03_2020
Canada DevOps Summit 2020 Presentation Nov_03_2020
 
Managing Your Cloud Assets
Managing Your Cloud AssetsManaging Your Cloud Assets
Managing Your Cloud Assets
 
Going Cloud Native with IBM Cloud and NetflixOSS for Dev@Pulse
Going Cloud Native with IBM Cloud and NetflixOSS for Dev@PulseGoing Cloud Native with IBM Cloud and NetflixOSS for Dev@Pulse
Going Cloud Native with IBM Cloud and NetflixOSS for Dev@Pulse
 
AWS Summit 2013 | India - Running High Churn Development & Test Environments,...
AWS Summit 2013 | India - Running High Churn Development & Test Environments,...AWS Summit 2013 | India - Running High Churn Development & Test Environments,...
AWS Summit 2013 | India - Running High Churn Development & Test Environments,...
 
5 Years Of Building SaaS On AWS
5 Years Of Building SaaS On AWS5 Years Of Building SaaS On AWS
5 Years Of Building SaaS On AWS
 
Application Delivery Patterns for Developers - Technical 401
Application Delivery Patterns for Developers - Technical 401Application Delivery Patterns for Developers - Technical 401
Application Delivery Patterns for Developers - Technical 401
 
Application Delivery Patterns
Application Delivery PatternsApplication Delivery Patterns
Application Delivery Patterns
 
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise Strategy
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise StrategyAWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise Strategy
AWS Summit Kuala Lumpur Keynote with Stephen Orban - Head of Enterprise Strategy
 
AWS Cloud Kata | Manila - Getting to Scale on AWS
AWS Cloud Kata | Manila - Getting to Scale on AWSAWS Cloud Kata | Manila - Getting to Scale on AWS
AWS Cloud Kata | Manila - Getting to Scale on AWS
 
Accellera la trasformazione digitale con SAP su AWS
Accellera la trasformazione digitale con SAP su AWSAccellera la trasformazione digitale con SAP su AWS
Accellera la trasformazione digitale con SAP su AWS
 
Cloud Based Cognitive Learning & IT Project Performance Platform (CLIPP Platf...
Cloud Based Cognitive Learning & IT Project Performance Platform (CLIPP Platf...Cloud Based Cognitive Learning & IT Project Performance Platform (CLIPP Platf...
Cloud Based Cognitive Learning & IT Project Performance Platform (CLIPP Platf...
 
AWS 201 Webinar Series - Rightsizing and Cost Optimizing your Deployment
AWS 201 Webinar Series - Rightsizing and Cost Optimizing your DeploymentAWS 201 Webinar Series - Rightsizing and Cost Optimizing your Deployment
AWS 201 Webinar Series - Rightsizing and Cost Optimizing your Deployment
 
[Cloud Computing Day with V-Forum] Going Global on AWS
[Cloud Computing Day with V-Forum] Going Global on AWS[Cloud Computing Day with V-Forum] Going Global on AWS
[Cloud Computing Day with V-Forum] Going Global on AWS
 

Plus de Julien SIMON

An introduction to computer vision with Hugging Face
An introduction to computer vision with Hugging FaceAn introduction to computer vision with Hugging Face
An introduction to computer vision with Hugging FaceJulien SIMON
 
Reinventing Deep Learning
 with Hugging Face Transformers
Reinventing Deep Learning
 with Hugging Face TransformersReinventing Deep Learning
 with Hugging Face Transformers
Reinventing Deep Learning
 with Hugging Face TransformersJulien SIMON
 
Building NLP applications with Transformers
Building NLP applications with TransformersBuilding NLP applications with Transformers
Building NLP applications with TransformersJulien SIMON
 
An Introduction to Generative Adversarial Networks (April 2020)
An Introduction to Generative Adversarial Networks (April 2020)An Introduction to Generative Adversarial Networks (April 2020)
An Introduction to Generative Adversarial Networks (April 2020)Julien SIMON
 
Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)Julien SIMON
 
Scaling Machine Learning from zero to millions of users (May 2019)
Scaling Machine Learning from zero to millions of users (May 2019)Scaling Machine Learning from zero to millions of users (May 2019)
Scaling Machine Learning from zero to millions of users (May 2019)Julien SIMON
 
Become a Machine Learning developer with AWS (Avril 2019)
Become a Machine Learning developer with AWS (Avril 2019)Become a Machine Learning developer with AWS (Avril 2019)
Become a Machine Learning developer with AWS (Avril 2019)Julien SIMON
 
Solve complex business problems with Amazon Personalize and Amazon Forecast (...
Solve complex business problems with Amazon Personalize and Amazon Forecast (...Solve complex business problems with Amazon Personalize and Amazon Forecast (...
Solve complex business problems with Amazon Personalize and Amazon Forecast (...Julien SIMON
 
Optimize your Machine Learning workloads (April 2019)
Optimize your Machine Learning workloads (April 2019)Optimize your Machine Learning workloads (April 2019)
Optimize your Machine Learning workloads (April 2019)Julien SIMON
 
Deep Learning with Tensorflow and Apache MXNet on AWS (April 2019)
Deep Learning with Tensorflow and Apache MXNet on AWS (April 2019)Deep Learning with Tensorflow and Apache MXNet on AWS (April 2019)
Deep Learning with Tensorflow and Apache MXNet on AWS (April 2019)Julien SIMON
 
Building machine learning inference pipelines at scale (March 2019)
Building machine learning inference pipelines at scale (March 2019)Building machine learning inference pipelines at scale (March 2019)
Building machine learning inference pipelines at scale (March 2019)Julien SIMON
 

Plus de Julien SIMON (11)

An introduction to computer vision with Hugging Face
An introduction to computer vision with Hugging FaceAn introduction to computer vision with Hugging Face
An introduction to computer vision with Hugging Face
 
Reinventing Deep Learning
 with Hugging Face Transformers
Reinventing Deep Learning
 with Hugging Face TransformersReinventing Deep Learning
 with Hugging Face Transformers
Reinventing Deep Learning
 with Hugging Face Transformers
 
Building NLP applications with Transformers
Building NLP applications with TransformersBuilding NLP applications with Transformers
Building NLP applications with Transformers
 
An Introduction to Generative Adversarial Networks (April 2020)
An Introduction to Generative Adversarial Networks (April 2020)An Introduction to Generative Adversarial Networks (April 2020)
An Introduction to Generative Adversarial Networks (April 2020)
 
Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)
 
Scaling Machine Learning from zero to millions of users (May 2019)
Scaling Machine Learning from zero to millions of users (May 2019)Scaling Machine Learning from zero to millions of users (May 2019)
Scaling Machine Learning from zero to millions of users (May 2019)
 
Become a Machine Learning developer with AWS (Avril 2019)
Become a Machine Learning developer with AWS (Avril 2019)Become a Machine Learning developer with AWS (Avril 2019)
Become a Machine Learning developer with AWS (Avril 2019)
 
Solve complex business problems with Amazon Personalize and Amazon Forecast (...
Solve complex business problems with Amazon Personalize and Amazon Forecast (...Solve complex business problems with Amazon Personalize and Amazon Forecast (...
Solve complex business problems with Amazon Personalize and Amazon Forecast (...
 
Optimize your Machine Learning workloads (April 2019)
Optimize your Machine Learning workloads (April 2019)Optimize your Machine Learning workloads (April 2019)
Optimize your Machine Learning workloads (April 2019)
 
Deep Learning with Tensorflow and Apache MXNet on AWS (April 2019)
Deep Learning with Tensorflow and Apache MXNet on AWS (April 2019)Deep Learning with Tensorflow and Apache MXNet on AWS (April 2019)
Deep Learning with Tensorflow and Apache MXNet on AWS (April 2019)
 
Building machine learning inference pipelines at scale (March 2019)
Building machine learning inference pipelines at scale (March 2019)Building machine learning inference pipelines at scale (March 2019)
Building machine learning inference pipelines at scale (March 2019)
 

Dernier

unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 

Dernier (20)

unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 

AIM410R Deep Learning Applications with TensorFlow, featuring Mobileye (December 2019)

  • 1.
  • 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Deep learning applications with TensorFlow, featuring Mobileye A I M 4 1 0 - R Julien Simon Global Evangelist, AI/ML Amazon Web Services @julsimon Chaim Rand ML Algorithm Developer Mobileye
  • 3. Agenda TensorFlow on AWS Customer case study: Mobileye Demo: TensorFlow on Amazon SageMaker Getting started
  • 4. TensorFlow https://www.tensorflow.org • Main API in Python, with support for Javascript, Java, C++ • TensorFlow 1.x: symbolic execution • ‘Define then run’: build a graph, optimize it, feed data, and compute • Low-level API: variables, placeholders, tensor operations • High-level API: tf.estimator.* • Keras library: Sequential and Functional API, predefined layers • TensorFlow 2.0: imperative execution (aka eager execution) • ‘Define by run’: normal Python code, similar to numpy • Run it, inspect it, debug it • Keras is the preferred API
  • 5. AWS: The platform of choice for TensorFlow https://aws.amazon.com/tensorflow/ 85% of all TensorFlow workloads in the cloud run on AWS 89% of all deep learning workloads in the cloud run on AWS
  • 6. TensorFlow: a first-class citizen on Amazon SageMaker • Built-in TensorFlow containers for training and prediction • Code available on Github: https://github.com/aws/sagemaker-tensorflow-containers • Build it, run it on your own machine, customize it, etc. • Versions : 1.4.1 → 1.15 (2.0 coming soon) • Not just TensorFlow • Standard tools: TensorBoard, TensorFlow Serving • SageMaker features: Local Mode, Script Mode, Model Tuning, Spot Training, Pipe Mode, Amazon EFS & Amazon FSx for Lustre, Amazon Elastic Inference, etc. • Performance optimizations: GPUs and CPUs (AWS, Intel MKL-DNN library) • Distributed training: Parameter Server and Horovod
  • 7. Amazon SageMaker re:Invent 2019 announcements SageMaker Studio SageMaker Notebooks (preview) SageMaker Debugger SageMaker Experiments SageMaker Model Monitor SageMaker Autopilot
  • 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Chaim Rand ML Algorithm Developer Mobileye
  • 9. Making Amazon SageMaker work for you • Story of how we adopted Amazon SageMaker • Ways in which Amazon SageMaker accelerated our development process • Challenges we faced and how we overcame them Spoiler: Adopting Amazon SageMaker enabled us to reduce our development by up to 10X (from several months to under a week)
  • 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 11. A bit about Mobileye Goal: use computer vision-based technologies to • revolutionize the transportation industry • make roads safer • and save lives Acquired by Intel in 2017 for $15.3 billion Founded in 1999 by Prof. Amnon Shashua and Mr. Ziv Aviram
  • 12. A bit about Mobileye We develop a range of software products, deployed on a proprietary family of computer chips named EyeQ Leading supplier of software that enables advanced driver-assistance systems (ADAS)—deployed in over 40 million vehicles. (Includes adaptive cruise control, collision avoidance, lane departure warning, …) Over 25 automaker partners, including most of the world’s largest
  • 13. Some of our technologies Rely on monocular camera perception • Reduces cost • Other sensors can be used for redundancy when working on high level autonomous driving
  • 14. Some of our Sensing Technologies Use deep neural networks (DNNs) to detect: Road users – including vehicles and pedestrians Road semantics – including traffic lights, traffic signs, on-road arrows, stop-lines, and crosswalks Road boundaries – any delimiter of the drivable area, its 3D structure and semantics, including curbs, cones and debris Road geometry – driving paths and surface profile, including speed bumps and roadside ditches
  • 15.
  • 17. From ADAS to autonomous The key to full autonomy relies on three technological pillars
  • 18. From ADAS to autonomous The key to full autonomy relies on three technological pillars
  • 19. From ADAS to autonomous The key to full autonomy relies on three technological pillars Localize the vehicle on a map of the surrounding environment • Up to <10cm precision
  • 20. From ADAS to autonomous The key to full autonomy relies on three technological pillars Sensing and Mapping
  • 21.
  • 22.
  • 23. From ADAS to autonomous Learn more: • From Mobileye VP Tal Babaioff • AUT307 - Navigating the winding road toward driverless mobility • Online https://www.mobileye.com
  • 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 25. DNN training challenge • Variety of different DNN architectures • Mountains of data: a typical model may train on up to 200TB of data • Simplified development cycle: EyeQ
  • 26. DNN training challenge • Variety of different DNN architectures • Mountains of data: a typical model may train on up to 200TB of data • Simplified development cycle: EyeQ
  • 27. DNN training challenge • Variety of different DNN architectures • Mountains of data: a typical model may train on up to 200TB of data • Simplified development cycle: EyeQ
  • 28. DNN training challenge • Variety of different DNN architectures • Mountains of data: a typical model may train on up to 200TB of data • Simplified development cycle: EyeQ • Historically performed on premise
  • 29. Training on premises • Obvious drawbacks to training on premises • Limit to number of GPU instances • Limitations to data capacity • Challenge of staying up to date with latest HW and SW • Any alternative must comply with our development pipeline, and must keep our IP safe • Enter Amazon SageMaker …
  • 30. What I like about Amazon SageMaker • Unconstrained capacity – means I can spin up as many training sessions as I need • Instance type variety • Multi-generation CPU and GPU support • Up to date with latest HW and SW (tuned to maximize efficiency) • Distributed training support • Learning curve • Well documented with many samples • Secure – means data security team will let me use it • Pipe Mode support
  • 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 32. What is Amazon SageMaker Pipe Mode? • Enables streaming training data from Amazon S3 to training instances • Instead of copying data to each training device
  • 33. Benefits of Pipe Mode • Enables streaming training data from Amazon S3 to training instances • Removes limitation on dataset size • No need to have dedicated (and costly) storage for each training instance or to download data to each instance, and no delay to training start • Enables decoupling of data from training instances • Multiple training instances can all pull from the same dataset in S3
  • 34. Pipe Mode with TensorFlow • Lest you should fear the need to have to manage the data stream on your own… • Amazon SageMaker wraps the pipe with an implementation of the tf.data.Datasets API • Complete with all the standard dataset functions • Ready to be fed directly into your model
  • 35. Setting up Pipe Mode from sagemaker.tensorflow import TensorFlow tensorflow = TensorFlow( entry_point='pipemode.py', input_mode='Pipe’, …) pipes = {'train':'s3://sagemaker-path-to-data’} tensorflow.fit(pipes)
  • 36. PipeModeDataset initialization def parse(record): feature = {'label': tf.FixedLenSequenceFeature([], tf.int64, allow_missing=True), 'image_raw': tf.FixedLenFeature([], tf.string)} features = tf.parse_single_example(record, feature) image = tf.decode_raw(features['image_raw'], tf.uint8) label = features['label'] return {"image": image}, label # This is what will be fed into your model ds = PipeModeDataset("train", record_format='TFRecord') ds = ds.apply(map_and_batch(parse, batch_size=32, num_parallel_batches=2)) return ds
  • 37. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 38. Pipe Mode challenges • Converting data to supported format • Sequential nature of pipe mode • Pipe number limitation • Currently stands at 20
  • 39. Pipe Mode challenges • Converting data to supported format • Amazon SageMaker’s PipeModeDataset supports a limited number of formats • Format conversion of “mountains” of data to TFRecord format seemed daunting
  • 40. Generating data in TFRecord format • Turned out to be a blessing in disguise • Task was performed using AWS Batch • Used up to hundreds of thousands of vCPUs in parallel. (Each created a100MB TFRecord file.) • Tip: split generated TFRecord files into 100MB chunks • Accelerated data preparation time significantly (from days to hours)
  • 41. Generating data in TFRecord format • One more step to moving end-to-end development to cloud: Training and evaluation performed using Amazon SageMaker Deployment script run on Amazon SageMaker
  • 42. Generating data in TFRecord format • One more step to moving end-to-end development to cloud: Training and evaluation performed using Amazon SageMaker Deployment script run on Amazon SageMaker
  • 43. Generating data in TFRecord format • One more step to moving end-to-end development to cloud: Training and evaluation performed using Amazon SageMaker Deployment script run on Amazon SageMaker
  • 44. Generating data in TFRecord format • One more step to moving end-to-end development to cloud: Training and evaluation performed using Amazon SageMaker Deployment script run on Amazon SageMaker
  • 45. Generating data in TFRecord format • One more step to moving end-to-end development to cloud: Training and evaluation performed using Amazon SageMaker Deployment script run on Amazon SageMaker
  • 46. Pipe mode challenges • Sequential nature of pipe mode • Overcoming the lack of random access to full dataset • Relied on for shuffling and boosting
  • 47. Overcoming the lack of random access to data • Challenge: shuffling • In the pre-Amazon SageMaker era, we relied on random access to the data to ensure shuffling • Solution: introduce shuffling on a number of levels • Using Amazon Sagemaker ShuffleConfig class to shuffle TFRecord files for each epoch train_data = s3_input('s3://sagemaker-path-to-train-data‘, shuffle_config=ShuffleConfig(seed)) pipes = {'train':train_data} • Using TF dataset shuffle
  • 48. Overcoming the lack of random access to data • Challenge: boosting • Solution for increasing representation of underrepresented data • E.g., pink cars in a vehicle detection DNN • In the pre-Amazon SageMaker era, we relied on random access to the data to perform boosting • Solution: • Underrepresented data can be separated and fed using a dedicated pipe • Dataset APIs can be used to associate a weight with each pipe and interleave the pipes: ds = tf.data.sample_from_datasets(datasets, weights) pipe 1 pipe 2
  • 49. Pipe Mode challenges • Overcoming the limitation on number of pipes • Why might I need more than 20 pipes? • Boost underrepresented data
  • 50. Pipe Mode challenges • Overcoming the limitation on number of pipes • Why might I need more than 20 pipes? • Boost underrepresented data • Distributed training with Horovod, multiply by number of GPUs
  • 51. Overcoming the limitation on number of pipes • Solution: use Pipe Mode manifest files • An alternative way to configure an Amazon SageMaker pipe • Replace path prefix with a list of files • Include the same file multiple times to increase its weight • Have finer control over the data used for training data = s3_input('s3://path-to-manifest-file', s3_data_type='ManifestFile', shuffle_config=ShuffleConfig(seed))
  • 52. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 53. Other considerations when moving to Amazon SageMaker • Blog post: https://bit.ly/2sLRJb5 • Distributed training • How to choose the instance type with the optimal number of GPUs • Should one use TensorFlow distributed training or Horovod? • How does one maximize resource utilization? • How to take advantage of Spot Instances to reduce cost • How to ensure that mid-train termination won’t have negative impact • Using TensorBoard and other benchmarking tools • Debugging on a remote environment • Tip: make sure your model compiles and runs locally before running on cloud
  • 54. Summary • Adopting Amazon SageMaker has boosted our DNN development capabilities • Pipe Mode offers a compelling solution for training with large datasets • Reduce development time significantly (~10X) • Scalability enables you to test multiple models in parallel • Integrating with other AWS services can provide further acceleration • Challenges were overcome using advanced Amazon SageMaker features and TF dataset APIs • You can make Amazon SageMaker work for you too
  • 55. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Chaim Rand ML Algorithm Developer Mobileye
  • 56. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. https://gitlab.com/juliensimon/aim410
  • 57. Build, train, deploy machine learning models quickly at scale SageMaker Studio IDE Amazon SageMaker Ground Truth Algorithms & Frameworks Quick-start notebooks Experiments Training & Tuning Deployment & Hosting Reinforcement Learning ML Marketplace Debugger Autopilot Monitoring NEW! NEW! NEW! NEW! NEW! NEW! Neo Amazon SageMaker
  • 59. Related breakouts [AUT307] [Navigating the winding road toward driverless mobility, with Mobileye] Dec 4, 4:00 PM – Aria, Level 1 West, Bristlecone 9 Red [AIM410R1] [Deep learning applications with TensorFlow, with Fannie Mae] Dec 5, 1:00 PM – Venetian, Level 3, Lido 3002 [AIM307] [Amazon SageMaker deep dive: A modular solution for machine learning] Dec 4, 1:45 PM – Venetian, Level 3, Lido 3005
  • 60. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Role-based ML learning paths for developers, data scientists, data platform engineers, and business decision makers Learn ML with AWS Training and Certification Visit https://aws.training/machinelearning The same training that our own developers use, now available on demand 70+ free digital ML courses from AWS experts let you learn from real-world challenges tackled at AWS Validate expertise with the AWS Certified Machine Learning - Specialty exam
  • 61. Thank you! © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 62. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.