Skip to content

feat: upload progress bar#410

Open
drbh wants to merge 3 commits intomainfrom
upload-progress-bar
Open

feat: upload progress bar#410
drbh wants to merge 3 commits intomainfrom
upload-progress-bar

Conversation

@drbh
Copy link
Copy Markdown
Collaborator

@drbh drbh commented Mar 27, 2026

This PR adds a progress bar to uploads for both the lfs and non lfs file uploads

note: this PR is dependent on huggingface/huggingface_hub_rust#9 and needs to bump the commit hash after that PR is merged for this to work

progressexample.mp4

sayakpaul
sayakpaul previously approved these changes Mar 27, 2026
Copy link
Copy Markdown
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Nice. Should we also let users configure if they want to supress progress bars entirely?

@@ -16,6 +16,7 @@ clap_complete = "4"
eyre = "0.6.12"
git2 = "0.20"
huggingface-hub = { git = "https://github.com/huggingface/huggingface_hub_rust.git", rev = "8cbc662035e04d4be8e829316272893e980f5926", package = "huggingface-hub", features = ["blocking", "xet"] }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess this needs to be updated once huggingface/huggingface_hub_rust#9 is in?

@drbh
Copy link
Copy Markdown
Collaborator Author

drbh commented Mar 27, 2026

Nice. Should we also let users configure if they want to supress progress bars entirely?

yep, the new --quiet flag suppresses the progress bar

quiet: bool,

@drbh
Copy link
Copy Markdown
Collaborator Author

drbh commented Mar 27, 2026

Note: i've pinned the specific branch since the upstream PR may be refactored before merge. I think its low risk to pin and merge since the library has all of the functionality we intend on using, and once refactors are complete I'll open a PR to resolve any changes

danieldk
danieldk previously approved these changes Mar 27, 2026
Copy link
Copy Markdown
Member

@danieldk danieldk left a comment

Choose a reason for hiding this comment

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

Noice!!!

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