Skip to content

Commit bd7a627

Browse files
committed
Change to torch 1.9.0
1 parent a374735 commit bd7a627

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

gpu-flavor/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ RUN \
128128
# uninstall cpu only packages via conda
129129
conda remove --force -y pytorch cpuonly && \
130130
# https://pytorch.org/get-started/locally/
131-
conda install pytorch cudatoolkit=11.2 -c pytorch -c nvidia && \
131+
conda install cudatoolkit=11.2 -c pytorch -c nvidia && \
132+
pip install --no-cache-dir torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html && \
132133
# Install cupy: https://cupy.chainer.org/
133134
pip install --no-cache-dir cupy-cuda112 && \
134135
# Install pycuda: https://pypi.org/project/pycuda
@@ -143,9 +144,9 @@ RUN \
143144
# Install ONNX GPU Runtime
144145
pip uninstall -y onnxruntime && \
145146
pip install --no-cache-dir onnxruntime-gpu==1.8.0 onnxruntime-training==1.8.0 && \
146-
# Install faiss gpu
147-
conda remove --force -y faiss-cpu && \
148-
conda install -y faiss-gpu -c pytorch && \
147+
# Install faiss gpu - TODO: to large?
148+
# conda remove --force -y faiss-cpu && \
149+
# conda install -y faiss-gpu -c pytorch && \
149150
# Update mxnet to gpu edition
150151
pip uninstall -y mxnet-mkl && \
151152
# cuda111 -> >= 11.1

0 commit comments

Comments
 (0)