Spaces:
Runtime error
Runtime error
Download Dockerfile from JustData/Koboldcpp-Test: direct link, hf CLI and curl.
- Browser
- Download file 795 Bytes
-
https://huggingface.co/spaces/JustData/Koboldcpp-Test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/JustData/Koboldcpp-Test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/JustData/Koboldcpp-Test/resolve/main/Dockerfile
795 Bytes
| FROM debian | |
| 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 *.json /opt/koboldcpp/ | |
| 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 --chatcompletionsadapter adapter.json --ignoremissing $SECRET |