push more fixes

This commit is contained in:
younesbelkada
2025-07-03 15:05:01 +04:00
parent 991de6cbe4
commit f897efdaf6
9 changed files with 504 additions and 10 deletions

View File

@@ -2220,14 +2220,14 @@ llama_context * llama_init_from_model(
return nullptr;
}
try {
auto * ctx = new llama_context(*model, params);
return ctx;
} catch (const std::exception & err) {
LLAMA_LOG_ERROR("%s: failed to initialize the context: %s\n", __func__, err.what());
}
// try {
auto * ctx = new llama_context(*model, params);
return ctx;
// } catch (const std::exception & err) {
// LLAMA_LOG_ERROR("%s: failed to initialize the context: %s\n", __func__, err.what());
// }
return nullptr;
// return nullptr;
}
// deprecated