We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97820aa commit c963908Copy full SHA for c963908
src/llama.cpp
@@ -76,12 +76,14 @@ static std::vector<llama_device_memory_data> llama_get_device_memory_data(
76
77
llama_model * model = llama_model_load_from_file(path_model, mparams_copy);
78
if (model == nullptr) {
79
+ llama_log_set(ud.original_logger.callback, ud.original_logger.user_data);
80
throw std::runtime_error("failed to load model");
81
}
82
83
llama_context * ctx = llama_init_from_model(model, *cparams);
84
if (ctx == nullptr) {
85
llama_model_free(model);
86
87
throw std::runtime_error("failed to create llama_context from model");
88
89
0 commit comments