docker-test / Dockerfile
lemonteaa's picture
Update Dockerfile
409fb88
raw
history blame contribute delete
648 Bytes
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 aria2c -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"]