From 78e0d8d5c7de7f0a2b036e5528c7ac547365479a Mon Sep 17 00:00:00 2001 From: ngxson Date: Tue, 23 Jul 2024 20:58:59 +0200 Subject: [PATCH] typo --- examples/export-lora/export-lora.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/export-lora/export-lora.cpp b/examples/export-lora/export-lora.cpp index 7bf06463a..124ee167d 100644 --- a/examples/export-lora/export-lora.cpp +++ b/examples/export-lora/export-lora.cpp @@ -203,7 +203,7 @@ struct lora_merge_ctx { if (adapters[0]->tensors.size() != adapters[i]->tensors.size()) { throw std::runtime_error(err_no_subset_adapter); } - for (auto & it : adapters[0]->tensors) { + for (auto & it : adapters[i]->tensors) { if (adapters[0]->get_tensor(it.first) == nullptr) { throw std::runtime_error(err_no_subset_adapter); }