From 375003b458b5f44c179c70be5f5ffe17fd673b81 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Fri, 22 Dec 2023 11:15:07 +0800 Subject: [PATCH] always show reported arch --- model_adapter.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/model_adapter.cpp b/model_adapter.cpp index ec57d4c9c..509e9b212 100644 --- a/model_adapter.cpp +++ b/model_adapter.cpp @@ -274,13 +274,12 @@ void print_tok_vec(std::vector &embd) else if(modelarch=="falcon") { fileformat = FileFormat::GGUF_FALCON; //uses the same loader - printf("\nDetected GGUF FALCON format.\n"); - } - else - { - printf("\nERROR: Detected unimplemented GGUF Arch: %s\n",modelarch.c_str()); } + + printf("\nThe reported GGUF Arch is: %s\n",(modelarch==""?"unknown":modelarch.c_str())); + + if(modelarch!="" && fileformatmeta!=nullptr) { std::string fkey = modelarch+".context_length";