Update gguf-py/gguf/gguf_writer.py
Co-authored-by: compilade <git@compilade.net>
This commit is contained in:
parent
c1b1a29266
commit
4550826871
1 changed files with 1 additions and 2 deletions
|
@ -379,8 +379,7 @@ class GGUFWriter:
|
|||
shard_bar.set_description(f"Shard ({i + 1}/{len(self.fout)})")
|
||||
total = sum(ti.nbytes for ti in tensors.values())
|
||||
# bar behaves weirdly when total is 0
|
||||
if total > 0:
|
||||
shard_bar.reset(total=total)
|
||||
shard_bar.reset(total=(total if total > 0 else None))
|
||||
|
||||
# relying on the fact that Python dicts preserve insertion order (since 3.7)
|
||||
for ti in tensors.values():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue