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 <sigbjorn.skjaeret@scala.com>

---------

Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com>
This commit is contained in:
Gilad S.
2026-05-06 11:51:21 -05:00
committed by GitHub
parent a0101225bc
commit 5207d120ea

View File

@@ -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) + "'");
}
}