8000 Update llama_cpp.py with PR requests · coderonion/llama-cpp-python@a0758f0 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit a0758f0

Browse files
Update llama_cpp.py with PR requests
lib_base_name and load_shared_library to _lib_base_name and _load_shared_library
1 parent a40476e commit a0758f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llama_cpp/llama_cpp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pathlib
66

77
# Load the library
8-
def load_shared_library(lib_base_name):
8+
def _load_shared_library(lib_base_name):
99
# Determine the file extension based on the platform
1010
if sys.platform.startswith("linux"):
1111
lib_ext = ".so"
@@ -40,10 +40,10 @@ def load_shared_library(lib_base_name):
4040
raise FileNotFoundError(f"Shared library with base name '{lib_base_name}' not found")
4141

4242
# Specify the base name of the shared library to load
43-
lib_base_name = "llama"
43+
_lib_base_name = "llama"
4444

4545
# Load the library
46-
_lib = load_shared_library(lib_base_name)
46+
_lib = _load_shared_library(_lib_base_name)
4747

4848
# C types
4949
llama_context_p = c_void_p

0 commit comments

Comments
 (0)
0