Spaces:
Running
Running
Chat Adapter Support / Debian
Browse filesSwitch to debian to be consistent with the other dockers
- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
FROM
|
2 |
ARG MODEL
|
3 |
ARG IMGMODEL
|
4 |
ARG WHISPERMODEL
|
@@ -8,11 +8,11 @@ ARG ADDITIONAL
|
|
8 |
RUN mkdir /opt/koboldcpp
|
9 |
RUN apt update && apt install curl -y
|
10 |
WORKDIR /opt/koboldcpp
|
11 |
-
COPY
|
12 |
RUN curl -fLo koboldcpp https://koboldai.org/cpplinuxcu12
|
13 |
RUN chmod +x ./koboldcpp
|
14 |
RUN curl -fLo model.ggml $MODEL || true
|
15 |
RUN curl -fLo imgmodel.ggml $IMGMODEL || true
|
16 |
RUN curl -fLo mmproj.ggml $MMPROJ || true
|
17 |
RUN curl -fLo whispermodel.ggml $WHISPERMODEL || true
|
18 |
-
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
|
|
|
1 |
+
FROM debian
|
2 |
ARG MODEL
|
3 |
ARG IMGMODEL
|
4 |
ARG WHISPERMODEL
|
|
|
8 |
RUN mkdir /opt/koboldcpp
|
9 |
RUN apt update && apt install curl -y
|
10 |
WORKDIR /opt/koboldcpp
|
11 |
+
COPY *.json /opt/koboldcpp/
|
12 |
RUN curl -fLo koboldcpp https://koboldai.org/cpplinuxcu12
|
13 |
RUN chmod +x ./koboldcpp
|
14 |
RUN curl -fLo model.ggml $MODEL || true
|
15 |
RUN curl -fLo imgmodel.ggml $IMGMODEL || true
|
16 |
RUN curl -fLo mmproj.ggml $MMPROJ || true
|
17 |
RUN curl -fLo whispermodel.ggml $WHISPERMODEL || true
|
18 |
+
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 --chatcompletionsadapter adapter.json --ignoremissing
|