ollama / ollama-python

Ollama Python library
https://ollama.com
MIT License
2.71k stars 223 forks source link

pull method to get total progress info ? #81

Open iorilu opened 4 months ago

iorilu commented 4 months ago

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 4 months ago

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 3 months ago

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.

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