fix some gguf loras

This commit is contained in:
layerdiffusion
2024-08-17 01:15:37 -07:00
parent ab4b0d5b58
commit 8a04293430
4 changed files with 16 additions and 5 deletions

View File

@@ -64,6 +64,9 @@ def dequantize_tensor(tensor):
if tensor is None:
return None
if not hasattr(tensor, 'gguf_cls'):
return tensor
data = torch.tensor(tensor.data)
gguf_cls = tensor.gguf_cls
gguf_real_shape = tensor.gguf_real_shape