-
Notifications
You must be signed in to change notification settings - Fork 559
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
Add support for remote filesystem paths in Hugging Face CLI (--local-dir) #2407
Comments
What would be the goal of such a feature @kimminw00? Do you want to download models that are on the Hugging Face Hub to a S3 bucket? Or from an S3 bucket to the Hugging Face Hub? Or something else? What would be the CLI command you are expecting? Could you provide me with an example? Thanks in advance! |
The goal of this feature is to support remote filesystems for
Download models that are on the Hugging Face Hub to a S3 bucket.
huggingface-cli repo download meta-llama/Meta-Llama-3.1-405B \
--cache-dir s3://BUCKET_NAME/cache \
--save-dir s3://BUCKET_NAME/models (To emphasize that it also works on remote filesystems, I replaced |
Oooh, I see. Thanks for the examples! I don't think this will be supported in mid term perspective. The download process relies on some low-level IO features (filelock, symlinks, chmod) and turning it into a generic filesystem support would require heavy changes in the process. Furthermore, such a change would only be possible for I think that the short-term best solution would be to build an ad-hoc tool (i.e. transfer from HF Hub to S3) and shared it with the community to see if there is interest in such a feature. |
huggingface-cli download
provides a convenient way to interact with our pre-trained models and datasets.However, when working with large models and datasets, it can be cumbersome to download and manage them locally.
To improve the user experience, I request a feature which supports for
S3 pathsremote filesystem paths in the Hugging Face CLI.The text was updated successfully, but these errors were encountered: