Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -7
Dockerfile
CHANGED
@@ -30,11 +30,11 @@ RUN apt-get update && \
|
|
30 |
# ffmpeg
|
31 |
# software-properties-common
|
32 |
|
33 |
-
# RUN
|
34 |
-
#
|
35 |
-
#
|
36 |
-
#
|
37 |
-
|
38 |
RUN curl -L https://ollama.com/download/ollama-linux-amd64 -o /usr/bin/ollama
|
39 |
RUN chmod +x /usr/bin/ollama
|
40 |
|
@@ -71,11 +71,12 @@ RUN python -m pip install "huggingface-hub" "hf-transfer" "gradio[oauth]>=4.28.0
|
|
71 |
# go build . --verbose \
|
72 |
# go install . --verbose
|
73 |
|
74 |
-
RUN git clone https://github.com/ggerganov/llama.cpp
|
75 |
|
76 |
WORKDIR ${APPDIR}/llama.cpp
|
|
|
77 |
RUN python -m pip install -r requirements.txt
|
78 |
-
RUN
|
79 |
|
80 |
# ENV PYTHONPATH=${APPDIR}/.venv/bin \
|
81 |
ENV PYTHONUNBUFFERED=1 \
|
|
|
30 |
# ffmpeg
|
31 |
# software-properties-common
|
32 |
|
33 |
+
# RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
|
34 |
+
# RUN dpkg -i cuda-keyring_1.1-1_all.deb
|
35 |
+
# RUN apt-get update
|
36 |
+
# RUN apt-get -y install cuda-toolkit-12-4
|
37 |
+
|
38 |
RUN curl -L https://ollama.com/download/ollama-linux-amd64 -o /usr/bin/ollama
|
39 |
RUN chmod +x /usr/bin/ollama
|
40 |
|
|
|
71 |
# go build . --verbose \
|
72 |
# go install . --verbose
|
73 |
|
74 |
+
RUN git clone https://github.com/ggerganov/llama.cpp; exit 0
|
75 |
|
76 |
WORKDIR ${APPDIR}/llama.cpp
|
77 |
+
RUN git pull
|
78 |
RUN python -m pip install -r requirements.txt
|
79 |
+
RUN GGML_CUDA=1 make -j llama-quantize --verbose
|
80 |
|
81 |
# ENV PYTHONPATH=${APPDIR}/.venv/bin \
|
82 |
ENV PYTHONUNBUFFERED=1 \
|