Update gguf-py/gguf/gguf_writer.py
Co-authored-by: compilade <git@compilade.net>
This commit is contained in:
parent
7eea552db8
commit
99f9a24805
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ class GGUFWriter:
|
|||
shard_bar = tqdm(desc=f"Shard (1/{len(self.fout)})", total=total_bytes, unit="byte", unit_scale=True)
|
||||
|
||||
for i, (fout, tensors) in enumerate(zip(self.fout, self.tensors)):
|
||||
if shard_bar and len(self.fout) > 1:
|
||||
if shard_bar is not None:
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue