Edit this page

NA-MIC Project Weeks

How-to setup AWS EC2 Windows instances to use MONAILabel, deep learning tools, and 3D Slicer

by Rudolf Bumm (KSGR), Qing Liu (AWS), Steve Pieper (Isomics), Gang Fu (AWS)

Benefits

Things to consider

We will be running a Windows EC2 instance. 

Small EC2 Windows instances without GPU support can be created and run nearly free of charge on AWS. You could use an instance type “t2.small”. 

At least EC2 “g” instance types (with GPU support) will be needed to work with 3D Slicer and deep learning tools. All our testing has been on a “g5.xlarge”. 

For more information about GPU options see the Amazon Deep Learning GPU Guide.

Important note: You may be running into “limit”  errors when you create and run your EC2 instance with GPU, because your Amazon account may need to get enabled for using a GPU first. The first step to increase your GPU instance quota is to request an instance using the steps below, and then if it’s denied follow the instructuctions to request a quota increase. If you have an institutional email account (company or university) it may be easier to get a quota increase compared to a generic gmail or yahoo type of email account.

The approximate cost of an EC2 instance with NVIDIA A10G support is around 1-2 $ per hour. 

Step 1. Deploy the CloudFormation template

The CloudFormation template will automatically perform the following tasks when you create the EC2 instance:

Go to the Amazon Console

https://aws.amazon.com/de/console/

and go to login page

|| |-|

Log into the AWS console, select the region you’d like to use

|| |-|

In the search bar, type cloudformation, and select CloudFormation service

|| |-|

|| |-|

|| |-|

The screen should look similar to this:

|| |-|

|| |-|

Step 2. Connect to the environment

1. After the stack is deployed successfully, select the stack in CloudFormation console and then select Outputs tab

|| |-|

|| |-|

|| |-|

speedtest.net on g5.xlarge:

|| |-|

Steam EZbench on g5.xlarge:

|| |-|

Step 3. Delete the environment

|| |-|