Skip to content

Commit e79121f

Browse files
committed
Python FF 20.05 for python 3.6 & CUDA 10.1
1 parent 65f9499 commit e79121f

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
FROM lablup/common-base:20.05-py36-cuda10.1
2+
3+
# Install TensorFlow, Keras, PyTorch and MXNet
4+
ENV TENSORFLOW_VERSION=2.2.0
5+
ENV PYTORCH_VERSION=1.5.0
6+
ENV TORCHVISION_VERSION=0.6.0
7+
ENV TORCHAUDIO_VERSION=0.5.0
8+
ENV TORCHTEXT_VERSION=0.6.0
9+
ENV TENSORBOARDX_VERSION=1.9
10+
ENV MXNET_VERSION=1.5.1
11+
ARG CUDA=10.1
12+
ARG LIBNVINFER=6.0.1-1
13+
ARG LIBNVINFER_MAJOR_VERSION=6
14+
ENV CUDNN_VERSION=7.6.4.38-1+cuda10.1
15+
ENV NCCL_VERSION=2.5.7-1+cuda10.1
16+
ENV DEBIAN_FRONTEND=noninteractive
17+
ENV mecab_dicdir /usr/local/lib/mecab/dic/mecab-ko-dic
18+
19+
ENV PYTHONUNBUFFERED=1 \
20+
LD_LIBRARY_PATH="/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib64:/usr/local/nvidia/lib64:/usr/include/x86_64-linux-gnu" \
21+
PATH="/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin/mecab" \
22+
LANG=C.UTF-8
23+
24+
# Set default shell to /bin/bash
25+
SHELL ["/bin/bash", "-cu"]
26+
27+
RUN python3 -m pip install pip --no-cache-dir \
28+
tensorflow-transform==0.22.0 \
29+
tensorflow_model_analysis==0.21.6 \
30+
ngraph-tensorflow-bridge \
31+
adanet==0.8.0
32+
33+
RUN python3 -m pip install pip --no-cache-dir \
34+
pandas==1.0.1 \
35+
tensorflow-gpu==${TENSORFLOW_VERSION} \
36+
tensorboard==2.2.1 \
37+
tensorflow-metadata==0.22.0 \
38+
tensorflow-datasets==3.1.0 \
39+
tensorflow_probability==0.10.0 \
40+
tensorflow-addons==0.8.3 \
41+
neural-structured-learning \
42+
tensorflow-model-optimization==0.2.1 \
43+
tensorflow-hub==0.8.0 \
44+
tensorflow_text==2.2.0 \
45+
tensorflow-graphics-gpu==1.0.0 \
46+
tensorflow-gan==2.0.0 \
47+
tensorflow-data-validation==0.21.5 \
48+
fairness-indicators==0.1.2 \
49+
tensorboard-plugin-fairness-indicators==0.0.3 \
50+
fairness==0.1.8 \
51+
tfx==0.21.2 \
52+
tfx-bsl==0.21.4 \
53+
tf-agents==0.3.0 \
54+
tensorflow-lattice-gpu==0.9.8 \
55+
tensorflow-lattice==2.0.4 \
56+
tensorflow_ranking==0.2.3 \
57+
tensorflow-compression==1.3 \
58+
tensor2tensor==1.15.5 \
59+
mesh-tensorflow \
60+
tensorflow-io==0.12.0 \
61+
jupyter-tensorboard==0.2.0 \
62+
tensorwatch==0.8.10 \
63+
jupyterlab-nvdashboard==0.2.0
64+
65+
RUN python3 -m pip install pip --no-cache-dir \
66+
pandas==1.0.1 \
67+
https://download.pytorch.org/whl/cu101/torch-${PYTORCH_VERSION}%2Bcu101-cp36-cp36m-linux_x86_64.whl \
68+
https://download.pytorch.org/whl/cu101/torchvision-${TORCHVISION_VERSION}%2Bcu101-cp36-cp36m-linux_x86_64.whl \
69+
https://download.pytorch.org/whl/torchaudio-${TORCHAUDIO_VERSION}-cp36-cp36m-linux_x86_64.whl \
70+
torchtext==${TORCHTEXT_VERSION} && \
71+
python3 -m pip install --no-cache-dir tensorboardX==${TENSORBOARDX_VERSION}
72+
73+
RUN python3 -m pip install --no-cache-dir mxnet-cu101==${MXNET_VERSION}
74+
75+
RUN python3 -m pip install --no-cache-dir -Iv \
76+
tensorwatch==0.8.10 \
77+
jupyterlab-nvdashboard==0.2.0
78+
79+
# Install Horovod, temporarily using CUDA stubs
80+
RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \
81+
HOROVOD_GPU_ALLREDUCE=NCCL HOROVOD_GPU_BROADCAST=NCCL \
82+
HOROVOD_WITH_TENSORFLOW=1 HOROVOD_WITH_PYTORCH=1 HOROVOD_WITH_MXNET=1 \
83+
pip install --no-cache-dir horovod==0.19.2 && \
84+
ldconfig
85+
86+
RUN python3 -m pip install --no-cache-dir \
87+
mpi4py==3.0.3 \
88+
nni
89+
90+
# Install ipython kernelspec
91+
Run python3 -m ipykernel install --display-name "Lablup FF 20.05 on Python 3.6 (CUDA 10.1)" && \
92+
cat /usr/local/share/jupyter/kernels/python3/kernel.json
93+
94+
# Backend.AI specifics
95+
LABEL ai.backend.kernelspec="1" \
96+
ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
97+
ai.backend.features="batch query uid-match user-input" \
98+
ai.backend.base-distro="ubuntu16.04" \
99+
ai.backend.resource.min.cpu="1" \
100+
ai.backend.resource.min.mem="1g" \
101+
ai.backend.resource.min.cuda.device=0 \
102+
ai.backend.resource.min.cuda.shares=0 \
103+
ai.backend.runtime-type="python" \
104+
ai.backend.runtime-path="/usr/bin/python3" \
105+
ai.backend.service-ports="ipython:pty:3000,tensorboard:http:6006,jupyter:http:8080,jupyterlab:http:8090"
106+
107+
WORKDIR /home/work
108+
# vim: ft=dockerfile

0 commit comments

Comments
 (0)