From f9ceaefa8b8a0846ea682f7a8cd99f093a99bb6a Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Tue, 20 Jan 2026 23:01:13 -0300 Subject: [PATCH] chore: clarify warning about missing model files --- model.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/model.cpp b/model.cpp index 75914900e..253dd25cd 100644 --- a/model.cpp +++ b/model.cpp @@ -376,7 +376,11 @@ bool ModelLoader::init_from_file(const std::string& file_path, const std::string LOG_INFO("load %s using checkpoint format", file_path.c_str()); return init_from_ckpt_file(file_path, prefix); } else { - LOG_WARN("unknown format %s", file_path.c_str()); + if (file_exists(file_path)) { + LOG_WARN("unknown format %s", file_path.c_str()); + } else { + LOG_WARN("file %s not found", file_path.c_str()); + } return false; } }