1
0
Fork 0
mirror of https://github.com/p-e-w/heretic.git synced 2026-12-03 18:42:57 +07:00

[GH-ISSUE #450] Counting publicly available Heretic models and their downloads #206

Open
opened 2026-11-01 04:18:38 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @p-e-w on GitHub (Sep 14, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/450

As of September 14, 2026, there are 7,509 Heretic models with 64,904,090 total downloads and 14,438,920 downloads in the last 30 days on Hugging Face

You can calculate the current numbers by running this script:

from huggingface_hub import HfApi


def main():
    api = HfApi()

    count = 0
    total_downloads = 0
    total_downloads_last_30_days = 0

    tagged_models = api.list_models(
        filter="heretic",
        sort="downloads",
        expand=["downloads", "downloadsAllTime"],
    )

    tagged_model_ids = set()

    for model in tagged_models:
        count += 1
        total_downloads += model.downloads_all_time
        total_downloads_last_30_days += model.downloads
        tagged_model_ids.add(model.id)
        print(
            f"[TAGGED] https://huggingface.co/{model.id}: {model.downloads_all_time} downloads, {model.downloads} in the last 30 days"
        )

    named_models = api.list_models(
        search="heretic",
        sort="downloads",
        expand=["downloads", "downloadsAllTime"],
    )

    for model in named_models:
        if model.id in tagged_model_ids:
            continue
        count += 1
        total_downloads += model.downloads_all_time
        total_downloads_last_30_days += model.downloads
        print(
            f"[NAMED] https://huggingface.co/{model.id}: {model.downloads_all_time} downloads, {model.downloads} in the last 30 days"
        )

    print()
    print(
        f"{count} Heretic models with {total_downloads} total downloads, {total_downloads_last_30_days} in the last 30 days"
    )


if __name__ == "__main__":
    main()

Credit to darkc0de for making me aware that there are many Heretic models without tags, meaning that my previous count was missing a substantial number of models.

Originally created by @p-e-w on GitHub (Sep 14, 2026). Original GitHub issue: https://github.com/p-e-w/heretic/issues/450 ## As of September 14, 2026, there are 7,509 Heretic models with 64,904,090 total downloads and 14,438,920 downloads in the last 30 days on Hugging Face You can calculate the current numbers by running this script: ```python from huggingface_hub import HfApi def main(): api = HfApi() count = 0 total_downloads = 0 total_downloads_last_30_days = 0 tagged_models = api.list_models( filter="heretic", sort="downloads", expand=["downloads", "downloadsAllTime"], ) tagged_model_ids = set() for model in tagged_models: count += 1 total_downloads += model.downloads_all_time total_downloads_last_30_days += model.downloads tagged_model_ids.add(model.id) print( f"[TAGGED] https://huggingface.co/{model.id}: {model.downloads_all_time} downloads, {model.downloads} in the last 30 days" ) named_models = api.list_models( search="heretic", sort="downloads", expand=["downloads", "downloadsAllTime"], ) for model in named_models: if model.id in tagged_model_ids: continue count += 1 total_downloads += model.downloads_all_time total_downloads_last_30_days += model.downloads print( f"[NAMED] https://huggingface.co/{model.id}: {model.downloads_all_time} downloads, {model.downloads} in the last 30 days" ) print() print( f"{count} Heretic models with {total_downloads} total downloads, {total_downloads_last_30_days} in the last 30 days" ) if __name__ == "__main__": main() ``` Credit to [darkc0de](https://huggingface.co/darkc0de) for making me aware that there are many Heretic models without tags, meaning that my previous count was missing a substantial number of models.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
p-e-w/heretic#206
No description provided.