mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
pull method to get total progress info ? #44
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iorilu on GitHub (Mar 3, 2024).
I checked the pull progress example , it seems to return few progresss info , is it possible to get total progress info?
for example i need to make a ui progress bar to reflect the total download progress status
@mxyng commented on GitHub (Mar 4, 2024):
I'm not sure what you mean. The pull example uses streaming to receive progress updates. Each response returns the progress (current and total) in bytes for the current layer being downloaded or a status update.
@iorilu commented on GitHub (Mar 7, 2024):
i mean to get total model download progress info, not the progress of one file, i know it will download a few files for a model
@BrainSlugs83 commented on GitHub (Feb 7, 2025):
Yeah, for example, one model might contain 4 files (digests?), and the pull status tells you bytes x/y for each file (digest) as it goes-- but not which file (digest) that you're on. It just goes from 0 to 100%, over and over until it's done, and you don't know how many times it will plan to do that.
Maybe there's a way to pull the file count & sizes from the ollama website, but I don't know what that method is...