File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,8 +70,9 @@ RUN wget -O /tmp/miniconda3.sh \
7070 \. /root/miniconda3/bin/activate && \
7171 conda upgrade libstdcxx-ng -c conda-forge -y && \
7272 pip3 install nvitop && \
73+ TORCH_CU_VER=$(echo $CUDA_VERSION | cut -d'.' -f1,2 | tr -d '.' ) && \
7374 pip3 install torch==${TORCH_VERSION} torchvision torchaudio \
74- --index-url https://download.pytorch.org/whl/cu126 \
75+ --index-url " https://download.pytorch.org/whl/cu${TORCH_CU_VER}" \
7576 --no-cache-dir
7677
7778# Some final steps
Original file line number Diff line number Diff line change 1- IMAGE_VERSION=2.1.2
2- TORCH_VERSION=2.7.0
3- CUDA_VERSION=12.6 .0
1+ IMAGE_VERSION=2.1.3
2+ TORCH_VERSION=2.7.1
3+ CUDA_VERSION=12.8 .0
44UBUNTU_VERSION=24.04
55LLVM_VERSION=21
66IMAGE_TAG=v${IMAGE_VERSION} -torch${TORCH_VERSION} -cuda${CUDA_VERSION} -ubuntu${UBUNTU_VERSION}
You can’t perform that action at this time.
0 commit comments