File size: 517 Bytes
f0d9981
 
857e31a
 
f0d9981
857e31a
f0d9981
 
 
857e31a
 
f0d9981
 
 
 
 
 
857e31a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ghcr.io/ggerganov/llama.cpp:full

ARG MODEL_URL=https://huggingface.co/Nan-Do/Truthful_DPO_TomGrc_FusionNet_7Bx2_MoE_13B-GGUF/resolve/main
ARG MODEL_NAME=Truthful_DPO_TomGrc_FusionNet_7Bx2_MoE_13B-Q4_0.gguf

ENV DEBIAN_FRONTEND=noninteractive

WORKDIR /app

# Use the variables for the model URL and name
RUN wget ${MODEL_URL}/${MODEL_NAME}

RUN make

# Expose the port
EXPOSE 8080

# Use the model name variable in CMD as well
CMD ["--server", "--model", "${MODEL_NAME}", "--threads", "10", "--host", "0.0.0.0"]