Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
-
FROM
|
2 |
ARG MODEL
|
3 |
ARG MODEL_NAME
|
4 |
ARG ADDITIONAL
|
5 |
RUN mkdir /opt/koboldcpp
|
6 |
-
RUN apt update && apt install
|
|
|
7 |
WORKDIR /opt/koboldcpp
|
8 |
-
COPY
|
9 |
-
RUN
|
10 |
-
RUN
|
11 |
-
|
12 |
-
CMD ./koboldcpp --model model.ggml $ADDITIONAL --port 7860 --hordemodelname $MODEL_NAME --hordemaxctx 1 --hordegenlen 1 --preloadstory default.json --ignoremissing
|
|
|
1 |
+
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
|
2 |
ARG MODEL
|
3 |
ARG MODEL_NAME
|
4 |
ARG ADDITIONAL
|
5 |
RUN mkdir /opt/koboldcpp
|
6 |
+
RUN apt update && apt install git build-essential libopenblas-dev wget python3-pip -y
|
7 |
+
RUN git clone https://github.com/lostruins/koboldcpp /opt/koboldcpp
|
8 |
WORKDIR /opt/koboldcpp
|
9 |
+
COPY default.json /opt/koboldcpp/default.json
|
10 |
+
RUN make LLAMA_OPENBLAS=1
|
11 |
+
RUN wget -O model.ggml $MODEL || true
|
12 |
+
CMD /bin/python3 ./koboldcpp.py --model model.ggml $ADDITIONAL --port 7860 --hordeconfig $MODEL_NAME 1 1 --preloadstory default.json --ignoremissing
|
|