-
Notifications
You must be signed in to change notification settings - Fork 758
hf-transfer
progress bar
#1792
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
hf-transfer
progress bar
#1792
Conversation
The documentation is not available anymore as the PR was closed or merged. |
This reverts commit 166d3ab.
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.
Thanks for integrating this @cbensimon! Clean PR and logic looks good to me :)
Just to be sure about the 100MB threshold before using hf_transfer
. Is it that you expect hf_transfer
to be slower than requests
on a 50MB file for example?
In addition to the code part, we should tweak a few parts in the documentation now that progress bars are supported. Would you mind updating them in the same PR?
- download.md It is tested and production-ready, but it lacks user-friendly features such as advanced error handling, resumable downloads and proxies.
- environment_variables.md Additionally,
hf_transfer
lacks several user-friendly features such as advanced error handling, progress bars during uploads, resumable downloads and proxies.
Last thing, when is it planned to make a new release of hf_transfer
? It would be nice to have it soon so that huggingface_hub
can use progress bars as expected.
Thanks in advance!
Co-authored-by: Lucain <lucainp@gmail.com>
As we now already open a request to get the |
Done. Let me know what you think |
cc @Narsil (I made some tests on real-world environments like Spaces and |
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.
Thanks for making the changes @cbensimon!
Co-authored-by: Lucain <lucainp@gmail.com>
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.
Top! Approved!
PR content
chunk_size
andmax_files
into shared constantshf-transfer
and regular downloaderhf-transfer
supports ithf-transfer
versions)hf-transfer
for file sizes > 10 x CHUNK_SIZE (~100MB)hf-transfer