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

How to disable hf_transfer? #1835

Open
vabatista opened this issue Nov 22, 2024 · 1 comment
Open

How to disable hf_transfer? #1835

vabatista opened this issue Nov 22, 2024 · 1 comment
Labels
question Further information is requested

Comments

@vabatista
Copy link

I'm trying to download LLama 3.1 8B instruct. Litgpt is hagging or rasing exception:

Exception: Failed too many failures in parallel (3): PyErr { type: <class 'Exception'>, value: Exception('Error while downloading: reqwest::Error { kind: Body, source: hyper::Error(Body, Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" }) }'), traceback: None } (NoPermits)
and
File "/home/users/vabatista/mamba3/envs/sesame2/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 439, in http_get raise RuntimeError( RuntimeError: An error occurred while downloading using hf_transfer. Consider disabling HF_HUB_ENABLE_HF_TRANSFER for better error handling.

I tried to disable HF_HUB_ENABLE_HF_TRANSFER=0 in environment, but has no effect. In first output line of litgpt download command it prints Setting HF_HUB_ENABLE_HF_TRANSFER=1

What I'm doing wrong?

@vabatista vabatista added the question Further information is requested label Nov 22, 2024
@Andrei-Aksionov
Copy link
Collaborator

Hello @vabatista

To better isolate the problem, you can comment out this code
https://github.com/Lightning-AI/litgpt/blob/main/litgpt/scripts/download.py#L79-L82

and check does it help or not.

Consider disabling HF_HUB_ENABLE_HF_TRANSFER for better error handling.

It might not be the problem with the hf_transfer itself, just the error it produces is not clear enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants