Count modular_model_index.json downloads for diffusers repos - #2687
Merged
Conversation
Mirror the counting query change from huggingface-internal/moon-landing#19441 in the docs snippet. Modular pipelines (e.g. MiniMaxAI/MiniMax-H3, krea/krea-realtime-video, LTX) load modular_model_index.json at the repo root instead of model_index.json, so the diffusers filter now lists it as a counted file.
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirrors the counting-query change from huggingface-internal/moon-landing#19441 in the docs snippet.
Changes
Adds
modular_model_index.jsonto theshouldclauses of the diffusers filter snippet indocs/hub/models-download-stats.md, matching the internal codebase. Modular pipelines (e.g.MiniMaxAI/MiniMax-H3,krea/krea-realtime-video, LTX) loadmodular_model_index.jsonat the repo root instead ofmodel_index.json; the filter now lists it as a counted file.Exact
termmatch, root-level only — consistent with the existingmodel_index.jsonclause.Note
Authored by Claude Code acting for @Pierrci. Linked: huggingface-internal/moon-landing#19438, huggingface-internal/moon-landing#19441.
Note
Low Risk
Documentation-only change to an example filter snippet; no production code or download logic is modified in this repo.
Overview
Updates the documented diffusers download-counting filter in
models-download-stats.mdso modular pipeline repos are counted the same way as classic diffusers loads.Adds a root-level
termmatch formodular_model_index.jsonalongsidemodel_index.json, with a short comment that modular pipelines use that file instead. This aligns the public docs with the internal counting query (moon-landing#19441).Reviewed by Cursor Bugbot for commit 070c9d5. Bugbot is set up for automated code reviews on this repo. Configure here.