We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a1d90 commit 2b0d3f3Copy full SHA for 2b0d3f3
llama_cpp/llama_cpp.py
@@ -90,9 +90,7 @@ def _load_shared_library(lib_base_name: str):
90
91
# llama.h bindings
92
93
-GGML_USE_CUBLAS = hasattr(_lib, "ggml_init_cublas")
94
-GGML_CUDA_MAX_DEVICES = 16
95
-LLAMA_MAX_DEVICES = GGML_CUDA_MAX_DEVICES if GGML_USE_CUBLAS else 1
+LLAMA_MAX_DEVICES = _lib.llama_max_devices()
96
97
# define LLAMA_DEFAULT_SEED 0xFFFFFFFF
98
LLAMA_DEFAULT_SEED = 0xFFFFFFFF
0 commit comments