Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Switch vulkan images to the kompute backend #83

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions chat/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ git clone https://github.com/abetlen/llama-cpp-python --no-checkout --recurse-su
cd llama-cpp-python
git checkout v0.3.2
git submodule update
pushd vendor/llama.cpp
git submodule init
git submodule update
popd
git fetch origin pull/1552/head
git rebase ffc47e5a95cf31fe6d9d6d7953d5eb17fdcc8513
4 changes: 2 additions & 2 deletions chat/vulkan/amd64/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN dnf install -y python3-dnf-plugin-versionlock && \
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
dnf install -y git cmake ninja-build gcc gcc-c++ && \
dnf copr enable -y ligenix/enterprise-sandbox epel-9-x86_64 && \
dnf install -y vulkan-headers vulkan-tools vulkan-loader-devel && \
dnf install -y vulkan-headers vulkan-tools vulkan-loader-devel fmt-devel && \
dnf copr enable -y ligenix/enterprise-buildtools epel-9-x86_64 && \
dnf copr enable -y jeffmaury/shaderc epel-9-x86_64 && \
dnf install -y glslc && \
Expand All @@ -34,7 +34,7 @@ WORKDIR /locallm
COPY requirements.txt ./
COPY llama-cpp-python llama-cpp-python
RUN pip install --upgrade pip
ENV CMAKE_ARGS="-DGGML_VULKAN=on"
ENV CMAKE_ARGS="-DGGML_KOMPUTE=1 -DKOMPUTE_OPT_USE_BUILT_IN_FMT=OFF"
ENV FORCE_CMAKE=1
RUN pip install --target=/locallm --no-cache-dir --upgrade -r requirements.txt

Expand Down
4 changes: 2 additions & 2 deletions chat/vulkan/arm64/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
dnf copr enable -y slp/mesa-krunkit epel-9-aarch64 && \
dnf install -y mesa-vulkan-drivers-24.1.2-101.el9.aarch64 && \
dnf versionlock mesa-vulkan-drivers-24.1.2-101.el9.aarch64 && \
dnf install -y git cmake ninja-build gcc gcc-c++ vulkan-loader-devel vulkan-tools && \
dnf install -y git cmake ninja-build gcc gcc-c++ vulkan-loader-devel vulkan-tools fmt-devel && \
dnf copr enable -y jeffmaury/shaderc epel-9-aarch64 && \
jeffmaury marked this conversation as resolved.
Show resolved Hide resolved
dnf install -y glslc && \
dnf clean all
COPY requirements.txt ./
COPY llama-cpp-python llama-cpp-python
RUN pip install --upgrade pip
ENV CMAKE_ARGS="-DGGML_VULKAN=on"
ENV CMAKE_ARGS="-DGGML_KOMPUTE=1 -DKOMPUTE_OPT_USE_BUILT_IN_FMT=OFF"
ENV FORCE_CMAKE=1
RUN pip install --target=/locallm --no-cache-dir --upgrade -r requirements.txt

Expand Down