Skip to content

Commit

Permalink
Add details on how to install nvidia-docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
clennan authored Nov 21, 2018
1 parent 32d5cef commit 092ac28
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,29 @@ docker-machine create --driver amazonec2 \
ec2-p2
```

3. Download dataset to EC2 instance (see instructions under [Datasets](#datasets)). We recommend to save the AMI with the downloaded data for future use.
3. ssh into instance

```
docker-machine ssh ec2-p2
```

4. Update NVIDIA drivers and install **nvidia-docker** (see this [blog post](https://towardsdatascience.com/using-docker-to-set-up-a-deep-learning-environment-on-aws-6af37a78c551) for more details)

```
# update NVIDIA drivers
sudo add-apt-repository ppa:graphics-drivers/ppa -y
sudo apt-get update
sudo apt-get install -y nvidia-375 nvidia-settings nvidia-modprobe
# install nvidia-docker
wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb
sudo dpkg -i /tmp/nvidia-docker_1.0.1-1_amd64.deb && rm /tmp/nvidia-docker_1.0.1-1_amd64.deb
```

5. Download dataset to EC2 instance (see instructions under [Datasets](#datasets)). We recommend to save the AMI with the downloaded data for future use.


4. Run the remote EC2 training script (e.g. for AVA dataset)
6. Run the remote EC2 training script (e.g. for AVA dataset)
```
./train-ec2 \
--docker-machine ec2-p2 \
Expand Down

0 comments on commit 092ac28

Please sign in to comment.