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 progressbar unload/merge #753

Merged
merged 5 commits into from
Aug 1, 2023
Merged

Add progressbar unload/merge #753

merged 5 commits into from
Aug 1, 2023

Conversation

BramVanroy
Copy link
Contributor

Adds an optional progressbar when merge_and_unloading a model to indicate to users that the code is not "hanging" but actually still doing something. The progress bar is enabled by default but can be disabled.

TQDM has been explicitly added to the requirements, although it is probably already installed as dependency of the other libraries like torch or transformers.

closes #667

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jul 26, 2023

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

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

Overall LGTM, thanks.

tqdm is indeed an indirect dependency via datasets.

As to the new option, I would personally prefer to have the default be False, as that is the current behavior and personally, I often find the tqdm outputs to be annoying.

Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

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

Thanks for this feature @BramVanroy ! Yes agreed with @BenjaminBossan let's maybe default the behaviour to match the previous one

BramVanroy and others added 2 commits July 27, 2023 14:11
Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com>
Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com>
Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

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

Thanks a lot !

Copy link
Contributor

@pacman100 pacman100 left a comment

Choose a reason for hiding this comment

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

Thank you @BramVanroy for adding this! 🤗

@younesbelkada younesbelkada merged commit bfb264a into huggingface:main Aug 1, 2023
@BramVanroy BramVanroy deleted the merge_unload_tqdm branch August 1, 2023 11:08
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.

Progress bar merge_and_unload
5 participants