Jayant-Kernel commited on
Commit ·
10648d1
1
Parent(s): bcc84d6
fix: revert to torch 2.1.0 cu121 with trl 0.7.4 - versions that worked before
Browse files- Dockerfile +18 -5
Dockerfile
CHANGED
|
@@ -7,16 +7,29 @@ ENV TORCHINDUCTOR_CACHE_DIR=/tmp/torch_cache
|
|
| 7 |
|
| 8 |
RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/*
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
WORKDIR /app
|
| 11 |
|
| 12 |
-
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/
|
| 13 |
|
| 14 |
-
RUN pip install --no-cache-dir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
RUN pip install --no-cache-dir
|
|
|
|
| 17 |
|
| 18 |
-
RUN mkdir -p /
|
| 19 |
-
COPY data/ /
|
| 20 |
COPY data/ /app/data/
|
| 21 |
COPY train.py .
|
| 22 |
COPY evaluate.py .
|
|
|
|
| 7 |
|
| 8 |
RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
+
RUN useradd -m -u 1000 trainer
|
| 11 |
+
USER trainer
|
| 12 |
+
ENV HOME=/home/trainer
|
| 13 |
+
ENV HF_HOME=/home/trainer/.cache/huggingface
|
| 14 |
+
ENV TORCHINDUCTOR_CACHE_DIR=/home/trainer/.cache/torch
|
| 15 |
+
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
+
RUN pip install --no-cache-dir torch==2.1.0 --index-url https://download.pytorch.org/whl/cu121
|
| 19 |
|
| 20 |
+
RUN pip install --no-cache-dir \
|
| 21 |
+
transformers==4.36.0 \
|
| 22 |
+
accelerate==0.25.0 \
|
| 23 |
+
peft==0.7.1 \
|
| 24 |
+
trl==0.7.4 \
|
| 25 |
+
bitsandbytes==0.41.3 \
|
| 26 |
+
wandb datasets huggingface_hub matplotlib Pillow
|
| 27 |
|
| 28 |
+
RUN pip install --no-cache-dir \
|
| 29 |
+
git+https://github.com/Jayant-kernel/DECEIT-the-ai-truth-environment-.git
|
| 30 |
|
| 31 |
+
RUN mkdir -p /home/trainer/.local/lib/python3.10/site-packages/deceit_env/data/
|
| 32 |
+
COPY data/ /home/trainer/.local/lib/python3.10/site-packages/deceit_env/data/
|
| 33 |
COPY data/ /app/data/
|
| 34 |
COPY train.py .
|
| 35 |
COPY evaluate.py .
|