Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/tasks/src/model-libraries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
snippets: snippets.vibevoice,
filter: false,
},
videox_fun: {
prettyLabel: "VideoX Fun",
repoName: "VideoX Fun",
repoUrl: "https://github.com/aigc-apps/VideoX-Fun",
filter: false,
countDownloads: `path_extension:"safetensors"`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rule means that downloading any safetensors files from the repo will count as a download. This can be detrimental if multiple safetensors files are present in the repo as they would double-count them.

Looking at https://huggingface.co/alibaba-pai/CogVideoX-Fun-V1.5-5b-InP, it seems there are a few json config files in the repo. Would it be possible to count downloads on a specific one so we are sure we never double count?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, since videox-fun may contain many models—some with numerous files and others with only a few—how should I configure it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have more examples of repos so I can have a look? Is there any pattern in the repos or not? How does VideoX Fun knows which files to load or not?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some libraries follow a format like that of Diffusers—similar to the one you provided—while others contain only a single .safetensors file.

https://huggingface.co/alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I've reviewed most repos in https://huggingface.co/alibaba-pai/models?search=fun and I think it's fine to keep path_extension:"safetensors" as it is done now 👍

},
"wan2.2": {
prettyLabel: "Wan2.2",
repoName: "Wan2.2",
Expand Down