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

check_disk_space fails when the target directory does not exist #1690

Closed
carmocca opened this issue Sep 23, 2023 · 4 comments
Closed

check_disk_space fails when the target directory does not exist #1690

carmocca opened this issue Sep 23, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@carmocca
Copy link

Describe the bug

See: llm-efficiency-challenge/neurips_llm_efficiency_challenge#26, Lightning-AI/litgpt#537 and llm-efficiency-challenge/neurips_llm_efficiency_challenge#26

This was implemented in the latest release, particularly: https://github.com/huggingface/huggingface_hub/pull/1590/files#diff-765507f4602931b08aa20d0177611d5da7d5c7805882b0a79c81b5ed72c9472aR975

cc: @martinbrose as the PR author

Reproduction

Sorry, I haven't created a repro script, but it should be quite simple to reproduce. If you have trouble with it, I could try it myself.

Logs

See linked issues

System info

https://github.com/huggingface/huggingface_hub/releases/tag/v0.17.0
@martinbrose
Copy link
Contributor

Thanks @carmocca for raising this. I'll have a look in the next couple of days.

@martinbrose
Copy link
Contributor

@Wauplin, my PR might solve this.

Not sure if it introduces additional problems with blob_path for example?

@Wauplin
Copy link
Contributor

Wauplin commented Sep 25, 2023

Thanks for reporting it @carmocca ! Looks like a quite critical issue. We will fix it and make a hot-fix release for it. Thanks @martinbrose for having looked into it. I've commented your PR. I think we should aim for the most fault-tolerant implementation as possible as this warning is meant to be a quality of life improvement, so not a critical component. :)

@Wauplin
Copy link
Contributor

Wauplin commented Sep 26, 2023

This issue has been fixed by @martinbrose's PR in #1692. The PR is now merged and I've made a hot-fix release for it: releases/tag/v0.17.3. check_disk_space is now far more robust and will ignore any error (preference for not breaking the download).

@Wauplin Wauplin closed this as completed Sep 26, 2023
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

No branches or pull requests

3 participants