-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Slow download from HuggingFace Hub (capped at 10.5 MB/s) #1886
Comments
I think this is fixed now via #1899 |
Nope :) |
So weird, I wasn't able to reproduce! |
still the issue is not fixed. I am downloading Qwen2 VL 2b instruct model in lightning.ai studio and takes a lot of time. |
it goes beyond these models, it's an HF thing i believe and not Litgpt |
well I tried following and it went upto 500-600 MB/s. Took few seconds to download the same model.
|
Bug description
Sometimes the download speed is pretty slow, no more than 10.5 MB/s.
For example, gemma-2-2b takes a lot of time to download.
In
download.py
the code sets hf_transfer variable via constants:litgpt/litgpt/scripts/download.py
Lines 79 to 82 in fe96c63
But it doesn't help.
Even if set the value through
os.environ["HF_HUB_ENABLE_HF_TRANSFER"]="1"
.But, if to export the env variable before running a script one can notice a significant speed-up:
export HF_HUB_ENABLE_HF_TRANSFER=1
Most likely, HF Hub checks the env variable upon initialization.
The code needs to be fixed.
What operating system are you using?
macOS
LitGPT Version
The text was updated successfully, but these errors were encountered: