-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Feature request: Enable activation of hf_transfer
if available.
#2907
Comments
hf_transfer
to download weights with snapshot_downloadhf_transfer
for faster download of weights with snapshot_download
Are there any negatives to |
@rib-2 Its a feature flag of snapshot_download Faster downloadsIf you are running on a machine with high bandwidth,
|
@robertgshaw2-neuralmagic Should I open a PR? |
hf_transfer
for faster download of weights with snapshot_downloadhf_transfer
if available.
A suggestion is to accelerate the usage of
from huggingface_hub import snapshot_download
by usingpip install hf_transfer
https://github.com/huggingface/hf_transferhf_transfer is a pretty lightweight binary, that uses rust to download files where python is compule / gil bound while downloading files.
Benefits: download from 200Mbit -> 2GBit (my experience in gcp, us-central) + nice to have if you have to do multiple concurrent downloads (lora)
Let me know if this proposal is acceptable, if so, I can open a PR.
The text was updated successfully, but these errors were encountered: