Jayant-Kernel commited on
Commit
cbaf9f7
·
1 Parent(s): 73c82af

fix: nvidia cuda base with python3.10 installed

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -4
Dockerfile CHANGED
@@ -1,15 +1,25 @@
1
- FROM huggingface/transformers-pytorch-gpu:latest
2
 
3
  ENV PYTHONUNBUFFERED=1
4
  ENV HF_HOME=/tmp/huggingface
5
  ENV HOME=/tmp
6
- ENV TORCHINDUCTOR_CACHE_DIR=/tmp/torch_cache
 
 
 
 
 
7
 
8
  WORKDIR /app
9
 
 
 
 
 
 
 
 
10
  RUN pip install --no-cache-dir \
11
- peft trl bitsandbytes wandb datasets \
12
- huggingface_hub matplotlib Pillow \
13
  git+https://github.com/Jayant-kernel/DECEIT-the-ai-truth-environment-.git
14
 
15
  RUN mkdir -p /usr/local/lib/python3.10/site-packages/deceit_env/data/
 
1
+ FROM nvidia/cuda:12.6.0-cudnn-runtime-ubuntu22.04
2
 
3
  ENV PYTHONUNBUFFERED=1
4
  ENV HF_HOME=/tmp/huggingface
5
  ENV HOME=/tmp
6
+ ENV DEBIAN_FRONTEND=noninteractive
7
+
8
+ RUN apt-get update && apt-get install -y \
9
+ python3.10 python3-pip git build-essential \
10
+ && ln -s /usr/bin/python3.10 /usr/bin/python \
11
+ && rm -rf /var/lib/apt/lists/*
12
 
13
  WORKDIR /app
14
 
15
+ RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cu124
16
+
17
+ RUN pip install --no-cache-dir \
18
+ transformers accelerate peft trl \
19
+ bitsandbytes wandb datasets \
20
+ huggingface_hub matplotlib Pillow
21
+
22
  RUN pip install --no-cache-dir \
 
 
23
  git+https://github.com/Jayant-kernel/DECEIT-the-ai-truth-environment-.git
24
 
25
  RUN mkdir -p /usr/local/lib/python3.10/site-packages/deceit_env/data/