pacman1337 commited on
Commit
faa6cda
·
verified ·
1 Parent(s): 26dbcdd

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:12.1.0-devel-ubuntu22.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ # HF_TOKEN will be set via Space Secrets
5
+
6
+ RUN apt-get update && apt-get install -y \
7
+ python3 python3-pip git curl \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ WORKDIR /app
11
+
12
+ # Install dependencies
13
+ RUN pip3 install --no-cache-dir \
14
+ torch>=2.4.0 \
15
+ transformers>=4.46.0 \
16
+ datasets>=3.0.0 \
17
+ peft>=0.13.0 \
18
+ trl>=0.12.0 \
19
+ bitsandbytes>=0.44.0 \
20
+ accelerate>=1.0.0 \
21
+ huggingface_hub>=0.26.0 \
22
+ flash-attn --no-build-isolation
23
+
24
+ COPY train.py /app/train.py
25
+
26
+ # Run training on startup
27
+ CMD ["python3", "train.py"]