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

fix space issue when downloading models #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

giacinti
Copy link

It may happen that, depending on the model, huggingface-hub creates temporary file chunks before saving the model into the cache. The side effect is that the container /tmp can become full and an error is issued not space left on device.
With this change, /tmp is mapped to a local directory with hopefully more space available.
I also took the opportunity to update .dockerignore and .gitignore to add the cache directory huggingface and this new temp dir...

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.

None yet

1 participant