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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Download the Q4_K_M model for faster CPU inference
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
- # Download the multimodal projector (required for Image & Audio)
9
- RUN wget "https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF/resolve/main/mmproj-gemma-4-E2B-it-Q4_K_M.gguf" -O /mmproj.gguf
10
 
11
- # -t 2 matches your 2vCPU resources exactly
12
- # --mmproj enables the vision/audio features
13
  CMD ["-m", "/model.gguf", \
14
  "--mmproj", "/mmproj.gguf", \
15
  "--port", "7860", "--host", "0.0.0.0", \
16
- "-t", "2", "--mlock", "-b", "512"]
 
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"]