README.md 1.1 KB
Newer Older
1
2
3
4
5
6
# Dockerfile for LightGBM GPU Version with Python

A docker file with LightGBM utilizing nvidia-docker. The file is based on the nvidia/cuda:8.0 image. LightGBM can be utilized in GPU and CPU modes and via Python (2.7 & 3.5)

## Contents

7
8
9
10
11
12
13
- LightGBM (cpu + gpu)
- Python 2.7 (Conda) + scikit-learn notebooks pandas matplotlib
- Python 3.5 (Conda) + scikit-learn notebooks pandas matplotlib

Running the container starts a jupyter notebook at localhost:8888

jupyter password: keras
14
15
16

## Requirements

17
18
Requires docker and [nvidia-docker](https://github.com/NVIDIA/nvidia-docker) on host machine.

19
20
21
22
## Quickstart

### Build Docker Image

23
24
25
```sh
mkdir lightgbm-docker
cd lightgbm-docker
firasrb's avatar
firasrb committed
26
wget https://raw.githubusercontent.com/Microsoft/LightGBM/master/docker/gpu/dockerfile.gpu
27
28
docker build -f dockerfile.gpu -t lightgbm-gpu .
```
29
30
31

### Run Image

32
33
34
35
```sh
nvidia-docker run --rm -d --name lightgbm-gpu -p 8888:8888 -v /home:/home lightgbm-gpu
```

36
37
### Attach with Command Line Access (if required)

38
39
40
```sh
docker exec -it lightgbm-gpu bash
```
41
42
43

### Jupyter Notebook

44
45
46
```sh
localhost:8888
```