Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM debian:latest
|
| 2 |
+
|
| 3 |
+
RUN sudo apt update && sudo apt install -y aria2
|
| 4 |
+
|
| 5 |
+
WORKDIR /code
|
| 6 |
+
RUN git clone https://github.com/ggerganov/llama.cpp
|
| 7 |
+
|
| 8 |
+
WORKDIR /code/llama.cpp
|
| 9 |
+
RUN make LLAMA_OPENBLAS=1
|
| 10 |
+
|
| 11 |
+
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
|
| 12 |
+
|
| 13 |
+
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"]
|