Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Amazon EC2 with PyTorch


Instructions to setup a deep learning enviornment with pytorch.

  1. Deep Learning AMI -

  2. Setup a KeyPair if not already. Can name is anything. This will be used in the ssh command. Create an instance

  3. To test start with micro instance. The g2 and p2 have GPU's, and should choose if want to run with GPU (note the hourly rates)

  4. Go to Security Groups Section on the EC2 console and Add Custom TCP Rule add port 8888

  5. ssh to server using your pem file and the public host name from ec2 console

    ssh -i Navacron.pem  (replace with your own pem, and hostname)
  6. On the terminal type the following

    git clone
    ./deeplearning/ec2/  #this will update the vm, install pytorch, setup ipython notebook on port 8888, default password is deeplearning
  7. The jupyter server can be run manually

    nohup ./deeplearning/ec2/ & 
  8. In chrome, ignore the secruity warning (since it is a self signed ssl cert). Type in deeplearning as password. If you want to change password, get a new hash and update $HOME/.jupyter/ c.NotebookApp.password property using the output from below.

    from notebook.auth import passwd
You can’t perform that action at this time.