Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/npatta01/deeplearning-docker
https://github.com/npatta01/deeplearning-docker
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/npatta01/deeplearning-docker
- Owner: npatta01
- License: mit
- Created: 2017-12-31T23:14:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-01T02:16:51.000Z (about 7 years ago)
- Last Synced: 2024-12-07T07:04:28.954Z (about 1 month ago)
- Language: Python
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Image for [fast.ai](http://course.fast.ai)
My Jupyter environment for fast.ai's Deep Learning MOOC at http://course.fast.ai.The image starts a Jupyter notebook on port 8888 with no password.
Uses CPUs by default and NVIDIA GPUs when run with [nvidia-docker](https://github.com/NVIDIA/nvidia-docker).
The container comes with:
- python 3
- miniconda
- Keras
- Tensorflow 1.4
- fastaiTo see the full list of packages, look at [environment.yaml](environment.yaml).
## Usage
#### CPU Only
```bash
docker run -it -p 8888:8888 npatta01/deeplearning
```#### With GPU
```bash
nvidia-docker run -it -p 8888:8888 npatta01/deeplearning
```## Data management
By default, data in docker containers is ephemeral, so it dissappears if the container is stopped.To save data, a volume needs to be mounted.
```bash
docker run -it -p 8888:8888 -v ~/custom_data:/home/ubuntu/data npatta01/deeplearning
```Your local directory "~/custom_data" will be visible in the container and will have data persisted.
## Running on google cloud
Install gcloud sdk
```
curl https://sdk.cloud.google.com | bash
exec -l $SHELL
gcloud initgcloud auth login
```
Create a gpu instance
```
bash gcp/start.sh
```Connect to machine
```
gcloud compute ssh dl --ssh-flag="-L 8888:localhost:8888"
```Install dependencies on VM
```
bash gcp/setup.sh
```Start Docker container
```
nvidia-docker run -it -p 8888:8888 v ~/custom_data:/home/ubuntu/data npatta01/deeplearning
```