MiniCPM5-1B / Dockerfile
rikunarita-2's picture
Create Dockerfile
0616154 verified
Raw
History Blame Contribute Delete
652 Bytes
FROM ghcr.io/ggml-org/llama.cpp:full
WORKDIR /app
RUN apt update && apt install -y python3 python3-pip python3-venv
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN pip install -U pip huggingface_hub
RUN python3 -c 'from huggingface_hub import hf_hub_download; \
repo="Abiray/MiniCPM5-1B-GGUF"; \
hf_hub_download(repo_id=repo, filename="minicpm5-1b-Q6_K.gguf", local_dir="/app")'
CMD ["--server", \
"-m", "/app/minicpm5-1b-Q6_K.gguf", \
"--host", "0.0.0.0", \
"--port", "7860", \
"-t", "2", \
"--cache-type-k", "q8_0", \
"--cache-type-v", "iq4_nl", \
"-c", "131072", \
"-n", "32000"]