gguf : write tensors one by one

This commit is contained in:
M. Yusuf Sarıgöz 2023-07-29 13:17:28 +03:00
parent c861e234f4
commit 8a76dd8a85

View File

@ -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: