File size: 647 Bytes
05e40bb
 
e5d7842
4b539b0
b9d9fec
05e40bb
 
 
 
 
4b539b0
 
05e40bb
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM debian:latest

RUN apt-get update && apt-get install -y aria2 git build-essential
#RUN apt search openblas && apt install -y libopenblas-dev 
# && update-alternatives --config libblas.so.3

WORKDIR /code
RUN git clone https://github.com/ggerganov/llama.cpp

WORKDIR /code/llama.cpp
#RUN make LLAMA_OPENBLAS=1
RUN make

RUN aria2 -d ./models/7B -o openhermes-2.5-mistral-7b.Q5_K_M.gguf -x 4 https://huggingface.co./TheBloke/OpenHermes-2.5-Mistral-7B-GGUF/resolve/main/openhermes-2.5-mistral-7b.Q5_K_M.gguf

CMD ["./server", "-m", "models/7B/openhermes-2.5-mistral-7b.Q5_K_M.gguf", "-t", "2", "-c", "4096", "--host", "0.0.0.0", "--port", "7860"]