diff --git a/gguf.py b/gguf.py index 5eb21ee05..0854418a6 100644 --- a/gguf.py +++ b/gguf.py @@ -179,20 +179,20 @@ class GGUFWriter: def ggml_pad(x: int, n: int) -> int: return ((x + n - 1) // n) * n - def add_tensor_info(self, name: str, tensor: np.ndarray): + def add_tensor_info(self, name: str, tensor_shape: np.ndarray, tensor_dtype: np.dtype, tensor_nbytes: int): encoded_name = name.encode("utf8") self.ti_data += struct.pack("