Skip to content

Commit 918b4e1

Browse files
authored
fix: print proper unit "MB" when file downloading for LlamaCPP backend (#19778)
print proper unit "MB" when file downloading
1 parent 75c5b51 commit 918b4e1

File tree

1 file changed

+1
-0
lines changed
  • llama-index-integrations/llms/llama-index-llms-llama-cpp/llama_index/llms/llama_cpp

1 file changed

+1
-0
lines changed

llama-index-integrations/llms/llama-index-llms-llama-cpp/llama_index/llms/llama_cpp/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ def _download_url(self, model_url: str, model_path: str) -> None:
242242
for chunk in tqdm(
243243
r.iter_content(chunk_size=chunk_size),
244244
total=int(total_size / chunk_size),
245+
unit="MB",
245246
):
246247
file.write(chunk)
247248
completed = True

0 commit comments

Comments
 (0)