Spaces:
Build error
Build error
Download Dockerfile from oki692/llama-cpp-api: direct link, hf CLI and curl.
- Browser
- Download file 673 Bytes
-
https://huggingface.co/spaces/oki692/llama-cpp-api/resolve/559ea975d981fc00f0446087ec7945dd019e2456/Dockerfile
- Command line
-
hf download hf://spaces/oki692/llama-cpp-api@559ea975d981fc00f0446087ec7945dd019e2456/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/oki692/llama-cpp-api/resolve/559ea975d981fc00f0446087ec7945dd019e2456/Dockerfile
673 Bytes
| FROM python:3.11.1-bullseye | |
| USER root | |
| ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python | |
| RUN apt install g++ -y | |
| RUN git clone https://github.com/ggerganov/llama.cpp.git | |
| RUN cd llama.cpp | |
| RUN make | |
| RUN wget https://huggingface.co/OpenBuddy/openbuddy-ggml/resolve/main/openbuddy-openllama-3b-v10-q5_0.bin | |
| COPY . ./ | |
| RUN chmod -R 777 ./ | |
| WORKDIR ./ | |
| RUN python3 -m pip install -U --no-cache-dir pip setuptools wheel | |
| RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt | |
| RUN mkdir -p /.cache/huggingface/hub | |
| RUN chown -R root:root /.cache/huggingface/hub | |
| RUN chmod -R 777 /.cache/huggingface/hub | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |