ShadowHunter222 commited on
Commit
42f2243
·
verified ·
1 Parent(s): f31134b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # 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"]
 
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"]