Spaces:
Sleeping
Sleeping
FROM ubuntu | |
ARG MODEL | |
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 | |
RUN wget -O model.ggml $MODEL | |
CMD /bin/python3 ./koboldcpp.py --model model.ggml $ADDITIONAL --port 7860 | |