Skip to content

Commit c74f057

Browse files
pytorchbotatalman
andauthored
Pin conda version for Docker builds (#164579)
Pin conda version for Docker builds (#164575) Mitigates #164574 Remove unused CUDA_CHANNEL var - this was used before when we had pytorch install via conda. Please note: CUDA 13.0 failures are expected since the CI tries to build against prod and CUDA 13.0 is not available in prod yet. Pull Request resolved: #164575 Approved by: https://github.com/malfet, https://github.com/Camyll (cherry picked from commit e40fe63) Co-authored-by: atalman <[email protected]>
1 parent fd36458 commit c74f057

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,10 @@ RUN git submodule update --init --recursive
5050
FROM conda as conda-installs
5151
ARG PYTHON_VERSION=3.11
5252
ARG CUDA_PATH=cu121
53-
ARG CUDA_CHANNEL=nvidia
5453
ARG INSTALL_CHANNEL=whl/nightly
5554
# Automatically set by buildx
56-
RUN /opt/conda/bin/conda update -y -n base -c defaults conda
57-
RUN /opt/conda/bin/conda install -y python=${PYTHON_VERSION}
55+
# pinning version of conda here see: https://github.com/pytorch/pytorch/issues/164574
56+
RUN /opt/conda/bin/conda install -c "${INSTALL_CHANNEL}" -y python=${PYTHON_VERSION} conda=25.7.0
5857

5958
ARG TARGETPLATFORM
6059

0 commit comments

Comments
 (0)