README.md 1.7 KB
Newer Older
1
2
# Tiny Distroless Dockerfile for LightGBM GPU CLI-only Version

3
`dockerfile-cli-only-distroless.gpu` - A multi-stage build based on the `nvidia/opencl:devel-ubuntu18.04` (build) and `distroless/cc-debian10` (production) images. LightGBM (CLI-only) can be utilized in GPU and CPU modes. The resulting image size is around 15 MB.
4
5
6
7
8
9
10
11
12

---

# Small Dockerfile for LightGBM GPU CLI-only Version

`dockerfile-cli-only.gpu` - A multi-stage build based on the `nvidia/opencl:devel` (build) and `nvidia/opencl:runtime` (production) images. LightGBM (CLI-only) can be utilized in GPU and CPU modes. The resulting image size is around 100 MB.

---

13
14
# Dockerfile for LightGBM GPU Version with Python

15
`dockerfile.gpu` - A docker file with LightGBM utilizing nvidia-docker. The file is based on the `nvidia/cuda:8.0-cudnn5-devel` image.
16
LightGBM can be utilized in GPU and CPU modes and via Python.
17
18
19

## Contents

20
- LightGBM (cpu + gpu)
21
- Python 3.8 (conda) + scikit-learn, notebooks, pandas, matplotlib
22

Nikita Titov's avatar
Nikita Titov committed
23
Running the container starts a Jupyter Notebook at `localhost:8888`.
24

Nikita Titov's avatar
Nikita Titov committed
25
Jupyter password: `keras`.
26
27
28

## Requirements

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

31
32
33
34
## Quickstart

### Build Docker Image

35
36
37
```sh
mkdir lightgbm-docker
cd lightgbm-docker
firasrb's avatar
firasrb committed
38
wget https://raw.githubusercontent.com/Microsoft/LightGBM/master/docker/gpu/dockerfile.gpu
39
40
docker build -f dockerfile.gpu -t lightgbm-gpu .
```
41
42
43

### Run Image

44
45
46
47
```sh
nvidia-docker run --rm -d --name lightgbm-gpu -p 8888:8888 -v /home:/home lightgbm-gpu
```

48
49
### Attach with Command Line Access (if required)

50
51
52
```sh
docker exec -it lightgbm-gpu bash
```
53
54
55

### Jupyter Notebook

56
57
58
```sh
localhost:8888
```