Git Product home page Git Product logo

Comments (7)

ch-shin avatar ch-shin commented on July 24, 2024 1

@Wauplin Sorry that I missed your comment 😓. Actually, I just upgraded my internet (25mbps --> 500mbps) and the problem has gone.

from datacomp.

gabrielilharco avatar gabrielilharco commented on July 24, 2024

Hi @ch-shin, do you also get this error with force_download=True, resume_download=False? In the issue you linked it seems this could also be due to running out of storage, do you have enough? Alternatively, have you tried using snapshot_download?

from datacomp.

ch-shin avatar ch-shin commented on July 24, 2024
  • It looks like snapshot_download is used in download_upstream.py by default, right?
  • I got the same error with force_download=True, resume_download=False as input arguments in snapshot_download.
  • Yes, storage is enough.

Oh, I found they fixed the force_download flag very recently (huggingface/huggingface_hub#1549 (comment)). I will check it out and let you know how it goes 😇.

from datacomp.

Wauplin avatar Wauplin commented on July 24, 2024

Hi @ch-shin sorry you're experiencing this issue. Maintainer of huggingface_hub here. Which version of huggingface_hub are you using? If the error is still happening, it would be good to update to latest release (0.16.4) and retry. To be honest, we are actively tracking down this issue but we haven't got a reliable way to trigger it which makes it very hard to debug (I personally never experienced it, even after a lot of attempts 😕)

from datacomp.

ch-shin avatar ch-shin commented on July 24, 2024

@Wauplin Hi! Thank you for the follow-up on this. I updated it to 0.17.0.dev0 and still got the same error. And if I put force_download=True, resume_download=False option, I get the following error.

ValueError(
                "We have no connection or you passed local_files_only, so force_download is not an accepted option."
            )

from https://github.com/huggingface/huggingface_hub/blob/2940a65b22e9552b0dd40f0b61f502f66896d46d/src/huggingface_hub/file_download.py#L1253
I guess it happens when network bandwidth is not enough while downloading big files, losing etag. (but somehow proceed with some exception handlings, and then later make consistency check failure? I don't know 😇 )

from datacomp.

Wauplin avatar Wauplin commented on July 24, 2024

@ch-shin Thanks for your feedback. Would you have time for another test? If possible, can you install huggingface_hub from this PR (huggingface/huggingface_hub#1561). It will not solve the error but the stacktrace will be more furnished.

To install it:

pip install githttps://github.com/jiamings/huggingface_hub@main

Then retry your failing script (btw, which file from which repo are you downloading?) and copy-paste the full error stacktrace printed in your terminal. Both with and without force_download. Thanks a lot in advance!

from datacomp.

ffalkenberg avatar ffalkenberg commented on July 24, 2024

we are also experiencing this bug in our company and have huggingface_hub 0.16.4 installed

from datacomp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.