chore: clarify warning about missing model files (#1219)

This commit is contained in:
Wagner Bruna 2026-01-21 11:34:11 -03:00 committed by GitHub
parent a48b4a3ade
commit 329571131d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}