Public Way to Pull Model Downloads Info
#1
by
Shayne
- opened
Is there an option in the API to pull the model downloads info, as you have done here? list_models() doesn't seem to give that specific metadata, as far as I can tell.
Thank you!
You need to use model_info on a given repo ID after fetching the models with list_models():
from huggingface_hub import model_info
model_info(info.modelId).downloads
gives you the downloads of the model in info. So iterating over the results of list_models with the code above can give you all the stats.