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