Spaces:
Paused
Paused
Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ghcr.io/ggml-org/llama.cpp:full
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
RUN apt update && apt install -y python3 python3-pip python3-venv
|
| 6 |
+
RUN python3 -m venv /opt/venv
|
| 7 |
+
ENV PATH="/opt/venv/bin:$PATH"
|
| 8 |
+
|
| 9 |
+
RUN pip install -U pip huggingface_hub
|
| 10 |
+
|
| 11 |
+
RUN python3 -c 'from huggingface_hub import hf_hub_download; \
|
| 12 |
+
repo="Abiray/MiniCPM5-1B-GGUF"; \
|
| 13 |
+
hf_hub_download(repo_id=repo, filename="minicpm5-1b-Q6_K.gguf", local_dir="/app")'
|
| 14 |
+
|
| 15 |
+
CMD ["--server", \
|
| 16 |
+
"-m", "/app/minicpm5-1b-Q6_K.gguf", \
|
| 17 |
+
"--host", "0.0.0.0", \
|
| 18 |
+
"--port", "7860", \
|
| 19 |
+
"-t", "2", \
|
| 20 |
+
"--cache-type-k", "q8_0", \
|
| 21 |
+
"--cache-type-v", "iq4_nl", \
|
| 22 |
+
"-c", "131072", \
|
| 23 |
+
"-n", "32000"]
|