@@ -5,6 +5,7 @@ FROM nvcr.io/nvidia/pytorch:21.02-py3
5
5
6
6
ENV DEBIAN_FRONTEND=noninteractive \
7
7
MPLBACKEND=Svg \
8
+ PIP_IGNORE_INSTALLED=0 \
8
9
PYTHONUNBUFFERED=1 \
9
10
LD_LIBRARY_PATH="/usr/local/cuda/compat/lib:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/lib:/usr/local/cuda/lib64:/usr/local/nvidia/lib64:/usr/include/x86_64-linux-gnu" \
10
11
PATH="/usr/local/nvm/versions/node/v14.8.0/bin:/opt/conda/bin:/opt/cmake-3.14.6-Linux-x86_64/bin/:/usr/local/mpi/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ucx/bin:/opt/tensorrt/bin:/usr/local/src/lightgbm/LightGBM:/usr/local/bin/mecab" \
@@ -120,7 +121,7 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
120
121
apt-get install -y nodejs
121
122
122
123
WORKDIR /tmp
123
- RUN git clone -q --branch=master git://github.com/xianyi/OpenBLAS.git && \
124
+ RUN git clone -q --branch=v0.3.14 git://github.com/xianyi/OpenBLAS.git && \
124
125
cd OpenBLAS && \
125
126
make DYNAMIC_ARCH=1 NO_AFFINITY=1 NUM_THREADS=48 FC=gfortran && \
126
127
make install
@@ -134,6 +135,7 @@ RUN /opt/conda/bin/python3 -m pip install --no-cache-dir \
134
135
pystan==2.19.1.1 \
135
136
pycairo==1.19.0 \
136
137
jupyter==1.0.0 \
138
+ typeguard==2.11.1 \
137
139
python-language-server[all] \
138
140
matplotlib==3.3.3
139
141
ENV SCIPY_VERSION 1.6.1
@@ -154,7 +156,6 @@ RUN cd /tmp && \
154
156
WORKDIR /tmp
155
157
COPY ./requirements.txt /tmp
156
158
RUN /opt/conda/bin/python3 -m pip install --no-cache-dir --ignore-installed -r requirements.txt && \
157
- /opt/conda/bin/python3 -m pip install --no-cache-dir tensorflow_model_analysis && \
158
159
rm -f /tmp/*.whl /tmp/requirements.txt
159
160
160
161
# install git-lfs
@@ -164,7 +165,6 @@ RUN curl -sLO https://github.com/git-lfs/git-lfs/releases/download/v2.13.2/git-l
164
165
bash install.sh && \
165
166
rm -rf /tmp/*
166
167
167
- COPY ./service-defs /etc/backend.ai/service-defs
168
168
RUN curl -fL https://github.com/cdr/code-server/releases/download/v3.9.0/code-server-3.9.0-linux-amd64.tar.gz | tar -C /usr/local/lib -xz && \
169
169
mv /usr/local/lib/code-server-3.9.0-linux-amd64 /usr/local/lib/code-server-3.9.0 && \
170
170
ln -s /usr/local/lib/code-server-3.9.0/bin/code-server /usr/local/bin/code-server
@@ -218,17 +218,19 @@ RUN jupyter nbextensions_configurator enable && \
218
218
219
219
RUN apt autoclean && \
220
220
sed -i 's/source \/ usr\/ local\/ nvm\/ nvm.sh//' /etc/bash.bashrc && \
221
- python3 -m pip uninstall -y tensorboard-plugin-wit && \
222
221
rm -rf /var/lib/apt/lists/* && \
223
222
rm -rf /root/.cache && \
224
223
rm -rf /tmp/*
225
224
226
225
RUN /opt/conda/bin/python3 -m ipykernel install \
227
226
--prefix=/opt/conda/ \
228
- --display-name "PyTorch 1.7 (NGC 21.02/Python 3.8 Conda) on Backend.AI" && \
227
+ --display-name "PyTorch 1.8 (NGC 21.02/Python 3.8 Conda) on Backend.AI" && \
229
228
cat /opt/conda/share/jupyter/kernels/python3/kernel.json
230
229
231
230
# Backend.AI specifics
231
+ COPY ./service-defs /etc/backend.ai/service-defs
232
+ COPY ./runner-scripts/bootstrap.sh runner-scripts/setup_multinode.py /opt/container/
233
+
232
234
LABEL ai.backend.kernelspec="1" \
233
235
ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
234
236
ai.backend.features="batch query uid-match user-input" \
0 commit comments