Here's the process:
Go to EC2 management console, request a new spot instance, go to Community AMI, type "Ubuntu 12.04" in the search bar and use this AMI:
ubuntu/images/hvm/ubuntu-precise-12.04-amd64-server-20140408 - ami-26e08b16
Be sure to get the HVM virtualization, not the paravirtual one. On the next page select the g2.xlarge instance. On the next, select Spot Instance. Right now the spot price is about $0.08, eight times cheaper than the On-Demand price. I usually chose a maximum price of $0.20 to be sure it doesn't terminate unexpectedly if the price goes up. That's about it for the configuration.
Once you can connect to the machine, get this script and run it:
https://raw.githubusercontent.com/lucianionita/dhlv/master/install.sh
The red headders that appear when installing are just to vaguely inform of the section of the script that is running. If the script doesn not suddenly exit, then all is well.
That's all. Now you should have a fully functioning environment with theano installed. The last part of the script runs logistic_sgd.py first on CPU then on GPU. Enjoy.
The next challenge on this road to learning deep learning is creating and training a model that performs better than the MLP included in the deeplearning.net code.
No comments:
Post a Comment