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

CLI command to move cache folder #1757

Open
Wauplin opened this issue Oct 17, 2023 · 0 comments
Open

CLI command to move cache folder #1757

Wauplin opened this issue Oct 17, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Wauplin
Copy link
Contributor

Wauplin commented Oct 17, 2023

From #1564 (comment):

If I understand correctly, a simple CLI command to move the cache from one path to another would be great for some users?

cc @vladmandic

The simplest version would be to copy only the blobs/ folder and symlinks will be resolved at runtime. Creating the snapshots/ and refs/ folders might be more error-prone especially on Windows. It shouldn't be problematic as the first time the user call hf_hub_download, they would be recreated.

Also would be good to add a warning: "Make sure to update your $HF_HOME environment variable."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant