Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -2,15 +2,15 @@ FROM ghcr.io/ggml-org/llama.cpp:server
|
|
| 2 |
|
| 3 |
RUN apt update && apt install wget -y && rm -rf /var/lib/apt/lists/*
|
| 4 |
|
| 5 |
-
#
|
| 6 |
RUN wget "https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/main/gemma-4-E2B-it-Q4_K_M.gguf" -O /model.gguf
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
RUN wget "https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/main/mmproj-
|
| 10 |
|
| 11 |
-
#
|
| 12 |
-
# --
|
| 13 |
CMD ["-m", "/model.gguf", \
|
| 14 |
"--mmproj", "/mmproj.gguf", \
|
| 15 |
"--port", "7860", "--host", "0.0.0.0", \
|
| 16 |
-
"-t", "2", "--mlock", "-
|
|
|
|
| 2 |
|
| 3 |
RUN apt update && apt install wget -y && rm -rf /var/lib/apt/lists/*
|
| 4 |
|
| 5 |
+
# The main model (Q4 for speed)
|
| 6 |
RUN wget "https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/main/gemma-4-E2B-it-Q4_K_M.gguf" -O /model.gguf
|
| 7 |
|
| 8 |
+
# The multimodal projector (Corrected filename)
|
| 9 |
+
RUN wget "https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/main/mmproj-model-f16.gguf" -O /mmproj.gguf
|
| 10 |
|
| 11 |
+
# Matching your 2vCPU exactly
|
| 12 |
+
# Added --ctx-size 8192 to keep memory low but functional
|
| 13 |
CMD ["-m", "/model.gguf", \
|
| 14 |
"--mmproj", "/mmproj.gguf", \
|
| 15 |
"--port", "7860", "--host", "0.0.0.0", \
|
| 16 |
+
"-t", "2", "--mlock", "-c", "8192"]
|