From: Gilad S. Date: Wed, 6 May 2026 16:51:21 +0000 (-0500) Subject: model : don't crash on unsupported architecture (#22742) X-Git-Tag: upstream/0.0.10438~1390 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5207d120eac2393fdad6328b44dbcbfc5dea20e4;p=pkg%2Fggml%2Fsources%2Fllama.cpp model : don't crash on unsupported architecture (#22742) * model: don't crash on unsupported architecture * Update src/llama-model.cpp Co-authored-by: Sigbjørn Skjæret --------- Co-authored-by: Sigbjørn Skjæret --- diff --git a/src/llama-model.cpp b/src/llama-model.cpp index 9a5802e32..67d648d3b 100644 --- a/src/llama-model.cpp +++ b/src/llama-model.cpp @@ -285,7 +285,7 @@ static llama_model * llama_model_mapping(llm_arch arch, const llama_model_params case LLM_ARCH_STEP35: return new llama_model_step35(params); default: - GGML_ABORT("unimplemented model class"); + throw std::runtime_error(std::string("unsupported model architecture: '") + llm_arch_name(arch) + "'"); } }