Skip to content

Commit c143e05

Browse files
author
Christine Abernathy
authored
Merge pull request #30 from JoelMarcey/quick-aws-start
Add an AWS quickstart
2 parents 0aa4d37 + 77f53f4 commit c143e05

File tree

1 file changed

+24
-2
lines changed
  • _get_started/installation

1 file changed

+24
-2
lines changed

_get_started/installation/aws.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,30 @@ To gain the full experience of what PyTorch has to offer, a machine with at leas
44

55
AWS [provides](https://aws.amazon.com/machine-learning/amis/){:target="_blank"} both:
66

7-
* dedicated, pre-built machine learning instances, complete with PyTorch
8-
* bare Linux and Windows instances for you to do a custom install of PyTorch.
7+
* Deep Learning AMIs: dedicated, pre-built machine learning instances, complete with PyTorch
8+
* Deep Learning Base AMI: bare Linux and Windows instances for you to do a custom install of PyTorch.
9+
10+
## Quick Start on Deep Learning AMI
11+
12+
If you want to get started with a Linux AWS instance that has PyTorch already installed and that you can login into from the command-line, this step-by-step guide will help you do that.
13+
14+
1. Sign into your [AWS console](https://aws.amazon.com/console/). If you do not have an AWS account, see the [primer](#aws-primer) below.
15+
1. Click on `Launch a virtual machine`.
16+
1. Select `Deep Learning AMI (Ubuntu)`.
17+
> This gives you an instance with a pre-defined version of PyTorch already installed. If you wanted a bare AWS instance that required PyTorch to be installed, you could choose the `Deep Learning Base AMI (Ubuntu)`, which will have the hardware, but none of the software already available.
18+
1. Choose a GPU compute `p3.2xlarge` instance type.
19+
> You can choose any of the available instances to try PyTorch, even the *free-tier*, but it is recommended for best performance that you get a *GPU compute* or *Compute optimized* instance. Other instance options include the Compute Optimized c5-series (e.g., `c5.2xlarge`) or the General Compute t2-series or t3-series (e.g., `t2.2xlarge`). It is important to note that if you choose an instance without a GPU, PyTorch will only be running in CPU compute mode, and operations may take much, much longer.
20+
1. Click on `Review and Launch`.
21+
1. Review the instance information and click `Launch`.
22+
1. You will want to `Create a new key pair` if you do not have one already to use. Pick a name and download it locally via the `Download Key Pair` button.
23+
1. Now click on `Launch Instances`. You now have a live instance to use for PyTorch. If you click on `View Instances`, you will see your running instance.
24+
1. Take note of the `Public DNS` as this will be used to `ssh` into your instance from the command-line.
25+
1. Open a command-line prompt
26+
1. Ensure that your key-pair has the proper permissions, or you will not be able to log in. Type `chmod 400 path/to/downloaded/key-pair.pem`.
27+
1. Type `ssh -i path/to/downloaded/key-pair.pem ubuntu@<Public DNS that you noted above>`. e.g., `ssh -i ~/Downloads/aws-quick-start.pem ubuntu@ec2-55-181-112-129.us-west-2.compute.amazonaws.com`. If asked to continue connection, type `yes`.
28+
1. You should now see a prompt similar to `ubuntu@ip-100-30-20-95`. If so, you are now connected to your instance.
29+
1. Verify that PyTorch is installed by running the [verification steps](get-started#verification).
30+
> If you chose the `Deep Learning Base AMI (Ubuntu)` instead of the `Deep Learning AMI (Ubuntu)`, then you will need to install PyTorch. Follow the [Linux getting started instructions](get-started) in order to install it.
931
1032
## AWS Primer
1133

0 commit comments

Comments
 (0)