Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add download count tracking for infinite you. #1335

Merged
merged 10 commits into from
Apr 8, 2025

Conversation

YuminJia
Copy link
Contributor

@YuminJia YuminJia commented Apr 2, 2025

No description provided.

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Just a comment about the download rule before merging

repoName: "InfiniteYou",
repoUrl: "https://github.com/bytedance/InfiniteYou",
filter: false,
countDownloads: `path_extension:"bin" OR 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.

Counting on all bin and safetensors files means that a user downloading the full repo will count as multiple downloads, which we want to avoid. Is it possible to decide of a single file that would be the reference for the download rule?

Choose a reason for hiding this comment

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

Hi @Wauplin , thanks for your comments! Our repo has two versions of our model, where downloading either of them should consider downloading of our model. If we want to reduce the multiple download counts, we can replace the path_extension:"bin" OR path_extension:"safetensors" with path_extension:"bin". Please let us know your suggestion. Thanks a lot! Here is our model repo structure: https://huggingface.co/ByteDance/InfiniteYou/tree/main

Copy link
Contributor

Choose a reason for hiding this comment

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

If there are two ways to download a model, I would suggest to count downloads on a specific file for each ways.

Copy link
Contributor

Choose a reason for hiding this comment

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

For instance, if user wants to download from safetensors files, we could count downloads based on infu_flux_v1.0/sim_stage1/InfuseNetModel/diffusion_pytorch_model-00001-of-00002.safetensors.

Or is it that the 2 .bin files are mandatory for either of the 2 ways (so either infu_flux_v1.0/aes_stage2/image_proj_model.bin or infu_flux_v1.0/sim_stage1/image_proj_model.bin must be downloaded to instantiate the model)? If that's the case, I would prefer to have both files explicitly named in the download count rule if that's fine with you. Let me know your thoughts!

Choose a reason for hiding this comment

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

@Wauplin Yes, image_proj_model.bin must be downloaded for either version of our models, and we only have two .bin files for the two versions of our model. Therefore, we used path_extension:"bin".

Choose a reason for hiding this comment

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

@Wauplin Could you please review it again and let us know your thoughts? Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

repoName: "InfiniteYou",
repoUrl: "https://github.com/bytedance/InfiniteYou",
filter: false,
countDownloads: `path_extension:"bin"`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
countDownloads: `path_extension:"bin"`,
countDownloads: `path:"infu_flux_v1.0/sim_stage1/image_proj_model.bin" OR path:"infu_flux_v1.0/aes_stage2/image_proj_model.bin"`,

I still prefer to be explicit on the file paths, even if there are only 2 .bin files. Otherwise looks good 👍

@Wauplin Wauplin merged commit 9ef2acb into huggingface:main Apr 8, 2025
4 checks passed
@Wauplin
Copy link
Contributor

Wauplin commented Apr 8, 2025

Merged! Expect 2-3 days before getting it live on the Hub 🤗

@EndlessSora
Copy link

Merged! Expect 2-3 days before getting it live on the Hub 🤗

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants