Skip to content

Commit daae18e

Browse files
authored
Dockerfiles update (#894)
1 parent 657af33 commit daae18e

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

resources/docker/RunPod-NVIDIA-CLI.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# docker tag <image-name> <dockerhub-username>/<repository-name>:<tag>
44
# docker push <dockerhub-username>/<repository-name>:<tag>
55

6-
FROM runpod/pytorch:2.4.0-py3.11-cuda12.4.1-devel-ubuntu22.04
7-
#the base image is barely used, pytorch 2.4 is the wrong version. However, by using
6+
FROM runpod/pytorch:2.8.0-py3.11-cuda12.8.1-cudnn-devel-ubuntu22.04
7+
#the base image is barely used, pytorch is the wrong version. However, by using
88
#a base image that is popular on RunPod, the base image likely is already available
99
#in the image cache of a pod, and no download is necessary
1010

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#To build, run
2+
# docker build -t <image-name> . -f Vast-NVIDIA-CLI.Dockerfile
3+
# docker tag <image-name> <dockerhub-username>/<repository-name>:<tag>
4+
# docker push <dockerhub-username>/<repository-name>:<tag>
5+
6+
FROM vastai/pytorch:cuda-12.8.1-auto
7+
8+
WORKDIR /
9+
RUN git clone https://github.com/Nerogar/OneTrainer
10+
RUN cd OneTrainer \
11+
&& export OT_PLATFORM_REQUIREMENTS=requirements-cuda.txt \
12+
&& export OT_LAZY_UPDATES=true \
13+
&& export OT_PYTHON_CMD=/venv/main/bin/python \
14+
&& ./install.sh \
15+
&& pip cache purge \
16+
&& rm -r ~/.cache/pip
17+
RUN apt-get update --yes \
18+
&& apt-get install --yes --no-install-recommends \
19+
joe \
20+
less \
21+
gh \
22+
iputils-ping \
23+
nano \
24+
&& apt-get autoremove -y \
25+
&& apt-get clean \
26+
&& rm -rf /var/lib/apt/lists/*
27+
RUN pip install nvitop \
28+
&& pip cache purge \
29+
&& rm -rf ~/.cache/pip
30+
RUN ln -snf /OneTrainer /workspace/OneTrainer

0 commit comments

Comments
 (0)