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

Use huggingface_hub.file_exists instead of custom helper #1145

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Nov 17, 2023

Hey there 👋 Small PR to use the "official" file_exists added to huggingface_hub in release 0.17.0 (latest version been 0.19.4) instead of the custom helper hub_file_exists defined in ./utils/hub_utils.py. I'm trying to do some harmonization across repos and only found this piece to update in peft :)

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 17, 2023

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

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.

Awesome, thanks a lot for the clean up ! Can you just run make style && make quality then we can merge!

@Wauplin
Copy link
Contributor Author

Wauplin commented Nov 17, 2023

Oups yes of course. I thought it would be fine given the small change but still got the chance to make a mistake 😄
(at least it was a good reason to install a peft venv on my laptop :) )

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.

Very nice, again thank you very much!

@Wauplin Wauplin merged commit f1ecfa6 into main Nov 17, 2023
14 checks passed
@younesbelkada younesbelkada deleted the remove-hub-utils-in-favor-of-official-helper branch November 17, 2023 14:53
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