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 8a21022 commit 0b6d13bCopy full SHA for 0b6d13b
examples/llama_cpp.py
@@ -31,10 +31,12 @@ def _load_shared_library(lib_base_name: str):
31
32
# Construct the paths to the possible shared library names
33
_base_path = pathlib.Path(__file__).parent.resolve()
34
+ _base_path_parent = pathlib.Path(__file__).parent.parent.resolve()
35
# Searching for the library in the current directory under the name "libllama" (default name
36
# for llamacpp) and "llama" (default name for this repo)
37
_lib_paths = [
38
_base_path / f"lib{lib_base_name}{lib_ext}",
39
+ _base_path_parent / f"lib{lib_base_name}{lib_ext}",
40
_base_path / f"{lib_base_name}{lib_ext}",
41
]
42
0 commit comments