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

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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"]