Nafiul Huda commited on
Commit
33f2266
·
verified ·
1 Parent(s): 87b3b0b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -3
Dockerfile CHANGED
@@ -1,7 +1,25 @@
1
  FROM ghcr.io/ggml-org/llama.cpp:full
2
 
3
- RUN apt update && apt install wget -y
4
 
5
- RUN wget "https://huggingface.co/unsloth/gemma-3-1b-it-GGUF/resolve/main/gemma-3-1b-it-UD-Q2_K_XL.gguf" -O /gemma-3-1b-it-UD-Q2_K_XL.gguf
 
 
6
 
7
- CMD ["--server", "-m", "/gemma-3-1b-it-UD-Q2_K_XL.gguf", "--port", "7860", "--host", "0.0.0.0", "-n", "4098"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM ghcr.io/ggml-org/llama.cpp:full
2
 
3
+ WORKDIR /app
4
 
5
+ # প্রয়োজনীয় প্যাকেজ ইনস্টল
6
+ RUN apt update && apt install -y python3-pip
7
+ RUN pip install -U huggingface_hub
8
 
9
+ # Hugging Face থেকে মডেল ডাউনলোড
10
+ RUN python3 -c 'from huggingface_hub import hf_hub_download; \
11
+ repo="HauhauCS/Qwen3.5-2B-Uncensored-HauhauCS-Aggressive"; \
12
+ hf_hub_download(repo_id=repo, filename="Qwen3.5-2B-Uncensored-HauhauCS-Aggressive-Q4_K_M.gguf", local_dir="/app");'
13
+
14
+ # সার্ভার কনফিগারেশন (Thinking মোড ডিজেবল করা হয়েছে)
15
+ ENTRYPOINT ["/app/llama-server"]
16
+ CMD ["-m", "/app/Qwen3.5-2B-Uncensored-HauhauCS-Aggressive-Q4_K_M.gguf", \
17
+ "--host", "0.0.0.0", \
18
+ "--port", "7860", \
19
+ "-t", "2", \
20
+ "--cache-type-k", "q4_0", \
21
+ "--cache-type-v", "iq4_nl", \
22
+ "-c", "128000", \
23
+ "-n", "38912", \
24
+ "--jinja", \
25
+ "--chat-template-kwargs", "{\"enable_thinking\": false}"]