File size: 647 Bytes
0616154
 
 
 
 
 
 
 
 
 
 
aa57c15
 
0616154
 
aa57c15
0616154
 
061e116
5facc20
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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="LiquidAI/LFM3-1.7B-GGUF"; \
    hf_hub_download(repo_id=repo, filename="LFM3-1.7B-Q4_K_M.gguf", local_dir="/app")'

CMD ["--server", \
     "-m", "/app/LFM3-1.7B-Q4_K_M.gguf", \
     "--host", "0.0.0.0", \
     "--port", "7860", \
     "-t", "4", \
     "--cache-type-k", "f16", \
     "--cache-type-v", "f16", \
     "-c", "12000", \
     "-n", "12000"]