rikunarita commited on
Commit
829d8f9
·
verified ·
1 Parent(s): 98df4a3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # モデルのダウンロード
10
+ RUN python3 -c 'from huggingface_hub import hf_hub_download; \
11
+ hf_hub_download(repo_id="Tesslate/OmniCoder-9B-GGUF", \
12
+ filename="omnicoder-9b-q6_k.gguf", \
13
+ local_dir="/app", \
14
+ local_dir_use_symlinks=False)'
15
+
16
+ # 設定
17
+ CMD ["--server", \
18
+ "-m", "/app/omnicoder-9b-q6_k.gguf", \
19
+ "--host", "0.0.0.0", \
20
+ "--port", "7860", \
21
+ "-t", "2", \
22
+ "-c", "128000", \
23
+ "-n", "32000"]