From d8f7064cb1dcd822c36ca4f0d4fb840f3cff3778 Mon Sep 17 00:00:00 2001 From: Francis Couture-Harpin Date: Sat, 2 Mar 2024 00:31:51 -0500 Subject: [PATCH] llama : remove redundant nullptr check in llm_arch_from_string Since LLM_ARCH_NAMES is a const map, no spurious elements with a NULL name are inserted anymore, so this check is dead code. --- llama.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llama.cpp b/llama.cpp index 28c035bb6..144d19bf7 100644 --- a/llama.cpp +++ b/llama.cpp @@ -810,9 +810,6 @@ static const std::map> LLM_TENSOR_NA static llm_arch llm_arch_from_string(const std::string & name) { for (const auto & kv : LLM_ARCH_NAMES) { // NOLINT - if (kv.second == nullptr) { - GGML_ASSERT(false && "missing architecture in LLM_ARCH_NAMES"); - } if (kv.second == name) { return kv.first; }