Commit 9d7d50498 for llama.cpp
commit 9d7d5049804be03fce6575cc9f49c058b3c48788
Author: Chanho Lee <chanholxx@gmail.com>
Date: Tue Oct 13 17:29:09 2026 +0900
convert : fix LoRA conversion with --outtype auto (#30433)
* convert : fix automatic LoRA output type
* convert : remove LoRA test and CI changes
diff --git a/convert_lora_to_gguf.py b/convert_lora_to_gguf.py
index 47c09af53..f9adecbb1 100755
--- a/convert_lora_to_gguf.py
+++ b/convert_lora_to_gguf.py
@@ -127,6 +127,9 @@ class LoraTorchTensor:
assert dim is None
return self.shape
+ def dim(self) -> int:
+ return len(self.shape)
+
def contiguous(self) -> LoraTorchTensor:
return LoraTorchTensor(
self._lora_A.contiguous(),