File size: 1,213 Bytes
e68d948 aa48f13 e68d948 aa48f13 e68d948 b9b1a76 e68d948 b9b1a76 e68d948 3624f52 f2d62d8 ba3b5c4 a4f9c8a e1cf6da 6bca0f5 bb3a40b e1cf6da 25bede2 9810272 5ac41f3 9783909 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | FROM ghcr.io/ggml-org/llama.cpp:full
WORKDIR /app
# Python仮想環境を作るための最低限のものを入れる
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-pip python3-venv \
&& rm -rf /var/lib/apt/lists/*
# venv を作成
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
# venv にだけ pip パッケージを入れる
RUN pip install --no-cache-dir -U huggingface_hub
# モデルとmmprojをダウンロード
RUN python3 -c 'from huggingface_hub import hf_hub_download; \
repo="josephmayo/Mellum2-12B-A2.5B-Thinking-Abliterated-GGUF"; \
hf_hub_download(repo_id=repo, filename="Mellum2-12B-A2.5B-Thinking-Abliterated-Q6_K.gguf", local_dir="/app")'
CMD ["--server", \
"-m", "/app/Mellum2-12B-A2.5B-Thinking-Abliterated-Q6_K.gguf", \
"--host", "0.0.0.0", \
"--port", "7860", \
"-t", "3", \
"--prio", "3", \
"--swa-full", \
"--no-slots", \
"-ngl", "99", \
"--mmap", \
"--log-disable", \
"--skip-chat-parsing", \
"--no-cont-batching", \
"--threads-http", "1", \
"--direct-io", \
"--no-repack", \
"--flash-attn", "off", \
"-c", "64000", \
"-n", "38902"] |