Skip to content

Commit 73d2aaa

Browse files
KerfuffleV2olexiyb
authored andcommitted
gguf-py: gguf_writer: Use bytearray to build metadata (ggml-org#4051)
* gguf-py: gguf_writer: Use BytesIO to build metadata * Use bytearray instead Bump gguf-py package version
1 parent a1fd99a commit 73d2aaa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: gguf-py/gguf/gguf_writer.py

+2-2
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

Diff for: gguf-py/pyproject.toml

+1-1
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)