From 28ffb6c13df58345ecfc6b47ff6dc8af446e0fbd Mon Sep 17 00:00:00 2001 From: leejet Date: Mon, 17 Nov 2025 22:56:07 +0800 Subject: [PATCH] fix: resolve issue with concat multiple LoRA output diffs at runtime (#985) --- lora.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lora.hpp b/lora.hpp index daabd4a..b847f04 100644 --- a/lora.hpp +++ b/lora.hpp @@ -633,7 +633,7 @@ struct LoraModel : public GGMLRunner { if (out_diff == nullptr) { out_diff = curr_out_diff; } else { - out_diff = ggml_concat(ctx, out_diff, curr_out_diff, ggml_n_dims(out_diff) - 1); + out_diff = ggml_concat(ctx, out_diff, curr_out_diff, 0); } index++;