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

@ -875,6 +875,10 @@ struct llama_model_quantize_params llama_model_quantize_default_params() {
return result;
}
int llama_max_devices() {
return LLAMA_MAX_DEVICES;
}
bool llama_mmap_supported() {
return llama_mmap::SUPPORTED;
}