Spaces:
Build error
Build error
Download llamacpp_python/vulkan/amd64/Containerfile from jaothan/podman_llamacpp_python: direct link, hf CLI and curl.
- Browser
- Download file 716 Bytes
-
https://huggingface.co/spaces/jaothan/podman_llamacpp_python/resolve/main/llamacpp_python/vulkan/amd64/Containerfile
- Command line
-
hf download hf://spaces/jaothan/podman_llamacpp_python/llamacpp_python/vulkan/amd64/Containerfile
-
curl -L -o Containerfile https://huggingface.co/spaces/jaothan/podman_llamacpp_python/resolve/main/llamacpp_python/vulkan/amd64/Containerfile
716 Bytes
| FROM registry.access.redhat.com/ubi9/python-311:1-77.1726664316 | |
| USER 0 | |
| RUN dnf install -y python3-dnf-plugin-versionlock | |
| RUN dnf install -y mesa-vulkan-drivers-24.1.2-3.el9.x86_64 | |
| RUN dnf versionlock mesa-vulkan-drivers-24.1.2-3.el9.x86_64 | |
| RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm | |
| RUN dnf install -y git cmake ninja-build gcc gcc-c++ | |
| RUN dnf copr enable -y ligenix/enterprise-sandbox epel-9-x86_64 | |
| RUN dnf install -y vulkan-headers vulkan-tools | |
| USER 1001 | |
| WORKDIR /locallm | |
| COPY src . | |
| RUN pip install --upgrade pip | |
| ENV CMAKE_ARGS="-DLLAMA_VULKAN=on" | |
| ENV FORCE_CMAKE=1 | |
| RUN pip install --no-cache-dir --upgrade -r /locallm/requirements.txt | |
| ENTRYPOINT [ "sh", "run.sh" ] | |