Skip to content

Commit a869764

Browse files
abetlenDon Mahurin
authored and
Don Mahurin
committed
Fix obscure Wndows DLL issue. Closes ggml-org#208
1 parent 85f9049 commit a869764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/llama_cpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _load_shared_library(lib_base_name: str):
5252
for _lib_path in _lib_paths:
5353
if _lib_path.exists():
5454
try:
55-
return ctypes.CDLL(str(_lib_path))
55+
return ctypes.CDLL(str(_lib_path), winmode=0)
5656
except Exception as e:
5757
raise RuntimeError(f"Failed to load shared library '{_lib_path}': {e}")
5858

0 commit comments

Comments
 (0)