Using Amazon SageMaker
🏷️sec_sagemaker
Deep learning applications
may demand so much computational resource
that easily goes beyond
what your local machine can offer.
Cloud computing services
allow you to
run GPU-intensive code of this book
more easily
using more powerful computers.
This section will introduce
how to use Amazon SageMaker
to run the code of this book.
Signing Up
First, we need to sign up an account at https://aws.amazon.com/.
For additional security,
using two-factor authentication
is encouraged.
It is also a good idea to
set up detailed billing and spending alerts to
avoid any surprise,
e.g.,
when forgetting to stop running instances.
After logging into your AWS account,
go to your console and search for "Amazon SageMaker" (see :numref:fig_sagemaker),
then click it to open the SageMaker panel.
:width:300px
🏷️fig_sagemaker
Creating a SageMaker Instance
Next, let's create a notebook instance as described in :numref:fig_sagemaker-create.
:width:400px
🏷️fig_sagemaker-create
SageMaker provides multiple instance types with varying computational power and prices.
When creating a notebook instance,
we can specify its name and type.
In :numref:fig_sagemaker-create-2, we choose ml.p3.2xlarge: with one Tesla V100 GPU and an 8-core CPU, this instance is powerful enough for most of the book.
:width:400px
🏷️fig_sagemaker-create-2