Skip to content

Commit 01435da

Browse files
committed
Update llama.cpp
1 parent 28a1117 commit 01435da

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

llama_cpp/llama_cpp.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,15 @@ class llama_timings(Structure):
293293
]
294294

295295

296+
# LLAMA_API int llama_max_devices();
297+
def llama_max_devices() -> int:
298+
return _lib.llama_max_devices()
299+
300+
301+
_lib.llama_max_devices.argtypes = []
302+
_lib.llama_max_devices.restype = c_int
303+
304+
296305
# LLAMA_API struct llama_context_params llama_context_default_params();
297306
def llama_context_default_params() -> llama_context_params:
298307
return _lib.llama_context_default_params()

vendor/llama.cpp

0 commit comments

Comments
 (0)