yash184 commited on
Commit
1c8e30b
·
verified ·
1 Parent(s): 1d8a1ed

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -1
Dockerfile CHANGED
@@ -1 +1,14 @@
1
- FROM ghcr.io/ggml-org/llama.cpp:fullWORKDIR /appRUN apt update && apt install -y python3 python3-pip python3-venvRUN python3 -m venv /opt/venvENV PATH="/opt/venv/bin:$PATH"RUN pip install -U pip huggingface_hubRUN python3 -c 'from huggingface_hub import hf_hub_download; \ repo="HauhauCS/Gemma-4-E2B-Uncensored-HauhauCS-Aggressive"; \ hf_hub_download(repo_id=repo, filename="Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", local_dir="/app"); \ hf_hub_download(repo_id=repo, filename="mmproj-Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-f16.gguf", local_dir="/app")'CMD ["--server", \ "-m", "/app/Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", \ "--mmproj", "/app/mmproj-Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-f16.gguf", \ "--host", "0.0.0.0", \ "--port", "7860", \ "-t", "2", \ "--cache-type-k", "q8_0", \ "--cache-type-v", "iq4_nl", \ "-c", "128000", \ "-n", "38912"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ghcr.io/ggml-org/llama.cpp:full
2
+
3
+ WORKDIR /appRUN
4
+
5
+ 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
+ RUN python3 -c 'from huggingface_hub import hf_hub_download; \
11
+ repo="HauhauCS/Gemma-4-E2B-Uncensored-HauhauCS-Aggressive"; \
12
+ hf_hub_download(repo_id=repo, filename="Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", local_dir="/app"); \
13
+ hf_hub_download(repo_id=repo, filename="mmproj-Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-f16.gguf", local_dir="/app")'
14
+ CMD ["--server", \ "-m", "/app/Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-Q6_K_P.gguf", \ "--mmproj", "/app/mmproj-Gemma-4-E2B-Uncensored-HauhauCS-Aggressive-f16.gguf", \ "--host", "0.0.0.0", \ "--port", "7860", \ "-t", "2", \ "--cache-type-k", "q8_0", \ "--cache-type-v", "iq4_nl", \ "-c", "128000", \ "-n", "38912"]