Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
CHANGED
@@ -13,4 +13,15 @@ COPY --chown=user ./requirements.txt requirements.txt
|
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
COPY --chown=user . /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
CMD ["python", "chat_demo.py"]
|
|
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
COPY --chown=user . /app
|
16 |
+
|
17 |
+
RUN git clone https://github.com/ikawrakow/ik_llama.cpp.git
|
18 |
+
WORKDIR /app/ik_llama.cpp/
|
19 |
+
RUN cmake -B build -DGGML_NATIVE=1
|
20 |
+
RUN cmake --build build --config Release
|
21 |
+
WORKDIR /app/ik_llama.cpp/build/
|
22 |
+
RUN wget https://huggingface.co/microsoft/bitnet-b1.58-2B-4T-gguf/resolve/9f43072f69492cbd5bc5d5ebb085fec519686a93/ggml-model-i2_s.gguf
|
23 |
+
RUN ./bin/llama-quantize --allow-requantize ./ggml-model-i2_s.gguf model-out.gguf iq2_bn
|
24 |
+
|
25 |
+
WORKDIR /app
|
26 |
+
|
27 |
CMD ["python", "chat_demo.py"]
|