From e9794f91f25db70b998a92e962404a7652eda5e5 Mon Sep 17 00:00:00 2001 From: Aneesh Joy Date: Wed, 17 May 2023 18:04:58 +0100 Subject: [PATCH] Fixd CUBLAS dll load issue in Windows --- llama_cpp/llama_cpp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/llama_cpp/llama_cpp.py b/llama_cpp/llama_cpp.py index 3bd4cac..eeda58b 100644 --- a/llama_cpp/llama_cpp.py +++ b/llama_cpp/llama_cpp.py @@ -48,6 +48,7 @@ def _load_shared_library(lib_base_name: str): # Add the library directory to the DLL search path on Windows (if needed) if sys.platform == "win32" and sys.version_info >= (3, 8): os.add_dll_directory(str(_base_path)) + os.add_dll_directory(os.path.join(os.environ["CUDA_PATH"],"bin")) cdll_args["winmode"] = 0 # Try to load the shared library, handling potential errors