diff --git a/llama_cpp/llama_cpp.py b/llama_cpp/llama_cpp.py index d563d77bc..727195cf5 100644 --- a/llama_cpp/llama_cpp.py +++ b/llama_cpp/llama_cpp.py @@ -28,7 +28,7 @@ def _load_shared_library(lib_base_name: str): # for llamacpp) and "llama" (default name for this repo) _lib_paths: List[pathlib.Path] = [] # Determine the file extension based on the platform - if sys.platform.startswith("linux"): + if sys.platform.startswith("linux") or sys.platform.startswith("freebsd"): _lib_paths += [ _base_path / f"lib{lib_base_name}.so", ]