I’d like to suggest a feature that would be incredibly helpful for model management: the ability to look up model files using their SHA256 hash.
Current limitation: When working with multiple models, I often have files stored locally with different names. Currently, I can’t easily check if a file I need to download is already present on my system under a different filename.
Feature request: Add an API method to query a model file’s URL using only its SHA256 hash. For example:
Without this feature, I could technically use web scraping to collect all the models, then query their SHA256 hashes and cache them locally. However, this would put a significant strain on Hugging Face’s infrastructure. Additionally, I’d need to set up regular checks to fetch newly uploaded models. While this approach is feasible, it’s far from ideal.
Yea. It’s an API that would be better to have. Other sites have it. I think it might be possible to achieve this by crawling something like entries related to LFS or Xet internally…
Processing that is high-load when done externally but low-load when done internally would be better for the site as a whole in the long run if it were implemented as an API.
That said, HF will need to create the Hub API first before the functions can be implemented, so it will likely require a significant amount of work.