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

[Core] errors should be caught as soon as possible. #7203

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

sayakpaul
Copy link
Member

What does this PR do?

Moves forward the code responsible for catching the errors saving download time. The download time for large models can be pretty high sometimes depending on the network bandwidth.

Happy to also brainstorm a decorator but I don't think that's necessary because the code is fairly straightforward and short.

@sayakpaul sayakpaul requested a review from yiyixuxu March 4, 2024 05:44
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@yiyixuxu yiyixuxu left a comment

Choose a reason for hiding this comment

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

ohh make sense! thanks a lot!

@sayakpaul sayakpaul merged commit 577b8a2 into main Mar 5, 2024
17 checks passed
@sayakpaul sayakpaul deleted the catch-errors-from-pretrained branch March 5, 2024 03:27
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