yash184 commited on
Commit
0a7b9ef
·
verified ·
1 Parent(s): 3e92085

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -21
Dockerfile CHANGED
@@ -2,28 +2,24 @@ FROM ghcr.io/ggml-org/llama.cpp:full
2
 
3
  WORKDIR /app
4
 
5
- RUN apt-get update && \
6
- apt-get install -y --no-install-recommends \
7
- python3 \
8
- python3-pip \
9
- python3-venv && \
10
- rm -rf /var/lib/apt/lists/*
11
-
12
  RUN python3 -m venv /opt/venv
13
- ENV PATH="/opt/venv/bin:${PATH}"
14
 
15
- RUN pip install --no-cache-dir --upgrade pip huggingface_hub
16
 
17
- # Download Qwen2.5-Coder-3B GGUF
18
- RUN python3 - <<EOF
19
- from huggingface_hub import hf_hub_download
 
20
 
21
- hf_hub_download(
22
- repo_id="Qwen/Qwen2.5-Coder-3B-Instruct-GGUF",
23
- filename="qwen2.5-coder-3b-instruct-q4_k_m.gguf",
24
- local_dir="/app",
25
- local_dir_use_symlinks=False
26
- )
27
- EOF
28
- ENTRYPOINT ["llama-server"]
29
- CMD ["-m", "/app/qwen2.5-coder-3b-instruct-q4_k_m.gguf", "--host", "0.0.0.0", "--port", "7860", "--alias", "qwen3-4b", "--api-key", "123456", "-t", "4", "-b", "1024", "-c", "8192", "-n", "4096", "--parallel", "1", "--cache-type-k", "q8_0", "--cache-type-v", "q8_0"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt update && apt install -y python3 python3-pip python3-venv
 
 
 
 
 
 
6
  RUN python3 -m venv /opt/venv
7
+ ENV PATH="/opt/venv/bin:$PATH"
8
 
9
+ RUN pip install -U pip huggingface_hub
10
 
11
+ RUN python3 -c 'from huggingface_hub import hf_hub_download; \
12
+ repo="HauhauCS/Gemma-4-E2B-Uncensored-HauhauCS-Aggressive"; \
13
+ hf_hub_download(repo_id=repo, filename="Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", local_dir="/app"); \
14
+ hf_hub_download(repo_id=repo, filename="mmproj-Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-f16.gguf", local_dir="/app")'
15
 
16
+ CMD ["--server", \
17
+ "-m", "/app/Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", \
18
+ "--mmproj", "/app/mmproj-Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-f16.gguf", \
19
+ "--host", "0.0.0.0", \
20
+ "--port", "7860", \
21
+ "-t", "2", \
22
+ "--cache-type-k", "q8_0", \
23
+ "--cache-type-v", "iq4_nl", \
24
+ "-c", "128000", \
25
+ "-n", "38912"]