Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -5
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 |
# Matching your 2vCPU exactly
|
| 12 |
-
#
|
| 13 |
CMD ["-m", "/model.gguf", \
|
| 14 |
"--mmproj", "/mmproj.gguf", \
|
| 15 |
"--port", "7860", "--host", "0.0.0.0", \
|
| 16 |
-
"-t", "2", "--mlock", "-c", "
|
|
|
|
| 2 |
|
| 3 |
RUN apt update && apt install wget -y && rm -rf /var/lib/apt/lists/*
|
| 4 |
|
| 5 |
+
# 1. THE MAIN MODEL: Using Q4_K_M for speed on 2vCPUs
|
| 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 |
+
# 2. THE PROJECTOR: Explicitly verified filename for this repo
|
| 9 |
+
RUN wget "https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/main/mmproj-F16.gguf" -O /mmproj.gguf
|
| 10 |
|
| 11 |
# Matching your 2vCPU exactly
|
| 12 |
+
# -c 4096 is the safety limit to prevent RAM crashes
|
| 13 |
CMD ["-m", "/model.gguf", \
|
| 14 |
"--mmproj", "/mmproj.gguf", \
|
| 15 |
"--port", "7860", "--host", "0.0.0.0", \
|
| 16 |
+
"-t", "2", "--mlock", "-c", "4096"]
|