Allow local llama library usage
This commit is contained in:
parent
6de2f24aca
commit
e3ea354547
1 changed files with 3 additions and 0 deletions
|
@ -18,9 +18,12 @@ def _load_shared_library(lib_base_name):
|
||||||
|
|
||||||
# Construct the paths to the possible shared library names
|
# Construct the paths to the possible shared library names
|
||||||
_base_path = pathlib.Path(__file__).parent.resolve()
|
_base_path = pathlib.Path(__file__).parent.resolve()
|
||||||
|
_local_path = pathlib.Path.cwd()
|
||||||
# Searching for the library in the current directory under the name "libllama" (default name
|
# Searching for the library in the current directory under the name "libllama" (default name
|
||||||
# for llamacpp) and "llama" (default name for this repo)
|
# for llamacpp) and "llama" (default name for this repo)
|
||||||
_lib_paths = [
|
_lib_paths = [
|
||||||
|
_local_path / f"./lib{lib_base_name}{lib_ext}",
|
||||||
|
_local_path / f"./{lib_base_name}{lib_ext}",
|
||||||
_base_path / f"lib{lib_base_name}{lib_ext}",
|
_base_path / f"lib{lib_base_name}{lib_ext}",
|
||||||
_base_path / f"{lib_base_name}{lib_ext}"
|
_base_path / f"{lib_base_name}{lib_ext}"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue