From bc3eaf262e854e049e86578338b7c7d60321969c Mon Sep 17 00:00:00 2001 From: klosax <131523366+klosax@users.noreply.github.com> Date: Sat, 26 Aug 2023 21:29:36 +0200 Subject: [PATCH] gguf.py : string lengths uint32_t --- gguf-py/gguf/gguf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gguf-py/gguf/gguf.py b/gguf-py/gguf/gguf.py index 326fe19ed..2600cb2e4 100644 --- a/gguf-py/gguf/gguf.py +++ b/gguf-py/gguf/gguf.py @@ -509,7 +509,7 @@ class GGUFWriter: self.kv_data += struct.pack("?", val) elif vtype == GGUFValueType.STRING: encoded_val = val.encode("utf8") if isinstance(val, str) else val - self.kv_data += struct.pack("