We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de2f24 commit e3ea354Copy full SHA for e3ea354
llama_cpp/llama_cpp.py
@@ -18,9 +18,12 @@ def _load_shared_library(lib_base_name):
18
19
# Construct the paths to the possible shared library names
20
_base_path = pathlib.Path(__file__).parent.resolve()
21
+ _local_path = pathlib.Path.cwd()
22
# Searching for the library in the current directory under the name "libllama" (default name
23
# for llamacpp) and "llama" (default name for this repo)
24
_lib_paths = [
25
+ _local_path / f"./lib{lib_base_name}{lib_ext}",
26
+ _local_path / f"./{lib_base_name}{lib_ext}",
27
_base_path / f"lib{lib_base_name}{lib_ext}",
28
_base_path / f"{lib_base_name}{lib_ext}"
29
]
0 commit comments