From 8a76dd8a85bf2fd5c0c727c7915c923973d13564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Yusuf=20Sar=C4=B1g=C3=B6z?= Date: Sat, 29 Jul 2023 13:17:28 +0300 Subject: [PATCH] gguf : write tensors one by one --- gguf.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gguf.py b/gguf.py index 1888b6c2d..cd727f3ea 100644 --- a/gguf.py +++ b/gguf.py @@ -175,8 +175,6 @@ class GGUFWriter: self.flush() - self.tensors.append(tensor) - def write_tensor(self, tensor: np.ndarray): pad = GGUFWriter.ggml_pad(self.fout.tell(), constants.GGUF_DEFAULT_ALIGNMENT) - self.fout.tell() if pad != 0: