llama : use GGML_ABORT instead of throw (#29840)

Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
Adrien Gallouët
2026-10-02 10:44:44 +02:00
committed by GitHub
parent a8c9a4e7cc
commit 6805ae35df
+1 -1
View File
@@ -72,7 +72,7 @@ enum llama_load_mode llama_load_mode_from_str(const char * str) {
if (std::strcmp(str, "mlock") == 0) { return LLAMA_LOAD_MODE_MLOCK; }
if (std::strcmp(str, "mmap+mlock") == 0) { return LLAMA_LOAD_MODE_MMAP_MLOCK; }
if (std::strcmp(str, "dio") == 0) { return LLAMA_LOAD_MODE_DIRECT_IO; }
throw std::invalid_argument(std::string("unknown load mode: ") + str);
GGML_ABORT("unknown load mode: %s", str);
}
struct llama_sampler_chain_params llama_sampler_chain_default_params() {