datalass1 / fastai

this repo will show code and notes covered during the fastai course
0 stars 0 forks source link

set up cloud GPU #2

Closed datalass1 closed 5 years ago

datalass1 commented 5 years ago

Cloud GPU not installed

Might have to re-visit lesson 1 first 15 minutes to set up Paperspace

£££ to set up and use a GPU

datalass1 commented 5 years ago

https://medium.com/@GuruAtWork/brisbaneai-deeplearning-fastai-e300185fab94 https://forums.fast.ai/t/great-summary-of-how-to-use-aws/7651

datalass1 commented 5 years ago

https://us-east-2.console.aws.amazon.com/ec2/v2/home?region=us-east-2#Home:

datalass1 commented 5 years ago

AWS permission issues from shared DS account.

Decision to use paperspace as individual account. A tutorial, as well as the fastai lesson 1, to help setup located here: https://github.com/reshamas/fastai_deeplearn_part1/blob/master/tools/paperspace.md

Step 1. Paperspace login

In Paperspace log onto New Machine and enter password from email. To change password: $ passwd

Step 2: Ensure public keys are available

$ cd ~/.ssh if you don't have an .ssh directory in your home folder, create it (mkdir ~/.ssh) if you don't have an id_rsa.pub file in your ~/.ssh folder, create it (ssh-keygen and hit Enter 3 times)

Step 3: Copy public key to Paperspace

replace IP address in syntax below with your own, and run command $ ssh-copy-id -i ~/.ssh/id_rsa.pub paperspace@184.###.###.###

Step 4: Add Paperspace info to config file

nano config add these contents to your config file (replace IP address here with your Paperspace IP address) Host paperspace HostName 184.###.###.### IdentityFile ~/.ssh/id_rsa

StrictHostKeyChecking no

 User paperspace
 LocalForward 8888 localhost:8889

Step 5: SSH to Paperspace

$ ssh paperspace