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

Feature Request: Silent mode #22

Closed
nylocx opened this issue Jan 12, 2024 · 3 comments
Closed

Feature Request: Silent mode #22

nylocx opened this issue Jan 12, 2024 · 3 comments

Comments

@nylocx
Copy link

nylocx commented Jan 12, 2024

I'm using hfdownloader in a docker container and I really would like to have to option to slience the progress to only have one "line" per file. Otherwise you will quickly see something like "buildx output clipped 200KiB/s reached" as every update to the progress bar is written to the build log.

something like --progress=[interactive,static,disabled] might be good with static only giving an output once a download starts and once it finishes.

bodaay added a commit that referenced this issue Mar 7, 2024
Added Silent Mode as temperorary solution to progress bar printing and issue #22
Bumped Version to 1.3.3
@bodaay
Copy link
Owner

bodaay commented Mar 7, 2024

This has been implemented with version 1.3.4, you can use -q flag
it will only disable progress bar printing, but will print "starting and finished"

@jtabox
Copy link

jtabox commented Jun 2, 2024

Out of curiosity, is it difficult instead of outputting hundreds of terminal lines per second to output the speed/percentage in the same line? I'm using the -q option at this point since otherwise the terminal history buffer fills in completely in seconds, but it would be nice if I could see the speed or some progress indicator.
I understand if it's difficult or not worth spending energy on though, mostly curious.

@gregfurman
Copy link

Hey! Any chance we can extend silent mode to also suppress printing to stdout/stderr? I'm using HuggingFaceModelDownloader as a package. Alternatively, perhaps rather use a logger?

So the below should not be output when downloading a model:

fmt.Printf("\n%s", infoColor("Checking SHA256 Hash for LFS file: ", jsonFilesList[i].AppendedPath))

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

No branches or pull requests

4 participants