llama : extend API to get max devices at runtime (#2253)

This commit is contained in:
Rinne 2023-07-19 15:06:40 +08:00 committed by GitHub
parent 45a1b07e9b
commit 294f424554
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -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();