Skip to content

zerotosingularity/aidl-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aidl-docker

AI & Deep learning docker container(s) to go...

Versions

Tensorflow: 2.0.0-alpha0

Fastai: 1.0.51

Requirements

  • Make sure the host system for running the container has CUDA 10.1 installed.

How to use this container

  1. Install CUDA 10.1 on the host system https://developer.nvidia.com/cuda-toolkit

  2. Install Docker: (docker-ce or docker-ee) https://docs.docker.com/install/

  3. Install Nvidia-docker: https://github.com/NVIDIA/nvidia-docker

  4. Checkout code and run container

git clone https://github.com/fastai/course-v3.git
cd course-v3
docker run --runtime=nvidia -it -p 8888:8888 -v $HOME/.fastai:/root/.fastai -v $(pwd):/code/fastai --ipc=host zerotosingularity/fastai_v3:latest
  1. Kaggle (Optional) If you want to use the Kaggle command line tools:
  • place the kaggle.json file in the ~/.kaggle/ folder
    • Go to Kaggle.com -> "My Account" -> "Create New API Token"
  • add another volume when starting the container: -v ~/.kaggle:/YOUR_USER/.kaggle
    • YOUR_USER should be changed to your actual username, because the target volume needs to be an absolute path
    • full example: docker run --runtime=nvidia -it -p 8888:8888 -v $HOME/.fastai:/root/.fastai -v $(pwd):/code/fastai -v ~/.kaggle:/YOUR_USER/.kaggle --ipc=host zerotosingularity/fastai_v3:latest

It uses three volumes:

  • /root/.fastai: store the data for later use, so you don't have to redownload every time
  • /root/.torch: store the data for later use, so you don't have to redownload every time
  • /code/fastai: maps to the current (course-v3) repository, which lets you save changes over time, and simply pull updates
  • (Optional Kaggle volume as described in 4. Kaggle (Optional))

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

Deep learning docker container(s) to go...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •