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

Fix local_dir on hf_hub_download edge case #1919

Merged
merged 2 commits into from
Dec 19, 2023

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Dec 18, 2023

Fix #1909 (cc @Jone20231102).

Returning pointer_path early after waiting for lock doesn't respect local_dir. This PR fixes it.

@Wauplin Wauplin requested a review from LysandreJik December 18, 2023 10:09
@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.

@Wauplin Wauplin added the bug Something isn't working label Dec 18, 2023
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@Wauplin
Copy link
Contributor Author

Wauplin commented Dec 19, 2023

Thanks @LysandreJik!

@Wauplin Wauplin merged commit d132d7a into main Dec 19, 2023
16 checks passed
@Wauplin Wauplin deleted the 1909-fix-to-local-dir-on-edge-cases branch December 19, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hf_hub_download() not checking the local_dir and just return pointer_path
3 participants