[GH-ISSUE #4701] Quick model updates with ollama pull #64998

Closed
opened 2026-05-03 19:29:15 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @LaurentBonnaud on GitHub (May 29, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4701

Hi,
I would like to be able to update models that I have previously downloaded.
When I do this, ollama pull does 2 steps:

  1. It checks if the model is up-to-date and if not, it downloads the newest version
  2. It checks the sha256 digest

Unfortunately, step 2 is always performed, even when it is not needed, which is very slow (I have a lot of models).
Therefore, I propose the following behavior:

  • ollama pull should do step 1. and then step 2. only if the model has been updated
  • a new command ollama check could allow to check the sha256 digest when needed by the user.

Thanks.

Originally created by @LaurentBonnaud on GitHub (May 29, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4701 Hi, I would like to be able to update models that I have previously downloaded. When I do this, `ollama pull` does 2 steps: 1. It checks if the model is up-to-date and if not, it downloads the newest version 1. It checks the sha256 digest Unfortunately, step 2 is always performed, even when it is not needed, which is very slow (I have a lot of models). Therefore, I propose the following behavior: - `ollama pull` should do step 1. and then step 2. **only if** the model has been updated - a new command `ollama check` could allow to check the sha256 digest when needed by the user. Thanks.
GiteaMirror added the feature request label 2026-05-03 19:29:15 -05:00
Author
Owner

@bigsk1 commented on GitHub (May 29, 2024):

update all models use

ollama list | awk 'NR>1 {print $1}' | xargs -I {} sh -c 'echo "Updating model: {}"; ollama pull {}; echo "--"' && echo "All models updated."
<!-- gh-comment-id:2137129969 --> @bigsk1 commented on GitHub (May 29, 2024): update all models use ``` ollama list | awk 'NR>1 {print $1}' | xargs -I {} sh -c 'echo "Updating model: {}"; ollama pull {}; echo "--"' && echo "All models updated." ```
Author
Owner

@LaurentBonnaud commented on GitHub (May 29, 2024):

I have a similar script, but the problem remains the same: ollama checks all sha256 digests, which is very slow.

<!-- gh-comment-id:2137421465 --> @LaurentBonnaud commented on GitHub (May 29, 2024): I have a similar script, but the problem remains the same: ollama checks all sha256 digests, which is very slow.
Author
Owner

@bmizerany commented on GitHub (May 29, 2024):

Great minds. I too want this. I demoed the following PR internally last week. Please try it out and report back in the PR if you can. :)

https://github.com/ollama/ollama/pull/4712

<!-- gh-comment-id:2138359691 --> @bmizerany commented on GitHub (May 29, 2024): Great minds. I too want this. I demoed the following PR internally last week. Please try it out and report back in the PR if you can. :) https://github.com/ollama/ollama/pull/4712
Author
Owner

@pdevine commented on GitHub (Sep 12, 2024):

This got merged a while ago, so I'll go ahead and close this out.

<!-- gh-comment-id:2347405868 --> @pdevine commented on GitHub (Sep 12, 2024): This got merged a while ago, so I'll go ahead and close this out.
Author
Owner

@LaurentBonnaud commented on GitHub (Sep 13, 2024):

Thanks for the fix!

<!-- gh-comment-id:2348721748 --> @LaurentBonnaud commented on GitHub (Sep 13, 2024): Thanks for the fix!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#64998