Skip to content

Commit

Permalink
Merge pull request #541 from containers/llamacpp-python-vulkan-amd64
Browse files Browse the repository at this point in the history
Llamacpp python vulkan amd64
  • Loading branch information
Gregory-Pereira authored Jun 8, 2024
2 parents 9b686a3 + 59e9cd6 commit 62abb17
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/model_servers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ jobs:
directory: llamacpp_python
platforms: linux/amd64,linux/arm64
no_gpu: 0
- image_name: llamacpp-python-vulkan
- image_name: llamacpp-python-vulkan-amd
model: granite
flavor: vulkan
flavor: vulkan/amd64
directory: llamacpp_python
platforms: linux/amd64
no_gpu: 0
- image_name: llamacpp-python-vulkan-arm
model: granite
flavor: vulkan/arm64
directory: llamacpp_python
platforms: linux/arm64
no_gpu: 0
Expand Down
17 changes: 17 additions & 0 deletions model_servers/llamacpp_python/vulkan/amd64/Containerfile
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" ]

0 comments on commit 62abb17

Please sign in to comment.