syedmoinms commited on
Commit
4268dd8
·
verified ·
1 Parent(s): 73004d5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:12.1.1-base-ubuntu22.04
2
+
3
+ # System dependencies
4
+ RUN apt update && apt install -y python3 python3-pip git
5
+
6
+ # PyTorch & Transformers (GPU Optimized)
7
+ RUN pip install torch torchvision torchaudio transformers accelerate bitsandbytes
8
+
9
+ # Hugging Face Libraries
10
+ RUN pip install fastapi uvicorn peft auto-gptq
11
+
12
+ # Working directory set
13
+ WORKDIR /app
14
+ COPY . /app
15
+
16
+ # Expose API port
17
+ EXPOSE 7860
18
+
19
+ # Start chatbot
20
+ CMD ["python3", "server.py"]