Book Image

Production-Ready Applied Deep Learning

By : Tomasz Palczewski, Jaejun (Brandon) Lee, Lenin Mookiah
Book Image

Production-Ready Applied Deep Learning

By: Tomasz Palczewski, Jaejun (Brandon) Lee, Lenin Mookiah

Overview of this book

Machine learning engineers, deep learning specialists, and data engineers encounter various problems when moving deep learning models to a production environment. The main objective of this book is to close the gap between theory and applications by providing a thorough explanation of how to transform various models for deployment and efficiently distribute them with a full understanding of the alternatives. First, you will learn how to construct complex deep learning models in PyTorch and TensorFlow. Next, you will acquire the knowledge you need to transform your models from one framework to the other and learn how to tailor them for specific requirements that deployment environments introduce. The book also provides concrete implementations and associated methodologies that will help you apply the knowledge you gain right away. You will get hands-on experience with commonly used deep learning frameworks and popular cloud services designed for data analytics at scale. Additionally, you will get to grips with the authors’ collective knowledge of deploying hundreds of AI-based services at a large scale. By the end of this book, you will have understood how to convert a model developed for proof of concept into a production-ready application optimized for a particular production setting.
Table of Contents (19 chapters)
1
Part 1 – Building a Minimum Viable Product
6
Part 2 – Building a Fully Featured Product
10
Part 3 – Deployment and Maintenance

Setting up a single-node EC2 instance for ETL

EC2 instances can have various combinations of CPU/GPU, memory, storage, and network capacity. You can find configurable options for EC2 in the official documentation: https://aws.amazon.com/ec2/instance-types.

When creating an EC2 instance, you can choose a Docker image to run which has been predefined for various projects. These are called Amazon Machine Images (AMIs). For example, there’s an image with TF version 2 installed for DL projects and an image with Anaconda set up for generic ML projects, as shown in the following screenshot. For the complete list of AMIs, please refer to https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html:

Figure 5.6 – Selecting an AMI for an EC2 instance

AWS offers Deep Learning AMIs (DLAMIs), which are AMIs that are created for DL projects; images utilize different CPU and GPU configurations and different compute architectures (https://docs.aws.amazon.com...