From 3289eb0cb38fd3723e3e783c85e2893a722e464d Mon Sep 17 00:00:00 2001 From: slaren Date: Sat, 16 Dec 2023 15:40:39 +0100 Subject: [PATCH] lora : allow 1d tensors --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index b9c647b67..cb2aa15fe 100644 --- a/llama.cpp +++ b/llama.cpp @@ -6372,7 +6372,7 @@ static int llama_apply_lora_from_file_internal( fin.read_raw(&name_len, sizeof(name_len)); fin.read_raw(&ftype, sizeof(ftype)); - if (n_dims != 2) { + if (n_dims != 1 && n_dims != 2) { LLAMA_LOG_ERROR("%s: unsupported tensor dimension %d\n", __func__, n_dims); return 1; }