Skip to content

Commit 350f29f

Browse files
committed
Merge branch 'master' of github.com:lablup/backend.ai-kernels
2 parents c12840c + bfb7f2d commit 350f29f

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
FROM lablup/common-base:py38-cuda11.2
2+
3+
RUN python3 -m pip install --no-cache-dir --upgrade \
4+
-q git+https://github.com/google-research/tensorflow_constrained_optimization
5+
6+
RUN python3 -m pip install --no-cache-dir \
7+
--use-feature=2020-resolver \
8+
requests_oauthlib==1.2.0 \
9+
neural-structured-learning==1.3.1 \
10+
pydot==1.4.0 \
11+
proto-plus==1.10.2
12+
RUN python3 -m pip install --no-cache-dir \
13+
--use-feature=2020-resolver \
14+
tensorflow-transform==0.25.0 \
15+
tensorflow_model_analysis \
16+
tensorflow-datasets \
17+
tensorflow_probability==0.11.1 \
18+
tensorflow-addons==0.11.2 \
19+
neural-structured-learning==1.3.1 \
20+
tensorflow-model-optimization==0.5.0 \
21+
tfx==0.25.0 \
22+
tfx-bsl==0.25.0 \
23+
tf-agents==0.6.0
24+
25+
RUN python3 -m pip install --no-cache-dir \
26+
--use-feature=2020-resolver \
27+
google_cloud_spanner==1.19.0 \
28+
googleapis-common-protos==1.51.0 \
29+
google_cloud_videointelligence==1.15.0 \
30+
google_cloud_vision==0.42.0 \
31+
google_cloud_pubsub==1.6.0 \
32+
google_cloud_dlp==0.15.0 \
33+
google_cloud_datastore==1.15.2 \
34+
google_cloud_bigtable==1.6.0 \
35+
google_api_core==1.24.0
36+
37+
RUN python3 -m pip install --no-cache-dir \
38+
mesh-tensorflow==0.1.18 \
39+
tensorflow-cloud==0.1.10 \
40+
tensorflow-hub==0.9.0
41+
42+
RUN python3 -m pip install --no-cache-dir \
43+
-i https://pypi-nightly.tensorflow.org/simple tensorflow-data-validation
44+
RUN python3 -m pip install --no-cache-dir \
45+
tensorflow-graphics-gpu==1.0.0 \
46+
tensorflow-io==0.17.0 \
47+
tensorflow_ranking==0.3.2 \
48+
tensorflow-plot==0.3.2 \
49+
tensorflow_text==2.4.1 \
50+
tensorflow-gan==2.0.0
51+
RUN python3 -m pip install --no-cache-dir \
52+
tensorflow-gpu==2.8.0 \
53+
tensorboard-plugin-wit \
54+
tensorboard numpy scipy
55+
56+
# Install Horovod, temporarily using CUDA stubs
57+
RUN ldconfig /usr/local/cuda/targets/x86_64-linux/lib/stubs && \
58+
HOROVOD_GPU_ALLREDUCE=NCCL HOROVOD_GPU_BROADCAST=NCCL HOROVOD_NCCL_LINK=SHARED \
59+
HOROVOD_WITH_TENSORFLOW=1 HOROVOD_WITHOUT_PYTORCH=1 HOROVOD_WITHOUT_MXNET=1\
60+
HOROVOD_GPU=CUDA \
61+
python3 -m pip install --no-cache-dir horovod==0.23.0 && \
62+
ldconfig
63+
64+
RUN python3 -m pip install --no-cache-dir \
65+
mpi4py==3.0.3 \
66+
nni==1.9 \
67+
mlflow==1.12.1 \
68+
scikit-nni==0.2.1
69+
70+
# Install ipython kernelspec
71+
Run python3 -m ipykernel install --display-name "TensorFlow 2.8 on Python 3.8 & CUDA 11.3" && \
72+
cat /usr/local/share/jupyter/kernels/python3/kernel.json
73+
74+
# Copy Backend.Ai multi-node support
75+
COPY ./service-defs /etc/backend.ai/service-defs
76+
COPY ./runner-scripts/bootstrap.sh runner-scripts/setup_multinode.py /opt/container/
77+
78+
# Backend.AI specifics
79+
LABEL ai.backend.kernelspec="1" \
80+
ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
81+
ai.backend.features="batch query uid-match user-input" \
82+
ai.backend.base-distro="ubuntu16.04" \
83+
ai.backend.resource.min.cpu="1" \
84+
ai.backend.resource.min.mem="1g" \
85+
ai.backend.resource.min.cuda.device=0 \
86+
ai.backend.resource.min.cuda.shares=0 \
87+
ai.backend.runtime-type="python" \
88+
ai.backend.runtime-path="/usr/bin/python3" \
89+
ai.backend.service-ports="ipython:pty:3000,jupyter:http:8081,jupyterlab:http:8090,vscode:http:8180,tensorboard:http:6006,mlflow-ui:preopen:5000,nniboard:preopen:8080"
90+
91+
WORKDIR /home/work

0 commit comments

Comments
 (0)