Skip to content

Commit e72d6d3

Browse files
committed
2.1.3
1 parent d67b20f commit e72d6d3

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ RUN wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | \
5959
# Rust
6060
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
6161

62+
# Clean first for less disk memory usage
63+
RUN apt-get update && apt-get upgrade -y && apt-get autoremove -y && \
64+
apt-get clean && rm -rf /var/lib/apt/lists/*
65+
6266
# Config files
6367
COPY data/.vimrc data/.inputrc data/.bashrc data/.tmux.conf /root/
6468

@@ -69,9 +73,10 @@ RUN wget -O /tmp/miniconda3.sh \
6973
bash /tmp/miniconda3.sh -b -u -p /root/miniconda3 && \
7074
\. /root/miniconda3/bin/activate && \
7175
conda upgrade libstdcxx-ng -c conda-forge -y && \
72-
pip3 install nvitop && \
76+
pip3 install nvitop --no-cache-dir && \
77+
TORCH_CU_VER=$(echo $CUDA_VERSION | cut -d'.' -f1,2 | tr -d '.') && \
7378
pip3 install torch==${TORCH_VERSION} torchvision torchaudio \
74-
--index-url https://download.pytorch.org/whl/cu126 \
79+
--index-url "https://download.pytorch.org/whl/cu${TORCH_CU_VER}" \
7580
--no-cache-dir
7681

7782
# Some final steps

scripts/.image-configs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
44
UBUNTU_VERSION=24.04
55
LLVM_VERSION=21
66
IMAGE_TAG=v${IMAGE_VERSION}-torch${TORCH_VERSION}-cuda${CUDA_VERSION}-ubuntu${UBUNTU_VERSION}

0 commit comments

Comments
 (0)