From 706fe4ccd1fc052b6cee51b393afdd1a66ba3cd8 Mon Sep 17 00:00:00 2001 From: Eric Curtin Date: Thu, 25 Jul 2024 03:18:15 +0100 Subject: [PATCH] Changes to accommodate new llama.cpp version Signed-off-by: Eric Curtin --- container-images/ramalama/latest/Containerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/container-images/ramalama/latest/Containerfile b/container-images/ramalama/latest/Containerfile index 63bc165c..f74552ab 100644 --- a/container-images/ramalama/latest/Containerfile +++ b/container-images/ramalama/latest/Containerfile @@ -15,21 +15,20 @@ RUN dnf install -y git jq procps-ng vim clblast-devel vulkan-headers \ dnf clean all && \ rm -rf /var/cache/*dnf* -RUN pip install -U "huggingface_hub[cli]" +RUN pip install "huggingface_hub[cli]==0.24.2" ENV LLAMA_CCACHE=0 ENV LLAMA_CURL=1 ENV LLAMA_VULKAN=1 -RUN git clone -b ramlama https://github.com/ericcurtin/llama.cpp.git && \ +RUN git clone -b ramalama https://github.com/ericcurtin/llama.cpp.git && \ cd llama.cpp && \ cmake -B build -DLLAMA_CCACHE=0 -DLLAMA_VULKAN=1 -DLLAMA_CURL=1 && \ cmake --build build --config Release -j $(nproc) && \ cd build/bin && \ for file in *; do \ - if [ -f "$file" ] && [ -x "$file" ]; then \ - echo "$file" && \ - mv "$file" /usr/bin/llama-"$file"; \ + if [ -f "$file" ] && [ -x "$file" ] && [[ "$file" == "llama-*" ]]; then \ + mv "$file" "/usr/bin/$file"; \ fi; \ done; \ cd / && \