Jayant-Kernel commited on
Commit
dc2aaf0
·
unverified ·
1 Parent(s): 4550c9f

fix: pin torch 2.1.0 and compatible versions to avoid torchao conflict

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -3,20 +3,19 @@ FROM python:3.10-slim
3
  ENV PYTHONUNBUFFERED=1
4
  ENV HF_HOME=/tmp/huggingface
5
  ENV MPLCONFIGDIR=/tmp/matplotlib
6
- ENV PIP_CACHE_DIR=/tmp/pip-cache
7
  ENV HOME=/tmp
8
 
9
  RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
12
 
13
- RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cu121
14
 
15
- RUN pip install --no-cache-dir trl peft accelerate bitsandbytes wandb datasets huggingface_hub transformers
16
 
17
  RUN pip install --no-cache-dir "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git" --no-deps
18
 
19
- RUN pip install --no-cache-dir unsloth_zoo
20
 
21
  RUN pip install --no-cache-dir git+https://github.com/Jayant-kernel/DECEIT-the-ai-truth-environment-.git
22
 
 
3
  ENV PYTHONUNBUFFERED=1
4
  ENV HF_HOME=/tmp/huggingface
5
  ENV MPLCONFIGDIR=/tmp/matplotlib
 
6
  ENV HOME=/tmp
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==2.1.0 torchvision==0.16.0 --index-url https://download.pytorch.org/whl/cu121
13
 
14
+ RUN pip install --no-cache-dir transformers==4.36.0 accelerate==0.25.0 peft==0.7.1 bitsandbytes==0.41.3 trl==0.7.4
15
 
16
  RUN pip install --no-cache-dir "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git" --no-deps
17
 
18
+ RUN pip install --no-cache-dir unsloth_zoo wandb datasets huggingface_hub
19
 
20
  RUN pip install --no-cache-dir git+https://github.com/Jayant-kernel/DECEIT-the-ai-truth-environment-.git
21