Currently, the HuggingFace download count is not incremented when downloading models. HF counts the model downloads by counting the requests sent to the config.json file in the repository root (a HEAD request is enough). This PR sends a HEAD request to the config json, when the model source is our organization.
source: https://huggingface.co/docs/hub/models-download-stats
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update (improves or adds clarity to existing documentation)
Tested on
[x] iOS
[x] Android
Testing instructions
Screenshots
Related issues
Checklist
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
Description
Currently, the HuggingFace download count is not incremented when downloading models. HF counts the model downloads by counting the requests sent to the config.json file in the repository root (a HEAD request is enough). This PR sends a HEAD request to the config json, when the model source is our organization. source: https://huggingface.co/docs/hub/models-download-stats
Type of change
Tested on
Testing instructions
Screenshots
Related issues
Checklist
Additional notes