Spaces:
Running
Running
ContextSize as a var
Browse files1234567891011FROM nvidia/cuda:11.8.0-devel-ubuntu22.04ARG MODELARG MODEL_NAMERUN 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 mmq --gpulayers 99 --multiuser --contextsize 4096 --port 7860 --hordeconfig $MODEL_NAME 1 1123456789101112FROM 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 mmq --gpulayers 99 --multiuser --contextsize $CONTEXT_SIZE --port 7860 --hordeconfig $MODEL_NAME 1 1
Dockerfile+2-1