mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-07 11:23:56 +01:00
gguf : write tensors one by one
This commit is contained in:
parent
c861e234f4
commit
8a76dd8a85
2
gguf.py
2
gguf.py
@ -175,8 +175,6 @@ class GGUFWriter:
|
|||||||
|
|
||||||
self.flush()
|
self.flush()
|
||||||
|
|
||||||
self.tensors.append(tensor)
|
|
||||||
|
|
||||||
def write_tensor(self, tensor: np.ndarray):
|
def write_tensor(self, tensor: np.ndarray):
|
||||||
pad = GGUFWriter.ggml_pad(self.fout.tell(), constants.GGUF_DEFAULT_ALIGNMENT) - self.fout.tell()
|
pad = GGUFWriter.ggml_pad(self.fout.tell(), constants.GGUF_DEFAULT_ALIGNMENT) - self.fout.tell()
|
||||||
if pad != 0:
|
if pad != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user