File size: 880 Bytes
7c93bc7
c0f505d
 
 
 
 
 
 
 
 
 
e9ab34c
 
0c19e40
63e632b
c0f505d
e9ab34c
c0f505d
 
18549b3
 
4637b96
24b6beb
dfb33a8
86f986d
95a63e4
86f986d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ghcr.io/ggml-org/llama.cpp:full

WORKDIR /app

RUN apt update && apt install -y python3 python3-pip python3-venv
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

RUN pip install -U pip huggingface_hub

RUN python3 -c 'from huggingface_hub import hf_hub_download; \
    repo="uberkie/Qwen3-4B-Thinking-4-gguf"; \
    hf_hub_download(repo_id=repo, filename="qwen3-4B.Q4_K_M.gguf", local_dir="/app"); \
    hf_hub_download(repo_id=repo, filename="config.json", local_dir="/app")'
COPY chat_template.jinja /app/chat_template.jinja
CMD ["--server", \
     "-m", "/app/qwen3-4B.Q4_K_M.gguf", \
     "--host", "0.0.0.0", \
     "--port", "7860", \
     "-t", "8", \
     "-np", "1", \
     "-c", "8096", \
     "-n", "1024", \
     "--n-gpu-layers", "16", \
     "--reasoning-format", "none", \
     "--jinja", \
     "--chat-template-file", "/app/chat_template.jinja"]