From 14d074b248cb41796f2b19d0d0b38dc6095d2495 Mon Sep 17 00:00:00 2001 From: Sean Pedrick-Case Date: Thu, 24 Apr 2025 16:19:50 +0100 Subject: [PATCH] Hugging Face spaces implementation seems unable to install latest llama-cpp-python version, so downgrading. --- requirements.txt | 4 ++-- requirements_aws.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index dbb8620..c74dced 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,8 +6,8 @@ google-generativeai==0.8.5 pandas==2.2.3 transformers==4.51.3 # For Windows https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.2/llama_cpp_python-0.3.2-cp311-#cp311-win_amd64.whl -C cmake.args="-DGGML_BLAS=ON;-DGGML_BLAS_VENDOR=OpenBLAS" -#llama-cpp-python==0.3.2 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu # Older version based on wheel if the below line doesn't work -llama-cpp-python==0.3.8 -C cmake.args="-DGGML_BLAS=ON;-DGGML_BLAS_VENDOR=OpenBLAS" +llama-cpp-python==0.3.2 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu # For linux if dependencies for below build command are not available in the environment +#llama-cpp-python==0.3.8 -C cmake.args="-DGGML_BLAS=ON;-DGGML_BLAS_VENDOR=OpenBLAS" torch==2.5.1 --extra-index-url https://download.pytorch.org/whl/cpu sentence_transformers==4.1.0 faiss-cpu==1.10.0 diff --git a/requirements_aws.txt b/requirements_aws.txt index 123672e..1ba1b8a 100644 --- a/requirements_aws.txt +++ b/requirements_aws.txt @@ -8,7 +8,7 @@ google-generativeai==0.8.5 pandas==2.2.3 transformers==4.51.3 # For Windows https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.2/llama_cpp_python-0.3.2-cp311-#cp311-win_amd64.whl -C cmake.args="-DGGML_BLAS=ON;-DGGML_BLAS_VENDOR=OpenBLAS" -#llama-cpp-python==0.3.2 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu # For linux +#llama-cpp-python==0.3.2 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu # For linux if dependencies for below build command are not available in the environment llama-cpp-python==0.3.8 -C cmake.args="-DGGML_BLAS=ON;-DGGML_BLAS_VENDOR=OpenBLAS" #torch==2.5.1 --extra-index-url https://download.pytorch.org/whl/cpu # Loaded in Dockerfile #sentence_transformers==4.1.0 # Loaded in Dockerfile