File size: 767 Bytes
86d84ef
e449931
1dbb897
1c97e32
1dbb897
a1992ae
015004d
a82a39b
86d84ef
a82a39b
8a48d19
86d84ef
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ubuntu
ARG MODEL
ARG IMGMODEL
ARG WHISPERMODEL
ARG MMPROJ
ARG MODEL_NAME
ARG ADDITIONAL
RUN mkdir /opt/koboldcpp
RUN apt update && apt install curl -y
WORKDIR /opt/koboldcpp
COPY default.json /opt/koboldcpp/default.json
RUN curl -fLo koboldcpp https://koboldai.org/cpplinuxcu12
RUN chmod +x ./koboldcpp
RUN curl -fLo model.ggml $MODEL || true
RUN curl -fLo imgmodel.ggml $IMGMODEL || true
RUN curl -fLo mmproj.ggml $MMPROJ || true
RUN curl -fLo whispermodel.ggml $WHISPERMODEL || true
CMD ./koboldcpp --model model.ggml --whispermodel whispermodel.ggml --sdmodel imgmodel.ggml --sdthreads 4 --sdquant --sdclamped --mmproj mmproj.ggml $ADDITIONAL --port 7860 --hordemodelname $MODEL_NAME --hordemaxctx 1 --hordegenlen 1 --preloadstory default.json --ignoremissing