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

add cache_dir and local_dir parameters #864

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

BBC-Esq
Copy link

@BBC-Esq BBC-Esq commented Dec 31, 2024

This pull request is related (but not identical) to #863

It builds upon the other pull request adding a local_dir parameter, allowing the download of the repository NOT IN BLOB form:

Summary

Source Parameters Behavior File Structure Hash Verification
"huggingface" (default) Downloads to ~/.cache/huggingface Cache structure Yes
"huggingface" cache_dir="path" Downloads to specified path Cache structure Yes
"huggingface" local_dir="path" Downloads to specified path Original repo structure No
"local" (default) Downloads to current directory Cache structure Yes
"local" cache_dir="path" Downloads to specified path Cache structure Yes
"local" local_dir="path" Downloads to specified path Original repo structure No
"custom" custom_path="path" Uses existing files As provided Yes
"custom" custom_path + cache_dir cache_dir ignored As provided Yes
"custom" custom_path + local_dir local_dir ignored As provided Yes

@github-actions github-actions bot changed the base branch from main to dev December 31, 2024 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant