mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
Merge branch 'main' of github.com:abetlen/llama_cpp_python into main
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user