summaryrefslogtreecommitdiff
path: root/gguf-py/gguf
diff options
context:
space:
mode:
authorKerfuffle <44031344+KerfuffleV2@users.noreply.github.com>2023-11-12 16:39:37 -0700
committerGitHub <noreply@github.com>2023-11-12 16:39:37 -0700
commit21fd874c8d2a14dea2d56724e4357c0824aee6a8 (patch)
tree808acd5342a0448c4ceadd1632f6224e04c587e2 /gguf-py/gguf
parent532dd74e38c29e16ea1cfc4e7eedb4f2fab3f3cd (diff)
gguf-py: gguf_writer: Use bytearray to build metadata (#4051)
* gguf-py: gguf_writer: Use BytesIO to build metadata * Use bytearray instead Bump gguf-py package version
Diffstat (limited to 'gguf-py/gguf')
-rw-r--r--gguf-py/gguf/gguf_writer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gguf-py/gguf/gguf_writer.py b/gguf-py/gguf/gguf_writer.py
index 75fb6976..c3b8c588 100644
--- a/gguf-py/gguf/gguf_writer.py
+++ b/gguf-py/gguf/gguf_writer.py
@@ -57,9 +57,9 @@ class GGUFWriter:
self.endianess = endianess
self.offset_tensor = 0
self.data_alignment = GGUF_DEFAULT_ALIGNMENT
- self.kv_data = b""
+ self.kv_data = bytearray()
self.kv_data_count = 0
- self.ti_data = b""
+ self.ti_data = bytearray()
self.ti_data_count = 0
self.use_temp_file = use_temp_file
self.temp_file = None