From: kdkd Date: Sat, 11 Jul 2026 18:03:24 +0000 (-0500) Subject: Fix conditional to display 'LLAMA_SPLIT_MODE_TENSOR not implemented for architecture... X-Git-Tag: upstream/0.0.10438~462 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=e3546c7948e3af463d0b401e6421d5a4c2faf565;p=pkg%2Fggml%2Fsources%2Fllama.cpp Fix conditional to display 'LLAMA_SPLIT_MODE_TENSOR not implemented for architecture' message (#24926) --- diff --git a/src/llama-model.cpp b/src/llama-model.cpp index 7dea38c87..d87481381 100644 --- a/src/llama-model.cpp +++ b/src/llama-model.cpp @@ -313,8 +313,7 @@ llama_model * llama_model_create(llm_arch arch, const llama_model_params & param if (model != nullptr) { model->arch = arch; - auto & devices = model->devices; - if (!devices.empty() && devices[0].is_meta && !llm_arch_supports_sm_tensor(arch)) { + if (params.split_mode == LLAMA_SPLIT_MODE_TENSOR && !llm_arch_supports_sm_tensor(arch)) { throw std::runtime_error(std::string("LLAMA_SPLIT_MODE_TENSOR not implemented for architecture '") + llm_arch_name(arch) + "'"); } }