File size: 545 Bytes
41d24d2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM pytorch/pytorch:2.4.0-cuda12.4-cudnn9-devel

WORKDIR /app

RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y git

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install "llama-cpp-python<=0.2.79.0"
COPY *.py ./
ADD llmlib ./llmlib
RUN pip install -e llmlib
ADD .streamlit .streamlit

#CMD [ "python", "--version"]
# CMD ["nvidia-smi"]
# CMD ["nvcc", "--version"]
CMD [ "python", "-m", "streamlit", "run", "st_app.py", "--server.port", "8020"]