Nafiul Huda commited on
Update Dockerfile
Browse files- Dockerfile +8 -4
Dockerfile
CHANGED
|
@@ -2,21 +2,25 @@ 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="LiquidAI/LFM2.5-8B-A1B-GGUF"; \
|
| 13 |
-
hf_hub_download(repo_id=repo, filename="LFM2.5-8B-A1B-
|
| 14 |
|
| 15 |
CMD ["--server", \
|
| 16 |
-
"-m", "/app/LFM2.5-8B-A1B-
|
| 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", "128000", \
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-pip python3-venv && \
|
| 6 |
+
rm -rf /var/lib/apt/lists/*
|
| 7 |
+
|
| 8 |
RUN python3 -m venv /opt/venv
|
| 9 |
ENV PATH="/opt/venv/bin:$PATH"
|
| 10 |
|
| 11 |
+
RUN pip install --no-cache-dir -U pip huggingface_hub
|
| 12 |
|
| 13 |
RUN python3 -c 'from huggingface_hub import hf_hub_download; \
|
| 14 |
repo="LiquidAI/LFM2.5-8B-A1B-GGUF"; \
|
| 15 |
+
hf_hub_download(repo_id=repo, filename="LFM2.5-8B-A1B-Q4_0.gguf", local_dir="/app")'
|
| 16 |
|
| 17 |
CMD ["--server", \
|
| 18 |
+
"-m", "/app/LFM2.5-8B-A1B-Q4_0.gguf", \
|
| 19 |
"--host", "0.0.0.0", \
|
| 20 |
"--port", "7860", \
|
| 21 |
"-t", "2", \
|
| 22 |
+
"-b", "512", \
|
| 23 |
+
"-ub", "512", \
|
| 24 |
"--cache-type-k", "q8_0", \
|
| 25 |
"--cache-type-v", "iq4_nl", \
|
| 26 |
"-c", "128000", \
|