Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c804efe

Browse filesBrowse files
committed
Fix obscure Wndows DLL issue. Closes abetlen#208
1 parent ceec21f commit c804efe
Copy full SHA for c804efe

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎llama_cpp/llama_cpp.py

Copy file name to clipboardExpand all lines: llama_cpp/llama_cpp.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.