[GH-ISSUE #13080] How to compute hash for model download verification ? #8658

Closed
opened 2026-04-12 21:25:09 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @FrouxBY on GitHub (Nov 13, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/13080

Hello,

Using Ollama to pull the models, there is no way to be sure that the weights downloaded are actually the one advertised on the Ollama website,
There seems to be hash that goes with every checkpoint, but there are no instruction on how to compute locally this hash to see wether it match the one provided on ollama.com;

Additionnaly this could ensure the model integrity on my side, in case of malicious activity,

Is there a way to ensure the integrity of the weights ?

Thanks for your help

Originally created by @FrouxBY on GitHub (Nov 13, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/13080 Hello, Using Ollama to pull the models, there is no way to be sure that the weights downloaded are actually the one advertised on the Ollama website, There seems to be hash that goes with every checkpoint, but there are no instruction on how to compute locally this hash to see wether it match the one provided on ollama.com; Additionnaly this could ensure the model integrity on my side, in case of malicious activity, Is there a way to ensure the integrity of the weights ? Thanks for your help
Author
Owner

@rick-github commented on GitHub (Nov 13, 2025):

https://sha256sum.com/

The filename of the blob is the SHA256 of the contents. You can recompute the hash to verify the contents are correct, and then compare the hash to the value in the model card in the ollama library to verify it's the same file.

<!-- gh-comment-id:3528785941 --> @rick-github commented on GitHub (Nov 13, 2025): https://sha256sum.com/ The filename of the blob is the SHA256 of the contents. You can recompute the hash to verify the contents are correct, and then compare the hash to the value in the model card in the ollama library to verify it's the same file.
Author
Owner

@FrouxBY commented on GitHub (Nov 17, 2025):

Thank you,
I was missing that the hash on the website is the hash of the manifest file for the model,

Thanks for your help:)

<!-- gh-comment-id:3540730006 --> @FrouxBY commented on GitHub (Nov 17, 2025): Thank you, I was missing that the hash on the website is the hash of the manifest file for the model, Thanks for your help:)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#8658