Jayant-Kernel commited on
Commit
bcc84d6
·
1 Parent(s): 09ab990

fix: simplify dockerfile no version pinning

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -23
Dockerfile CHANGED
@@ -3,36 +3,20 @@ FROM python:3.10-slim
3
  ENV PYTHONUNBUFFERED=1
4
  ENV HF_HOME=/tmp/huggingface
5
  ENV HOME=/tmp
 
6
 
7
  RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /app
10
 
11
- RUN pip install --no-cache-dir \
12
- torch==2.4.0 \
13
- --index-url https://download.pytorch.org/whl/cu124
14
-
15
- RUN pip install --no-cache-dir \
16
- transformers==4.45.0 \
17
- accelerate==0.34.2 \
18
- peft==0.12.0 \
19
- trl==0.12.0 \
20
- bitsandbytes==0.44.0 \
21
- wandb \
22
- datasets \
23
- huggingface_hub \
24
- matplotlib \
25
- Pillow
26
-
27
- RUN pip install --no-cache-dir \
28
- git+https://github.com/Jayant-kernel/DECEIT-the-ai-truth-environment-.git
29
-
30
- RUN mkdir -p /usr/local/lib/python3.10/site-packages/deceit_env/data/ && \
31
- mkdir -p /home/trainer/.local/lib/python3.10/site-packages/deceit_env/data/ && \
32
- mkdir -p /app/data/
33
 
 
 
 
 
 
34
  COPY data/ /usr/local/lib/python3.10/site-packages/deceit_env/data/
35
- COPY data/ /home/trainer/.local/lib/python3.10/site-packages/deceit_env/data/
36
  COPY data/ /app/data/
37
  COPY train.py .
38
  COPY evaluate.py .
 
3
  ENV PYTHONUNBUFFERED=1
4
  ENV HF_HOME=/tmp/huggingface
5
  ENV HOME=/tmp
6
+ 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/cu124
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
+ RUN pip install --no-cache-dir transformers accelerate peft trl bitsandbytes wandb datasets huggingface_hub matplotlib Pillow
15
+
16
+ RUN pip install --no-cache-dir git+https://github.com/Jayant-kernel/DECEIT-the-ai-truth-environment-.git
17
+
18
+ RUN mkdir -p /usr/local/lib/python3.10/site-packages/deceit_env/data/
19
  COPY data/ /usr/local/lib/python3.10/site-packages/deceit_env/data/
 
20
  COPY data/ /app/data/
21
  COPY train.py .
22
  COPY evaluate.py .