ShadowHunter222 commited on
Commit
d9f625a
·
verified ·
1 Parent(s): 93ee293

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -15
Dockerfile CHANGED
@@ -1,22 +1,26 @@
1
  FROM ghcr.io/ggml-org/llama.cpp:server
2
 
3
 
4
- RUN apt update && apt install wget -y && rm -rf /var/lib/apt/lists/*
5
 
6
 
7
- # 1. THE MAIN MODEL: Granite-4.0-H-Tiny Q4_K_M hybrid Mamba/Transformer MoE, 7B total / ~1B active
8
- RUN wget "https://huggingface.co/ibm-granite/granite-4.0-h-tiny-GGUF/resolve/main/granite-4.0-h-tiny-Q4_K_M.gguf" -O /model.gguf
9
 
10
 
11
- # Clear the entrypoint and use shell form CMD
12
- # NOTE: logs are ENABLED on purpose — do not add --log-disable until it runs fine
13
- ENTRYPOINT []
14
- CMD /app/llama-server \
15
- -m /model.gguf \
16
- --port 7860 --host 0.0.0.0 \
17
- -t 2 --threads-batch 2 \
18
- -c 4096 \
19
- --parallel 1 \
20
- --batch-size 256 --ubatch-size 256 \
21
- --mlock --no-mmap \
22
- --no-warmup
 
 
 
 
 
1
  FROM ghcr.io/ggml-org/llama.cpp:server
2
 
3
 
4
+ RUN apt update && apt install -y wget ca-certificates && rm -rf /var/lib/apt/lists/*
5
 
6
 
7
+ # TARGET MODEL: Google Gemma 4 E2B Instruct QAT (Unsloth UD-Q4_K_XL verified, only file in repo)
8
+ RUN wget "https://huggingface.co/unsloth/gemma-4-E2B-it-qat-GGUF/resolve/main/gemma-4-E2B-it-qat-UD-Q4_K_XL.gguf" -O /model.gguf
9
 
10
 
11
+ # MTP DRAFTER: Official Gemma 4 E2B MTP head (Q8_0 — verified)
12
+ RUN wget "https://huggingface.co/unsloth/gemma-4-E2B-it-qat-GGUF/resolve/main/MTP/gemma-4-E2B-it-Q8_0-MTP.gguf" -O /draft.gguf
13
+
14
+
15
+ # CPU-only, MTP speculative decoding — tuned for 2 vCPU / 16 GB
16
+ CMD ["-m", "/model.gguf", \
17
+ "--port", "7860", "--host", "0.0.0.0", \
18
+ "-t", "2", "--threads-batch", "2", \
19
+ "--mlock", "--no-mmap", "-c", "4096", \
20
+ "--parallel", "1", \
21
+ "--batch-size", "256", "--ubatch-size", "256", \
22
+ "--jinja", "--flash-attn", "on", \
23
+ "--spec-type", "draft-mtp", "-md", "/draft.gguf", \
24
+ "--spec-draft-n-max", "2", "--spec-draft-n-min", "1", \
25
+ "--no-warmup", \
26
+ "--temp", "1.0", "--top-p", "0.95", "--top-k", "64"]