From 329571131d62d64a4f49e1acbef49ae02544fdcd Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Wed, 21 Jan 2026 11:34:11 -0300 Subject: [PATCH] chore: clarify warning about missing model files (#1219) --- model.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/model.cpp b/model.cpp index 7591490..253dd25 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; } }