File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111
1212 steps :
13+ - name : Free Disk Space (Ubuntu)
14+ uses : jlumbroso/free-disk-space@main
15+ with :
16+ tool-cache : false
17+ android : true
18+ dotnet : true
19+ haskell : true
20+ large-packages : true
21+ docker-images : false
22+ swap-storage : true
23+
1324 - name : Checkout repository
1425 uses : actions/checkout@v3
1526
Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ RUN wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | \
5959# Rust
6060RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
6161
62+ # Clean caches here for less disk space 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
6367COPY 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
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