Clarification on requirements for download count on model page
Greetings!I noticed that the “downloads last month” metric isn’t always available on the model page. Is there any special requirements for downloads to be counted?As an example,cafeai/cafe_aesthetichas a download count, whilecafeai/wd14-vaedoes not. The only notable difference I can see is the later not having aconfig.jsonfile.As for my own models, I’m not even sure what aconfig.jsonfile would look like for a custom architecture. I could probably make up a name and manually fill outtorch_dtype, etc but that seems silly.
2023-11-17T08:53:47Z
Hi there! Each repo corresponds to different libraries, so the way downloads are configured for each is different. For the first one, it’s atransformersrepo and downloads ofconfig.jsoncount as downloads. For the second, it’s adiffusersrepo, and downloads ofmodel_index.jsonare counted as downloads.
2023-11-17T11:07:48Z
I think I’m starting to understand. So the download count only takes into account how many times the config files were downloaded, not the individual model files. In hindsight it makes sense since multi-part models would count as multiple downloads otherwise.So in my case, for a custom model which doesn’t use any of the core libraries (e.g. just callsREDACTED_TOKEN_download), I’d have to add my ownconfig.jsonand download it alongside the model if I really wanted to get a download count.Thanks for the clarification.