-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #541 from containers/llamacpp-python-vulkan-amd64
Llamacpp python vulkan amd64
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM registry.access.redhat.com/ubi9/python-311:1-62.1716478620 | ||
USER 0 | ||
RUN dnf install -y python3-dnf-plugin-versionlock | ||
RUN dnf install -y mesa-vulkan-drivers-23.3.3-1.el9.x86_64 | ||
RUN dnf versionlock mesa-vulkan-drivers-23.3.3-1.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" ] |
File renamed without changes.