fix: avoid crash when the lora file is not found using immediately mode (#1022)

This commit is contained in:
leejet 2025-11-30 12:19:37 +08:00 committed by GitHub
parent bc80225336
commit 20eb674100
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -991,6 +991,9 @@ public:
int64_t t0 = ggml_time_ms();
auto lora = load_lora_model_from_file(kv.first, kv.second, backend);
if (!lora || lora->lora_tensors.empty()) {
continue;
}
lora->apply(tensors, version, n_threads);
lora->free_params_buffer();