-
Notifications
You must be signed in to change notification settings - Fork 692
add download count tracking for infinite you. #1335
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
Merged
Wauplin
merged 10 commits into
huggingface:main
from
YuminJia:yumin/add-download-counter
Apr 8, 2025
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
06da555
add download count tracking for infinite you.
YuminJia 5ca8696
Merge branch 'main' into yumin/add-download-counter
YuminJia 7da4820
update label.
YuminJia 022bb8a
udpate order.
YuminJia 5949381
Merge branch 'main' into yumin/add-download-counter
YuminJia 4174a33
only track bin files.
YuminJia 9e63084
Merge branch 'yumin/add-download-counter' of github.com:YuminJia/hugg…
YuminJia 891a74a
Merge branch 'main' into yumin/add-download-counter
YuminJia 14d2263
Merge branch 'main' into yumin/add-download-counter
YuminJia bd113fb
Update packages/tasks/src/model-libraries.ts
Wauplin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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"withpath_extension:"bin". Please let us know your suggestion. Thanks a lot! Here is our model repo structure: https://huggingface.co/ByteDance/InfiniteYou/tree/mainThere was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.binorinfu_flux_v1.0/sim_stage1/image_proj_model.binmust 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!There was a problem hiding this comment.
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.binmust be downloaded for either version of our models, and we only have two.binfiles for the two versions of our model. Therefore, we usedpath_extension:"bin".There was a problem hiding this comment.
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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1335 (comment)