set llama_max_devices using library function
This commit is contained in:
parent
d9a1d90fd7
commit
2b0d3f36fa
1 changed files with 1 additions and 3 deletions
|
@ -90,9 +90,7 @@ c_size_t_p = POINTER(c_size_t)
|
||||||
|
|
||||||
# llama.h bindings
|
# llama.h bindings
|
||||||
|
|
||||||
GGML_USE_CUBLAS = hasattr(_lib, "ggml_init_cublas")
|
LLAMA_MAX_DEVICES = _lib.llama_max_devices()
|
||||||
GGML_CUDA_MAX_DEVICES = 16
|
|
||||||
LLAMA_MAX_DEVICES = GGML_CUDA_MAX_DEVICES if GGML_USE_CUBLAS else 1
|
|
||||||
|
|
||||||
# define LLAMA_DEFAULT_SEED 0xFFFFFFFF
|
# define LLAMA_DEFAULT_SEED 0xFFFFFFFF
|
||||||
LLAMA_DEFAULT_SEED = 0xFFFFFFFF
|
LLAMA_DEFAULT_SEED = 0xFFFFFFFF
|
||||||
|
|
Loading…
Reference in a new issue