diff --git a/gguf.py b/gguf.py index 25d99ae93..ac376606f 100644 --- a/gguf.py +++ b/gguf.py @@ -122,11 +122,12 @@ class GGUFWriter: self.write_key(key) self.write_val(val, GGUFValueType.ARRAY) - def write_val(self: str, val: Any, vtype: GGUFValueType = None): + def write_val(self: str, val: Any, vtype: GGUFValueType = None, write_vtype: bool = True): if vtype is None: vtype = GGUFValueType.get_type(val) - self.fout.write(struct.pack("