PyTorch on NVIDIA GPUs with Jupyter notebook
930
Creates a docker image for running PyTorch on NVIDIA GPUs with Jupyter notebook support, and installs a handful of Python utils.
Note: One may need to change the docker image in the Dockerfile from pytorch-cudnnv6 to something else based on what the PyTorch docker build is named.
This branch is different from master in that it installs the package http://jupyter-contrib-nbextensions.readthedocs.io/en/latest/. This provides access to some nice add-ones, including:
Some of the extensions seem not to work (TODO: figure out why), but a few useful ones do.
On an Ubuntu system (e.g. aws) install current nvidia drivers:
sudo add-apt-repository ppa:graphics-drivers/ppasudo apt-get update && sudo apt-get install nvidia-378Install nvida docker (and docker): https://github.com/NVIDIA/nvidia-docker
wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.debsudo dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.debInstall pytorch on docker: https://github.com/pytorch/pytorch (at the time of writing the dockerfile is named pytorch-cudnnv6)
git clone https://github.com/pytorch/pytorch.gitcd pytorch && docker build -t pytorch-cudnnv6 .Clone this repo next to the pytorch one and run the build script
build_pytorch_extended.shTo run interactively (maybe start a screen session first):
bash run_pytorch_extended.sh
To use jupyter: once in the docker container
jupyter notebook --allow-rootContent type
Image
Digest
Size
1.9 GB
Last updated
about 9 years ago
docker pull cdave/pytorch