Spaces:
Build error
Build error
Make GPU parameters optional and easier to manage
Browse filesFiles changed (2)
- Dockerfile+2-2
- README.md+1-3
123456789101112FROM nvidia/cuda:11.8.0-devel-ubuntu22.04ARG MODELARG MODEL_NAMEARG CONTEXT_SIZERUN mkdir /opt/koboldcppRUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -yRUN git clone https://github.com/lostruins/koboldcpp /opt/koboldcppWORKDIR /opt/koboldcppRUN make LLAMA_OPENBLAS=1 LLAMA_CUBLAS=1 LLAMA_PORTABLE=1RUN wget -O model.ggml $MODELCMD /bin/python3 ./koboldcpp.py --model model.ggml --usecublas --gpulayers 99 --multiuser --contextsize $CONTEXT_SIZE --port 7860 --hordeconfig $MODEL_NAME 1 1123456789101112FROM nvidia/cuda:11.8.0-devel-ubuntu22.04ARG MODELARG MODEL_NAMEARG ADDITIONALRUN mkdir /opt/koboldcppRUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -yRUN git clone https://github.com/lostruins/koboldcpp /opt/koboldcppWORKDIR /opt/koboldcppRUN make LLAMA_OPENBLAS=1 LLAMA_CUBLAS=1 LLAMA_PORTABLE=1RUN wget -O model.ggml $MODELCMD /bin/python3 ./koboldcpp.py --model model.ggml $ADDITIONAL --port 7860 --hordeconfig $MODEL_NAME 1 1
23 unmodified lines2425262728293023 unmodified linesIf you have a GPU available for your space, clone this space and point the MODEL variable to your model's download location, then force a rebuild so it can use your own custom model. You can customize the model that is being displayed by setting the MODEL_NAME.Want to run on the CPU tier? The following line enables multiuser GPU usage., "--usecublas", "mmq", "--gpulayers", "99", "--multiuser", "--contextsize", "4096"If you remove this from the CMD in the Dockerfile your instance will now be compatible with CPU only usage.23 unmodified lines242526272823 unmodified linesIf you have a GPU available for your space, clone this space and point the MODEL variable to your model's download location, then force a rebuild so it can use your own custom model. You can customize the model that is being displayed by setting the MODEL_NAME.In additional variable we configured the parameters required to run this on a GPU and support multiple users and high context, if you wish to clone this to a CPU space simply leave that blank.
Dockerfile+2-2
README.md+1-3