Spaces:
Runtime error
Runtime error
Download Dockerfile from nouamanetazi/docker-llama.cpp: direct link, hf CLI and curl.
- Browser
- Download file 795 Bytes
-
https://huggingface.co/spaces/nouamanetazi/docker-llama.cpp/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nouamanetazi/docker-llama.cpp/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nouamanetazi/docker-llama.cpp/resolve/main/Dockerfile
795 Bytes
| # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
| # you will also find guides on how best to write your Dockerfile | |
| FROM python:3.9 AS downloader | |
| WORKDIR /app | |
| # https://github.com/ggerganov/llama.cpp/actions/runs/4556973815/jobs/8038018313 | |
| FROM ghcr.io/ggerganov/llama.cpp:light-f202ada131f60059112a948f660b2e0ac93d049a | |
| RUN apt-get update && \ | |
| apt-get install -y wget && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN mkdir -p ./models/7B | |
| RUN wget -O ./models/7B/ggml-alpaca-7b-q4.bin https://huggingface.co/frankenstyle/ggml-q4-models/resolve/main/models/alpaca/7B/ggml-alpaca-7b-q4.bin | |
| CMD ["-m", "/models/7B/ggml-alpaca-7b-q4.bin", "-p", "Building a website can be done in 10 simple steps:", "-n", "512"] | |
| # CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |