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(),