Tuesday, October 23, 2018

Deep Learning For Coders - How to Setup AWS P2 instance


This blog elaborates steps to setup AWS P2 instance for fast.ai course on deep learning.

Create AWS Account

Create aws account and select us-west oregon as region by default its ohio (us-west-2).
Go to create case and select “ change limit” option.Give limit as 1 and select p2xlarge give desc as “fast.ai MOOC”And submit request. Got immediate approval.

Install Anaconda python

Get link to latest anaconda 2.x version from continuum.io. I have used below version:
wget https://repo.continuum.io/archive/Anaconda2-5.0.0.1-Linux-x86_64.sh
bash Anaconda2-5.0.0.1-Linux-x86_64.sh

Verify installation:

source ~/.bashrc
echo $PATH
python
exit()

 Install awscli

$pip install awscli


$aws

$ aws configure

provide keys

clone git hub material

go to sources/setup

bash setup_p2.sh

Got AWS console  to get the publicDNS

ssh to the aws instance using the command displayed in the output of
setup_p2.sh

and start jupyter

access notebook bia hostname:8888

Give password as  dl_course

Create a new notebook from top right new > Python [conda root]

test by entering 1 + 1
print ('hello world')
How to terminate the stack
 Use fastai-remove.sh to terminate the stack.

Refer below links for more details:

 
https://www.youtube.com/watch?v=8rjRfW4JM2I
http://wiki.fast.ai/index.php/Lesson_1_Notes
http://wiki.fast.ai/index.php/AWS_install
http://forums.fast.ai/t/reduce-size-of-volume/149/50

No comments: