Skip to content

Commit 0339e1a

Browse files
committed
2 parents 9d3d846 + 97a4a69 commit 0339e1a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

vendor/ngc-pytorch/Dockerfile.21.02-py3

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ FROM nvcr.io/nvidia/pytorch:21.02-py3
55

66
ENV DEBIAN_FRONTEND=noninteractive \
77
MPLBACKEND=Svg \
8+
PIP_IGNORE_INSTALLED=0 \
89
PYTHONUNBUFFERED=1 \
910
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" \
1011
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 - && \
120121
apt-get install -y nodejs
121122

122123
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 && \
124125
cd OpenBLAS && \
125126
make DYNAMIC_ARCH=1 NO_AFFINITY=1 NUM_THREADS=48 FC=gfortran && \
126127
make install
@@ -134,6 +135,7 @@ RUN /opt/conda/bin/python3 -m pip install --no-cache-dir \
134135
pystan==2.19.1.1 \
135136
pycairo==1.19.0 \
136137
jupyter==1.0.0 \
138+
typeguard==2.11.1 \
137139
python-language-server[all] \
138140
matplotlib==3.3.3
139141
ENV SCIPY_VERSION 1.6.1
@@ -154,7 +156,6 @@ RUN cd /tmp && \
154156
WORKDIR /tmp
155157
COPY ./requirements.txt /tmp
156158
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 && \
158159
rm -f /tmp/*.whl /tmp/requirements.txt
159160

160161
# install git-lfs
@@ -164,7 +165,6 @@ RUN curl -sLO https://github.com/git-lfs/git-lfs/releases/download/v2.13.2/git-l
164165
bash install.sh && \
165166
rm -rf /tmp/*
166167

167-
COPY ./service-defs /etc/backend.ai/service-defs
168168
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 && \
169169
mv /usr/local/lib/code-server-3.9.0-linux-amd64 /usr/local/lib/code-server-3.9.0 && \
170170
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 && \
218218

219219
RUN apt autoclean && \
220220
sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc && \
221-
python3 -m pip uninstall -y tensorboard-plugin-wit && \
222221
rm -rf /var/lib/apt/lists/* && \
223222
rm -rf /root/.cache && \
224223
rm -rf /tmp/*
225224

226225
RUN /opt/conda/bin/python3 -m ipykernel install \
227226
--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" && \
229228
cat /opt/conda/share/jupyter/kernels/python3/kernel.json
230229

231230
# 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+
232234
LABEL ai.backend.kernelspec="1" \
233235
ai.backend.envs.corecount="OPENBLAS_NUM_THREADS,OMP_NUM_THREADS,NPROC" \
234236
ai.backend.features="batch query uid-match user-input" \

vendor/ngc-pytorch/Dockerfile.21.03-py3

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ FROM nvcr.io/nvidia/pytorch:21.03-py3
55

66
ENV DEBIAN_FRONTEND=noninteractive \
77
MPLBACKEND=Svg \
8+
PIP_IGNORE_INSTALLED=0 \
89
PYTHONUNBUFFERED=1 \
910
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" \
1011
PATH="/usr/local/nvm/versions/node/v14.8.0/bin:/opt/conda/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" \
@@ -155,7 +156,6 @@ RUN cd /tmp && \
155156
WORKDIR /tmp
156157
COPY ./requirements.txt /tmp
157158
RUN /opt/conda/bin/python3 -m pip install --no-cache-dir --ignore-installed -r requirements.txt && \
158-
/opt/conda/bin/python3 -m pip install --no-cache-dir tensorflow_model_analysis && \
159159
rm -f /tmp/*.whl /tmp/requirements.txt
160160

161161
# install git-lfs
@@ -167,7 +167,7 @@ RUN curl -sLO https://github.com/git-lfs/git-lfs/releases/download/v2.13.3/git-l
167167

168168
COPY ./service-defs /etc/backend.ai/service-defs
169169
RUN curl -fL https://github.com/cdr/code-server/releases/download/v3.9.3/code-server-3.9.3-linux-amd64.tar.gz | tar -C /usr/local/lib -xz && \
170-
mv /usr/local/lib/code-server-3.9.3-linux-amd64 /usr/local/lib/code-server-3.9.2 && \
170+
mv /usr/local/lib/code-server-3.9.3-linux-amd64 /usr/local/lib/code-server-3.9.3 && \
171171
ln -s /usr/local/lib/code-server-3.9.3/bin/code-server /usr/local/bin/code-server
172172
# Install Open MPI
173173
RUN mkdir /tmp/openmpi && \
@@ -214,19 +214,17 @@ RUN jupyter nbextensions_configurator enable && \
214214
jupyter nbextension enable toc2/main && \
215215
jupyter labextension install @pyviz/jupyterlab_pyviz && \
216216
jupyter labextension install @bokeh/jupyter_bokeh && \
217-
jupyter labextension install --no-build jupyterlab-nvdashboard && \
218217
jupyter lab build
219218

220219
RUN apt autoclean && \
221220
sed -i 's/source \/usr\/local\/nvm\/nvm.sh//' /etc/bash.bashrc && \
222-
python3 -m pip uninstall -y tensorboard-plugin-wit && \
223221
rm -rf /var/lib/apt/lists/* && \
224222
rm -rf /root/.cache && \
225223
rm -rf /tmp/*
226224

227225
RUN /opt/conda/bin/python3 -m ipykernel install \
228226
--prefix=/opt/conda/ \
229-
--display-name "PyTorch 1.8 (NGC 21.03/Python 3.8 Conda) on Backend.AI" && \
227+
--display-name "PyTorch 1.9 (NGC 21.03/Python 3.8 Conda) on Backend.AI" && \
230228
cat /opt/conda/share/jupyter/kernels/python3/kernel.json
231229

232230
# Backend.AI specifics

0 commit comments

Comments
 (0)