Skip to content

Commit 5c5a95b

Browse files
authored
gguf.py : dont add empty strings
1 parent a7d226f commit 5c5a95b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gguf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def add_bool(self, key: str, val: bool):
114114
self.add_val(val, GGUFValueType.BOOL)
115115

116116
def add_string(self, key: str, val: str):
117+
if len(val) == 0: return
117118
self.add_key(key)
118119
self.add_val(val, GGUFValueType.STRING)
119120

0 commit comments

Comments
 (0)