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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix huggingface_hub TextGenerationError import #485

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Mar 26, 2024

Fix #484.

The bug was introduced by a breaking change in huggingface_hub==0.22.0. Sorry about that 馃槵 . This PR fixes it by import TextGenerationError from huggingface_hub.errors which is more future-proof.

cc @davanstrien who pinged me on this

@alvarobartt
Copy link
Member

Hi @Wauplin thanks for the fix! No need to say sorry 馃 Also we're almost done with our refactor (it's going to be huge), but I'll adapt this later on in the core-refactor branch, thanks again!

@Wauplin
Copy link
Contributor Author

Wauplin commented Mar 27, 2024

Didn't know about the refactor so I'll leave this PR to you :) Feel free to close, merge or cherry-pick the changes 馃

@alvarobartt alvarobartt merged commit aafd8fc into argilla-io:main Mar 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] InferenceEndpointsLLM breaks with the 0.22.1 release of the huggingface_hub library.
2 participants