Skip to content

Commit 7cf01b2

Browse files
committed
remove conda command for torch in gpu file
1 parent 268065b commit 7cf01b2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gpu.Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,11 @@ RUN apt-get install -y ocl-icd-libopencl1 clinfo libboost-all-dev && \
5555
# the remaining pip commands: https://www.anaconda.com/using-pip-in-a-conda-environment/
5656
# However, because this image is based on the CPU image, this isn't possible but better
5757
# to put them at the top of this file to minize conflicts.
58-
RUN conda remove --force -y pytorch torchvision torchaudio torchtext cpuonly && \
59-
conda install "pytorch=1.7" "torchvision=0.8" "torchaudio=0.7" "torchtext=0.8" cudatoolkit=$CUDA_VERSION && \
60-
conda install "cudf=21.06" "cuml=21.06" && \
58+
RUN conda install "cudf=21.06" "cuml=21.06" && \
6159
/tmp/clean-layer.sh
6260

6361
# Install Pytorch and torchvision with GPU support.
64-
# Note: torchtext and torchaudio do not require a separate package.
62+
# Note: torchtext and torchaudio do not require a separate GPU package.
6563
RUN pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 -f https://download.pytorch.org/whl/torch_stable.html && \
6664
/tmp/clean-layer.sh
6765

0 commit comments

Comments
 (0)