Amazon has released a Deep Learning AMI and makes the process of running deep learning on GPU way easier than before. Before the availability of this AMI, I had to go through the painstaking process of installing all the required CUDA and cuDNN libraries and then spending lots of time in debugging just to get everything running. This AMI makes the on-boarding process much much easier and smoother. Great works indeed !
Follow the steps in the following blog to launch the instance.
Go to AWS Marketplace, search for deep learning AMI (ubuntu) and create an instance from the image
Select the p3.2xlarge instance type. Make sure you check the hourly pricing for selected instance. It adds up quickly for GPU instance. For p3.2xlarge instance, it costs ~ $3.06/hour. See this EC2 pricing link.
Note: Remember to terminate your instance after use.
Review and Launch your instance
SSH to your new instance
ssh -L localhost:8888:localhost:8888 -i ~/.ssh/my-key-pair.pem firstname.lastname@example.org
Activate TensorFlow + Keras 2 on Python 3 with CUDA 8 using the following command
source activate tensorflow_p36
Run some examples
Start tensorboard using the following command. You can then access the tensorboard UI at http://your-aws-instance-public-ip:6006
Try out other examples
git clone https://github.com/keras-team/keras.git