Spaces:
Paused
Paused
Download Dockerfile from JustData/KoboldCpp-Solar: direct link, hf CLI and curl.
- Browser
- Download file 765 Bytes
-
https://huggingface.co/spaces/JustData/KoboldCpp-Solar/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/JustData/KoboldCpp-Solar/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/JustData/KoboldCpp-Solar/resolve/main/Dockerfile
765 Bytes
| FROM nvidia/cuda:12.1.1-devel-ubuntu22.04 | |
| ARG MODEL | |
| ARG IMGMODEL | |
| ARG MMPROJ | |
| ARG MODEL_NAME | |
| ARG ADDITIONAL | |
| RUN mkdir /opt/koboldcpp | |
| RUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -y | |
| RUN git clone https://github.com/lostruins/koboldcpp /opt/koboldcpp | |
| WORKDIR /opt/koboldcpp | |
| COPY default.json /opt/koboldcpp/default.json | |
| RUN make LLAMA_OPENBLAS=1 LLAMA_CUBLAS=1 LLAMA_PORTABLE=1 | |
| RUN wget -O model.ggml $MODEL || true | |
| RUN wget -O imgmodel.ggml $IMGMODEL || true | |
| RUN wget -O mmproj.ggml $MMPROJ || true | |
| CMD /bin/python3 ./koboldcpp.py --model model.ggml --sdmodel imgmodel.ggml --sdthreads 4 --sdquant --sdclamped --mmproj mmproj.ggml $ADDITIONAL --port 7860 --hordeconfig $MODEL_NAME 1 1 --preloadstory default.json --ignoremissing | |