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 support for progress bars in hf_transfer uploads #1804

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Nov 6, 2023

Following hf_transfer update (see huggingface/hf_transfer#18) and related to #1792 (progress bars while downloading).

Progress bars are now enabled in hf_transfer. This PR add support for it when uploading files. Implementation is still backward compatible with previous versions.

Kudos to @cbensimon for the Rust implementation.

@Wauplin Wauplin requested review from McPatate and cbensimon November 6, 2023 12:54
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 6, 2023

The documentation is not available anymore as the PR was closed or merged.

Comment on lines 416 to 417
if not supports_callback:
progress.update(total)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe that this could be done outside of the try block ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yes, good catch!

@Wauplin Wauplin merged commit 17be1c5 into main Nov 6, 2023
9 of 15 checks passed
@Wauplin Wauplin deleted the support-tqdm-hf-transfer-upload branch November 6, 2023 13:44
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

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