Download Dockerfile from lxcorp/ChatLink: direct link, hf CLI and curl.
- Browser
- Download file 929 Bytes
-
https://huggingface.co/spaces/lxcorp/ChatLink/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lxcorp/ChatLink/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lxcorp/ChatLink/resolve/main/Dockerfile
929 Bytes
| FROM ghcr.io/ggml-org/llama.cpp:full-b9982 | |
| # 作業ディレクトリを /app に固定(権限問題の回避) | |
| WORKDIR /app | |
| # 必要なパッケージをインストール | |
| RUN apt update && apt install -y python3-pip | |
| # huggingface_hub のインストール | |
| RUN pip install -U huggingface_hub --break-system-packages | |
| # Pythonスクリプトで直接実行 | |
| RUN python3 -c 'from huggingface_hub import hf_hub_download; \ | |
| hf_hub_download(repo_id="closedai-inc/Karma-8B-GGUF", \ | |
| filename="karma-8b-q4_k_m.gguf", \ | |
| local_dir=".", \ | |
| local_dir_use_symlinks=False)' | |
| # 念のためファイルが存在するか確認する | |
| RUN ls -lh /app/karma-8b-q4_k_m.gguf | |
| # CPUでサーバーを起動 | |
| #COPY template /app/template | |
| # CPUでサーバーを起動 | |
| CMD ["--server","-m","/app/karma-8b-q4_k_m.gguf","--jinja","--reasoning-format","none","--port","7860","--host","0.0.0.0","-c","4096","-n","4096","--parallel","1"] |