From 6805ae35dfbd8fa54023c564f2f4131506c2e0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Fri, 2 Oct 2026 10:44:44 +0200 Subject: [PATCH] llama : use GGML_ABORT instead of throw (#29840) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama.cpp b/src/llama.cpp index e97272c889..9beb14841f 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -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() {