Skip to content

Commit 21fd874

Browse files
authored
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
1 parent 532dd74 commit 21fd874

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gguf-py/gguf/gguf_writer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ def __init__(
5757
self.endianess = endianess
5858
self.offset_tensor = 0
5959
self.data_alignment = GGUF_DEFAULT_ALIGNMENT
60-
self.kv_data = b""
60+
self.kv_data = bytearray()
6161
self.kv_data_count = 0
62-
self.ti_data = b""
62+
self.ti_data = bytearray()
6363
self.ti_data_count = 0
6464
self.use_temp_file = use_temp_file
6565
self.temp_file = None

gguf-py/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gguf"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
description = "Read and write ML models in GGUF for GGML"
55
authors = ["GGML <[email protected]>"]
66
packages = [

0 commit comments

Comments
 (0)