Update gguf-py/gguf/gguf_writer.py

Co-authored-by: compilade <git@compilade.net>
This commit is contained in:
Christian Zhou-Zheng 2024-06-09 17:08:11 -04:00 committed by GitHub
parent 0417104397
commit 70a6bc91cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -398,7 +398,7 @@ class GGUFWriter:
if self.fout is not None:
for fout in self.fout:
fout.close()
self.fout = []
self.fout = None
def add_architecture(self) -> None:
self.add_string(Keys.General.ARCHITECTURE, self.arch)