llama : extend API to get max devices at runtime (#2253)
This commit is contained in:
parent
45a1b07e9b
commit
294f424554
2 changed files with 6 additions and 0 deletions
2
llama.h
2
llama.h
|
@ -153,6 +153,8 @@ extern "C" {
|
|||
int32_t n_eval;
|
||||
};
|
||||
|
||||
LLAMA_API int llama_max_devices();
|
||||
|
||||
LLAMA_API struct llama_context_params llama_context_default_params();
|
||||
LLAMA_API struct llama_model_quantize_params llama_model_quantize_default_params();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue